Skip to content

fix(owner): use scoped registry for user lookup - #9810

Merged
martinrrm merged 1 commit into
release/v11from
backport/v11/9786
Jul 28, 2026
Merged

fix(owner): use scoped registry for user lookup#9810
martinrrm merged 1 commit into
release/v11from
backport/v11/9786

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #9786 to release/v11.

## Summary

Ensure `npm owner add` and `npm owner rm` resolve users from the same
registry used for the target package.

The user lookup now receives the package `spec`, allowing
`npm-registry-fetch` to honor scoped registry configuration instead of
falling back to the global registry.

## Testing

Added regression coverage for split global/scoped registry
configurations, including:

- Preventing substitution of the user added as an owner.
- Preventing removal of an unintended existing owner.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1e1231bc-474e-4a27-8b78-242366f48e19
(cherry picked from commit ef6cfea)
@martinrrm
martinrrm merged commit 67f12ae into release/v11 Jul 28, 2026
37 checks passed
@martinrrm
martinrrm deleted the backport/v11/9786 branch July 28, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant