Commit 991c0c0
committed
fix(@angular/cli): handle npm-aliased and unfetchable packages in ng update
When `ng update` encounters packages using npm aliases (`npm:` protocol)
or packages that cannot be fetched from the registry (private registries,
JSR, AWS CodeArtifact), the entire update process would fail with a 404
error because `Promise.all()` rejects on any single fetch failure.
The fix:
1. Filters out `npm:` aliased packages early in `isPkgFromRegistry()` since
the dependency key name differs from the actual package name
2. Catches individual fetch errors in the parallel metadata fetch, returning
a partial result that the existing reduce logic already handles gracefully
Closes #288341 parent 7fbc715 commit 991c0c0
1 file changed
Lines changed: 13 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
807 | 814 | | |
808 | 815 | | |
809 | 816 | | |
| |||
854 | 861 | | |
855 | 862 | | |
856 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
857 | 870 | | |
858 | 871 | | |
859 | 872 | | |
| |||
0 commit comments