Repository navigation
chore: hold back deps whose latest drops the supported Node.js floor - #13253
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughChangesCatalog update safeguards
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: ✨ 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 |
PR Summary by QodoPrevent pnpm --latest from upgrading deps that require newer Node than supported
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The workspace setting is supported by the configuration reader, uses exact package-name matching, and is applied to catalog dependencies during the automated latest-update path. Reviews (1): Last reviewed commit: "chore: add deps to ignoreDeps" | Re-trigger Greptile |
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. IgnoreDeps freezes automated updates
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…--latest (#13257) The daily update-lockfile job fails with ERR_PNPM_UNSUPPORTED_ENGINE on [email protected]. The source is node-gyp, declared directly in pnpm11/pnpm/package.json and therefore missed by the catalog-oriented sweep in #13253: `pnpm update --latest` bumps it 12.4.0 -> 13.0.1, and node-gyp 13 -- along with its nopt 10 and which 7 dependencies -- requires Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which engineStrict correctly rejects against nodeVersion 22.13.0. Replaying the job locally (lockfile deleted, `pnpm update --recursive --latest`) confirms node-gyp was the last floor-blocked dependency: with it held back, resolution completes with no engine errors and node-gyp stays at 12.4.0. The replay stops at the next, separate blocker instead -- ERR_PNPM_IGNORED_BUILDS for [email protected], the runtime: specifier fix in #13250. The same replay also showed three catalog entries being bumped past pins their comments say must hold: `@types/node` (22.x, matching the supported Node.js floor), bole (5.x, so the published `@pnpm/logger`'s CJS bole shares the output registry under Jest) and tempy (3.0.0, whose later versions deadlock the bundled binary at startup). Only the engine-related pins were enforced, so those three are added to the list as well. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Summary
The
update-lockfileworkflow runspnpm update --latest, which bumps dependencies across majors regardless of the caret pins in the catalog. Several dependencies have alatestwhose newest major raises itsengines.nodeabove pnpm's supported floor (>=22.13), so adopting them would break users on Node 22.13.This adds an
update.ignoreDepssection topnpm-workspace.yamllisting every such dependency, so--latestleaves them alone.The catalog already pinned eight of these (
cspell,ini,normalize-package-data,npm-packlist,ssri,undici,validate-npm-package-name,write-file-atomic) with explanatory comments, but nothing stopped--latestfrom overriding the pins. Auditing thelatestengines.nodeof all 243 catalog entries against22.13.0surfaced five more in the same situation:@babel/core^22.18.0 || >=24.11.0@babel/plugin-transform-explicit-resource-management^22.18.0 || >=24.11.0bin-links^22.22.2 || ^24.15.0 || >=26.0.0libnpmpublish^22.22.2 || ^24.15.0 || >=26.0.0npm-registry-fetch^22.22.2 || ^24.15.0 || >=26.0.0All thirteen are now listed in
update.ignoreDeps, and the five newly-found catalog entries get the same held-back-because-of-Node comment the others already carry.Squash Commit Body
Checklist
pnpm/port.Written by an agent (Claude Code, claude-opus-4-8).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit