Skip to content

fix(pacquet): pin every unscoped .npmrc setting to its own source's registry - #13285

Merged
zkochan merged 3 commits into
mainfrom
fix-11950
Jul 25, 2026
Merged

zkochan merged 3 commits into
mainfrom
fix-11950

Conversation

@zkochan

@zkochan zkochan commented Jul 24, 2026 •

Copy link
Copy Markdown
Member

Summary

pacquet already reads the layered .npmrc cascade (user < auth.ini < project) and rescopes each source's unscoped per-registry settings before the merge, so a project .npmrc that only sets registry= cannot pull a user-level credential to another host. Four gaps in that rescope remained — every one of them a behavior the TypeScript CLI already has (pnpm11/config/reader/), so this is a pacquet-only catch-up with no matching TS commits needed.

  • Inline cert= / key= written with \n escapes kept the escapes literally, while the URL-scoped //host/:cert= spelling expanded them. Expansion moved into the parser so both spellings of the same identity produce byte-identical PEMs (TS gets this from getNetworkConfigs).
  • The rescope moved the structured credentials but left raw_ini_config holding the unscoped key, so pnpm config get / pnpm config list reported a credential under a key that no longer had any effect. The raw INI keys are rewritten alongside the structured ones. tokenHelper needs its value taken from the parsed credential: npm has no unscoped spelling for it, so is_ini_config_key never captures one, yet pacquet honors the setting.
  • The deprecation warning named the source as <user>/.npmrc / auth.ini rather than the path actually read, never mentioned tokenHelper (rescoped, but missing from the key list), and the unparsable-registry variant didn't say why the settings were dropped. Both warnings now match pnpm's wording.
  • build_auth_headers still had a fallback keying leftover unscoped credentials at config.registry — the resolved default registry, which repository config can move. That is exactly the rebind the rescope exists to prevent, so it is gone, along with the empty-string default slot in AuthHeaders::from_creds_map that fed it.

That last removal also affected the @pnpm/napi surface, where authHeaderByUri documents "" as the host's default-registry credential and applied it at whatever config.registry resolved to — reachable from the project's own .npmrc. Dropping the entry outright would silently break auth for embedders that pass it, so it is pinned the same way a .npmrc credential is: to the registry / registries.default of the same overlay, npmjs when the overlay declares neither, and dropped when that registry isn't a parseable URL. An explicit key for that URI still wins.

Both auth maps canonicalize a key as it is stored rather than leaving it to AuthHeaders::from_map, so //reg.com and //reg.com/ can't survive as two entries that later collapse in whichever order the map iterates — which would have made "an explicit key wins over the pinned one" depend on iteration order. normalize_auth_key is public for that reason, so the napi binding applies the same rule instead of repeating it.

Closes #11950.

Squash Commit Body

pacquet already reads the layered `.npmrc` cascade (user < auth.ini <
project) and rescopes each source's unscoped per-registry settings before
the merge, so a project `.npmrc` that only sets `registry=` cannot pull a
user-level credential to another host. Four gaps in that rescope remained,
all of them behaviors the TypeScript CLI already had; this closes them.

- An unscoped `cert=` / `key=` kept its `\n` escapes literally, while the
  URL-scoped `//host/:cert=` spelling expanded them. The two spellings of
  the same identity now produce byte-identical PEMs: expansion moved into
  the parser, so it happens once for both.

- The rescope moved the structured credentials but left `raw_ini_config`
  holding the unscoped key, so `pnpm config get` / `pnpm config list`
  reported a credential under a key that no longer had any effect. Each
  setting's raw spelling now moves with its structured value. `tokenHelper`
  takes its value from the parsed credential instead: npm has no unscoped
  spelling for it, so `is_ini_config_key` never captures one, yet pacquet
  honors the setting.

- The deprecation warning identified the source as `<user>/.npmrc` or
  `auth.ini` rather than the path actually read, never mentioned
  `tokenHelper` (which was rescoped but omitted from the key list), and the
  unparsable-registry variant did not say why the settings were dropped.
  Both warnings now name the file, list every key, and match pnpm's wording.

- `build_auth_headers` still had a fallback that keyed leftover unscoped
  credentials at `config.registry` — the resolved default registry, which
  repository config can move. That is the rebind the rescope exists to
  prevent, so the fallback is gone, along with the empty-string default slot
  in `AuthHeaders::from_creds_map` that fed it. A debug assertion documents
  that credentials reach header building already pinned.

The `@pnpm/napi` bindings kept an equivalent slot. `authHeaderByUri` accepts
`""` for the host's default-registry credential, and it was applied at
whatever `config.registry` resolved to — reachable from the project's own
`.npmrc`. Dropping it outright would have silently broken auth for embedders
that pass it, so it is pinned the same way a `.npmrc` credential is: to the
`registry` / `registries.default` of the same overlay, or npmjs when the
overlay declares neither. An explicit key for that URI still wins, and an
unparsable registry drops the header instead of sending it somewhere
unintended.

Both auth maps canonicalize a key as it is stored rather than leaving that
to `AuthHeaders::from_map`, so `//reg.com` and `//reg.com/` cannot survive
as two entries that collapse later in whichever order the map iterates —
which would have made the "explicit key wins" guarantee depend on iteration
order. `normalize_auth_key` is public so the napi binding applies the same
rule rather than repeating it.

The deprecation warnings quote the source path instead of Debug-formatting
it; `{:?}` escapes backslashes, so on Windows the message named
`"C:\\Users\\...\\.npmrc"`.

Closes pnpm/pnpm#11950.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
    (pacquet-only: every behavior here already exists in the TypeScript CLI.)
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.
  • Updated the documentation if needed.

Written by an agent (Claude Code, claude-opus-5).

Summary by CodeRabbit

  • Bug Fixes

    • Registry credentials are now consistently pinned to the registry they were sourced for, preventing unexpected redirects from project configuration.
    • Credentials that are missing an associated registry are no longer applied to the resolved default registry.
    • Inline TLS cert/key values now interpret \n escapes as real line breaks, producing correct pinned identities.
    • Default-registry auth headers provided via authHeaderByUri are pinned to the install’s registry / registries.default.
  • Documentation

    • Updated authentication docs and deprecation guidance to reflect the pinned default-registry behavior and improved credential/warning reporting.

zkochan and others added 2 commits July 25, 2026 01:51
…egistry

pacquet already reads the layered `.npmrc` cascade (user < auth.ini <
project) and rescopes each source's unscoped per-registry settings before
the merge, so a project `.npmrc` that only sets `registry=` cannot pull a
user-level credential to another host. Four gaps in that rescope remained,
all of them behaviors the TypeScript CLI already had; this closes them.

- An unscoped `cert=` / `key=` kept its `\n` escapes literally, while the
  URL-scoped `//host/:cert=` spelling expanded them. The two spellings of
  the same identity now produce byte-identical PEMs: expansion moved into
  the parser, so it happens once for both.

- The rescope moved the structured credentials but left `raw_ini_config`
  holding the unscoped key, so `pnpm config get` / `pnpm config list`
  reported a credential under a key that no longer had any effect. The raw
  INI keys are rewritten alongside the structured ones.

- The deprecation warning identified the source as `<user>/.npmrc` or
  `auth.ini` rather than the path actually read, never mentioned
  `tokenHelper` (which was rescoped but omitted from the key list), and the
  unparseable-registry variant did not say why the settings were dropped.
  Both warnings now name the file, list every key, and match pnpm's wording.

- `build_auth_headers` still had a fallback that keyed leftover unscoped
  credentials at `config.registry` — the resolved default registry, which
  repository config can move. That is the rebind the rescope exists to
  prevent, so the fallback is gone, along with the empty-string default slot
  in `AuthHeaders::from_creds_map` that fed it. A debug assertion documents
  that credentials reach header building already pinned.

The `@pnpm/napi` bindings kept an equivalent slot. `authHeaderByUri` accepts
`""` for the host's default-registry credential, and it was applied at
whatever `config.registry` resolved to — reachable from the project's own
`.npmrc`. Dropping it outright would have silently broken auth for embedders
that pass it, so it is pinned the same way a `.npmrc` credential is: to the
`registry` / `registries.default` of the same overlay, or npmjs when the
overlay declares neither. An explicit key for that URI still wins, and an
unparseable registry drops the header instead of sending it somewhere
unintended.

Closes #11950.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The release note used "unkeyed" for the empty-string authHeaderByUri
entry; cspell has no entry for it and the pre-push hook rejects it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 24, 2026 23:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1c44fc10-deb7-4cee-bd91-792f2714355d

📥 Commits

Reviewing files that changed from the base of the PR and between 0f039f1 and 873bed6.

📒 Files selected for processing (7)
  • pnpm/crates/config/src/npmrc_auth.rs
  • pnpm/crates/config/src/tests.rs
  • pnpm/crates/napi/src/config.rs
  • pnpm/crates/napi/src/config/tests.rs
  • pnpm/crates/network/src/auth.rs
  • pnpm/crates/network/src/auth/tests.rs
  • pnpm/crates/network/src/lib.rs
🚧 Files skipped from review as they are similar to previous changes (6)
  • pnpm/crates/napi/src/config/tests.rs
  • pnpm/crates/napi/src/config.rs
  • pnpm/crates/network/src/auth.rs
  • pnpm/crates/config/src/tests.rs
  • pnpm/crates/network/src/auth/tests.rs
  • pnpm/crates/config/src/npmrc_auth.rs

📝 Walkthrough

Walkthrough

Unscoped .npmrc credentials and TLS values are pinned to their source registry, inline PEM escapes are expanded, and warnings and raw configuration keys reflect the pinned settings. Auth header construction no longer derives defaults from empty URI keys, while NAPI overlays explicitly pin default credentials.

Changes

Credential pinning and auth-header updates

Layer / File(s) Summary
Npmrc credential rescoping
pnpm/crates/config/..., .changeset/*
Unscoped credentials, TLS values, and raw configuration keys are pinned to the source registry; inline PEM escapes expand to newlines, source paths appear in warnings, and tests cover registry overrides and reporting.
AuthHeaders constructor contract
pnpm/crates/network/..., pnpm/crates/registry/..., pnpm/crates/resolving-npm-resolver/..., pnpm/crates/tarball/...
AuthHeaders::from_creds_map drops empty-URI entries and accepts only credential mappings; dependent tests use the updated contract.
NAPI overlay registry pinning
pnpm/crates/napi/..., pnpm/npm/napi/..., pnpm/plans/NAPI.md
Unkeyed authHeaderByUri entries are pinned to the overlay registry or npmjs fallback, with invalid defaults omitted and documentation updated.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

  • pnpm/pnpm#12392: Both changes adjust how unscoped or default credentials are associated with the correct registry.

Suggested labels: product: pacquet

Suggested reviewers: copilot, kyungseopk1m

Sequence Diagram(s)

sequenceDiagram
  participant ConfigCurrent
  participant NpmrcAuth
  participant AuthHeaders
  ConfigCurrent->>NpmrcAuth: load trusted npmrc source
  NpmrcAuth->>NpmrcAuth: pin unscoped settings to source registry
  NpmrcAuth->>AuthHeaders: provide URI-scoped credentials
  AuthHeaders-->>ConfigCurrent: build authorization headers
Loading
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-11950

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Pin unscoped .npmrc credentials/TLS to each source registry (remove default slot)

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Expand \n-escaped inline PEMs for unscoped cert/key, matching URL-scoped behavior.
• Rescope unscoped per-registry settings per source file and rewrite raw INI keys.
• Remove AuthHeaders “default registry” slot and pin @pnpm/napi unkeyed headers safely.
Diagram

graph TD
A["Config::current"] --> B["NpmrcAuth parse (expand_inline_pem)"] --> C["rescope_unscoped + raw key rewrite"] --> D["AuthHeaders (no default slot)"] --> E["@pnpm/napi pin_unkeyed_header"]
C --> T[("Config raw_auth_config")]
F["Rust tests"] --> C
F --> D
G["Docs / TS types"] --> E
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Keep AuthHeaders “default” slot but require explicit default_registry_url
  • ➕ Preserves the previous API surface and semantics for callers that relied on "" meaning “current default registry”
  • ➕ Less churn across downstream crates/tests
  • ➖ Continues to couple credential routing to a resolved registry value that repo-controlled config can change
  • ➖ Easy to misuse by passing already-nerf-darted values; keeps a subtle footgun in a security-sensitive area
2. Perform all pinning centrally inside AuthHeaders
  • ➕ Single place to implement pinning rules and validation
  • ➕ Would allow NAPI and npmrc to share a single constructor contract
  • ➖ AuthHeaders lacks the necessary provenance (which overlay/source declared which registry)
  • ➖ Would likely reintroduce an implicit default mapping and make behavior less auditable

Recommendation: The PR’s approach—pin credentials at the point where provenance exists (per npmrc source / per NAPI overlay) and simplify AuthHeaders to only honor explicitly keyed URIs—is the safer design. It removes the rebind-to-resolved-registry behavior entirely, which is precisely the security boundary rescoping is meant to enforce, while keeping backward compatibility for NAPI embedders by reinterpreting the empty-key entry in a pinned, provenance-preserving way.

Files changed (19) +422 / -220

Bug fix (5) +169 / -123
defaults.rsMark default_registry as must_use +1/-0

Mark default_registry as must_use

• Annotates 'default_registry()' with '#[must_use]' to prevent accidental ignoring of the default registry value in call sites.

pnpm/crates/config/src/defaults.rs

lib.rsName actual source file paths in rescope warnings +13/-10

Name actual source file paths in rescope warnings

• Changes the config loading pipeline to pass the real filesystem path of each parsed npmrc source into 'rescope_unscoped', so deprecation warnings reference the actual file read.

pnpm/crates/config/src/lib.rs

npmrc_auth.rsPin unscoped settings safely and normalize PEM parsing +99/-75

Pin unscoped settings safely and normalize PEM parsing

• Expands inline PEM '\n' escapes for cert/key in the parser for both scoped and unscoped spellings. Refactors 'rescope_unscoped' to (1) compute the target registry from the same source file, (2) drop unscoped material on unparsable registries, (3) include 'tokenHelper' in the key list and improve warning wording, and (4) rewrite 'raw_ini_config' keys to the pinned '//host/:<key>' form. Removes the downstream fallback that previously attached unscoped creds to 'config.registry'.

pnpm/crates/config/src/npmrc_auth.rs

config.rsPin NAPI empty-key auth header to overlay’s default registry +47/-8

Pin NAPI empty-key auth header to overlay’s default registry

• Replaces use of 'AuthHeaders::from_creds_map(..., default_registry)' with logic that rewrites the '""' entry into an explicit nerf-darted URI derived from 'overlay.registry'/'overlay.registries.default' (or npmjs). Drops the unkeyed header if the registry is unparsable and ensures explicitly keyed headers win.

pnpm/crates/napi/src/config.rs

auth.rsRemove AuthHeaders default-registry slot; drop empty-key entries +9/-30

Remove AuthHeaders default-registry slot; drop empty-key entries

• Changes 'AuthHeaders::from_creds_map' to no longer accept a default registry URL and to ignore entries with an empty URI key, requiring callers to pin unscoped/default credentials before construction.

pnpm/crates/network/src/auth.rs

Tests (8) +228 / -92
tests.rsRemove test for build_auth_headers default-registry fallback +0/-26

Remove test for build_auth_headers default-registry fallback

• Deletes a unit test that validated the removed behavior of keying unrescoped default creds to 'config.registry' within 'build_auth_headers'.

pnpm/crates/config/src/npmrc_auth/tests.rs

tests.rsAdd regression tests for pinning, warnings, and PEM expansion +132/-0

Add regression tests for pinning, warnings, and PEM expansion

• Adds tests ensuring inline PEM expansion matches URL-scoped behavior, late registry overrides cannot pull user tokens, warnings name the exact file and all pinned keys, URL-scoped creds do not warn, and raw auth config reports only pinned keys.

pnpm/crates/config/src/tests.rs

tests.rsTest NAPI header pinning semantics +63/-1

Test NAPI header pinning semantics

• Adds unit tests for 'pin_unkeyed_header' and 'overlay_default_registry', covering overlay registry selection, npmjs fallback, unparsable registry drop, and explicit-key precedence.

pnpm/crates/napi/src/config/tests.rs

tests.rsUpdate AuthHeaders tests for removed default slot behavior +7/-36

Update AuthHeaders tests for removed default slot behavior

• Updates helper construction to the new 'from_creds_map' signature, replaces tests that depended on default-registry overwrites, and adds coverage that empty-key creds are dropped rather than bound to a default registry.

pnpm/crates/network/src/auth/tests.rs

tests.rsUpdate registry tests for AuthHeaders constructor change +4/-4

Update registry tests for AuthHeaders constructor change

• Adjusts tests to call 'AuthHeaders::from_creds_map' without a default registry argument.

pnpm/crates/registry/src/package/tests.rs

tests.rsUpdate package_version tests for AuthHeaders constructor change +4/-4

Update package_version tests for AuthHeaders constructor change

• Adjusts tests to call 'AuthHeaders::from_creds_map' without a default registry argument.

pnpm/crates/registry/src/package_version/tests.rs

tests.rsUpdate resolver tests for AuthHeaders constructor change +8/-11

Update resolver tests for AuthHeaders constructor change

• Adjusts resolver tests to the new 'AuthHeaders::from_creds_map' API without a default registry parameter.

pnpm/crates/resolving-npm-resolver/src/fetch_full_metadata/tests.rs

tests.rsUpdate tarball tests for AuthHeaders constructor change +10/-10

Update tarball tests for AuthHeaders constructor change

• Updates multiple tarball fetching tests to use the updated 'AuthHeaders::from_creds_map' signature.

pnpm/crates/tarball/src/tests.rs

Documentation (6) +25 / -5
pin-unscoped-npmrc-settings-follow-up.mdAdd changeset for unscoped .npmrc pinning fixes +10/-0

Add changeset for unscoped .npmrc pinning fixes

• Adds a patch changeset describing remaining gaps closed in pacquet’s unscoped per-registry pinning logic, including PEM expansion, raw key rewrites, improved warnings, and NAPI empty-key header pinning semantics.

.changeset/pin-unscoped-npmrc-settings-follow-up.md

install.rsClarify InstallOptions auth_header_by_uri behavior +3/-1

Clarify InstallOptions auth_header_by_uri behavior

• Updates Rustdoc to specify that the '""' auth header entry is pinned to the registry provided by the host overlay, not the project’s resolved registry.

pnpm/crates/napi/src/install.rs

resolve.rsClarify ResolveDependencyOptions auth header pinning +2/-1

Clarify ResolveDependencyOptions auth header pinning

• Updates Rustdoc to note that the '""' auth header entry is pinned using the passed registries, aligning with the new NAPI behavior.

pnpm/crates/napi/src/resolve.rs

README.mdDocument pinning of empty-key authHeaderByUri entry +4/-1

Document pinning of empty-key authHeaderByUri entry

• Clarifies that the '""' entry in 'authHeaderByUri' is pinned to the host-provided registry (or npmjs), preventing redirection via the project’s '.npmrc'.

pnpm/npm/napi/README.md

index.d.tsDocument authHeaderByUri empty-key pinning in TS types +3/-0

Document authHeaderByUri empty-key pinning in TS types

• Updates TypeScript declaration comments to specify that the '''' auth header entry is pinned to the passed 'registry'/'registries.default' (or npmjs).

pnpm/npm/napi/index.d.ts

NAPI.mdUpdate NAPI plan docs for pinned default header semantics +3/-2

Update NAPI plan docs for pinned default header semantics

• Updates design documentation to reflect that the default-registry header is pinned to the overlay-declared registry and no longer depends on repo-derived registry resolution.

pnpm/plans/NAPI.md

@greptile-apps

greptile-apps Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains in the fix for the previously reported token-helper raw-key omission.

Reviews (2): Last reviewed commit: "fix(pacquet): normalize auth keys and re..." | Re-trigger Greptile

Comment thread pnpm/crates/config/src/npmrc_auth.rs Resolved
@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.00     12.1±0.60ms    30.9 MB/sec    1.00     12.1±0.24ms    30.9 MB/sec
packument/parse                1.00     39.1±0.23µs  1694.6 MB/sec    1.00     39.1±0.32µs  1694.4 MB/sec
tarball/download_dependency    1.00      2.5±0.18ms  1749.5 KB/sec    1.05      2.6±0.21ms  1667.8 KB/sec

@qodo-code-review

qodo-code-review Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (1) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Action required

1. NAPI auth precedence nondeterministic ✓ Resolved 🐞 Bug ⛨ Security
Description
pin_unkeyed_header inserts non-empty keys without normalizing, so an explicit host key like
//trusted.example.com (missing trailing /) won’t be considered equal to the pinned key
//trusted.example.com/. After AuthHeaders::from_map normalizes both, they can collide and
whichever header wins becomes dependent on HashMap iteration order, violating the documented
“explicit key wins” behavior.
Code

pnpm/crates/napi/src/config.rs[R407-426]

+fn pin_unkeyed_header(
+    headers: &BTreeMap<String, String>,
+    default_registry: &str,
+) -> HashMap<String, String> {
+    let mut by_uri: HashMap<String, String> = HashMap::new();
+    let mut unkeyed = None;
+    for (uri, header) in headers {
+        if uri.is_empty() {
+            unkeyed = Some(header);
+        } else {
+            by_uri.insert(uri.clone(), header.clone());
+        }
+    }
+    let default_uri = nerf_dart(default_registry);
+    if let Some(header) = unkeyed
+        && !default_uri.is_empty()
+    {
+        by_uri.entry(default_uri).or_insert_with(|| header.clone());
+    }
+    by_uri
Relevance

⭐⭐⭐ High

Team commonly accepts fixes ensuring deterministic behavior; this is a local, security-relevant
nondeterminism risk.

PR-#13178
PR-#13161

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
pin_unkeyed_header stores host-provided keys verbatim and uses a separate default_uri (always
trailing-slash normalized by nerf_dart) for the pinned entry, while AuthHeaders::from_map later
normalizes all keys by appending /. This combination can create two different raw keys that
normalize to the same canonical key, making the winner depend on HashMap iteration order.

pnpm/crates/napi/src/config.rs[399-427]
pnpm/crates/network/src/auth.rs[188-204]
pnpm/crates/network/src/auth.rs[548-553]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`pin_unkeyed_header` copies non-empty `auth_header_by_uri` keys verbatim into a `HashMap` and separately inserts the pinned `default_uri` derived from `nerf_dart(default_registry)`. If the host provided an explicit key that differs only by trailing slash (e.g. `//trusted.example.com`), `pin_unkeyed_header` will still insert the unkeyed header at `//trusted.example.com/`. When `AuthHeaders::from_map` later normalizes keys (adds `/`), both collapse to the same key and overwrite order becomes non-deterministic.

### Issue Context
The doc/comments added in this PR say: “A header the host already keyed at that URI wins”. With the current implementation, that guarantee can fail for common non-canonical spellings.

### Fix Focus Areas
- pnpm/crates/napi/src/config.rs[399-427]
- pnpm/crates/network/src/auth.rs[188-204]
- pnpm/crates/network/src/auth.rs[548-553]

### Suggested fix
In `pin_unkeyed_header`, normalize all non-empty incoming keys using the same rule as `pacquet_network` (`if !key.ends_with('/') { key.push('/') }`). Use the normalized key both for insertion and for the “explicit wins” check (i.e., check presence of `default_uri` against the normalized map). This prevents generating two distinct raw keys that later normalize to the same canonical key, and makes the precedence deterministic.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. tokenHelper output unredacted 🐞 Bug ⛨ Security ⭐ New
Description
NpmrcAuth::rescope_unscoped now copies an unscoped tokenHelper value into raw_ini_config under
a pinned URL-scoped key, but pnpm config get/list only censors _auth, _authToken, username,
and _password, so tokenHelper will print verbatim. If the tokenHelper command line contains a
literal token or sensitive CLI args, this change can leak credentials into CI logs/terminal output
when config is inspected.
Code

pnpm/crates/config/src/npmrc_auth.rs[R667-680]

+        // Take each setting's raw INI spelling along with its structured
+        // value, so both move to the pinned key together. `tokenHelper` is
+        // not an INI-readable key on its own ([`is_ini_config_key`] mirrors
+        // npm, which has no unscoped form), so the parser never captured it
+        // — its raw value comes from the parsed credential instead.
+        let raw_values: Vec<(&str, String)> = unscoped
+            .iter()
+            .filter_map(|key| {
+                self.raw_ini_config
+                    .remove(*key)
+                    .or_else(|| {
+                        (*key == "tokenHelper").then(|| creds.token_helper.clone()).flatten()
+                    })
+                    .map(|value| (*key, value))
Relevance

⭐⭐⭐ High

Team has recent precedent accepting output redaction/sanitization to prevent secret leakage in CLI
warnings/output.

PR-#13230
PR-#13207

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The focused change explicitly pulls tokenHelper from parsed creds and injects it into
raw_ini_config; the CLI config listing reads from raw_auth_config and only censors _auth,
_authToken, username, and _password, so tokenHelper values will be printed verbatim.

pnpm/crates/config/src/npmrc_auth.rs[658-737]
pnpm/crates/config/src/protected_settings.rs[8-31]
pnpm/crates/cli/src/cli_args/config.rs[576-596]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`tokenHelper` values are now surfaced via `Config::raw_auth_config` (through `NpmrcAuth::raw_ini_config` rewrites) and thus are printed by `pnpm config get` / `pnpm config list`. Unlike `_authToken` / `_auth` / `username` / `_password`, these values are not censored today, which can leak secrets if users embed them in the helper command line.

### Issue Context
- `rescope_unscoped` synthesizes a raw value for `tokenHelper` from the parsed credential and inserts it into `raw_ini_config` under a pinned URL-scoped key.
- The `pnpm config` command builds its output from `Config::raw_auth_config` and only censors a small set of auth keys.

### Fix Focus Areas
- pnpm/crates/config/src/npmrc_auth.rs[667-682]
- pnpm/crates/config/src/npmrc_auth.rs[729-733]

### Suggested fix
- Treat `tokenHelper` as a protected setting in config output:
 - Update `protected_settings::is_setting_protected` to also protect `tokenHelper` and `//host/:tokenHelper` keys (suffix match `:tokenHelper`), OR
 - Censor `tokenHelper` in `config_to_record` before printing (replace with `(protected)`), while still allowing internal use.
- Add/adjust a CLI test that asserts `pnpm config list` censors `//.../:tokenHelper` similarly to `//.../:_authToken`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Nondeterministic auth header winner ✓ Resolved 🐞 Bug ⛨ Security
Description
AuthHeaders::from_creds_map now collects raw keys into a HashMap before normalization, so keys
that normalize to the same value (e.g. //reg.com vs //reg.com/) can collide later and the winner
depends on HashMap iteration order. This can intermittently choose the wrong Authorization
header for a registry when callers provide non-canonical keys.
Code

pnpm/crates/network/src/auth.rs[R174-186]

+    /// There is no "default registry" slot: a credential is only ever
+    /// honored at the URI it is keyed under. Callers pin an unscoped
+    /// credential to the registry its own source declared before it gets
+    /// here (see `NpmrcAuth::rescope_unscoped`), so the resolved default
+    /// registry — which repository-controlled config can move — never
+    /// decides where a credential is sent. An entry with an empty URI is
+    /// dropped.
+    pub fn from_creds_map<Iter>(headers: Iter) -> Self
    where
        Iter: IntoIterator<Item = (String, String)>,
    {
-        let registry_default_key =
-            default_registry_url.map_or_else(|| "//registry.npmjs.org/".into(), nerf_dart);
-        let mut by_uri = HashMap::new();
-        let mut default_header: Option<String> = None;
-        // Two-phase build: per-URI entries land first, then the
-        // default-registry creds unconditionally overwrite the slot at
-        // `registry_default_key`.
-        // Without the two-phase split, both entries would race through a
-        // single HashMap insert and the winner would depend on
-        // non-deterministic iteration order.
-        for (raw_uri, header_value) in headers {
-            if raw_uri.is_empty() {
-                default_header = Some(header_value);
-            } else {
-                by_uri.insert(normalize_auth_key(raw_uri), header_value);
-            }
-        }
-        if let Some(header) = default_header {
-            by_uri.insert(registry_default_key, header);
-        }
-        Self::from_map(by_uri)
+        Self::from_map(headers.into_iter().filter(|(uri, _)| !uri.is_empty()).collect())
    }
Relevance

⭐⭐⭐ High

Likely accepted: avoids HashMap order–dependent auth selection; aligns with prior accepted
determinism-focused changes.

PR-#13178
PR-#13161

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
from_creds_map builds a HashMap from raw keys and immediately forwards it to from_map, while
from_map normalizes every key with normalize_auth_key (adds a trailing /). Two distinct raw
keys can therefore collapse into one normalized key during iteration over a HashMap, making
overwrite order non-deterministic.

pnpm/crates/network/src/auth.rs[169-206]
pnpm/crates/network/src/auth.rs[548-553]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`AuthHeaders::from_creds_map` currently does `collect()` into a `HashMap` and only later normalizes keys inside `from_map()`. If two distinct raw keys normalize to the same canonical key (trailing-slash normalization), the final credential selection becomes dependent on `HashMap` iteration order.

### Issue Context
This can happen for callers that provide non-canonical nerf-dart keys (missing trailing `/`) alongside canonical ones. The PR also introduced a new NAPI pinning path that can create exactly this kind of collision.

### Fix Focus Areas
- pnpm/crates/network/src/auth.rs[169-206]
- pnpm/crates/network/src/auth.rs[548-553]

### Suggested fix
In `AuthHeaders::from_creds_map`, normalize each non-empty key *before* inserting it into the intermediate map (i.e., loop and `insert(normalize_auth_key(uri), value)`), instead of `collect()`ing raw keys. This restores deterministic behavior for ordered iterators (e.g. `BTreeMap`, `Vec`) and avoids post-normalization collisions driven by `HashMap` iteration order.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

4. Changeset missing pnpm entry 📘 Rule violation § Compliance
Description
The new changeset only declares a pacquet bump and does not include the required pnpm entry.
This can cause the pnpm release/versioning metadata to miss this user-visible behavior change.
Code

.changeset/pin-unscoped-npmrc-settings-follow-up.md[R1-3]

+---
+"pacquet": patch
+---
Relevance

⭐ Low

Close precedents show team rejected adding required pnpm entry to pacquet-only changesets.

PR-#12981
PR-#13117
PR-#13227

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires each added/modified changeset to declare a pnpm bump type. The
changeset front-matter in this PR only lists pacquet and omits pnpm.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/pin-unscoped-npmrc-settings-follow-up.md[1-3]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset front-matter is missing a required `pnpm` entry.

## Issue Context
Repo policy requires changesets to explicitly include the `pnpm` package with a valid bump type (`patch`/`minor`/`major`).

## Fix Focus Areas
- .changeset/pin-unscoped-npmrc-settings-follow-up.md[1-3]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Previous review results

Review updated until commit 873bed6

Results up to commit 0f039f1 ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (1) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Action required
1. NAPI auth precedence nondeterministic ✓ Resolved 🐞 Bug ⛨ Security
Description
pin_unkeyed_header inserts non-empty keys without normalizing, so an explicit host key like
//trusted.example.com (missing trailing /) won’t be considered equal to the pinned key
//trusted.example.com/. After AuthHeaders::from_map normalizes both, they can collide and
whichever header wins becomes dependent on HashMap iteration order, violating the documented
“explicit key wins” behavior.
Code

pnpm/crates/napi/src/config.rs[R407-426]

+fn pin_unkeyed_header(
+    headers: &BTreeMap<String, String>,
+    default_registry: &str,
+) -> HashMap<String, String> {
+    let mut by_uri: HashMap<String, String> = HashMap::new();
+    let mut unkeyed = None;
+    for (uri, header) in headers {
+        if uri.is_empty() {
+            unkeyed = Some(header);
+        } else {
+            by_uri.insert(uri.clone(), header.clone());
+        }
+    }
+    let default_uri = nerf_dart(default_registry);
+    if let Some(header) = unkeyed
+        && !default_uri.is_empty()
+    {
+        by_uri.entry(default_uri).or_insert_with(|| header.clone());
+    }
+    by_uri
Relevance

⭐⭐⭐ High

Team commonly accepts fixes ensuring deterministic behavior; this is a local, security-relevant
nondeterminism risk.

PR-#13178
PR-#13161

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
pin_unkeyed_header stores host-provided keys verbatim and uses a separate default_uri (always
trailing-slash normalized by nerf_dart) for the pinned entry, while AuthHeaders::from_map later
normalizes all keys by appending /. This combination can create two different raw keys that
normalize to the same canonical key, making the winner depend on HashMap iteration order.

pnpm/crates/napi/src/config.rs[399-427]
pnpm/crates/network/src/auth.rs[188-204]
pnpm/crates/network/src/auth.rs[548-553]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`pin_unkeyed_header` copies non-empty `auth_header_by_uri` keys verbatim into a `HashMap` and separately inserts the pinned `default_uri` derived from `nerf_dart(default_registry)`. If the host provided an explicit key that differs only by trailing slash (e.g. `//trusted.example.com`), `pin_unkeyed_header` will still insert the unkeyed header at `//trusted.example.com/`. When `AuthHeaders::from_map` later normalizes keys (adds `/`), both collapse to the same key and overwrite order becomes non-deterministic.

### Issue Context
The doc/comments added in this PR say: “A header the host already keyed at that URI wins”. With the current implementation, that guarantee can fail for common non-canonical spellings.

### Fix Focus Areas
- pnpm/crates/napi/src/config.rs[399-427]
- pnpm/crates/network/src/auth.rs[188-204]
- pnpm/crates/network/src/auth.rs[548-553]

### Suggested fix
In `pin_unkeyed_header`, normalize all non-empty incoming keys using the same rule as `pacquet_network` (`if !key.ends_with('/') { key.push('/') }`). Use the normalized key both for insertion and for the “explicit wins” check (i.e., check presence of `default_uri` against the normalized map). This prevents generating two distinct raw keys that later normalize to the same canonical key, and makes the precedence deterministic.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended
2. Nondeterministic auth header winner ✓ Resolved 🐞 Bug ⛨ Security
Description
AuthHeaders::from_creds_map now collects raw keys into a HashMap before normalization, so keys
that normalize to the same value (e.g. //reg.com vs //reg.com/) can collide later and the winner
depends on HashMap iteration order. This can intermittently choose the wrong Authorization
header for a registry when callers provide non-canonical keys.
Code

pnpm/crates/network/src/auth.rs[R174-186]

+    /// There is no "default registry" slot: a credential is only ever
+    /// honored at the URI it is keyed under. Callers pin an unscoped
+    /// credential to the registry its own source declared before it gets
+    /// here (see `NpmrcAuth::rescope_unscoped`), so the resolved default
+    /// registry — which repository-controlled config can move — never
+    /// decides where a credential is sent. An entry with an empty URI is
+    /// dropped.
+    pub fn from_creds_map<Iter>(headers: Iter) -> Self
    where
        Iter: IntoIterator<Item = (String, String)>,
    {
-        let registry_default_key =
-            default_registry_url.map_or_else(|| "//registry.npmjs.org/".into(), nerf_dart);
-        let mut by_uri = HashMap::new();
-        let mut default_header: Option<String> = None;
-        // Two-phase build: per-URI entries land first, then the
-        // default-registry creds unconditionally overwrite the slot at
-        // `registry_default_key`.
-        // Without the two-phase split, both entries would race through a
-        // single HashMap insert and the winner would depend on
-        // non-deterministic iteration order.
-        for (raw_uri, header_value) in headers {
-            if raw_uri.is_empty() {
-                default_header = Some(header_value);
-            } else {
-                by_uri.insert(normalize_auth_key(raw_uri), header_value);
-            }
-        }
-        if let Some(header) = default_header {
-            by_uri.insert(registry_default_key, header);
-        }
-        Self::from_map(by_uri)
+        Self::from_map(headers.into_iter().filter(|(uri, _)| !uri.is_empty()).collect())
    }
Relevance

⭐⭐⭐ High

Likely accepted: avoids HashMap order–dependent auth selection; aligns with prior accepted
determinism-focused changes.

PR-#13178
PR-#13161

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
from_creds_map builds a HashMap from raw keys and immediately forwards it to from_map, while
from_map normalizes every key with normalize_auth_key (adds a trailing /). Two distinct raw
keys can therefore collapse into one normalized key during iteration over a HashMap, making
overwrite order non-deterministic.

pnpm/crates/network/src/auth.rs[169-206]
pnpm/crates/network/src/auth.rs[548-553]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`AuthHeaders::from_creds_map` currently does `collect()` into a `HashMap` and only later normalizes keys inside `from_map()`. If two distinct raw keys normalize to the same canonical key (trailing-slash normalization), the final credential selection becomes dependent on `HashMap` iteration order.

### Issue Context
This can happen for callers that provide non-canonical nerf-dart keys (missing trailing `/`) alongside canonical ones. The PR also introduced a new NAPI pinning path that can create exactly this kind of collision.

### Fix Focus Areas
- pnpm/crates/network/src/auth.rs[169-206]
- pnpm/crates/network/src/auth.rs[548-553]

### Suggested fix
In `AuthHeaders::from_creds_map`, normalize each non-empty key *before* inserting it into the intermediate map (i.e., loop and `insert(normalize_auth_key(uri), value)`), instead of `collect()`ing raw keys. This restores deterministic behavior for ordered iterators (e.g. `BTreeMap`, `Vec`) and avoids post-normalization collisions driven by `HashMap` iteration order.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational
3. Changeset missing pnpm entry 📘 Rule violation § Compliance
Description
The new changeset only declares a pacquet bump and does not include the required pnpm entry.
This can cause the pnpm release/versioning metadata to miss this user-visible behavior change.
Code

.changeset/pin-unscoped-npmrc-settings-follow-up.md[R1-3]

+---
+"pacquet": patch
+---
Relevance

⭐ Low

Close precedents show team rejected adding required pnpm entry to pacquet-only changesets.

PR-#12981
PR-#13117
PR-#13227

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires each added/modified changeset to declare a pnpm bump type. The
changeset front-matter in this PR only lists pacquet and omits pnpm.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/pin-unscoped-npmrc-settings-follow-up.md[1-3]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset front-matter is missing a required `pnpm` entry.

## Issue Context
Repo policy requires changesets to explicitly include the `pnpm` package with a valid bump type (`patch`/`minor`/`major`).

## Fix Focus Areas
- .changeset/pin-unscoped-npmrc-settings-follow-up.md[1-3]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

Comment thread pnpm/crates/napi/src/config.rs Resolved
@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 25, 2026
@codecov-commenter

codecov-commenter commented Jul 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.19048% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.95%. Comparing base (209aa31) to head (873bed6).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
pnpm/crates/napi/src/config.rs 88.57% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13285      +/-   ##
==========================================
+ Coverage   86.91%   86.95%   +0.04%     
==========================================
  Files         530      530              
  Lines       90785    90874      +89     
==========================================
+ Hits        78903    79023     +120     
+ Misses      11882    11851      -31     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Review follow-ups on the rescope work:

- The deprecation warnings formatted the source path with `{:?}`, which
  escapes backslashes — on Windows the message named
  `"C:\\Users\\...\\.npmrc"`, and the two tests asserting the path appears
  verbatim failed there. Quote the path instead of Debug-formatting it.

- An unscoped `tokenHelper` has no INI-readable spelling of its own
  (`is_ini_config_key` mirrors npm, which has no unscoped form), so the
  parser never captured it in `raw_ini_config` and the pinned key had
  nothing to move. pacquet honors the setting, so `pnpm config get` and
  `pnpm config list` should report it: take each setting's raw spelling
  and structured value together, falling back to the parsed credential
  for `tokenHelper`.

- `AuthHeaders::from_creds_map` collected caller keys verbatim and left
  normalization to `from_map`, so `//reg.com` and `//reg.com/` survived as
  two entries and collapsed later in whichever order the map iterated.
  Normalize as they are collected. `normalize_auth_key` is public now so
  the napi binding can apply the same rule rather than repeat it.

- `pin_unkeyed_header` had the same split: a host key spelled without the
  trailing slash was not recognized as "already keyed at that URI", so the
  pinned entry was inserted alongside it and the documented "explicit key
  wins" guarantee depended on map order.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 25, 2026 00:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zkochan

zkochan commented Jul 25, 2026

Copy link
Copy Markdown
Member Author

Parity note for the maintainer — one open question this PR surfaces but deliberately does not settle.

pacquet honors an unscoped tokenHelper in a .npmrc (apply_creds_field accepts it into default_creds); the TypeScript CLI does not. isNpmrcReadableKey has no entry for a bare tokenHelper, so the key is filtered out at file-read time and never reaches the merged config. Verified against the built bundle rather than by reading the source:

~/.npmrc:  registry=https://trusted.example.com/
           tokenHelper=/bin/echo

$ pnpm config list
{ "@jsr:registry": "...", "registry": "https://trusted.example.com/", "userAgent": "pnpm/11.17.0 ..." }

No tokenHelper in the output, and a project-level tokenHelper= does not trip the TOKEN_HELPER_IN_PROJECT_CONFIG guard either — the key is simply inert on the TypeScript side. Only the URL-scoped //host/:tokenHelper form is honored there.

This PR keeps pacquet’s existing behavior and only makes the reporting consistent with it: since pacquet honors the setting, pnpm config get / pnpm config list now show it under the key it was pinned to, which is what the review flagged. The underlying question — whether pacquet should stop honoring the unscoped form (full parity, but a feature removal for anyone whose ~/.npmrc relies on it) or the TypeScript CLI should start honoring it — is a behavior decision worth making deliberately, not as a side effect of this change.


Written by an agent (Claude Code, claude-opus-5).

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 873bed6

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan

zkochan commented Jul 25, 2026

Copy link
Copy Markdown
Member Author

Re: Qodo’s new finding "tokenHelper output unredacted" — checked, and this is existing behavior in both stacks rather than something this change introduces.

tokenHelper is not in the protected-suffix list on either side, so a URL-scoped helper already prints verbatim today. Verified with the built TypeScript bundle:

~/.npmrc:  registry=https://trusted.example.com/
           //trusted.example.com/:tokenHelper=/bin/echo my-secret-arg
           //trusted.example.com/:_authToken=tok

$ pnpm config list
{
  "//trusted.example.com/:_authToken": "(protected)",
  "//trusted.example.com/:tokenHelper": "/bin/echo my-secret-arg",
  ...
}

The token is censored; the helper command line is not — in the TypeScript CLI exactly as in pacquet. What this PR changes is only which key a rescoped helper is reported under, so an unscoped tokenHelper now reads the same as one written //host/:tokenHelper by hand. pnpm also treats the value as a command (a path plus args, with $, backticks and quotes rejected outright), not as a secret, and a tokenHelper from a project .npmrc is refused before it can be reported at all — only trusted user-level sources reach this path.

Censoring tokenHelper in pnpm config list may still be worth doing, but it is a cross-stack behavior change that should land in both CLIs together, not as a side effect of this fix.


Written by an agent (Claude Code, claude-opus-5).

@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 873bed6adc16

Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.589 ± 0.177 2.400 2.931 1.77 ± 0.18
pacquet@main 2.569 ± 0.129 2.419 2.828 1.75 ± 0.16
pnpr@HEAD 1.466 ± 0.108 1.353 1.690 1.00
pnpr@main 1.563 ± 0.164 1.352 1.825 1.07 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.5894038782799997,
      "stddev": 0.17650770455288714,
      "median": 2.53019046798,
      "user": 1.71623892,
      "system": 1.46459798,
      "min": 2.40030354648,
      "max": 2.93074517448,
      "times": [
        2.5878778794799997,
        2.77192542748,
        2.48782484048,
        2.93074517448,
        2.76555491448,
        2.4750622344799997,
        2.4207540974799997,
        2.40030354648,
        2.48143457248,
        2.57255609548
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.56923699098,
      "stddev": 0.12894134805414134,
      "median": 2.53318228898,
      "user": 1.6966427199999998,
      "system": 1.3577521799999999,
      "min": 2.4185442134799997,
      "max": 2.82840972648,
      "times": [
        2.66799124448,
        2.82840972648,
        2.51850451948,
        2.45127931148,
        2.4185442134799997,
        2.54786005848,
        2.68758463448,
        2.61080082248,
        2.45202091448,
        2.50937446448
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.46608257948,
      "stddev": 0.10788586622979204,
      "median": 1.43072458748,
      "user": 1.1748959199999998,
      "system": 1.17027248,
      "min": 1.35254998548,
      "max": 1.6904195824800001,
      "times": [
        1.41207908548,
        1.37469400248,
        1.43732357048,
        1.4575167234800002,
        1.60788809248,
        1.51173585748,
        1.4241256044800001,
        1.6904195824800001,
        1.39249329048,
        1.35254998548
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5634894460800002,
      "stddev": 0.1640341979159145,
      "median": 1.5805900134800002,
      "user": 1.1610765199999997,
      "system": 1.2043981799999999,
      "min": 1.3521255524800002,
      "max": 1.8245379934800001,
      "times": [
        1.70693209348,
        1.8245379934800001,
        1.3983478234800002,
        1.4879992184800002,
        1.74506138648,
        1.3521255524800002,
        1.5969152904800001,
        1.3617950754800001,
        1.59553098948,
        1.56564903748
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 251.5 ± 5.2 243.9 263.5 1.02 ± 0.03
pacquet@main 245.5 ± 4.9 239.9 252.6 1.00
pnpr@HEAD 303.4 ± 52.8 244.0 386.2 1.24 ± 0.22
pnpr@main 317.5 ± 60.0 250.5 392.7 1.29 ± 0.25
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.25151392261999994,
      "stddev": 0.005153161481768966,
      "median": 0.25014973962,
      "user": 0.19191577999999998,
      "system": 0.53124484,
      "min": 0.24389575212000003,
      "max": 0.26347151512,
      "times": [
        0.24895278412000002,
        0.24841324212000002,
        0.25302593412,
        0.25033745512,
        0.24943782112000001,
        0.24389575212000003,
        0.25320320912,
        0.25443948912000003,
        0.24996202412000001,
        0.26347151512
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.24548259792,
      "stddev": 0.0048593059461414095,
      "median": 0.24337151962000003,
      "user": 0.18256867999999998,
      "system": 0.5173360399999999,
      "min": 0.23993684812000002,
      "max": 0.25259706312,
      "times": [
        0.24089706612000003,
        0.25259706312,
        0.24050490312000003,
        0.24349803912,
        0.24971517812,
        0.25049294012,
        0.25077440312000004,
        0.24324500012000003,
        0.23993684812000002,
        0.24316453812000002
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30337901802000006,
      "stddev": 0.05277523919239371,
      "median": 0.28475402462,
      "user": 0.26195687999999995,
      "system": 0.5945544399999999,
      "min": 0.24404683712000003,
      "max": 0.38622447712,
      "times": [
        0.25438597812,
        0.26207905012000005,
        0.26596179912,
        0.24404683712000003,
        0.26013896812000004,
        0.30354625012,
        0.35966691812,
        0.34931375112,
        0.38622447712,
        0.34842615112
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31753438292,
      "stddev": 0.06003489999026671,
      "median": 0.31513344312,
      "user": 0.26759278000000003,
      "system": 0.62565554,
      "min": 0.25049832912000003,
      "max": 0.39270821012,
      "times": [
        0.37570246012,
        0.35926183112000004,
        0.36882504312000003,
        0.37228407012000003,
        0.39270821012,
        0.27100505512,
        0.25899945012000003,
        0.26489532112,
        0.25049832912000003,
        0.26116405912
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.768 ± 0.032 2.718 2.831 1.57 ± 0.13
pacquet@main 2.831 ± 0.044 2.764 2.897 1.61 ± 0.14
pnpr@HEAD 1.758 ± 0.145 1.563 1.938 1.00
pnpr@main 1.949 ± 0.103 1.863 2.165 1.11 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.7684903238799996,
      "stddev": 0.03197829436374807,
      "median": 2.7679985717799998,
      "user": 1.64819286,
      "system": 1.28756212,
      "min": 2.71821937828,
      "max": 2.83065150928,
      "times": [
        2.7841837692799998,
        2.76943354728,
        2.73676533928,
        2.7665635962799997,
        2.74719373328,
        2.71821937828,
        2.77652154228,
        2.83065150928,
        2.75685495928,
        2.79851586428
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.83119073788,
      "stddev": 0.04439940014264501,
      "median": 2.81359236428,
      "user": 1.82764616,
      "system": 1.38462902,
      "min": 2.76369969528,
      "max": 2.89668783428,
      "times": [
        2.80391454428,
        2.89668783428,
        2.85716220628,
        2.86832706928,
        2.81218930728,
        2.81499542128,
        2.80366301128,
        2.8920070502799997,
        2.7992612392800003,
        2.76369969528
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.75798870318,
      "stddev": 0.1450274890887556,
      "median": 1.7203363827799998,
      "user": 1.55699836,
      "system": 1.7616428199999998,
      "min": 1.56250191628,
      "max": 1.93759170428,
      "times": [
        1.6791917882799998,
        1.64583729828,
        1.56250191628,
        1.5997555722799999,
        1.6741577532799998,
        1.76148097728,
        1.9304269622799999,
        1.93759170428,
        1.87244977828,
        1.91649328128
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.94915540248,
      "stddev": 0.10307700091271556,
      "median": 1.90132892528,
      "user": 1.8383432600000003,
      "system": 2.1214659199999994,
      "min": 1.86292972228,
      "max": 2.16495375028,
      "times": [
        2.16495375028,
        1.89030718028,
        1.91460231328,
        1.98542647828,
        1.88433586828,
        1.90120019328,
        2.10040009928,
        1.90145765728,
        1.86292972228,
        1.88594076228
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 845.3 ± 75.5 740.7 944.8 2.72 ± 0.26
pacquet@main 946.6 ± 153.8 731.5 1199.7 3.05 ± 0.51
pnpr@HEAD 366.9 ± 57.5 311.1 510.4 1.18 ± 0.19
pnpr@main 310.4 ± 10.2 294.7 324.4 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.8452841963400001,
      "stddev": 0.07547644104347706,
      "median": 0.8379906569400002,
      "user": 1.03043972,
      "system": 0.8792536599999998,
      "min": 0.7406835084400001,
      "max": 0.9448374124400001,
      "times": [
        0.9131669144400001,
        0.9211464484400002,
        0.8272408124400001,
        0.8487405014400001,
        0.7406835084400001,
        0.7965594704400001,
        0.7828609474400001,
        0.9448374124400001,
        0.9205423884400001,
        0.7570635594400001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.94664953234,
      "stddev": 0.15383649229712146,
      "median": 0.9047645474400001,
      "user": 1.16224552,
      "system": 0.9117825599999998,
      "min": 0.7314592964400001,
      "max": 1.19974181744,
      "times": [
        0.8412128894400001,
        0.9329491634400001,
        0.7314592964400001,
        0.8386722374400001,
        0.8077471064400001,
        1.0437877554400001,
        0.8765799314400001,
        1.07831864944,
        1.11602647644,
        1.19974181744
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.36691759193999995,
      "stddev": 0.0575070057561744,
      "median": 0.34783915394,
      "user": 0.26276081999999995,
      "system": 0.59437226,
      "min": 0.31111382044,
      "max": 0.5104159704400001,
      "times": [
        0.33709235944,
        0.35053357744,
        0.40864343244,
        0.35506136844,
        0.33034207544,
        0.33673257044,
        0.31111382044,
        0.34514473044,
        0.38409601444,
        0.5104159704400001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31037215934,
      "stddev": 0.010153931837327131,
      "median": 0.31304081244000004,
      "user": 0.20438672000000002,
      "system": 0.52782356,
      "min": 0.29473801644000003,
      "max": 0.32437708744,
      "times": [
        0.32166037644,
        0.29755872744,
        0.30035594444,
        0.29473801644000003,
        0.31404189344,
        0.31203973144,
        0.32437708744,
        0.30673868544,
        0.31644493144,
        0.31576619944
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.990 ± 0.051 1.924 2.075 6.54 ± 0.28
pacquet@main 1.961 ± 0.015 1.944 1.983 6.45 ± 0.23
pnpr@HEAD 0.304 ± 0.011 0.288 0.319 1.00
pnpr@main 0.323 ± 0.008 0.309 0.335 1.06 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.9898193202199999,
      "stddev": 0.05085714684167928,
      "median": 1.98645832562,
      "user": 1.0777170200000001,
      "system": 0.7863787600000001,
      "min": 1.92382824812,
      "max": 2.07457662712,
      "times": [
        2.07457662712,
        2.03006358912,
        2.01739512712,
        1.95315801412,
        1.94310161112,
        2.01849494212,
        1.92382824812,
        1.94725888412,
        1.95552152412,
        2.03479463512
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.9606262186199999,
      "stddev": 0.01462562301248194,
      "median": 1.9588786416200001,
      "user": 1.02642542,
      "system": 0.79005046,
      "min": 1.94351669412,
      "max": 1.98300906312,
      "times": [
        1.97298967012,
        1.95126816712,
        1.9565610151200001,
        1.97124813412,
        1.97679155212,
        1.94351669412,
        1.94575511612,
        1.98300906312,
        1.9611962681200001,
        1.94392650612
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30420280662,
      "stddev": 0.010503100686117022,
      "median": 0.30259728912,
      "user": 0.20523642,
      "system": 0.5102300599999999,
      "min": 0.28834439612,
      "max": 0.31947089312,
      "times": [
        0.30293538712,
        0.29768567512,
        0.28834439612,
        0.29566001512,
        0.29515911912,
        0.31862890511999997,
        0.30911801612,
        0.31276646812,
        0.30225919112,
        0.31947089312
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.32261653621999997,
      "stddev": 0.008174248264079198,
      "median": 0.32257379111999995,
      "user": 0.21571392,
      "system": 0.57550026,
      "min": 0.30877315512,
      "max": 0.33466615212,
      "times": [
        0.33450841512,
        0.32504467612,
        0.31791734312,
        0.31706586712,
        0.32133868711999997,
        0.32380889512,
        0.33466615212,
        0.32694662412,
        0.31609554712,
        0.30877315512
      ]
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 368.2 ± 13.0 355.8 394.4 4.15 ± 0.19
pacquet@main 386.4 ± 31.7 348.6 449.0 4.36 ± 0.38
pnpr@HEAD 88.7 ± 2.5 84.7 95.3 1.00
pnpr@main 91.1 ± 2.6 85.6 95.8 1.03 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.36818556856000006,
      "stddev": 0.01296102044099009,
      "median": 0.36248789976000007,
      "user": 0.35718759999999994,
      "system": 0.06034406,
      "min": 0.35581894126,
      "max": 0.39438027026,
      "times": [
        0.38020524626,
        0.36331212426000004,
        0.35919898526000005,
        0.36466224026000005,
        0.38313493126000003,
        0.36166367526000004,
        0.36090472326,
        0.35857454826,
        0.35581894126,
        0.39438027026
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.38639907306000004,
      "stddev": 0.031720585326764056,
      "median": 0.38602137026000005,
      "user": 0.37119289999999994,
      "system": 0.06618485999999998,
      "min": 0.34864254526000005,
      "max": 0.44903075726,
      "times": [
        0.38287559226,
        0.38916714826000004,
        0.41968542926,
        0.44903075726,
        0.34864254526000005,
        0.35528166826,
        0.36701452726,
        0.35584719526,
        0.39488079526000003,
        0.40156507226000004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.08870375869750001,
      "stddev": 0.0024710061170727404,
      "median": 0.08866353826000001,
      "user": 0.022700518750000002,
      "system": 0.009174126874999999,
      "min": 0.08469094126,
      "max": 0.09530577026,
      "times": [
        0.08920769926000001,
        0.08586827226,
        0.09008997426000001,
        0.09432800726,
        0.08615764726,
        0.08905365826,
        0.08844254626,
        0.08873479826,
        0.08893914226,
        0.09096491526,
        0.09034923326000001,
        0.08910690026000001,
        0.09141710726,
        0.09530577026,
        0.08806865126,
        0.08469094126,
        0.08640966226,
        0.08713587226000001,
        0.08618887626,
        0.08859227826,
        0.08708882326,
        0.08614216826,
        0.08734282226000001,
        0.08627204326,
        0.08795563826000001,
        0.08902714826000001,
        0.09120211126000001,
        0.09251292426,
        0.08572401826,
        0.08984461126,
        0.08920864226,
        0.08714737426000001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.09105681835999999,
      "stddev": 0.0026248959591571638,
      "median": 0.09126096226,
      "user": 0.023034366666666663,
      "system": 0.010646384666666665,
      "min": 0.08562108426000001,
      "max": 0.09576133126,
      "times": [
        0.09294432626,
        0.09576133126,
        0.08709501526,
        0.08562108426000001,
        0.09111699126,
        0.09050019726,
        0.09400678226,
        0.09011055326,
        0.09372746426,
        0.09480942526000001,
        0.09008414226,
        0.09346482926,
        0.09196978026000001,
        0.09439673626,
        0.09234375526000001,
        0.08965795826,
        0.09084904626000001,
        0.09227594726,
        0.09125741526,
        0.09134292726,
        0.08838661026,
        0.09126450926,
        0.08633074326000001,
        0.09300139426000001,
        0.09308351026,
        0.09199294226,
        0.08951462826,
        0.08764280826000001,
        0.09071271826,
        0.08643897826000001
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.686 ± 0.184 4.469 5.017 1.33 ± 0.06
pacquet@main 4.504 ± 0.063 4.423 4.610 1.28 ± 0.03
pnpr@HEAD 3.528 ± 0.111 3.425 3.760 1.00 ± 0.04
pnpr@main 3.528 ± 0.072 3.442 3.636 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.68586455624,
      "stddev": 0.18356982423265453,
      "median": 4.615013435340001,
      "user": 2.1029484,
      "system": 1.5631263599999996,
      "min": 4.468798001840001,
      "max": 5.017174858840001,
      "times": [
        5.017174858840001,
        4.556558450840001,
        4.81993225484,
        4.581255508840001,
        4.468798001840001,
        4.55607633684,
        4.643187436840001,
        4.586839433840001,
        4.95447992584,
        4.67434335384
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.50405250964,
      "stddev": 0.06270779196439076,
      "median": 4.48159056584,
      "user": 1.8036659,
      "system": 1.38785976,
      "min": 4.42256205284,
      "max": 4.60999094984,
      "times": [
        4.48365792584,
        4.4795232058400005,
        4.508092262840001,
        4.47880156184,
        4.42256205284,
        4.60999094984,
        4.60424496084,
        4.46124162484,
        4.45226927784,
        4.540141273840001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5282369659399997,
      "stddev": 0.111157508918237,
      "median": 3.4891401913399998,
      "user": 1.1678792999999996,
      "system": 1.21214866,
      "min": 3.4250041908399997,
      "max": 3.75968919184,
      "times": [
        3.46047308984,
        3.51303099484,
        3.54668589584,
        3.62470689984,
        3.42556738884,
        3.75968919184,
        3.43615707284,
        3.62580554684,
        3.46524938784,
        3.4250041908399997
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.5280252181399994,
      "stddev": 0.07165873476763844,
      "median": 3.52166596084,
      "user": 1.2993054,
      "system": 1.24164686,
      "min": 3.4415020958399998,
      "max": 3.63612694084,
      "times": [
        3.4415020958399998,
        3.5012367698399998,
        3.46036522384,
        3.54209515184,
        3.62838177784,
        3.46990863584,
        3.57932479884,
        3.46133485184,
        3.63612694084,
        3.55997593484
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13285
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,718.22 ms
(-6.37%)Baseline: 2,903.06 ms
3,483.68 ms
(78.03%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,923.83 ms
(-6.21%)Baseline: 2,051.19 ms
2,461.43 ms
(78.16%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
740.68 ms
(+4.85%)Baseline: 706.44 ms
847.73 ms
(87.37%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
355.82 ms
(-18.67%)Baseline: 437.50 ms
525.00 ms
(67.78%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,400.30 ms
(-2.39%)Baseline: 2,459.07 ms
2,950.89 ms
(81.34%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,468.80 ms
(-1.83%)Baseline: 4,552.00 ms
5,462.40 ms
(81.81%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
243.90 ms
(-18.65%)Baseline: 299.83 ms
359.79 ms
(67.79%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13285
Testbedpnpr

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,562.50 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
288.34 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
311.11 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
84.69 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,352.55 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,425.00 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
244.05 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan

zkochan commented Jul 25, 2026

Copy link
Copy Markdown
Member Author

The Bencher alert on isolated-linker.fresh-restore.hot-cache.hot-store was shared-runner noise, confirmed by re-running the benchmark workflow on the same commit (873bed6adc):

run result vs baseline (299.83 ms) vs limit (359.79 ms)
first 404.98 ms +35.07% 112.56% 🚨
re-run 243.90 ms −18.65% 67.79% ✅

The first run was noisy across the board in both directions — sibling scenarios moved −17.53%, −7.81%, +15.32% and −4.68% on the same commit. The code supports that reading: everything this PR changes runs once per process (INI parsing, the rescope, auth-map construction), nothing per-package or per-file. normalize_auth_key was already called for every key inside from_map; the only new call is at construction time over a handful of entries, and pin_unkeyed_header is napi-only, never reached by the CLI benchmark. Most tellingly, fresh-install.hot-cache.hot-store — strictly more work through the identical config path — went down 17.53% in the very run that flagged the alert.

All checks are green now.


Written by an agent (Claude Code, claude-opus-5).

@zkochan
zkochan merged commit 069bc0f into main Jul 25, 2026
36 checks passed
@zkochan
zkochan deleted the fix-11950 branch July 25, 2026 08:45
@coderabbitai coderabbitai Bot mentioned this pull request Jul 30, 2026
3 tasks done
@coderabbitai coderabbitai Bot mentioned this pull request Jul 31, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pacquet: port pnpm's layered .npmrc resolution and apply the same load-time credential rescope

3 participants