Repository navigation
chore(release): stop publishing @pnpm/exe from v12 - #14121
Conversation
Up to v11, `@pnpm/exe` was the build of pnpm that bundled a Node.js runtime, so it ran where the JavaScript `pnpm` package could not. From v12 the `pnpm` package is itself the native executable and needs no Node.js, which left `@pnpm/exe` an equal-content copy of it, published and dist-tagged for nothing. generate-packages.mjs no longer emits the `pnpm-exe` wrapper dir, and release.yml no longer packs or stages it. The per-platform `@pnpm/exe.<target>` native packages are unchanged: they carry the binaries the `pnpm` wrapper resolves. update-latest.yml would have failed on the first v12 promotion, since it unconditionally installs and dist-tags `@pnpm/exe` at the promoted version. Both sites now pick the wrapper by major. The upgrade check gates on the *starting* version so upgrading a v11 `@pnpm/exe` onto a v12 release is still covered, and it gained `--allow-build=pnpm` because from v12 the preinstall that swaps the placeholder bin for the native one lives on the `pnpm` package -- without it that check would have validated a placeholder. No runtime code changes: both stacks' package-to-install selection already converges on `pnpm` for major >= 12, the update notifier already prints `pnpm`, and `@pnpm/exe` stays in the bin-resolver and global-alias lists so v11-and-earlier installs keep working. Only the comments that justified those behaviors with "published under both names" needed correcting.
PR Summary by QodoStop publishing
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
|
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughChangespnpm v12 executable publication
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change stops publishing the redundant v12 Sequence Diagram(s)sequenceDiagram
participant ReleaseWorkflow
participant Registry
participant UpdateVerification
ReleaseWorkflow->>Registry: Publish pnpm native package
UpdateVerification->>Registry: Select wrappers by starting major
Registry-->>UpdateVerification: Return pnpm and, below v12, `@pnpm/exe`
UpdateVerification->>UpdateVerification: Allow native build for the selected wrapper
Suggested labels: ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Micro-Benchmark ResultsLinux |
Code Review by Qodo
1. Historical versioning comments
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Thanks — went through the three Qodo rule violations. None of them warrant a change, reasoning below. 1. "Changeset omits 2. "Historical versioning comments" — false positive. if (parsed != null && parsed.major >= 12) return 'pnpm'
return getCurrentPackageName()The rule targets "the previous code did X" framing. A contract that is version-parameterized has to name the versions, and both stacks' comments describe what the code does today for every input it accepts. The phrasing also predates this PR — only the parenthetical was rewritten. 3. "Changeset lacks
The implementation here is the Rust package generator plus shared release workflows; the TypeScript CLI's behavior is unchanged. Written by an agent (Claude Code, claude-opus-5[1m]). |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14121 +/- ##
==========================================
- Coverage 88.59% 88.59% -0.01%
==========================================
Files 676 676
Lines 113716 113716
==========================================
- Hits 100748 100747 -1
- Misses 12968 12969 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "docs(changeset): trim the release note t..." | Re-trigger Greptile |
The note carried the wrapper architecture, the platform-package layout, and how self-update resolves the engine -- rationale that belongs in the commit message, not in what users read on the release page. Reduced to what changed and what to do about it.
|
Code review by qodo was updated up to the latest commit 90ddaa7 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Integrated-Benchmark Report (Linux)Commit: Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. 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.35467393378,
"stddev": 0.10938329138945398,
"median": 2.3218040394800004,
"user": 1.1870896599999998,
"system": 1.30525858,
"min": 2.24503136748,
"max": 2.5491983414800004
},
{
"command": "pacquet@main",
"mean": 2.35542496068,
"stddev": 0.14058475745450044,
"median": 2.28286889548,
"user": 1.1903450599999998,
"system": 1.3164043799999998,
"min": 2.2479285844800003,
"max": 2.6266739294800003
},
{
"command": "pnpr@HEAD",
"mean": 1.3962460863800001,
"stddev": 0.11884959102071622,
"median": 1.31600662698,
"user": 1.11400776,
"system": 1.22178308,
"min": 1.29316823048,
"max": 1.58095786348
},
{
"command": "pnpr@main",
"mean": 1.4179017650799999,
"stddev": 0.12569236689956478,
"median": 1.3568580744799998,
"user": 1.14306126,
"system": 1.2189647799999999,
"min": 1.30326560748,
"max": 1.67643969248
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.26163889934,
"stddev": 0.006226684434680997,
"median": 0.26457049154,
"user": 0.2092448,
"system": 0.46899109999999994,
"min": 0.25140733354,
"max": 0.26829779754
},
{
"command": "pacquet@main",
"mean": 0.26094126924000005,
"stddev": 0.00976101379300305,
"median": 0.26237252104000003,
"user": 0.21325539999999998,
"system": 0.45953109999999997,
"min": 0.23892865054,
"max": 0.27536210354
},
{
"command": "pnpr@HEAD",
"mean": 0.28008872953999997,
"stddev": 0.009037947921442175,
"median": 0.27888276604,
"user": 0.21696339999999997,
"system": 0.494522,
"min": 0.26988679754,
"max": 0.30050926154
},
{
"command": "pnpr@main",
"mean": 0.28558493354,
"stddev": 0.010081695497829059,
"median": 0.28259801354,
"user": 0.21627229999999997,
"system": 0.5112506,
"min": 0.27411080654000003,
"max": 0.30706938154
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.006326340574931132,
"stddev": 0.0004300101831262034,
"median": 0.006315449900000001,
"user": 0.00351366038567493,
"system": 0.0028541652341597824,
"min": 0.0053139869000000005,
"max": 0.0093075329
},
{
"command": "pacquet@main",
"mean": 0.006260918730882356,
"stddev": 0.0003220477503645053,
"median": 0.0063132109,
"user": 0.003668315000000002,
"system": 0.0026409588725490214,
"min": 0.0053849109000000004,
"max": 0.007303535900000001
},
{
"command": "pnpr@HEAD",
"mean": 0.0059913474866336676,
"stddev": 0.0003285701671651553,
"median": 0.0059535194,
"user": 0.0034617073267326722,
"system": 0.0025771137623762375,
"min": 0.005246270900000001,
"max": 0.0070155349
},
{
"command": "pnpr@main",
"mean": 0.006138559876851857,
"stddev": 0.00033689913465129737,
"median": 0.006146296900000001,
"user": 0.0035037779629629616,
"system": 0.002679804166666664,
"min": 0.0053442049,
"max": 0.0071825289
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.00637874172294617,
"stddev": 0.00038977114707068676,
"median": 0.0063407224,
"user": 0.0035589032294617564,
"system": 0.002831330651558073,
"min": 0.005626679400000001,
"max": 0.0094049214
},
{
"command": "pacquet@main",
"mean": 0.006334636344927535,
"stddev": 0.00028909050377815796,
"median": 0.0063159254,
"user": 0.0034464973913043463,
"system": 0.0029050430144927524,
"min": 0.0056861724,
"max": 0.0081568654
},
{
"command": "pnpr@HEAD",
"mean": 0.0063697068424778775,
"stddev": 0.00030178346063038667,
"median": 0.006391617400000001,
"user": 0.0036467372271386396,
"system": 0.002742297227138643,
"min": 0.0055191184,
"max": 0.0077510524
},
{
"command": "pnpr@main",
"mean": 0.0064228242288288315,
"stddev": 0.0002882108925155331,
"median": 0.0064697144,
"user": 0.00364890162162162,
"system": 0.0027886942942942938,
"min": 0.0056040073999999995,
"max": 0.0076732364
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.6994606885800003,
"stddev": 0.00908264595751397,
"median": 2.70063280768,
"user": 1.5278840399999996,
"system": 1.2518465199999997,
"min": 2.68594565368,
"max": 2.71626192168
},
{
"command": "pacquet@main",
"mean": 2.6915981613799995,
"stddev": 0.012468769786153577,
"median": 2.69555648218,
"user": 1.4906060399999999,
"system": 1.2552755199999999,
"min": 2.6712628576800004,
"max": 2.71349807268
},
{
"command": "pnpr@HEAD",
"mean": 1.5493315104799998,
"stddev": 0.1230707988551288,
"median": 1.56339263468,
"user": 1.0826340399999999,
"system": 1.2531537199999998,
"min": 1.39795799668,
"max": 1.71580707168
},
{
"command": "pnpr@main",
"mean": 1.51063700178,
"stddev": 0.10253832654076954,
"median": 1.47042243618,
"user": 1.0173350399999999,
"system": 1.31204832,
"min": 1.39795878868,
"max": 1.7046177116799999
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.39058856742000003,
"stddev": 0.011408774196362525,
"median": 0.39153160992,
"user": 0.4146104799999999,
"system": 0.6194107599999998,
"min": 0.37421371242000007,
"max": 0.40493059342000004
},
{
"command": "pacquet@main",
"mean": 0.38131953252,
"stddev": 0.01589439393593853,
"median": 0.38380602992,
"user": 0.41947038000000003,
"system": 0.6076322599999999,
"min": 0.35466068242000004,
"max": 0.40530768042000004
},
{
"command": "pnpr@HEAD",
"mean": 0.31634548012,
"stddev": 0.006732525260024569,
"median": 0.31777715592000005,
"user": 0.19553507999999997,
"system": 0.5029425599999999,
"min": 0.30633871242000005,
"max": 0.32582329342000005
},
{
"command": "pnpr@main",
"mean": 0.31327300682000003,
"stddev": 0.005029282241092476,
"median": 0.31474015842,
"user": 0.19284208,
"system": 0.48073205999999996,
"min": 0.30541399542000003,
"max": 0.32226626842000006
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.83362290088,
"stddev": 0.014148835245922085,
"median": 1.8276458287800001,
"user": 0.6632798400000001,
"system": 0.6838936800000001,
"min": 1.81743117178,
"max": 1.8535026457800001
},
{
"command": "pacquet@main",
"mean": 1.83152057228,
"stddev": 0.013726014146821933,
"median": 1.83116082078,
"user": 0.62768704,
"system": 0.70657748,
"min": 1.81273642778,
"max": 1.8488756517800002
},
{
"command": "pnpr@HEAD",
"mean": 0.31690240498,
"stddev": 0.003884406092995623,
"median": 0.31622890228,
"user": 0.19453784,
"system": 0.50499548,
"min": 0.31111537578000004,
"max": 0.32402683278000005
},
{
"command": "pnpr@main",
"mean": 0.31405550508,
"stddev": 0.005469081427098569,
"median": 0.31426256578,
"user": 0.19922213999999996,
"system": 0.49635938,
"min": 0.30723162678000004,
"max": 0.32380179078000004
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2215025083145455,
"stddev": 0.01758577242758128,
"median": 0.21783196986000003,
"user": 0.15786719999999999,
"system": 0.05456475272727273,
"min": 0.19109367486000003,
"max": 0.24679754086000003
},
{
"command": "pacquet@main",
"mean": 0.22047556669333337,
"stddev": 0.016872769705241035,
"median": 0.21762586236000003,
"user": 0.15736795,
"system": 0.061588646666666656,
"min": 0.19885095486,
"max": 0.25607767286000005
},
{
"command": "pnpr@HEAD",
"mean": 0.09647941865310346,
"stddev": 0.002052729523261761,
"median": 0.09707575686,
"user": 0.029456682758620692,
"system": 0.008813,
"min": 0.09195209686,
"max": 0.09950594486
},
{
"command": "pnpr@main",
"mean": 0.09399114606,
"stddev": 0.0023776823288676023,
"median": 0.09300415936,
"user": 0.0255866,
"system": 0.011607513333333331,
"min": 0.09172032186000001,
"max": 0.10006638886000001
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5179583609266667,
"stddev": 0.07541646051347714,
"median": 0.50503977826,
"user": 0.4849267155555555,
"system": 0.10027620666666666,
"min": 0.42681621726,
"max": 0.62862154226
},
{
"command": "pacquet@main",
"mean": 0.5156560404822224,
"stddev": 0.11947621680945825,
"median": 0.53728403226,
"user": 0.4858687155555556,
"system": 0.09989820666666666,
"min": 0.27443001626,
"max": 0.6451307322600001
},
{
"command": "pnpm@HEAD",
"mean": 2.9605128533711116,
"stddev": 0.07947292064388432,
"median": 2.9693950192600003,
"user": 4.525843604444444,
"system": 0.2638073177777778,
"min": 2.85471922526,
"max": 3.05599626826
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.41605238352,
"stddev": 0.1628016258226746,
"median": 4.3270527454200005,
"user": 1.2970357399999997,
"system": 1.4065642200000001,
"min": 4.27279350542,
"max": 4.72865871442
},
{
"command": "pacquet@main",
"mean": 4.35307933122,
"stddev": 0.05670151250755847,
"median": 4.35645488692,
"user": 1.3065261400000001,
"system": 1.3798082199999997,
"min": 4.28770157442,
"max": 4.46464031142
},
{
"command": "pnpr@HEAD",
"mean": 3.4658853350200003,
"stddev": 0.14141956560095625,
"median": 3.43090492492,
"user": 1.22286774,
"system": 1.3717020199999999,
"min": 3.34605500842,
"max": 3.78935426142
},
{
"command": "pnpr@main",
"mean": 3.4171649642200004,
"stddev": 0.08733527816416391,
"median": 3.3700843654200003,
"user": 1.2168710399999998,
"system": 1.3288975200000004,
"min": 3.35057348042,
"max": 3.60990178642
}
]
}Scenario: GVS linker: fresh restore, hot cache + hot storeSame install as the isolated fresh-restore hot/hot scenario, into the shared virtual store — the layout pnpm 12 installs into by default. Comparable to that scenario head-to-head.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.16077178507764706,
"stddev": 0.00299713048309274,
"median": 0.16150945396000002,
"user": 0.1907142729411765,
"system": 0.18355178941176464,
"min": 0.15477612896,
"max": 0.16482081796
},
{
"command": "pacquet@main",
"mean": 0.16395683977249997,
"stddev": 0.006831899643040487,
"median": 0.16250840096000002,
"user": 0.18760867,
"system": 0.19225926,
"min": 0.15678952196,
"max": 0.18624426196000002
},
{
"command": "pnpr@HEAD",
"mean": 0.17758256729333335,
"stddev": 0.002916731083906277,
"median": 0.17806069196000002,
"user": 0.19983178666666665,
"system": 0.19215465999999998,
"min": 0.16906855096,
"max": 0.18153241696
},
{
"command": "pnpr@main",
"mean": 0.17264372356,
"stddev": 0.0034337826066794396,
"median": 0.17373945996,
"user": 0.19941832000000004,
"system": 0.18362959333333329,
"min": 0.16534169696,
"max": 0.17834073796
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/14121 |
| 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) |
|---|---|---|
| gvs-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 169.07 ms |
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,397.96 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 311.12 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 306.34 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 91.95 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,293.17 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,346.06 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 269.89 ms |
| isolated-linker.repeat-install.cold-cache.hot-store | 📈 view plot | 5.52 ms |
| isolated-linker.repeat-install.hot-cache.hot-store | 📈 view plot | 5.25 ms |
Summary
Stops publishing the
@pnpm/exenpm package from the v12 (Rust) release.Up to v11,
@pnpm/exewas the build of pnpm that bundled a Node.js runtime, so it ran where the JavaScriptpnpmpackage could not. From v12 thepnpmpackage is itself the native executable and needs no Node.js, which left@pnpm/exean equal-content copy of it — published, dist-tagged, and approved on every release for nothing.Scope is the v12 alias only. The v11 TypeScript
@pnpm/exeartifact keeps releasing unchanged, and so do the per-platform@pnpm/exe.<target>packages that carry the native binaries thepnpmwrapper resolves.Both stacks already assumed this:
pnpmPackageNameToInstall/pnpm_package_to_installconverge onpnpmfor major >= 12 regardless of which wrapper is running, and the update notifier already printspnpm.@pnpm/exestays in the bin resolver and the global-alias lists so v11-and-earlier installs keep working.update-latest.ymlwould have failed on the first v12 promotion — it unconditionally installs and dist-tags@pnpm/exeat the promoted version — so this fixes that too.Squash Commit Body
Follow-ups outside this PR
@pnpm/execurrently carriesnext-12: 12.0.0-rc.9on npm. Left alone, that tag freezes at rc.9 and anyone tracking it silently stops getting updates. Worth removing thenext-12tag and deprecating the published 12.x versions with a pointer topnpm.latestis at 11.23.0 and needs nothing.Checklist
pnpm/port, or the description notes what still needs porting.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
pnpmpackage.pnpm self-update; no action is required.Documentation
Bug Fixes