Skip to content

feat: add node24 CLI runtime support#555

Merged
jannoteelem merged 4 commits into
twilio-labs:mainfrom
jannoteelem:feat/add-node24-runtime
Jun 26, 2026
Merged

feat: add node24 CLI runtime support#555
jannoteelem merged 4 commits into
twilio-labs:mainfrom
jannoteelem:feat/add-node24-runtime

Conversation

@jannoteelem

Copy link
Copy Markdown
Contributor

Summary

  • Adds node24 as a valid runtime option in the CLI
  • Updates default runtime from node22 to node24
  • Updates Node.js version check allowlist to include 24.x
  • Updates create-twilio-function engine range to include ^24.x

Changes

  • packages/twilio-run/src/templating/defaultConfig.ts — default runtime → node24
  • packages/twilio-run/src/flags.ts--help output updated to reference node24
  • packages/twilio-run/src/checks/nodejs-version.ts24. added to accepted versions
  • packages/create-twilio-function/src/create-twilio-function/versions.js — node engine range extended to ^24.x
  • packages/serverless-api/src/types/deploy.ts — doc comment updated
  • packages/serverless-api/examples/deploy.js — example updated to node24
  • packages/plugin-serverless/README.md--runtime help text updated
  • .changeset/add-node24-runtime.md — changeset added

Reference

Test plan

  • All existing toolkit tests pass
  • twilio serverless:deploy --runtime node24 deploys successfully
  • --help output shows (node24) for --runtime flag

- Default runtime updated to node24
- node24 added to nodejs version check allowlist
- node engine range updated in create-twilio-function to include ^24.x
@changeset-bot

changeset-bot Bot commented Apr 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9780bc8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@twilio-labs/serverless-api Minor
twilio-run Minor
create-twilio-function Minor
@twilio-labs/plugin-serverless Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Keep node22 as the default runtime; node24 is now accepted as a valid
value for --runtime and passes the local Node.js version check.
- Changeset message updated to 'feat:' prefix and describes the default bump
- JSDoc for 'runtime' field now lists node22 and node24 as valid values
@robinske

Copy link
Copy Markdown
Contributor

+1 for this fix - should we remove Node 20 support given it's EOL?

@jannoteelem jannoteelem merged commit 8ab50b5 into twilio-labs:main Jun 26, 2026
10 checks passed
@jannoteelem jannoteelem deleted the feat/add-node24-runtime branch June 26, 2026 14:00
@jannoteelem

Copy link
Copy Markdown
Contributor Author

should we remove Node 20 support given it's EOL?

Yes, we are going to remove it soon (next week(s))

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.

3 participants