Repository navigation
Conversation
…major When minimumReleaseAge drops the version a stable dist-tag points to, the tag used to move only to stable versions, so `latest` on a freshly released 1.0.0 fell back to an ancient 0.0.1 even though 1.0.0-beta.4 had been `latest` until then. A prerelease of the target's major that precedes it now ranks above a stable version of a lower major. A stable version of the same major still wins, and non-deprecated versions still win over deprecated ones. Fixed in both the Rust resolver and the TypeScript metadata filter. Closes #16388 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Warning Review limit reachedNext included review available in 5 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: pnpm/pnpm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pnpm/pnpm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe Rust resolver and TypeScript metadata filter now rank eligible dist-tag replacements by candidate tier before version. Tests cover fallback choices for prerelease, stable, and deprecated candidates. A changeset declares patch releases for three packages. ChangesRelease-age fallback
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Assessment against linked issues
Suggested labels: Merge Risk: ⚪ Minimal · up to The release-age fallback change is mergeable after normal checks; no concrete merge-blocking issue was identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change can alter which package version a tag installs, but the reviewed paths select from versions that already passed the release-age policy. No new policy bypass or cross-package access was identified. Some broader security coverage remains incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16407 +/- ##
=======================================
Coverage 92.16% 92.16%
=======================================
Files 1516 1516
Lines 204012 204032 +20
=======================================
+ Hits 188024 188054 +30
+ Misses 15988 15978 -10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Same-run regression checkHEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval. Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.
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; the linked-workspace scenario compares current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.79654569894,
"stddev": 0.20077642261133946,
"median": 2.78490854454,
"user": 2.30276928,
"system": 2.2989938000000003,
"min": 2.48966317404,
"max": 3.1188075120399996
},
{
"command": "pacquet@main",
"mean": 2.7247522889400004,
"stddev": 0.1822380020008234,
"median": 2.7583558985399996,
"user": 2.31574798,
"system": 2.2196488000000003,
"min": 2.49288184404,
"max": 2.93246165504
},
{
"command": "pnpr@HEAD",
"mean": 1.71678934874,
"stddev": 0.12693596251283468,
"median": 1.74922219204,
"user": 1.9418673799999997,
"system": 1.841705,
"min": 1.4190650930400002,
"max": 1.8441851630400001
},
{
"command": "pnpr@main",
"mean": 1.60338184294,
"stddev": 0.12401890527163369,
"median": 1.55475106404,
"user": 1.95605028,
"system": 2.0371278000000004,
"min": 1.43551112204,
"max": 1.8200841120400002
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2901493486000001,
"stddev": 0.024041083624281794,
"median": 0.2849756283,
"user": 0.33553259999999996,
"system": 0.66259842,
"min": 0.2586400533,
"max": 0.34262568730000004
},
{
"command": "pacquet@main",
"mean": 0.256936135,
"stddev": 0.02579513554211515,
"median": 0.2536847888,
"user": 0.27604439999999997,
"system": 0.61887142,
"min": 0.22999153530000002,
"max": 0.3211339493
},
{
"command": "pnpr@HEAD",
"mean": 0.2867036395,
"stddev": 0.03258005692884897,
"median": 0.27490124530000004,
"user": 0.3177617,
"system": 0.65154482,
"min": 0.2500892873,
"max": 0.3413270083
},
{
"command": "pnpr@main",
"mean": 0.3008048736,
"stddev": 0.032132115510783835,
"median": 0.2920001053,
"user": 0.3324465,
"system": 0.65858452,
"min": 0.2675309193,
"max": 0.37549494130000005
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.012609281139161673,
"stddev": 0.0013895338630453352,
"median": 0.012488788720000001,
"user": 0.007437013892215569,
"system": 0.006637352574850303,
"min": 0.00996018272,
"max": 0.016972236720000002
},
{
"command": "pacquet@main",
"mean": 0.011862156572380957,
"stddev": 0.0015296039703152247,
"median": 0.01177045472,
"user": 0.007024231428571427,
"system": 0.0062835418095238075,
"min": 0.00886023172,
"max": 0.019402734720000002
},
{
"command": "pnpr@HEAD",
"mean": 0.011968589392199169,
"stddev": 0.0013588750633505597,
"median": 0.01179255972,
"user": 0.0063448645643153535,
"system": 0.007030161991701246,
"min": 0.00898615172,
"max": 0.01615824672
},
{
"command": "pnpr@main",
"mean": 0.012087549201632653,
"stddev": 0.001255183963724878,
"median": 0.01192644172,
"user": 0.006936690612244898,
"system": 0.00657611632653061,
"min": 0.00917145272,
"max": 0.01546912672
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.016717948195328458,
"stddev": 0.0030210537555093076,
"median": 0.01641703248,
"user": 0.008393710218978105,
"system": 0.009823554890510944,
"min": 0.01096745648,
"max": 0.02462131248
},
{
"command": "pacquet@main",
"mean": 0.016707062525045047,
"stddev": 0.00302717124860517,
"median": 0.01613314948,
"user": 0.008922305405405406,
"system": 0.009315410630630629,
"min": 0.01194355648,
"max": 0.02397874348
},
{
"command": "pnpr@HEAD",
"mean": 0.016172489979999993,
"stddev": 0.0028718322445121743,
"median": 0.015596966480000002,
"user": 0.00886825,
"system": 0.008833319428571428,
"min": 0.01027186148,
"max": 0.02629932748
},
{
"command": "pnpr@main",
"mean": 0.018329043934545444,
"stddev": 0.0044752168303835455,
"median": 0.01724487898,
"user": 0.009443055844155848,
"system": 0.01043931701298701,
"min": 0.01229969048,
"max": 0.033931874480000006
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.30773164502,
"stddev": 0.14606925752344754,
"median": 3.2562845637200004,
"user": 3.79752358,
"system": 2.7591702199999997,
"min": 3.11965011272,
"max": 3.52901406272
},
{
"command": "pacquet@main",
"mean": 3.10315353852,
"stddev": 0.12837663605933414,
"median": 3.14480062172,
"user": 3.37755868,
"system": 2.5378840199999995,
"min": 2.85863987772,
"max": 3.2144129877200003
},
{
"command": "pnpr@HEAD",
"mean": 1.77340338602,
"stddev": 0.10892710163489742,
"median": 1.7579587917200001,
"user": 2.0128157799999995,
"system": 2.1076856199999994,
"min": 1.58580637472,
"max": 1.9613059237200001
},
{
"command": "pnpr@main",
"mean": 1.6974177919200002,
"stddev": 0.11765050456483679,
"median": 1.67578992022,
"user": 1.81845778,
"system": 1.8877872199999999,
"min": 1.55979751772,
"max": 1.94099469872
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.68628570926,
"stddev": 0.08999880206554665,
"median": 0.6759777142600001,
"user": 0.97221046,
"system": 1.0334712,
"min": 0.53961970226,
"max": 0.81734148226
},
{
"command": "pacquet@main",
"mean": 0.6019658936600001,
"stddev": 0.04952447344985204,
"median": 0.59818721476,
"user": 0.8871365600000001,
"system": 0.8937582,
"min": 0.55253196926,
"max": 0.70146483926
},
{
"command": "pnpr@HEAD",
"mean": 0.40527882286000005,
"stddev": 0.039862487923164665,
"median": 0.39146028226000007,
"user": 0.37215055999999996,
"system": 0.7522737999999999,
"min": 0.36864544126000004,
"max": 0.49123186626000004
},
{
"command": "pnpr@main",
"mean": 0.42219179795999995,
"stddev": 0.041126420289848836,
"median": 0.42236725576,
"user": 0.38458625999999996,
"system": 0.7783032999999999,
"min": 0.36549910526,
"max": 0.47709942026
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.8200989959399998,
"stddev": 0.05410719906734012,
"median": 1.8242368768400001,
"user": 1.29695558,
"system": 1.2783708599999997,
"min": 1.73398482134,
"max": 1.94010903134
},
{
"command": "pacquet@main",
"mean": 1.8698624355400004,
"stddev": 0.06147090888552733,
"median": 1.8629030423400001,
"user": 1.3812613800000002,
"system": 1.3599464599999997,
"min": 1.7398462853399999,
"max": 1.95814412834
},
{
"command": "pnpr@HEAD",
"mean": 0.40803355864,
"stddev": 0.04051901877089258,
"median": 0.39828073384,
"user": 0.37220007999999993,
"system": 0.9013495600000001,
"min": 0.36439604034,
"max": 0.5120612133400001
},
{
"command": "pnpr@main",
"mean": 0.41092736094,
"stddev": 0.021128240138563747,
"median": 0.41773620484,
"user": 0.37665817999999995,
"system": 0.8532510599999998,
"min": 0.37124698934,
"max": 0.43636842834
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.30363937402,
"stddev": 0.044186018332446696,
"median": 0.29449110172000004,
"user": 0.3051217599999999,
"system": 0.12044756000000001,
"min": 0.24887343522000002,
"max": 0.37487728222000005
},
{
"command": "pacquet@main",
"mean": 0.25541730967454546,
"stddev": 0.023954231658154464,
"median": 0.25246399222000004,
"user": 0.24054762363636362,
"system": 0.0975596509090909,
"min": 0.21389936122000003,
"max": 0.30128970322000004
},
{
"command": "pnpr@HEAD",
"mean": 0.09648810001310346,
"stddev": 0.0030773138000771334,
"median": 0.09696212322000002,
"user": 0.03675177724137932,
"system": 0.016211870344827583,
"min": 0.09170541822000002,
"max": 0.10397537122000002
},
{
"command": "pnpr@main",
"mean": 0.09532728394413793,
"stddev": 0.005347983382464325,
"median": 0.09483222522000001,
"user": 0.035330087586206885,
"system": 0.014485264827586207,
"min": 0.08832918622000001,
"max": 0.11978127622000001
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.34608543754444443,
"stddev": 0.038062419968012136,
"median": 0.33310334810000003,
"user": 0.37407263555555553,
"system": 0.08069108222222221,
"min": 0.3117686671,
"max": 0.43525268710000004
},
{
"command": "pacquet@main",
"mean": 0.3581969416555556,
"stddev": 0.046217854670312704,
"median": 0.34424535310000004,
"user": 0.38019296888888887,
"system": 0.08433763777777777,
"min": 0.29181503810000003,
"max": 0.42551076810000005
},
{
"command": "pnpm@HEAD",
"mean": 3.714469872655556,
"stddev": 0.21667167361953013,
"median": 3.6634602231,
"user": 5.628208302222221,
"system": 0.2889094155555555,
"min": 3.4982365631,
"max": 4.1878442611
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2665524233466667,
"stddev": 0.03412761291952584,
"median": 0.25435161218,
"user": 0.21529575666666664,
"system": 0.10562147666666666,
"min": 0.23435514368000002,
"max": 0.34287064268
},
{
"command": "pacquet@main",
"mean": 0.25628235158909085,
"stddev": 0.01423861757666493,
"median": 0.25948847168,
"user": 0.20873202181818182,
"system": 0.1025704690909091,
"min": 0.23282267468,
"max": 0.27402274968
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 5.042874118239999,
"stddev": 0.348803422016463,
"median": 4.98030842314,
"user": 2.6771741600000003,
"system": 2.44727362,
"min": 4.59567518414,
"max": 5.71886235414
},
{
"command": "pacquet@main",
"mean": 4.86449959234,
"stddev": 0.2599895077129378,
"median": 4.91630633214,
"user": 2.3225981600000005,
"system": 2.1986572200000003,
"min": 4.51789975014,
"max": 5.31438030814
},
{
"command": "pnpr@HEAD",
"mean": 3.6860879291399997,
"stddev": 0.1389733583787736,
"median": 3.6741064526400002,
"user": 1.93690246,
"system": 1.7540706199999998,
"min": 3.4731721491400003,
"max": 3.92714762714
},
{
"command": "pnpr@main",
"mean": 3.5647336692400002,
"stddev": 0.09706924562692157,
"median": 3.54044001414,
"user": 1.8721789600000005,
"system": 1.75278382,
"min": 3.4284207721400004,
"max": 3.7351319881400005
}
]
}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. Scenarios run on separate machines, so compare main and branch within each table.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.1558386510511111,
"stddev": 0.019152670399988955,
"median": 0.15045356694,
"user": 0.20202218444444445,
"system": 0.14465606444444443,
"min": 0.13639503994,
"max": 0.20454806194
},
{
"command": "pacquet@main",
"mean": 0.20978509114000002,
"stddev": 0.03871789367786492,
"median": 0.18864554344,
"user": 0.25556374000000004,
"system": 0.21008571999999998,
"min": 0.17998781794,
"max": 0.26864483194000005
},
{
"command": "pnpr@HEAD",
"mean": 0.17573318534000001,
"stddev": 0.012873213430846653,
"median": 0.17618679694,
"user": 0.21110387333333333,
"system": 0.16035598666666664,
"min": 0.15702657394,
"max": 0.19581527994
},
{
"command": "pnpr@main",
"mean": 0.19485994270923077,
"stddev": 0.014454482197876475,
"median": 0.19631792994,
"user": 0.2337372784615384,
"system": 0.17360012,
"min": 0.17295739594,
"max": 0.22114733394
}
]
} |
PR Summary by QodoFix latest fallback to same-major prereleases under minimumReleaseAge
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
1. One changeset covers both release lines
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Replies to the Qodo review:
Written by an agent (Claude Code, claude-opus-5-5). |
|
Code review by qodo was updated up to the latest commit 1695f2e |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…release When the `latest` version is younger than `minimumReleaseAge` and no stable release of its major is old enough, `pnpm update --latest` falls back to a prerelease of that major (pnpm/pnpm#16407). pnpm offers no option to keep it to stable releases, so the bot's update moved `eslint-config-typed`'s `@stylistic/eslint-plugin` from `^5.10.0` to `^6.0.0-beta.6`. `update-packages:hold-prereleases`, run by pnpm-update.yml right after `update-packages`, rewrites every range the update moved from a stable release to a prerelease — in the manifests and the workspace catalogs — to the newest stable release the hold accepts, or back to the old range, and re-installs. `mature-updates.mts` shares its registry and hold helpers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…release (#4328) When the `latest` version is younger than `minimumReleaseAge` and no stable release of its major is old enough, `pnpm update --latest` falls back to a prerelease of that major (pnpm/pnpm#16407). pnpm offers no option to keep it to stable releases, so the bot's update moved `eslint-config-typed`'s `@stylistic/eslint-plugin` from `^5.10.0` to `^6.0.0-beta.6`. `update-packages:hold-prereleases`, run by pnpm-update.yml right after `update-packages`, rewrites every range the update moved from a stable release to a prerelease — in the manifests and the workspace catalogs — to the newest stable release the hold accepts, or back to the old range, and re-installs. `mature-updates.mts` shares its registry and hold helpers. Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
When
minimumReleaseAgehides the version a stable dist-tag points to, the tag was only allowed to move to other stable versions. For a package that shipped1.0.0after months of1.0.0-beta.xreleases taggedlatest,latestfell back to0.0.1during the release-age window (see cloudflare/vinext#3567, wherepnpm create vinext-app@latestfailed withERR_PNPM_DLX_NO_BIN).Candidates for a dropped tag are now ranked in tiers, compared before the version:
latestonly (unchanged)Non-deprecated versions still win over deprecated ones. Without a tier-2 candidate the tiers follow version order, so nothing else changes. A stable version of the same major still beats a prerelease (
1.5.0too new →1.4.0, not1.5.0-rc.1).The bug is in both stacks: fixed in the Rust resolver (
best_tag_candidate) and in v11'sfilterPkgMetadataVersions.Closes #16388
Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
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-5).
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
latestversion is hidden by the minimum release age setting, package selection now prefers an eligible stable version from the same major. If none is available, it can select a prerelease from that major instead of an older major’s stable release.