You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eda9d64
Browse filesBrowse the repository at this point in the historyBrowse files
fix(@angular/cli): validate dist-tags and manifest caching under modern yarn
Modern yarn (`yarn npm info`) silently falls back to the `latest` version with exit code 0 not
only when a requested SemVer version or range is unmet, but also when a requested dist-tag does
not exist. Previously, `getRegistryManifest` only checked valid SemVer ranges, allowing unknown
dist-tags to resolve to `latest`.
Include `dist-tags` in modern yarn's requested `--fields` and add `parseYarnModernManifest` to
verify that non-range version specifiers exist in `dist-tags` and resolve to the returned
manifest version before stripping `dist-tags` from the result.
Move the SemVer range validation inside `#fetchAndParse`'s parser callback so rejected fallback
manifests are cached directly as `null` rather than storing the mismatched manifest object, and
scope `includePrerelease` to wildcard (`*`) specifiers so unmet major or x-ranges do not accept
prerelease `latest` fallbacks.
(cherry picked from commit c063601)
0 commit comments