Repository navigation
refactor(text): move lexCompare and nerfDart into the monorepo - #13535
Conversation
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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe change adds local ChangesUtility package consolidation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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
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. Comment |
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "docs(registry-auth-key): clarify the npm..." | Re-trigger Greptile |
PR Summary by Qodorefactor(text): vendor lexCompare and nerfDart as monorepo packages
AI Description
Diagram
High-Level Assessment
Files changed (98)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. Node types major drift
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
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
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml,!pnpm-lock.yaml
📒 Files selected for processing (97)
.changeset/inline-string-and-npmrc-key-utils.mdpnpm-workspace.yamlpnpm11/building/commands/package.jsonpnpm11/building/commands/src/policy/approveBuilds.tspnpm11/building/commands/tsconfig.jsonpnpm11/cli/default-reporter/package.jsonpnpm11/cli/default-reporter/src/reporterForClient/reportIgnoredBuilds.tspnpm11/cli/default-reporter/tsconfig.jsonpnpm11/config/reader/package.jsonpnpm11/config/reader/src/loadNpmrcFiles.tspnpm11/config/reader/tsconfig.jsonpnpm11/config/registry-auth-key/README.mdpnpm11/config/registry-auth-key/package.jsonpnpm11/config/registry-auth-key/src/index.tspnpm11/config/registry-auth-key/test/index.test.tspnpm11/config/registry-auth-key/test/tsconfig.jsonpnpm11/config/registry-auth-key/tsconfig.jsonpnpm11/config/registry-auth-key/tsconfig.lint.jsonpnpm11/deps/inspection/list/package.jsonpnpm11/deps/inspection/list/src/renderTree.tspnpm11/deps/inspection/list/tsconfig.jsonpnpm11/deps/inspection/tree-builder/package.jsonpnpm11/deps/inspection/tree-builder/src/buildDependentsTree.tspnpm11/deps/inspection/tree-builder/src/getTree.tspnpm11/deps/inspection/tree-builder/tsconfig.jsonpnpm11/engine/runtime/bun-resolver/package.jsonpnpm11/engine/runtime/bun-resolver/src/index.tspnpm11/engine/runtime/bun-resolver/tsconfig.jsonpnpm11/engine/runtime/deno-resolver/package.jsonpnpm11/engine/runtime/deno-resolver/src/index.tspnpm11/engine/runtime/deno-resolver/tsconfig.jsonpnpm11/exec/commands/package.jsonpnpm11/exec/commands/src/dlx.tspnpm11/exec/commands/tsconfig.jsonpnpm11/fetching/directory-fetcher/package.jsonpnpm11/fetching/directory-fetcher/test/index.tspnpm11/fetching/directory-fetcher/tsconfig.jsonpnpm11/fetching/git-fetcher/package.jsonpnpm11/fetching/git-fetcher/test/index.tspnpm11/fetching/git-fetcher/tsconfig.jsonpnpm11/fetching/tarball-fetcher/package.jsonpnpm11/fetching/tarball-fetcher/test/fetch.tspnpm11/fetching/tarball-fetcher/tsconfig.jsonpnpm11/global/commands/package.jsonpnpm11/global/commands/src/listGlobalPackages.tspnpm11/global/commands/tsconfig.jsonpnpm11/global/packages/package.jsonpnpm11/global/packages/src/cacheKey.tspnpm11/global/packages/tsconfig.jsonpnpm11/installing/commands/package.jsonpnpm11/installing/commands/src/handleIgnoredBuilds.tspnpm11/installing/commands/src/update/generateUpdateChangeset.tspnpm11/installing/commands/tsconfig.jsonpnpm11/installing/deps-installer/package.jsonpnpm11/installing/deps-installer/src/install/index.tspnpm11/installing/deps-installer/tsconfig.jsonpnpm11/installing/deps-resolver/package.jsonpnpm11/installing/deps-resolver/src/hoistPeers.tspnpm11/installing/deps-resolver/src/resolveDependencies.tspnpm11/installing/deps-resolver/tsconfig.jsonpnpm11/installing/linking/hoist/package.jsonpnpm11/installing/linking/hoist/src/index.tspnpm11/installing/linking/hoist/tsconfig.jsonpnpm11/network/auth-header/package.jsonpnpm11/network/auth-header/src/index.tspnpm11/network/auth-header/tsconfig.jsonpnpm11/network/fetch/package.jsonpnpm11/network/fetch/src/dispatcher.tspnpm11/network/fetch/tsconfig.jsonpnpm11/object/key-sorting/package.jsonpnpm11/object/key-sorting/src/index.tspnpm11/object/key-sorting/tsconfig.jsonpnpm11/pnpm/package.jsonpnpm11/pnpm/src/getConfig.tspnpm11/pnpm/test/install/misc.tspnpm11/pnpm/tsconfig.jsonpnpm11/store/commands/package.jsonpnpm11/store/commands/src/inspecting/catIndex.tspnpm11/store/commands/tsconfig.jsonpnpm11/text/ordinal-comparator/README.mdpnpm11/text/ordinal-comparator/package.jsonpnpm11/text/ordinal-comparator/src/index.tspnpm11/text/ordinal-comparator/test/index.test.tspnpm11/text/ordinal-comparator/test/tsconfig.jsonpnpm11/text/ordinal-comparator/tsconfig.jsonpnpm11/text/ordinal-comparator/tsconfig.lint.jsonpnpm11/workspace/injected-deps-syncer/package.jsonpnpm11/workspace/injected-deps-syncer/test/DirPatcher.test.tspnpm11/workspace/injected-deps-syncer/test/applyPatch.test.tspnpm11/workspace/injected-deps-syncer/tsconfig.jsonpnpm11/workspace/projects-reader/package.jsonpnpm11/workspace/projects-reader/src/findPackages.tspnpm11/workspace/projects-reader/src/index.tspnpm11/workspace/projects-reader/tsconfig.jsonpnpm11/workspace/workspace-manifest-writer/package.jsonpnpm11/workspace/workspace-manifest-writer/src/index.tspnpm11/workspace/workspace-manifest-writer/tsconfig.json
💤 Files with no reviewable changes (1)
- pnpm-workspace.yaml
|
Notes on the two Qodo findings:
The lockfile churn beyond the rename exists because removing the two catalog entries re-resolves the catalog-sourced dependencies. Documenting that Written by an agent (Claude Code, claude-opus-5[1m]). |
|
Code review by qodo was updated up to the latest commit a4d0ada |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Integrated-Benchmark Report (Linux)Commit: 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
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
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
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
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
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
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
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
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13535 |
| Testbed | pnpr |
⚠️ 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-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,457.26 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 348.13 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 341.05 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 91.18 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,408.74 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,494.11 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 289.18 ms |
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.
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.
Summary
lexCompareandnerfDartlived 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:@pnpm/util.lex-comparator@pnpm/text.ordinal-comparatorpnpm11/text/ordinal-comparator@pnpm/config.nerf-dart@pnpm/config.registry-auth-keypnpm11/config/registry-auth-keyThe comparator is ordinal rather than locale-aware, and what
nerfDartreturns 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
localeComparecannot be used for values that are compared across machines, and wherenerfDartcomes from.The 25 consuming packages now depend on the new packages through
workspace:*, and the two catalog entries are gone frompnpm-workspace.yaml.Follow-ups outside this repository: remove the two components from
pnpm/components, and deprecate@pnpm/util.lex-comparatorand@pnpm/config.nerf-darton npm pointing at the new names — both have outside consumers, so they should not just disappear.Squash Commit Body
Checklist
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.)
pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Claude Code, claude-opus-5[1m]).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Tests