Skip to content

refactor(text): move lexCompare and nerfDart into the monorepo - #13535

Merged
zkochan merged 3 commits into
mainfrom
rename-pkgs
Jul 31, 2026
Merged

zkochan merged 3 commits into
mainfrom
rename-pkgs

Conversation

@zkochan

@zkochan zkochan commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

Summary

lexCompare and nerfDart lived in the pnpm/components Bit workspace, where their component names collide with same-named components elsewhere in the Bit registry. This moves both into this repository under new, more descriptive names:

Old New Location
@pnpm/util.lex-comparator @pnpm/text.ordinal-comparator pnpm11/text/ordinal-comparator
@pnpm/config.nerf-dart @pnpm/config.registry-auth-key pnpm11/config/registry-auth-key

The comparator is ordinal rather than locale-aware, and what nerfDart returns is the key that registry settings are stored under in .npmrc — the new names say so. The exported function names are unchanged, so the 34 call sites only change their import specifier.

Implementations and tests are carried over as-is. The rationale that lived in the components' docs pages moves into doc comments on the two functions: why localeCompare cannot be used for values that are compared across machines, and where nerfDart comes from.

The 25 consuming packages now depend on the new packages through workspace:*, and the two catalog entries are gone from pnpm-workspace.yaml.

Follow-ups outside this repository: remove the two components from pnpm/components, and deprecate @pnpm/util.lex-comparator and @pnpm/config.nerf-dart on npm pointing at the new names — both have outside consumers, so they should not just disappear.

Squash Commit Body

Both utilities lived in the pnpm/components Bit workspace, where their
component names collide with same-named components elsewhere in the Bit
registry. Move the code here and publish it under new names:

  `@pnpm/util.lex-comparator` -> `@pnpm/text.ordinal-comparator`
  `@pnpm/config.nerf-dart`    -> `@pnpm/config.registry-auth-key`

The new names describe what the utilities do: the comparator is ordinal
rather than locale-aware, and the mapped URL is the key that registry
settings are stored under in `.npmrc`. The exported functions keep their
names, so consumers only change their import specifiers.

Implementations and tests are carried over unchanged. The rationale from
the components' docs pages moves into doc comments: why `localeCompare`
cannot be used for values compared across machines, and where `nerfDart`
originates.

No pacquet counterpart is needed. The Rust stack has its own
implementations of both and no user-visible behavior changes.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
    (Nothing to port: the Rust stack has its own implementations of both
    utilities and no user-visible behavior changes.)
  • 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[1m]).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • New Features

    • Added utilities for deterministic string comparison and registry authentication-key formatting.
    • Added documentation describing both utilities and their expected behavior.
  • Refactor

    • Consolidated sorting and registry configuration functionality under the new utility packages while preserving existing behavior.
  • Bug Fixes

    • Improved consistency when normalizing registry URLs, including credentials, scopes, query parameters, hashes, and custom paths.
  • Tests

    • Added coverage for string ordering, sorting behavior, registry URL handling, and invalid URLs.

zkochan added 2 commits July 31, 2026 16:47
Both utilities lived in the pnpm/components Bit workspace, where their
component names collide with same-named components elsewhere in the Bit
registry. Move the code here and publish it under new names:

  `@pnpm/util.lex-comparator` -> `@pnpm/text.ordinal-comparator`
  `@pnpm/config.nerf-dart`    -> `@pnpm/config.registry-auth-key`

The new names describe what the utilities do: the comparator is ordinal
rather than locale-aware, and the mapped URL is the key that registry
settings are stored under in `.npmrc`. The exported functions keep their
names, so consumers only change their import specifiers.

Implementations and tests are carried over unchanged. The rationale from
the components' docs pages moves into doc comments: why `localeCompare`
cannot be used for values compared across machines, and where `nerfDart`
originates.

No pacquet counterpart is needed. The Rust stack has its own
implementations of both and no user-visible behavior changes.
Copilot AI review requested due to automatic review settings July 31, 2026 14:48

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 31, 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: e203b8c8-d005-42be-b430-fe3ce6872765

📥 Commits

Reviewing files that changed from the base of the PR and between ba07cbc and a4d0ada.

📒 Files selected for processing (2)
  • .changeset/inline-string-and-npmrc-key-utils.md
  • pnpm11/config/registry-auth-key/src/index.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • .changeset/inline-string-and-npmrc-key-utils.md
  • pnpm11/config/registry-auth-key/src/index.ts

📝 Walkthrough

Walkthrough

The change adds local lexCompare and nerfDart packages. It migrates repository consumers to the new package names, adds project references, and records patch-release metadata.

Changes

Utility package consolidation

Layer / File(s) Summary
Add utility packages
pnpm11/text/ordinal-comparator/*, pnpm11/config/registry-auth-key/*
Adds package manifests, implementations, tests, documentation, and TypeScript configurations for lexCompare and nerfDart.
Migrate comparator consumers
pnpm11/building/*, pnpm11/cli/*, pnpm11/deps/*, pnpm11/engine/*, pnpm11/exec/*, pnpm11/fetching/*, pnpm11/global/*, pnpm11/installing/*, pnpm11/object/*, pnpm11/pnpm/*, pnpm11/store/*, pnpm11/workspace/*
Replaces @pnpm/util.lex-comparator dependencies and imports with @pnpm/text.ordinal-comparator, and adds project references.
Migrate registry authentication consumers
pnpm11/config/reader/*, pnpm11/network/auth-header/*, pnpm11/network/fetch/*
Replaces @pnpm/config.nerf-dart dependencies and imports with @pnpm/config.registry-auth-key, and adds project references.
Record release metadata
.changeset/inline-string-and-npmrc-key-utils.md
Adds patch changeset entries for the new utility packages and pnpm.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • pnpm/pnpm#13113: Covers related package reorganization and release updates.

Suggested labels: product: pnpm@11

Suggested reviewers: copilot

✨ 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 rename-pkgs

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration.


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.

@greptile-apps

greptile-apps Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (2): Last reviewed commit: "docs(registry-auth-key): clarify the npm..." | Re-trigger Greptile

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

refactor(text): vendor lexCompare and nerfDart as monorepo packages

✨ Enhancement ⚙️ Configuration changes 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Add monorepo packages for lexCompare and nerfDart under clearer names.
• Update all consumers to use workspace:* deps and new import specifiers.
• Remove old catalog entries and publish a changeset for the rename/move.
Diagram

graph TD
  F["Workspace catalog"] --> A["pnpm11 packages"] --> B["@pnpm/text.ordinal-comparator"]
  A --> C["@pnpm/config.registry-auth-key"]
  D["config/reader"] --> C
  E["network/*"] --> C
  A --> G["pnpm-lock.yaml"]
  subgraph Legend
    direction LR
    _cfg["Config"] ~~~ _pkg["Package"] ~~~ _lock[("Lockfile")]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Keep external packages and fix Bit naming collisions
  • ➕ Avoids large-scale import/specifier churn across the monorepo
  • ➕ Keeps existing npm package names stable for external users
  • ➖ Doesn’t solve the core operational issue inside Bit registry unless reorganized there
  • ➖ Still leaves pnpm’s core utilities outside the main repo’s release/testing workflow
2. Add temporary internal compatibility packages under old names
  • ➕ Allows phased migration (old -> new) with minimal immediate consumer changes
  • ➕ Can reduce merge conflicts in other ongoing work touching the same imports
  • ➖ Creates extra maintenance and potential confusion about the canonical package
  • ➖ Delays the cleanup and keeps both names “alive” internally
3. Single “text-utils/config-utils” package instead of two small packages
  • ➕ Fewer workspace packages and tsconfig references to manage
  • ➕ Potentially simpler dependency graph
  • ➖ Conflates unrelated concerns (string sorting vs npmrc key mapping)
  • ➖ Encourages grabbing a bigger dependency surface than needed

Recommendation: The chosen approach (move into monorepo + rename packages to reflect semantics) is the best fit: it resolves Bit collisions, keeps function APIs stable, and aligns ownership/testing with the main repo. The only meaningful follow-up to consider is whether to introduce internal compatibility packages if concurrent work makes the import churn painful; otherwise, a single atomic rename is cleaner.

Files changed (98) +612 / -252

Enhancement (4) +111 / -0
package.jsonIntroduce @pnpm/config.registry-auth-key package +44/-0

Introduce @pnpm/config.registry-auth-key package

• Adds a new workspace package definition including build/lint/test scripts and Node engine constraints.

pnpm11/config/registry-auth-key/package.json

index.tsAdd nerfDart implementation with doc comment rationale +14/-0

Add nerfDart implementation with doc comment rationale

• Ports nerfDart implementation and documents its meaning (npm's term) and upstream origin. Exports the function unchanged while the package name changes.

pnpm11/config/registry-auth-key/src/index.ts

package.jsonIntroduce @pnpm/text.ordinal-comparator package +44/-0

Introduce @pnpm/text.ordinal-comparator package

• Adds a new workspace package definition including scripts and Jest config for the comparator utility.

pnpm11/text/ordinal-comparator/package.json

index.tsAdd lexCompare implementation with deterministic-order rationale +9/-0

Add lexCompare implementation with deterministic-order rationale

• Implements lexCompare using code-unit ordering and documents why localeCompare is unsuitable for cross-machine comparisons (e.g., lockfiles).

pnpm11/text/ordinal-comparator/src/index.ts

Refactor (25) +25 / -25
approveBuilds.tsUpdate lexCompare import to new package name +1/-1

Update lexCompare import to new package name

• Changes the import specifier for lexCompare from @pnpm/util.lex-comparator to @pnpm/text.ordinal-comparator with no behavioral changes.

pnpm11/building/commands/src/policy/approveBuilds.ts

reportIgnoredBuilds.tsUpdate lexCompare import for ignored-builds reporting +1/-1

Update lexCompare import for ignored-builds reporting

• Points lexCompare import at @pnpm/text.ordinal-comparator to keep sorting deterministic while using the new package name.

pnpm11/cli/default-reporter/src/reporterForClient/reportIgnoredBuilds.ts

loadNpmrcFiles.tsUpdate nerfDart import to registry-auth-key +1/-1

Update nerfDart import to registry-auth-key

• Updates the nerfDart import specifier to @pnpm/config.registry-auth-key, preserving behavior while using the new package name.

pnpm11/config/reader/src/loadNpmrcFiles.ts

renderTree.tsUpdate lexCompare import in dependency tree rendering +1/-1

Update lexCompare import in dependency tree rendering

• Moves lexCompare import to @pnpm/text.ordinal-comparator while keeping sorting behavior intact.

pnpm11/deps/inspection/list/src/renderTree.ts

buildDependentsTree.tsUpdate lexCompare import in dependents tree builder +1/-1

Update lexCompare import in dependents tree builder

• Switches lexCompare import specifier to @pnpm/text.ordinal-comparator without behavior changes.

pnpm11/deps/inspection/tree-builder/src/buildDependentsTree.ts

getTree.tsUpdate lexCompare import in getTree +1/-1

Update lexCompare import in getTree

• Uses @pnpm/text.ordinal-comparator for deterministic ordering under the new package name.

pnpm11/deps/inspection/tree-builder/src/getTree.ts

index.tsUpdate lexCompare import in bun runtime resolver +1/-1

Update lexCompare import in bun runtime resolver

• Changes import specifier to @pnpm/text.ordinal-comparator while keeping sorting logic identical.

pnpm11/engine/runtime/bun-resolver/src/index.ts

index.tsUpdate lexCompare import in deno runtime resolver +1/-1

Update lexCompare import in deno runtime resolver

• Points lexCompare import at @pnpm/text.ordinal-comparator with no behavior changes.

pnpm11/engine/runtime/deno-resolver/src/index.ts

dlx.tsUpdate lexCompare import in dlx command +1/-1

Update lexCompare import in dlx command

• Uses @pnpm/text.ordinal-comparator import specifier for lexCompare, keeping behavior unchanged.

pnpm11/exec/commands/src/dlx.ts

listGlobalPackages.tsUpdate lexCompare import in global listing +1/-1

Update lexCompare import in global listing

• Changes lexCompare import specifier to @pnpm/text.ordinal-comparator.

pnpm11/global/commands/src/listGlobalPackages.ts

cacheKey.tsUpdate lexCompare import in global cache key +1/-1

Update lexCompare import in global cache key

• Switches lexCompare import to @pnpm/text.ordinal-comparator.

pnpm11/global/packages/src/cacheKey.ts

handleIgnoredBuilds.tsUpdate lexCompare import for ignored builds handler +1/-1

Update lexCompare import for ignored builds handler

• Moves lexCompare import to @pnpm/text.ordinal-comparator while preserving sort behavior.

pnpm11/installing/commands/src/handleIgnoredBuilds.ts

generateUpdateChangeset.tsUpdate lexCompare import for update changeset generation +1/-1

Update lexCompare import for update changeset generation

• Points lexCompare import at @pnpm/text.ordinal-comparator with no logic changes.

pnpm11/installing/commands/src/update/generateUpdateChangeset.ts

index.tsUpdate lexCompare import in deps installer +1/-1

Update lexCompare import in deps installer

• Switches lexCompare import specifier to @pnpm/text.ordinal-comparator and adjusts import ordering.

pnpm11/installing/deps-installer/src/install/index.ts

hoistPeers.tsUpdate lexCompare import in peer hoisting logic +1/-1

Update lexCompare import in peer hoisting logic

• Updates lexCompare import specifier to @pnpm/text.ordinal-comparator.

pnpm11/installing/deps-resolver/src/hoistPeers.ts

resolveDependencies.tsUpdate lexCompare import in dependency resolver +1/-1

Update lexCompare import in dependency resolver

• Switches lexCompare import to @pnpm/text.ordinal-comparator and updates import ordering.

pnpm11/installing/deps-resolver/src/resolveDependencies.ts

index.tsUpdate lexCompare import in hoist linker +1/-1

Update lexCompare import in hoist linker

• Moves lexCompare import specifier to @pnpm/text.ordinal-comparator with no logic changes.

pnpm11/installing/linking/hoist/src/index.ts

index.tsUpdate nerfDart import in auth-header module +1/-1

Update nerfDart import in auth-header module

• Points nerfDart import at @pnpm/config.registry-auth-key while preserving behavior.

pnpm11/network/auth-header/src/index.ts

dispatcher.tsUpdate nerfDart import in fetch dispatcher +1/-1

Update nerfDart import in fetch dispatcher

• Uses @pnpm/config.registry-auth-key for nerfDart when computing registry-scoped settings keys.

pnpm11/network/fetch/src/dispatcher.ts

index.tsUpdate lexCompare import in key sorting helper +1/-1

Update lexCompare import in key sorting helper

• Switches lexCompare import to @pnpm/text.ordinal-comparator with no behavior changes.

pnpm11/object/key-sorting/src/index.ts

getConfig.tsUpdate lexCompare import in getConfig +1/-1

Update lexCompare import in getConfig

• Updates lexCompare import specifier to @pnpm/text.ordinal-comparator, keeping ordering deterministic.

pnpm11/pnpm/src/getConfig.ts

catIndex.tsUpdate lexCompare import in store index inspector +1/-1

Update lexCompare import in store index inspector

• Uses @pnpm/text.ordinal-comparator import specifier for deterministic sorting output.

pnpm11/store/commands/src/inspecting/catIndex.ts

findPackages.tsUpdate lexCompare import in package discovery +1/-1

Update lexCompare import in package discovery

• Moves lexCompare import to @pnpm/text.ordinal-comparator for deterministic sorting of found packages.

pnpm11/workspace/projects-reader/src/findPackages.ts

index.tsUpdate lexCompare import in projects-reader entrypoint +1/-1

Update lexCompare import in projects-reader entrypoint

• Points lexCompare import at @pnpm/text.ordinal-comparator while keeping behavior unchanged.

pnpm11/workspace/projects-reader/src/index.ts

index.tsUpdate lexCompare import for workspace manifest sorting +1/-1

Update lexCompare import for workspace manifest sorting

• Moves lexCompare import specifier to @pnpm/text.ordinal-comparator for deterministic sorting in manifest output.

pnpm11/workspace/workspace-manifest-writer/src/index.ts

Tests (8) +60 / -6
index.test.tsAdd nerfDart test coverage for multiple URL forms +42/-0

Add nerfDart test coverage for multiple URL forms

• Adds parameterized tests validating consistent key derivation across paths, queries, hashes, and credentials. Also asserts invalid URL inputs throw.

pnpm11/config/registry-auth-key/test/index.test.ts

index.tsUpdate lexCompare import in directory-fetcher tests +1/-1

Update lexCompare import in directory-fetcher tests

• Updates test import specifier to @pnpm/text.ordinal-comparator.

pnpm11/fetching/directory-fetcher/test/index.ts

index.tsUpdate lexCompare import in git-fetcher tests +1/-1

Update lexCompare import in git-fetcher tests

• Changes test imports to use @pnpm/text.ordinal-comparator.

pnpm11/fetching/git-fetcher/test/index.ts

fetch.tsUpdate lexCompare import in tarball-fetcher tests +1/-1

Update lexCompare import in tarball-fetcher tests

• Updates test imports to reference @pnpm/text.ordinal-comparator.

pnpm11/fetching/tarball-fetcher/test/fetch.ts

misc.tsUpdate lexCompare import in install misc tests +1/-1

Update lexCompare import in install misc tests

• Switches test import specifier to @pnpm/text.ordinal-comparator.

pnpm11/pnpm/test/install/misc.ts

index.test.tsAdd lexCompare tests (ordering + case behavior) +12/-0

Add lexCompare tests (ordering + case behavior)

• Adds basic comparator tests and verifies uppercase letters sort before lowercase with code-unit ordering.

pnpm11/text/ordinal-comparator/test/index.test.ts

DirPatcher.test.tsUpdate lexCompare import in DirPatcher tests +1/-1

Update lexCompare import in DirPatcher tests

• Switches test imports to @pnpm/text.ordinal-comparator with no behavioral change.

pnpm11/workspace/injected-deps-syncer/test/DirPatcher.test.ts

applyPatch.test.tsUpdate lexCompare import in applyPatch tests +1/-1

Update lexCompare import in applyPatch tests

• Updates lexCompare import specifier to @pnpm/text.ordinal-comparator.

pnpm11/workspace/injected-deps-syncer/test/applyPatch.test.ts

Documentation (2) +6 / -0
README.mdDocument registry-auth-key package purpose +3/-0

Document registry-auth-key package purpose

• Adds a short README describing that the package maps registry URLs to the .npmrc key used for settings.

pnpm11/config/registry-auth-key/README.md

README.mdDocument ordinal-comparator package +3/-0

Document ordinal-comparator package

• Adds a short README describing the comparator as lexicographical string ordering.

pnpm11/text/ordinal-comparator/README.md

Other (59) +410 / -221
inline-string-and-npmrc-key-utils.mdAdd changeset for moved/renamed utility packages +7/-0

Add changeset for moved/renamed utility packages

• Introduces a changeset releasing patches for pnpm and the two new workspace packages. Documents the rename/move from the old external package names.

.changeset/inline-string-and-npmrc-key-utils.md

pnpm-lock.yamlUpdate lockfile for workspace utility moves +224/-192

Update lockfile for workspace utility moves

• Removes catalog resolutions for @pnpm/util.lex-comparator and @pnpm/config.nerf-dart. Adds workspace links for the new packages and updates importer dependency graphs accordingly.

pnpm-lock.yaml

pnpm-workspace.yamlRemove old utility packages from workspace catalog +0/-2

Remove old utility packages from workspace catalog

• Drops catalog entries for @pnpm/config.nerf-dart and @pnpm/util.lex-comparator now that equivalents live in-repo as workspace packages.

pnpm-workspace.yaml

package.jsonSwitch building commands to ordinal comparator workspace dep +1/-1

Switch building commands to ordinal comparator workspace dep

• Replaces the catalog dependency on @pnpm/util.lex-comparator with a workspace dependency on @pnpm/text.ordinal-comparator.

pnpm11/building/commands/package.json

tsconfig.jsonAdd TS project reference to ordinal-comparator +3/-0

Add TS project reference to ordinal-comparator

• Adds a TypeScript project reference to pnpm11/text/ordinal-comparator to match the new workspace dependency.

pnpm11/building/commands/tsconfig.json

package.jsonSwitch default-reporter to ordinal comparator workspace dep +1/-1

Switch default-reporter to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator catalog dependency with @pnpm/text.ordinal-comparator as a workspace dependency.

pnpm11/cli/default-reporter/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TS project references to align with updated dependencies.

pnpm11/cli/default-reporter/tsconfig.json

package.jsonSwitch config reader to registry-auth-key workspace dep +1/-1

Switch config reader to registry-auth-key workspace dep

• Replaces @pnpm/config.nerf-dart catalog dependency with workspace @pnpm/config.registry-auth-key.

pnpm11/config/reader/package.json

tsconfig.jsonAdd TS reference to registry-auth-key project +3/-0

Add TS reference to registry-auth-key project

• Adds a TypeScript project reference to pnpm11/config/registry-auth-key.

pnpm11/config/reader/tsconfig.json

tsconfig.jsonAdd test tsconfig for registry-auth-key +18/-0

Add test tsconfig for registry-auth-key

• Introduces a test build configuration emitting into a package-local test output directory and referencing the main project.

pnpm11/config/registry-auth-key/test/tsconfig.json

tsconfig.jsonAdd base tsconfig for registry-auth-key +12/-0

Add base tsconfig for registry-auth-key

• Configures TS build output and includes typing stubs for the new package.

pnpm11/config/registry-auth-key/tsconfig.json

tsconfig.lint.jsonAdd lint tsconfig for registry-auth-key +8/-0

Add lint tsconfig for registry-auth-key

• Adds a lint-focused TS config that includes both src and test trees.

pnpm11/config/registry-auth-key/tsconfig.lint.json

package.jsonSwitch deps inspection list to ordinal comparator +1/-1

Switch deps inspection list to ordinal comparator

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator as a workspace dependency.

pnpm11/deps/inspection/list/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to project references for deps inspection list package.

pnpm11/deps/inspection/list/tsconfig.json

package.jsonSwitch tree-builder to ordinal comparator +1/-1

Switch tree-builder to ordinal comparator

• Replaces the old comparator dependency with the new workspace @pnpm/text.ordinal-comparator package.

pnpm11/deps/inspection/tree-builder/package.json

tsconfig.jsonAdd TS reference to ordinal-comparator +3/-0

Add TS reference to ordinal-comparator

• Adds pnpm11/text/ordinal-comparator as a TypeScript project reference.

pnpm11/deps/inspection/tree-builder/tsconfig.json

package.jsonSwitch bun-resolver to ordinal comparator workspace dep +1/-1

Switch bun-resolver to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator in dependencies.

pnpm11/engine/runtime/bun-resolver/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TypeScript project references for bun-resolver.

pnpm11/engine/runtime/bun-resolver/tsconfig.json

package.jsonSwitch deno-resolver to ordinal comparator workspace dep +1/-1

Switch deno-resolver to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator as a workspace dependency.

pnpm11/engine/runtime/deno-resolver/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TypeScript project references for deno-resolver.

pnpm11/engine/runtime/deno-resolver/tsconfig.json

package.jsonSwitch exec commands to ordinal comparator workspace dep +1/-1

Switch exec commands to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator catalog dependency with @pnpm/text.ordinal-comparator workspace dependency.

pnpm11/exec/commands/package.json

tsconfig.jsonAdd TS reference to ordinal-comparator +3/-0

Add TS reference to ordinal-comparator

• Adds pnpm11/text/ordinal-comparator to tsconfig references for exec commands.

pnpm11/exec/commands/tsconfig.json

package.jsonSwitch directory-fetcher tests to ordinal comparator dep +1/-1

Switch directory-fetcher tests to ordinal comparator dep

• Replaces @pnpm/util.lex-comparator with workspace @pnpm/text.ordinal-comparator in devDependencies.

pnpm11/fetching/directory-fetcher/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to the package's TypeScript project references.

pnpm11/fetching/directory-fetcher/tsconfig.json

package.jsonSwitch git-fetcher to ordinal comparator workspace dep +1/-1

Switch git-fetcher to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator as a workspace dependency.

pnpm11/fetching/git-fetcher/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TypeScript project references for git-fetcher.

pnpm11/fetching/git-fetcher/tsconfig.json

package.jsonSwitch tarball-fetcher to ordinal comparator workspace dep +1/-1

Switch tarball-fetcher to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator as a workspace dependency.

pnpm11/fetching/tarball-fetcher/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TypeScript references for tarball-fetcher.

pnpm11/fetching/tarball-fetcher/tsconfig.json

package.jsonSwitch global commands to ordinal comparator workspace dep +1/-1

Switch global commands to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator catalog dependency with @pnpm/text.ordinal-comparator workspace dependency.

pnpm11/global/commands/package.json

tsconfig.jsonAdd TS reference to ordinal-comparator +3/-0

Add TS reference to ordinal-comparator

• Adds pnpm11/text/ordinal-comparator to the global commands project's TS references.

pnpm11/global/commands/tsconfig.json

package.jsonSwitch global packages to ordinal comparator workspace dep +2/-2

Switch global packages to ordinal comparator workspace dep

• Updates dependencies to use @pnpm/text.ordinal-comparator instead of @pnpm/util.lex-comparator.

pnpm11/global/packages/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator as a TypeScript project reference.

pnpm11/global/packages/tsconfig.json

package.jsonSwitch installing commands to ordinal comparator workspace dep +1/-1

Switch installing commands to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator in dependencies.

pnpm11/installing/commands/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TypeScript project references for installing commands.

pnpm11/installing/commands/tsconfig.json

package.jsonSwitch deps-installer to ordinal comparator workspace dep +1/-1

Switch deps-installer to ordinal comparator workspace dep

• Updates dependencies to use @pnpm/text.ordinal-comparator instead of @pnpm/util.lex-comparator.

pnpm11/installing/deps-installer/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TypeScript project references for deps-installer.

pnpm11/installing/deps-installer/tsconfig.json

package.jsonSwitch deps-resolver to ordinal comparator workspace dep +1/-1

Switch deps-resolver to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator as a workspace dependency.

pnpm11/installing/deps-resolver/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to the deps-resolver project's TS references.

pnpm11/installing/deps-resolver/tsconfig.json

package.jsonSwitch hoist linker to ordinal comparator workspace dep +1/-1

Switch hoist linker to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator in dependencies.

pnpm11/installing/linking/hoist/package.json

tsconfig.jsonReference ordinal-comparator TS project +3/-0

Reference ordinal-comparator TS project

• Adds pnpm11/text/ordinal-comparator to TypeScript project references for the hoist linker package.

pnpm11/installing/linking/hoist/tsconfig.json

package.jsonSwitch auth-header to registry-auth-key workspace dep +1/-1

Switch auth-header to registry-auth-key workspace dep

• Replaces @pnpm/config.nerf-dart with @pnpm/config.registry-auth-key as a workspace dependency.

pnpm11/network/auth-header/package.json

tsconfig.jsonAdd TS reference to registry-auth-key +3/-0

Add TS reference to registry-auth-key

• Adds pnpm11/config/registry-auth-key as a referenced TS project.

pnpm11/network/auth-header/tsconfig.json

package.jsonSwitch network fetch to registry-auth-key workspace dep +1/-1

Switch network fetch to registry-auth-key workspace dep

• Replaces @pnpm/config.nerf-dart dependency with @pnpm/config.registry-auth-key as workspace:*.

pnpm11/network/fetch/package.json

tsconfig.jsonAdd TS reference to registry-auth-key +3/-0

Add TS reference to registry-auth-key

• Adds pnpm11/config/registry-auth-key as a TS project reference for network fetch.

pnpm11/network/fetch/tsconfig.json

package.jsonSwitch key-sorting to ordinal comparator workspace dep +1/-1

Switch key-sorting to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator in dependencies.

pnpm11/object/key-sorting/package.json

tsconfig.jsonAdd TS reference to ordinal-comparator for key-sorting +5/-1

Add TS reference to ordinal-comparator for key-sorting

• Updates tsconfig references to include pnpm11/text/ordinal-comparator.

pnpm11/object/key-sorting/tsconfig.json

package.jsonSwitch pnpm package to ordinal comparator workspace dep +1/-1

Switch pnpm package to ordinal comparator workspace dep

• Replaces catalog dependency on @pnpm/util.lex-comparator with workspace @pnpm/text.ordinal-comparator.

pnpm11/pnpm/package.json

tsconfig.jsonReference ordinal-comparator TS project in pnpm +3/-0

Reference ordinal-comparator TS project in pnpm

• Adds pnpm11/text/ordinal-comparator to pnpm package TypeScript project references.

pnpm11/pnpm/tsconfig.json

package.jsonSwitch store commands to ordinal comparator workspace dep +1/-1

Switch store commands to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator as a workspace dependency.

pnpm11/store/commands/package.json

tsconfig.jsonReference ordinal-comparator TS project in store commands +3/-0

Reference ordinal-comparator TS project in store commands

• Adds pnpm11/text/ordinal-comparator to TS project references.

pnpm11/store/commands/tsconfig.json

tsconfig.jsonAdd test tsconfig for ordinal-comparator +18/-0

Add test tsconfig for ordinal-comparator

• Introduces a test TypeScript build configuration for the new package.

pnpm11/text/ordinal-comparator/test/tsconfig.json

tsconfig.jsonAdd base tsconfig for ordinal-comparator +12/-0

Add base tsconfig for ordinal-comparator

• Configures TS build output and includes typings for the new comparator package.

pnpm11/text/ordinal-comparator/tsconfig.json

tsconfig.lint.jsonAdd lint tsconfig for ordinal-comparator +8/-0

Add lint tsconfig for ordinal-comparator

• Adds a lint-focused TS config that includes src and test files.

pnpm11/text/ordinal-comparator/tsconfig.lint.json

package.jsonSwitch injected-deps-syncer to ordinal comparator workspace dep +1/-1

Switch injected-deps-syncer to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator in dependencies.

pnpm11/workspace/injected-deps-syncer/package.json

tsconfig.jsonReference ordinal-comparator TS project in injected-deps-syncer +3/-0

Reference ordinal-comparator TS project in injected-deps-syncer

• Adds pnpm11/text/ordinal-comparator to TypeScript project references.

pnpm11/workspace/injected-deps-syncer/tsconfig.json

package.jsonSwitch projects-reader to ordinal comparator workspace dep +1/-1

Switch projects-reader to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator in dependencies.

pnpm11/workspace/projects-reader/package.json

tsconfig.jsonReference ordinal-comparator TS project in projects-reader +3/-0

Reference ordinal-comparator TS project in projects-reader

• Adds pnpm11/text/ordinal-comparator to the projects-reader TypeScript project references.

pnpm11/workspace/projects-reader/tsconfig.json

package.jsonSwitch workspace-manifest-writer to ordinal comparator workspace dep +1/-1

Switch workspace-manifest-writer to ordinal comparator workspace dep

• Replaces @pnpm/util.lex-comparator with @pnpm/text.ordinal-comparator in dependencies.

pnpm11/workspace/workspace-manifest-writer/package.json

tsconfig.jsonReference ordinal-comparator TS project in workspace-manifest-writer +3/-0

Reference ordinal-comparator TS project in workspace-manifest-writer

• Adds pnpm11/text/ordinal-comparator to TypeScript project references.

pnpm11/workspace/workspace-manifest-writer/tsconfig.json

@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Remediation recommended

1. Node types major drift 🐞 Bug ➹ Performance
Description
The updated lockfile resolves Jest packages with @types/[email protected] even though the workspace
catalog pins @types/node to 22.x to match pnpm’s minimum supported Node (>=22.13). This undermines
the repo’s “type against the supported floor” guarantee and also increases dependency duplication in
installs.
Code

pnpm-lock.yaml[R18033-18036]

  '@jest/[email protected]':
    dependencies:
      '@jest/types': 30.4.1
-      '@types/node': 22.20.1
+      '@types/node': 26.1.2
Relevance

●●● Strong

Repo pins @types/node 22.x to supported Node floor; drift to 26.x flagged before (PR #13257,
#12535).

PR-#13257
PR-#12535

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workspace catalog states @types/node is kept on 22.x to match pnpm’s minimum supported Node.js
version, but the lockfile now records Jest packages depending on @types/[email protected], introducing
an inconsistent major version into the repo dependency graph.

pnpm-workspace.yaml[152-154]
pnpm-lock.yaml[18033-18060]

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

### Issue description
`pnpm-lock.yaml` now pulls `@types/[email protected]` into the Jest dependency subtree, despite the workspace policy (catalog comment) to keep Node types on 22.x so typechecking reflects the minimum supported runtime (>=22.13).

### Issue Context
- The workspace catalog explicitly documents/pins `@types/node` to 22.x.
- The lockfile now includes `@types/[email protected]` under multiple `@jest/*` packages.

### Fix Focus Areas
- Add a pnpm override to force all `@types/node` resolutions to the workspace’s pinned 22.x line, then regenerate the lockfile.
- Alternatively (if intentional), align the catalog policy/comment with the new reality and ensure all packages typecheck consistently.

#### Files/lines to change
- pnpm-lock.yaml[18033-18060]
- pnpm-workspace.yaml[152-154]
- pnpm-workspace.yaml[460-472]

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


2. nerfDart JSDoc missing error contract 📘 Rule violation ⚙ Maintainability
Description
nerfDart() can throw when given an invalid URL (via new URL(url)), but its JSDoc does not
document this precondition or error behavior. This violates the requirement that JSDoc document
function contracts (inputs/outputs/errors), which makes the API easier to misuse by callers.
Code

pnpm11/config/registry-auth-key/src/index.ts[R1-14]

+/**
+ * Maps a registry URL to the key that its settings (`_authToken`, `certfile`,
+ * and so on) are stored under in `.npmrc`. For instance,
+ * `https://registry.npmjs.org/some-pkg` maps to `//registry.npmjs.org/`.
+ *
+ * npm calls this key a "nerf dart".
+ * Ported from https://github.com/npm/cli/blob/latest/workspaces/config/lib/nerf-dart.js
+ */
+export function nerfDart (url: string): string {
+  const parsed = new URL(url)
+  const from = `${parsed.protocol}//${parsed.host}${parsed.pathname}`
+  const rel = new URL('.', from)
+  return `//${rel.host}${rel.pathname}`
+}
Relevance

●● Moderate

No clear history enforcing @throws/error contracts in JSDoc; only generic JSDoc accuracy fixes seen.

PR-#12292
PR-#12343

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713430 requires JSDoc to describe function contracts including preconditions and
error conditions. The test suite asserts nerfDart() throws on invalid input, while the JSDoc in
src/index.ts omits this behavior.

Rule 713430: JSDoc must document function contracts, not re-describe implementation
pnpm11/config/registry-auth-key/src/index.ts[1-14]
pnpm11/config/registry-auth-key/test/index.test.ts[40-42]

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

## Issue description
`nerfDart()`'s JSDoc does not document its contract (notably: the input must be a valid absolute URL, and invalid input will throw).

## Issue Context
The accompanying test asserts that `nerfDart('not a valid url')` throws, which is part of the function’s observable behavior and should be documented as part of the public contract.

## Fix Focus Areas
- pnpm11/config/registry-auth-key/src/index.ts[1-14]
- pnpm11/config/registry-auth-key/test/index.test.ts[40-42]

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



Informational

3. nerfDart comment mentions historical port ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
The added JSDoc includes historical phrasing (Ported from ...), which documents provenance/history
rather than current behavior. This violates the rule that comments must describe current behavior,
not historical implementations.
Code

pnpm11/config/registry-auth-key/src/index.ts[R6-8]

+ * npm calls this key a "nerf dart".
+ * Ported from https://github.com/npm/cli/blob/latest/workspaces/config/lib/nerf-dart.js
+ */
Relevance

● Weak

Teams often keep provenance/porting notes; similar “ported from/TS:” removal suggestions were
rejected (PR #13160, #13144).

PR-#13160
PR-#13144
PR-#12964

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 forbids historical/temporal phrasing in comments. The JSDoc line `Ported
from https://...` is explicitly historical and appears in newly added code.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm11/config/registry-auth-key/src/index.ts[6-8]

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 JSDoc contains historical/provenance phrasing (`Ported from ...`), which is disallowed in inline comments.

## Issue Context
The review rule requires comments to describe current behavior/constraints; provenance belongs in commit messages or docs, or should be phrased as current compatibility intent (e.g., “Matches npm CLI behavior; see …”).

## Fix Focus Areas
- pnpm11/config/registry-auth-key/src/index.ts[6-8]

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


Grey Divider

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Qodo Logo

@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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.changeset/inline-string-and-npmrc-key-utils.md:
- Line 7: Rewrite the changeset entry at line 7 to clearly describe the
user-visible import change from the user's perspective. Instead of describing
the repository move, focus on what users must update: replace the emphasis on
where the code was moved to with explicit guidance that users need to update
imports from the old package names (`@pnpm/util.lex-comparator` and
`@pnpm/config.nerf-dart`) to the new package names (`@pnpm/text.ordinal-comparator`
and `@pnpm/config.registry-auth-key`). Use concise, user-facing prose without
implementation details.

In `@pnpm11/config/registry-auth-key/src/index.ts`:
- Line 7: Remove the implementation-history comment referencing the npm CLI from
the module header in src/index.ts; keep the implementation unchanged, and only
preserve attribution if the package’s documentation requires it.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: af4f49ae-a4b9-4c2d-a1bf-cbee54855ca2

📥 Commits

Reviewing files that changed from the base of the PR and between c2b7cfb and ba07cbc.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
📒 Files selected for processing (97)
  • .changeset/inline-string-and-npmrc-key-utils.md
  • pnpm-workspace.yaml
  • pnpm11/building/commands/package.json
  • pnpm11/building/commands/src/policy/approveBuilds.ts
  • pnpm11/building/commands/tsconfig.json
  • pnpm11/cli/default-reporter/package.json
  • pnpm11/cli/default-reporter/src/reporterForClient/reportIgnoredBuilds.ts
  • pnpm11/cli/default-reporter/tsconfig.json
  • pnpm11/config/reader/package.json
  • pnpm11/config/reader/src/loadNpmrcFiles.ts
  • pnpm11/config/reader/tsconfig.json
  • pnpm11/config/registry-auth-key/README.md
  • pnpm11/config/registry-auth-key/package.json
  • pnpm11/config/registry-auth-key/src/index.ts
  • pnpm11/config/registry-auth-key/test/index.test.ts
  • pnpm11/config/registry-auth-key/test/tsconfig.json
  • pnpm11/config/registry-auth-key/tsconfig.json
  • pnpm11/config/registry-auth-key/tsconfig.lint.json
  • pnpm11/deps/inspection/list/package.json
  • pnpm11/deps/inspection/list/src/renderTree.ts
  • pnpm11/deps/inspection/list/tsconfig.json
  • pnpm11/deps/inspection/tree-builder/package.json
  • pnpm11/deps/inspection/tree-builder/src/buildDependentsTree.ts
  • pnpm11/deps/inspection/tree-builder/src/getTree.ts
  • pnpm11/deps/inspection/tree-builder/tsconfig.json
  • pnpm11/engine/runtime/bun-resolver/package.json
  • pnpm11/engine/runtime/bun-resolver/src/index.ts
  • pnpm11/engine/runtime/bun-resolver/tsconfig.json
  • pnpm11/engine/runtime/deno-resolver/package.json
  • pnpm11/engine/runtime/deno-resolver/src/index.ts
  • pnpm11/engine/runtime/deno-resolver/tsconfig.json
  • pnpm11/exec/commands/package.json
  • pnpm11/exec/commands/src/dlx.ts
  • pnpm11/exec/commands/tsconfig.json
  • pnpm11/fetching/directory-fetcher/package.json
  • pnpm11/fetching/directory-fetcher/test/index.ts
  • pnpm11/fetching/directory-fetcher/tsconfig.json
  • pnpm11/fetching/git-fetcher/package.json
  • pnpm11/fetching/git-fetcher/test/index.ts
  • pnpm11/fetching/git-fetcher/tsconfig.json
  • pnpm11/fetching/tarball-fetcher/package.json
  • pnpm11/fetching/tarball-fetcher/test/fetch.ts
  • pnpm11/fetching/tarball-fetcher/tsconfig.json
  • pnpm11/global/commands/package.json
  • pnpm11/global/commands/src/listGlobalPackages.ts
  • pnpm11/global/commands/tsconfig.json
  • pnpm11/global/packages/package.json
  • pnpm11/global/packages/src/cacheKey.ts
  • pnpm11/global/packages/tsconfig.json
  • pnpm11/installing/commands/package.json
  • pnpm11/installing/commands/src/handleIgnoredBuilds.ts
  • pnpm11/installing/commands/src/update/generateUpdateChangeset.ts
  • pnpm11/installing/commands/tsconfig.json
  • pnpm11/installing/deps-installer/package.json
  • pnpm11/installing/deps-installer/src/install/index.ts
  • pnpm11/installing/deps-installer/tsconfig.json
  • pnpm11/installing/deps-resolver/package.json
  • pnpm11/installing/deps-resolver/src/hoistPeers.ts
  • pnpm11/installing/deps-resolver/src/resolveDependencies.ts
  • pnpm11/installing/deps-resolver/tsconfig.json
  • pnpm11/installing/linking/hoist/package.json
  • pnpm11/installing/linking/hoist/src/index.ts
  • pnpm11/installing/linking/hoist/tsconfig.json
  • pnpm11/network/auth-header/package.json
  • pnpm11/network/auth-header/src/index.ts
  • pnpm11/network/auth-header/tsconfig.json
  • pnpm11/network/fetch/package.json
  • pnpm11/network/fetch/src/dispatcher.ts
  • pnpm11/network/fetch/tsconfig.json
  • pnpm11/object/key-sorting/package.json
  • pnpm11/object/key-sorting/src/index.ts
  • pnpm11/object/key-sorting/tsconfig.json
  • pnpm11/pnpm/package.json
  • pnpm11/pnpm/src/getConfig.ts
  • pnpm11/pnpm/test/install/misc.ts
  • pnpm11/pnpm/tsconfig.json
  • pnpm11/store/commands/package.json
  • pnpm11/store/commands/src/inspecting/catIndex.ts
  • pnpm11/store/commands/tsconfig.json
  • pnpm11/text/ordinal-comparator/README.md
  • pnpm11/text/ordinal-comparator/package.json
  • pnpm11/text/ordinal-comparator/src/index.ts
  • pnpm11/text/ordinal-comparator/test/index.test.ts
  • pnpm11/text/ordinal-comparator/test/tsconfig.json
  • pnpm11/text/ordinal-comparator/tsconfig.json
  • pnpm11/text/ordinal-comparator/tsconfig.lint.json
  • pnpm11/workspace/injected-deps-syncer/package.json
  • pnpm11/workspace/injected-deps-syncer/test/DirPatcher.test.ts
  • pnpm11/workspace/injected-deps-syncer/test/applyPatch.test.ts
  • pnpm11/workspace/injected-deps-syncer/tsconfig.json
  • pnpm11/workspace/projects-reader/package.json
  • pnpm11/workspace/projects-reader/src/findPackages.ts
  • pnpm11/workspace/projects-reader/src/index.ts
  • pnpm11/workspace/projects-reader/tsconfig.json
  • pnpm11/workspace/workspace-manifest-writer/package.json
  • pnpm11/workspace/workspace-manifest-writer/src/index.ts
  • pnpm11/workspace/workspace-manifest-writer/tsconfig.json
💤 Files with no reviewable changes (1)
  • pnpm-workspace.yaml

Copilot AI review requested due to automatic review settings July 31, 2026 15:09

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 31, 2026

Copy link
Copy Markdown
Member Author

Notes on the two Qodo findings:

@types/node in the lockfile — not introduced by this PR, and the direction is the opposite of the finding. @types/[email protected] is what jest's own @types/node@* dependency resolves to, and it is already all over the lockfile on main: 39 occurrences of '@types/node': 26.1.2 there vs 42 here. What did change is that references to the catalog-pinned 22.20.1 went from 77 to 139 — @inquirer/prompts and openpgp moved off 26.1.2 and onto the pinned 22.x line. So the workspace policy is better observed after this change, not worse, and no override is needed.

The lockfile churn beyond the rename exists because removing the two catalog entries re-resolves the catalog-sourced dependencies. pnpm install --lockfile-only on main is a no-op, so nothing else here is drift being swept in.

Documenting that nerfDart throws — leaving as is. The function is a thin wrapper over new URL, so the throw is that constructor's standard behavior, and the test already pins it; restating it in prose duplicates the test without adding a guarantee. Happy to add a line if a maintainer would rather have it spelled out in the contract.


Written by an agent (Claude Code, claude-opus-5[1m]).

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 31, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit a4d0ada

@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

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: a4d0adab0f74

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.646 ± 0.113 2.517 2.894 1.66 ± 0.16
pacquet@main 2.684 ± 0.162 2.518 2.944 1.68 ± 0.18
pnpr@HEAD 1.627 ± 0.188 1.409 1.902 1.02 ± 0.15
pnpr@main 1.598 ± 0.144 1.414 1.855 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6459150475,
      "stddev": 0.11305345616743007,
      "median": 2.6186261893,
      "user": 2.3499374399999997,
      "system": 1.7436324200000002,
      "min": 2.5168010853,
      "max": 2.8937738603,
      "times": [
        2.5228921623000002,
        2.5934629013,
        2.5168010853,
        2.5831223183,
        2.6695070343,
        2.7077344623,
        2.7349464263,
        2.5931207473,
        2.8937738603,
        2.6437894773
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.6841630209000003,
      "stddev": 0.16211089798096628,
      "median": 2.6357574518,
      "user": 2.29261614,
      "system": 1.7278247199999999,
      "min": 2.5184128253,
      "max": 2.9440006733,
      "times": [
        2.6832042663,
        2.6936646173,
        2.5728123363,
        2.5384770003,
        2.9292003463,
        2.5184128253,
        2.5479004963,
        2.5883106373,
        2.8256470103,
        2.9440006733
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6270516596,
      "stddev": 0.18811951466751148,
      "median": 1.6151425668000001,
      "user": 1.4527890400000003,
      "system": 1.5091522199999998,
      "min": 1.4087363093,
      "max": 1.9021246383000001,
      "times": [
        1.9021246383000001,
        1.5139209693,
        1.5346820473,
        1.6956030863000002,
        1.4375074393,
        1.7038488843000001,
        1.8012016673,
        1.8564620093000002,
        1.4087363093,
        1.4164295453000002
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5979133141000001,
      "stddev": 0.14369318475953324,
      "median": 1.6074670068,
      "user": 1.33418874,
      "system": 1.3802357199999997,
      "min": 1.4137240383,
      "max": 1.8545313223000002,
      "times": [
        1.4594798803,
        1.7011457023,
        1.6765962163,
        1.6574294513,
        1.7104029943,
        1.4137240383,
        1.4460493063,
        1.8545313223000002,
        1.5022696673000002,
        1.5575045623000001
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 296.1 ± 19.9 270.9 345.2 1.02 ± 0.09
pacquet@main 290.6 ± 15.4 266.1 314.6 1.00
pnpr@HEAD 317.3 ± 21.8 289.2 362.9 1.09 ± 0.09
pnpr@main 319.1 ± 17.7 292.7 358.6 1.10 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.29605684744,
      "stddev": 0.01985234363538101,
      "median": 0.29244328084,
      "user": 0.25299872,
      "system": 0.5643866200000001,
      "min": 0.27094974234,
      "max": 0.34524554134,
      "times": [
        0.30204532334,
        0.29046283934,
        0.27094974234,
        0.29442372233999997,
        0.28508881334,
        0.28130365134,
        0.30240791633999997,
        0.34524554134,
        0.29895743434,
        0.28968349034
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.29056120714,
      "stddev": 0.015437117073259328,
      "median": 0.28992508034,
      "user": 0.25310792000000004,
      "system": 0.56479652,
      "min": 0.26610051534,
      "max": 0.31460980634,
      "times": [
        0.30805283233999997,
        0.30504060634,
        0.29067200234,
        0.29067661034,
        0.28744893134,
        0.28917815834,
        0.28276777034,
        0.26610051534,
        0.27106483834,
        0.31460980634
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.31733473644,
      "stddev": 0.021832856808836808,
      "median": 0.31264142833999997,
      "user": 0.26720422,
      "system": 0.57313902,
      "min": 0.28918316834,
      "max": 0.36286254634,
      "times": [
        0.30442631934,
        0.33800557034,
        0.31804547034,
        0.30079738134,
        0.31509237634,
        0.28918316834,
        0.31019048034,
        0.30154800534,
        0.33319604634,
        0.36286254634
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31905228463999996,
      "stddev": 0.017733420805666648,
      "median": 0.32124686284,
      "user": 0.2621884199999999,
      "system": 0.59799102,
      "min": 0.29266093134,
      "max": 0.35862979934,
      "times": [
        0.32209233534,
        0.31056922434,
        0.32225557334,
        0.30667654834,
        0.29266093134,
        0.30475689234,
        0.32040139034,
        0.32366582034,
        0.32881433134,
        0.35862979934
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.759 ± 0.045 2.658 2.810 1.64 ± 0.13
pacquet@main 2.745 ± 0.036 2.672 2.806 1.64 ± 0.12
pnpr@HEAD 1.710 ± 0.247 1.457 2.052 1.02 ± 0.17
pnpr@main 1.677 ± 0.126 1.499 1.890 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.7588448892800006,
      "stddev": 0.04532572699040799,
      "median": 2.7602700170800003,
      "user": 2.0246022600000004,
      "system": 1.6736914799999998,
      "min": 2.6575485270800003,
      "max": 2.81000028908,
      "times": [
        2.76211539308,
        2.80673646908,
        2.7435067510800004,
        2.7620739160800003,
        2.73287580008,
        2.7584661180800003,
        2.81000028908,
        2.6575485270800003,
        2.8066034980800003,
        2.74852213108
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.7450039314800003,
      "stddev": 0.036234380617366405,
      "median": 2.7438595615800003,
      "user": 1.9836619599999998,
      "system": 1.5439536799999998,
      "min": 2.67222145308,
      "max": 2.8060301290800003,
      "times": [
        2.74740487608,
        2.73998157808,
        2.77642591708,
        2.77248044308,
        2.7453408560800003,
        2.67222145308,
        2.8060301290800003,
        2.7160515320800003,
        2.7317242630800003,
        2.7423782670800003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.70966605578,
      "stddev": 0.24731003650860978,
      "median": 1.58205870108,
      "user": 1.43307526,
      "system": 1.5079913799999998,
      "min": 1.4572572610799999,
      "max": 2.05206115608,
      "times": [
        1.46704766808,
        1.50002418308,
        1.4572572610799999,
        1.59859013008,
        1.88739411108,
        1.55357851808,
        2.01534732008,
        2.05206115608,
        1.9998329380799997,
        1.56552727208
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.6774729942799997,
      "stddev": 0.12591302861964984,
      "median": 1.65027950758,
      "user": 1.42752996,
      "system": 1.5321564799999998,
      "min": 1.4986960190799998,
      "max": 1.88993830408,
      "times": [
        1.59669609008,
        1.65170248308,
        1.7197251620799998,
        1.6924359440799999,
        1.64885653208,
        1.4986960190799998,
        1.88993830408,
        1.88205650508,
        1.5765644210799998,
        1.6180584820800001
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 515.0 ± 18.6 490.9 556.1 1.46 ± 0.06
pacquet@main 510.9 ± 27.9 459.1 538.4 1.45 ± 0.09
pnpr@HEAD 352.3 ± 7.6 341.0 361.4 1.00
pnpr@main 358.8 ± 15.2 334.9 375.6 1.02 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.51498810744,
      "stddev": 0.018558427662374553,
      "median": 0.5086709088400001,
      "user": 0.6863533399999999,
      "system": 0.8193824199999998,
      "min": 0.49087651784,
      "max": 0.55609528484,
      "times": [
        0.52487336084,
        0.5103903588400001,
        0.50165642184,
        0.50631377784,
        0.55609528484,
        0.5273244098400001,
        0.49087651784,
        0.52341159684,
        0.50695145884,
        0.5019878868400001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.51088639654,
      "stddev": 0.027922484170717136,
      "median": 0.5205067078400001,
      "user": 0.72179344,
      "system": 0.76867152,
      "min": 0.45907248884,
      "max": 0.53839935884,
      "times": [
        0.53157257484,
        0.51783660184,
        0.52317681384,
        0.47053373584,
        0.45907248884,
        0.5092055868400001,
        0.53839935884,
        0.49281977084,
        0.53225175384,
        0.5339952798400001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.35228673484,
      "stddev": 0.007638287468052573,
      "median": 0.35400553884,
      "user": 0.23661384000000002,
      "system": 0.60101372,
      "min": 0.34104711584,
      "max": 0.36137437984000004,
      "times": [
        0.35814108584000004,
        0.35763964184,
        0.35939791484,
        0.34948850184,
        0.34235533984,
        0.36137437984000004,
        0.35037143584,
        0.34104711584,
        0.35828584984,
        0.34476608284
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.35881363454000004,
      "stddev": 0.015168115472144224,
      "median": 0.36355998284,
      "user": 0.25742844,
      "system": 0.59888952,
      "min": 0.33485942484000003,
      "max": 0.37557835384,
      "times": [
        0.35956764484000003,
        0.37395210984,
        0.36786522984000003,
        0.35388691884,
        0.33485942484000003,
        0.34642032984000004,
        0.36755232084,
        0.37165983084000004,
        0.37557835384,
        0.33679418184000004
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.858 ± 0.027 1.821 1.898 4.56 ± 0.37
pacquet@main 1.907 ± 0.116 1.819 2.096 4.68 ± 0.47
pnpr@HEAD 0.408 ± 0.032 0.348 0.458 1.00
pnpr@main 0.429 ± 0.028 0.386 0.478 1.05 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.8580508997400003,
      "stddev": 0.026821825417871068,
      "median": 1.85749498534,
      "user": 0.9898838399999997,
      "system": 0.8746955599999999,
      "min": 1.82102533034,
      "max": 1.8975197703400002,
      "times": [
        1.89361591534,
        1.88233982634,
        1.84395886034,
        1.85222913634,
        1.86334331234,
        1.82759308834,
        1.83612292334,
        1.8975197703400002,
        1.82102533034,
        1.86276083434
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.9071227914399997,
      "stddev": 0.11647982971560575,
      "median": 1.84231017834,
      "user": 1.1146975399999999,
      "system": 0.94466556,
      "min": 1.8187240233400002,
      "max": 2.09584562934,
      "times": [
        1.82600556634,
        1.85078688834,
        1.86697495634,
        1.8243217623399999,
        1.83383346834,
        1.8187240233400002,
        1.82840143134,
        2.05347995834,
        2.09584562934,
        2.07285423034
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.40789778303999996,
      "stddev": 0.03227108510294319,
      "median": 0.41362467984,
      "user": 0.3116234400000001,
      "system": 0.68454646,
      "min": 0.34813490434,
      "max": 0.45783804734,
      "times": [
        0.42014934134,
        0.37134734034,
        0.45783804734,
        0.34813490434,
        0.43074706334,
        0.39210116234000003,
        0.40795512034000003,
        0.39573383834000003,
        0.41929423934,
        0.43567677334
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.42894273784000003,
      "stddev": 0.027769252202597926,
      "median": 0.42901727834000003,
      "user": 0.31656493999999996,
      "system": 0.6942892599999999,
      "min": 0.38591855134,
      "max": 0.47783672834,
      "times": [
        0.40436498434,
        0.45364057634,
        0.42321094134000004,
        0.47783672834,
        0.38591855134,
        0.44260529134,
        0.42386805934,
        0.44549698934000004,
        0.39831875934,
        0.43416649734
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 229.2 ± 14.3 195.1 253.2 2.38 ± 0.16
pacquet@main 247.6 ± 12.0 236.3 274.8 2.57 ± 0.14
pnpr@HEAD 96.5 ± 2.6 91.2 101.3 1.00
pnpr@main 99.0 ± 3.5 91.4 107.0 1.03 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.22923236740307695,
      "stddev": 0.014310818151857833,
      "median": 0.23164117348000002,
      "user": 0.24286854153846146,
      "system": 0.05274543846153846,
      "min": 0.19505211648,
      "max": 0.25320477248000006,
      "times": [
        0.21954793148,
        0.22439324448,
        0.23523691948,
        0.23775140848,
        0.21727110048,
        0.19505211648,
        0.22202682448,
        0.24374924248000002,
        0.23642618148,
        0.25320477248000006,
        0.23164117348000002,
        0.22944110648000002,
        0.23427875448000002
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.24756720307999996,
      "stddev": 0.01196444157552198,
      "median": 0.24427537948,
      "user": 0.24918768000000005,
      "system": 0.06797389999999999,
      "min": 0.23631992048,
      "max": 0.27479581448,
      "times": [
        0.27479581448,
        0.25302951248000005,
        0.24455573248,
        0.24436472348000002,
        0.23968788848,
        0.26020531748000003,
        0.23900752548,
        0.23631992048,
        0.23951956048,
        0.24418603548
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09647653313517243,
      "stddev": 0.0025855292974972994,
      "median": 0.09656273048000001,
      "user": 0.027057045517241377,
      "system": 0.011737934482758621,
      "min": 0.09118461448000001,
      "max": 0.10133847048000001,
      "times": [
        0.09623543348000001,
        0.09604336148,
        0.10133847048000001,
        0.09477488048000002,
        0.09874455248000001,
        0.09480390548,
        0.09118461448000001,
        0.09686546048000001,
        0.09636811248000002,
        0.09672051748000002,
        0.09552406248,
        0.09839455248000001,
        0.09522366648000001,
        0.09844616948000001,
        0.09721825548000002,
        0.09793805248000001,
        0.09778314048000002,
        0.09245200248000002,
        0.09948063848000001,
        0.09603310148000001,
        0.09403123848000002,
        0.09988089348000001,
        0.09170788048000002,
        0.09762252748000001,
        0.10117090448000002,
        0.09656273048000001,
        0.09340662248,
        0.09824477048000001,
        0.09361894248000001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.09901797554896553,
      "stddev": 0.0034890242372228107,
      "median": 0.09841212648000001,
      "user": 0.027711114482758616,
      "system": 0.013105282758620686,
      "min": 0.09139893848000001,
      "max": 0.10697407148000002,
      "times": [
        0.09741962448000001,
        0.10079223148000001,
        0.09652278448000001,
        0.09958497648000002,
        0.10511148248000002,
        0.09641886948000002,
        0.09841212648000001,
        0.09669772448000001,
        0.10172287548000002,
        0.09488831448000001,
        0.10000911548000001,
        0.10331517648,
        0.09812265048000002,
        0.10697407148000002,
        0.10415693348000002,
        0.09689765148000001,
        0.10363315548000002,
        0.09727775848000002,
        0.09762770748,
        0.09139893848000001,
        0.10162804748000001,
        0.09681467548000001,
        0.09360756048000002,
        0.09863725948000002,
        0.10014533248000002,
        0.09754898848000002,
        0.09917220748000001,
        0.10080866148,
        0.09617438948000001
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.759 ± 0.114 4.640 5.030 1.34 ± 0.04
pacquet@main 4.775 ± 0.125 4.593 5.070 1.34 ± 0.04
pnpr@HEAD 3.667 ± 0.176 3.494 3.935 1.03 ± 0.05
pnpr@main 3.560 ± 0.068 3.474 3.683 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.75927047738,
      "stddev": 0.11412653334813488,
      "median": 4.72602496098,
      "user": 2.8495566799999996,
      "system": 2.0779181,
      "min": 4.64013398198,
      "max": 5.03048118598,
      "times": [
        4.73656528998,
        4.64013398198,
        4.87470555498,
        4.69135806198,
        4.76210259598,
        5.03048118598,
        4.75801822998,
        4.71548463198,
        4.68837454698,
        4.69548069398
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.775493881079999,
      "stddev": 0.12483424491600828,
      "median": 4.75712252748,
      "user": 2.80099308,
      "system": 2.0614505999999997,
      "min": 4.59250027498,
      "max": 5.06992673198,
      "times": [
        4.79562254698,
        4.70755771098,
        4.70393250498,
        5.06992673198,
        4.77496384398,
        4.85339187598,
        4.72724476398,
        4.73928121098,
        4.79051734598,
        4.59250027498
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.6670685339799993,
      "stddev": 0.17609692958750675,
      "median": 3.58925076248,
      "user": 1.51107938,
      "system": 1.4397017,
      "min": 3.49410604698,
      "max": 3.9347466439799996,
      "times": [
        3.64237755998,
        3.83028294998,
        3.8440208059799996,
        3.9347466439799996,
        3.51092490798,
        3.5336124599799996,
        3.49965959898,
        3.49410604698,
        3.84483040098,
        3.53612396498
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.5597981338799998,
      "stddev": 0.06755293034013561,
      "median": 3.54547144848,
      "user": 1.34706668,
      "system": 1.363354,
      "min": 3.47417592898,
      "max": 3.68251300098,
      "times": [
        3.5976967429799998,
        3.55774335398,
        3.48046022598,
        3.68251300098,
        3.47417592898,
        3.64698815098,
        3.52372481398,
        3.5265480659799997,
        3.53319954298,
        3.57493151198
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13535
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,657.55 ms
(-1.97%)Baseline: 2,711.00 ms
3,253.20 ms
(81.69%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,821.03 ms
(-1.83%)Baseline: 1,854.97 ms
2,225.96 ms
(81.81%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
490.88 ms
(-3.63%)Baseline: 509.38 ms
611.25 ms
(80.31%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
195.05 ms
(-20.55%)Baseline: 245.51 ms
294.61 ms
(66.21%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,516.80 ms
(+3.18%)Baseline: 2,439.16 ms
2,926.99 ms
(85.99%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,640.13 ms
(+2.35%)Baseline: 4,533.65 ms
5,440.38 ms
(85.29%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
270.95 ms
(-6.54%)Baseline: 289.92 ms
347.91 ms
(77.88%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13535
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,457.26 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
348.13 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
341.05 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
91.18 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,408.74 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,494.11 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
289.18 ms
🐰 View full continuous benchmarking report in Bencher

zkochan added a commit that referenced this pull request Jul 31, 2026
The lockfile pinned `@types/[email protected]` as the hoisted optional peer of
every `@inquirer/prompts` consumer, next to the `22.20.1` the workspace
catalog pins with `^22.19.19`. That is the bug 71a4934 fixed:
`getHoistableOptionalPeers` used to maximize over every version in the
graph instead of bounding its candidates by the workspace root's own
specifier, so an optional peer declared as `*` pulled in the newest
version any importer had resolved.

The entries came in with 7f81da3, six days after that fix landed,
because the install that wrote them ran pnpm 12.0.0-alpha.21 — published
before the fix — rather than the pinned 12.0.0-beta.2. Replaying that
commit's inputs with alpha.21 reproduces its lockfile byte for byte,
while beta.1, beta.2, and the TypeScript CLI at 11.18.0 all produce
`22.20.1`.

So every full re-resolution rewrites those 80 lines, and unrelated pull
requests pick the correction up as soon as one of their manifest changes
forces one — in #13535 it accounts for most of the lockfile
diff. Re-resolving here keeps it out of the next PR that touches a
manifest. No product code changes: the resolver fix is already in.
@zkochan
zkochan merged commit d3556f6 into main Jul 31, 2026
38 checks passed
@zkochan
zkochan deleted the rename-pkgs branch July 31, 2026 21:00
zkochan added a commit that referenced this pull request Jul 31, 2026
The lockfile pinned `@types/[email protected]` as the hoisted optional peer of
every `@inquirer/prompts` consumer, next to the `22.20.1` the workspace
catalog pins with `^22.19.19`. That is the bug 71a4934 fixed:
`getHoistableOptionalPeers` used to maximize over every version in the
graph instead of bounding its candidates by the workspace root's own
specifier, so an optional peer declared as `*` pulled in the newest
version any importer had resolved.

The entries came in with 7f81da3, six days after that fix landed,
because the install that wrote them ran pnpm 12.0.0-alpha.21 — published
before the fix — rather than the pinned 12.0.0-beta.2. Replaying that
commit's inputs with alpha.21 reproduces its lockfile byte for byte,
while beta.1, beta.2, and the TypeScript CLI at 11.18.0 all produce
`22.20.1`.

So every full re-resolution rewrites those 80 lines, and unrelated pull
requests pick the correction up as soon as one of their manifest changes
forces one — in #13535 it accounts for most of the lockfile
diff. Re-resolving here keeps it out of the next PR that touches a
manifest. No product code changes: the resolver fix is already in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pnpm@11 reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants