Upgrade Node.js to 24 - #74
Merged
Merged
Conversation
chore(node): upgrade runtime target to Node 24 LTS / npm 11 Re-pin the repo from Node 22.x/npm 10.x to Node 24.x/npm 11.x to match the local and CI environment. Updates version-manager files, engines, the preinstall/runtime guard scripts, the runtime-gate tests, CI setup-node (now via node-version-file), and docs. Aligns @types/node to ^24 to match the runtime. Lockfile regenerated; build/lint/typecheck/test/e2e all pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> @
Contributor
There was a problem hiding this comment.
Pull request overview
Upgrades the repository’s enforced runtime/tooling target from Node.js 22 to Node.js 24, updating local/CI runtime gates and documentation so development and release verification align on the same major versions.
Changes:
- Update runtime validation scripts and tests to require Node 24.x and npm 11.x.
- Align CI to read the Node version from
.nvmrcinstead of hardcoding it. - Refresh documentation and version-manager pins (
.nvmrc,.node-version) to Node 24.x.
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/check-runtime.test.ts | Updates runtime gate unit tests to expect Node 24 and npm 11 behavior. |
| scripts/ensure-local-server.mjs | Bumps local server Node major check to 24. |
| scripts/dev-free-port.mjs | Bumps local dev/start Node major check to 24. |
| scripts/check-runtime.ts | Changes default expected majors (Node 24, npm 11) for runtime gate checks. |
| scripts/check-node-engine.cjs | Updates preinstall enforcement to require Node 24.x and npm 11.x. |
| README.md | Updates setup instructions to Node 24.x. |
| package.json | Updates engines to Node 24.x / npm 11.x and adjusts Node typings range. |
| package-lock.json | Updates lockfile metadata and resolves @types/node to a Node 24-compatible version. |
| docs/project-alignment-cleanup.md | Updates Windows/npm note and runtime policy docs to Node 24 / npm 11. |
| docs/production-readiness-checklist.md | Updates runtime target guidance to Node 24 (and npm guidance text). |
| docs/process-hardening.md | Updates process-hardening runtime gate docs to Node 24.x. |
| .nvmrc | Pins local Node major to 24. |
| .node-version | Pins local Node major to 24. |
| .github/workflows/ci.yml | Switches CI to use .nvmrc for Node setup. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
5
to
9
| "packageManager": "npm@10.9.8", | ||
| "engines": { | ||
| "node": "22.x", | ||
| "npm": "10.x" | ||
| "node": "24.x", | ||
| "npm": "11.x" | ||
| }, |
|
|
||
| - Branch: `codex/premium-redesign` (do not touch `.env` / secrets directly). | ||
| - Runtime target: Next.js 16.2.7, Node 22.x, npm >= 10. | ||
| - Runtime target: Next.js 16.2.7, Node 24.x, npm >= 11. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades the project runtime/tooling to Node.js 24.