Skip to content

feat: update default Node.js version to 24#7103

Merged
hrishikesh-k merged 7 commits into
mainfrom
hk/frb-2272
Jul 6, 2026
Merged

feat: update default Node.js version to 24#7103
hrishikesh-k merged 7 commits into
mainfrom
hk/frb-2272

Conversation

@hrishikesh-k

Copy link
Copy Markdown
Contributor

Do not merge, needs a co-ordinated release

https://linear.app/netlify/issue/FRB-2272/ (follow-up of #5958)

**Do not merge, needs a co-ordinated release**

https://linear.app/netlify/issue/FRB-2272/ (follow-up of #5958)
@hrishikesh-k hrishikesh-k requested a review from a team as a code owner June 23, 2026 16:39
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The default Node.js major version constant is updated from 22 to 24 in packages/zip-it-and-ship-it/src/runtimes/node/utils/node_version.ts. This constant serves as the fallback when getNodeVersion receives no config version. The esbuild bundler target mapping in packages/zip-it-and-ship-it/src/runtimes/node/bundlers/esbuild/bundler_target.ts is extended with a new entry to map Node version 24 to the string 'node24', enabling the bundler to target Node 24. Unit test expectations in node_runtime.test.ts are updated to reflect that inputs without explicit versions now resolve to nodejs24.x instead of nodejs22.x. Integration test cases in v2api.test.ts for older and invalid Node version scenarios are updated to expect the nodejs24.x fallback.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is largely incomplete, missing the required 'Summary' section with issue reference and motivation. It only contains a note about coordination requirements and issue references. Complete the description by adding a 'Summary' section that explains the motivation, fixes the referenced issue number, and follows the repository's PR template structure.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and accurately summarizes the main change: updating the default Node.js version to 24.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hk/frb-2272

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

e18e dependency analysis

No dependency warnings found.

@hrishikesh-k hrishikesh-k changed the title feat!: update default Node.js version to 24 feat: update default Node.js version to 24 Jul 6, 2026
@hrishikesh-k hrishikesh-k merged commit 6484527 into main Jul 6, 2026
38 checks passed
@hrishikesh-k hrishikesh-k deleted the hk/frb-2272 branch July 6, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants