Repository navigation
chore: move to Node 24 LTS and refresh dev dependencies - #47
Conversation
- Node 20 reached end of life in April 2026 and is not covered by the 2026-10-21 security release (including the Brotli decoder RCE, CVE-2026-111497). - CI now reads the version from .nvmrc, so local and CI stay on the same major.
- Resolves every pnpm audit finding in the root and examples/basic (vitest, vite, rollup, minimatch, brace-expansion, fast-uri, nanoid and others). No major version changes. - @types/node moves to ^24 to match the CI runtime.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
🟡 Changes recommended
An unresolved finding remains: bumping .nvmrc to Node 24 leaves the .nvmrc-referencing Node 20.x guidance in CLAUDE.md contradictory and still needs updating.
1 open issue
1 file not reviewed
examples/basic/pnpm-lock.yaml: Generated file
What changed in this PR
This maintenance PR migrates the project's tooling baseline from Node 20 (now EOL) to Node 24 LTS and refreshes dev/example dependencies within their existing semver ranges, closing out the audit findings that several Dependabot PRs were targeting. It fits the repo's "zero runtime dependency" posture: the changes affect only local development and CI, not the published package. I verified that both the root pnpm-lock.yaml (not in the shown diff but present and consistent on the branch) and examples/basic/pnpm-lock.yaml match their manifests, that all four CI jobs now resolve Node from .nvmrc, and that updated engine constraints (e.g. vite >=22.0.0) permit Node 24.
Changes:
- Bump
.nvmrc20 → 24 and switch all CI jobs from a hardcodednode-version: '20.x'tonode-version-file: .nvmrc. - Refresh root dev dependencies (including
@types/node22 → 24 to match the runtime) with lockfile kept in sync. - Refresh
examples/basicReact/Vite tooling and its lockfile.
Note: CLAUDE.md line 100 still documents "Node 20.x", which this .nvmrc change makes stale (flagged inline).
| File | Description |
|---|---|
.nvmrc |
Pins Node 24 LTS (the single source read by CI and local setup). |
.github/workflows/ci.yml |
All four jobs now read the Node version from .nvmrc instead of hardcoding 20.x. |
package.json |
Root dev-dependency refresh within semver ranges; @types/node moved to ^24 to match the runtime. |
examples/basic/package.json |
React, @types/*, @vitejs/plugin-react, and Vite bumped to current patch/minor releases. |
examples/basic/pnpm-lock.yaml |
Lockfile regenerated to match the example's refreshed manifest (and transitive bumps). |
Review effort: Balanced
- .nvmrc now pins 24, so the contributor note should match.

Changes
.nvmrcgoes from 20 to 24, and every CI job readsnode-version-file: .nvmrcinstead of a hardcoded20.x. Node 20 reached end of life in April 2026 and does not get the 2026-10-21 security release (Brotli decoder RCE, CVE-2026-111497, and nine others).pnpm updatein the root andexamples/basic, staying within the existing semver ranges (no major bumps).@types/nodemoves to^24to match the runtime.engines.node(>=18) is unchanged. It describes what consumers need, and the published package only shipsdistwith no runtime dependencies.Audit
None of these reached consumers, since the package has no runtime dependencies. They affected local development and CI only.
Verification
Run locally on Node 24.22.2 with pnpm 10.5.2:
lint,typecheck,format:check,test,build,size, andarethetypeswrongall pass, and both bundles keep the'use client'banner. The React 17/18 compat matrix and Playwright e2e run in CI on this PR.Dependabot
This covers what #34 (dev-dependencies group), #43 and #26 (
examples/basic) were trying to do, so Dependabot should close or rebase them. The major bumps (#44 Next 16, #45 Vite 8, #37 upload-artifact, #29 codecov, #13 pnpm/action-setup) are left for separate review. The website security fix is in #46.