Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/add-node-24-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"twilio-run": minor
"@twilio-labs/plugin-serverless": minor
"@twilio-labs/plugin-assets": minor
"create-twilio-function": minor
"@twilio-labs/serverless-twilio-runtime": patch
---

Add Node.js 24.x support across all packages. Updates engines fields, version check, and generated project templates to include Node.js 24 alongside existing 20.x and 22.x support.
2 changes: 1 addition & 1 deletion packages/create-twilio-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"yargs": "^17.2.1"
},
"engines": {
"node": "^20.x || ^22.x"
"node": "^20.x || ^22.x || ^24.x"
},
"files": [
"bin/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'@twilio/runtime-handler'
].replace(/[\^~]/, ''),
twilioRun: pkgJson.dependencies['twilio-run'],
node: '^20.x || ^22.x',
node: '^20.x || ^22.x || ^24.x',
typescript: '^5.3.3',
serverlessRuntimeTypes: '^4.0.0',
copyfiles: '^2.4.1',
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"rimraf": "^5.0.5"
},
"engines": {
"node": "^20.x || ^22.x"
"node": "^20.x || ^22.x || ^24.x"
},
"files": [
"/oclif.manifest.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-serverless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"oclif": "^4.0.0"
},
"engines": {
"node": "^20.x || ^22.x"
"node": "^20.x || ^22.x || ^24.x"
},
"files": [
"/oclif.manifest.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless-twilio-runtime/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Serverless Framework plugin to deploy to the Twilio Runtime.

### Pre-requisites

- Node.js v20.x (this is the runtime version supported by Twilio Functions)
- Node.js v20.x, v22.x, or v24.x (these are the runtime versions supported by Twilio Functions)
- Serverless CLI v1.50.0+. You can run npm i -g serverless if you don't already have it.
- A Twilio account. If you don't have one you can [sign up quickly](https://www.twilio.com/try-twilio).

Expand Down
2 changes: 1 addition & 1 deletion packages/twilio-run/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"README.md"
],
"engines": {
"node": "^20.x || ^22.x"
"node": "^20.x || ^22.x || ^24.x"
},
"gitHead": "6db273648ed19474f4125042556b10c051529912"
}
2 changes: 1 addition & 1 deletion packages/twilio-run/src/checks/nodejs-version.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { stripIndent } from 'common-tags';
import { logger } from '../utils/logger';

const SERVERLESS_NODE_JS_VERSION = ['20.', '22.'];
const SERVERLESS_NODE_JS_VERSION = ['20.', '22.', '24.'];

export function printVersionWarning(
nodeVersion: string,
Expand Down