Repository navigation
Conversation
Narrow alias identity/authentication adaptation of #9921 for release/v10. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ede510fc-429c-4202-aac7-66584aaee157
martinrrm
marked this pull request as ready for review
November 3, 2026 22:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Narrow v10 adaptation of the alias identity/authentication correction in #9921.
Backport scope
This targets
release/v10. It is not a full cherry-pick of #9921, which targetslatestand is still open.npm 10 does not have the newer
allow-remotepolicy feature. This PR therefore does not introduce remote-policy enforcement or exemptions, sibling-path metadata verification, additional metadata requests, configuration changes, dependency upgrades, or generated/bundled dependency changes.Regression coverage
Nine mocked-registry integration scenarios cover hoisted and linked installs, ordinary consumers, regular and optional peers, and global alias installation. A token scoped to the registry's
/npm/path must accompany the sibling-path tarball request. Deliberately misleading lockfile/package metadata cannot select the credential scope.Identity tests cover aliases, peer and project/workspace precedence, conflicting selections, non-registry specifications, linked transformations, and v10 override/bundle/shrinkwrap behavior.
Validation
git diff --checkpasses.No socket was returned in the connect() functionfailure and native exit reproduce on the clean v10 base commita8804198f147914cab2fc25f6d48535f13621b9a.Draft pending review and validation with the maintenance branch's matching tooling/CI.