refactor!: Drop Node.js v20 support, require v22.11+#1560
Conversation
Node.js 20 reaches end-of-life in April 2026. This bumps the minimum supported version to 22.11.0 (the first v22 LTS release), updates the CI matrix, @types/node, and documentation accordingly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR drops Node.js v20 support and sets the minimum to v22.11.0 (first v22 LTS), updating the CI matrix, Confidence Score: 5/5Safe to merge — all intentional changes are consistent and correct; the only finding is a minor lockfile regeneration artifact. All four files change exactly what the PR describes. The sole finding (transitive dep versions going backwards in package-lock.json) affects only dev/optional packages and has no impact on the published library. P2 findings do not reduce the score below 5. package-lock.json — worth a quick sanity check on the workerd/emnapi version downgrades, but not blocking. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Drop Node 20 support] --> B[package.json engines ge 22.11.0]
A --> C[README Node 22.11 or higher]
A --> D[CI matrix nodes 22 and 24]
A --> E[types/node updated to ~22]
B --> F{npm install check}
F -->|Node lt 22.11| G[Install rejected]
F -->|Node ge 22.11| H[Install proceeds]
D --> I[Tests on Node 22 LTS]
D --> J[Tests on Node 24]
|
Summary
@types/nodefrom~20to~22Test plan
npm installworks with Node 22.11+npm installrejects Node <22.11 via engines field🤖 Generated with Claude Code