File tree Expand file tree Collapse file tree 11 files changed +24
-10
lines changed
src/create-twilio-function
serverless-twilio-runtime
__tests__/utils/stack-trace Expand file tree Collapse file tree 11 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @twilio-labs/serverless-twilio-runtime ' : major
3+ ' create-twilio-function ' : major
4+ ' @twilio-labs/plugin-serverless ' : major
5+ ' @twilio-labs/plugin-assets ' : major
6+ ' twilio-run ' : major
7+ ---
8+
9+ Remove Node.js 18 from supported versions
Original file line number Diff line number Diff line change 1- 18
1+ 20
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ If you are planning to contribute something that does not have an open issue yet
1414
1515## Requirements
1616
17- Make sure you have Node.js 18 or newer installed. Due to compatibility with Twilio
18- Functions this project has to support at least Node.js 18 .0.0.
17+ Make sure you have Node.js 20 or newer installed. Due to compatibility with Twilio
18+ Functions this project has to support at least Node.js 20 .0.0.
1919
2020We are using the npm CLI to manage our project. You'll need at least ` npm ` version 8 or newer.
2121
Original file line number Diff line number Diff line change 4242 "yargs" : " ^17.2.1"
4343 },
4444 "engines" : {
45- "node" : " >=12. 22.1 "
45+ "node" : " ^20.x || ^ 22.x "
4646 },
4747 "files" : [
4848 " bin/" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module.exports = {
66 '@twilio/runtime-handler'
77 ] . replace ( / [ \^ ~ ] / , '' ) ,
88 twilioRun : pkgJson . dependencies [ 'twilio-run' ] ,
9- node : '22 ' ,
9+ node : '^20.x || ^22.x ' ,
1010 typescript : '^5.3.3' ,
1111 serverlessRuntimeTypes : '^4.0.0' ,
1212 copyfiles : '^2.4.1' ,
Original file line number Diff line number Diff line change 2323 "rimraf" : " ^5.0.5"
2424 },
2525 "engines" : {
26- "node" : " >=18 "
26+ "node" : " ^20.x || ^22.x "
2727 },
2828 "files" : [
2929 " /oclif.manifest.json" ,
Original file line number Diff line number Diff line change 2222 "oclif" : " ^4.0.0"
2323 },
2424 "engines" : {
25- "node" : " >=18.0.0 "
25+ "node" : " ^20.x || ^22.x "
2626 },
2727 "files" : [
2828 " /oclif.manifest.json" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Serverless Framework plugin to deploy to the Twilio Runtime.
88
99### Pre-requisites
1010
11- - Node.js v18 .x (this is the runtime version supported by Twilio Functions)
11+ - Node.js v20 .x (this is the runtime version supported by Twilio Functions)
1212- Serverless CLI v1.50.0+. You can run npm i -g serverless if you don't already have it.
1313- A Twilio account. If you don't have one you can [ sign up quickly] ( https://www.twilio.com/try-twilio ) .
1414
Original file line number Diff line number Diff line change @@ -16,9 +16,12 @@ function generateMockCallSite(
1616 getFunction : jest . fn ( ) ,
1717 getFunctionName : jest . fn ( ) ,
1818 getMethodName : jest . fn ( ) ,
19+ getPosition : jest . fn ( ) ,
1920 getFileName : jest . fn ( ) . mockReturnValue ( fileName ) ,
2021 getLineNumber : jest . fn ( ) ,
2122 getColumnNumber : jest . fn ( ) ,
23+ getEnclosingColumnNumber : jest . fn ( ) ,
24+ getEnclosingLineNumber : jest . fn ( ) ,
2225 getEvalOrigin : jest . fn ( ) ,
2326 isToplevel : jest . fn ( ) ,
2427 isEval : jest . fn ( ) ,
@@ -27,6 +30,8 @@ function generateMockCallSite(
2730 isAsync : jest . fn ( ) ,
2831 isPromiseAll : jest . fn ( ) ,
2932 getPromiseIndex : jest . fn ( ) ,
33+ getScriptHash : jest . fn ( ) ,
34+ getScriptNameOrSourceURL : jest . fn ( ) ,
3035 toString : ( ) => {
3136 return str ;
3237 } ,
Original file line number Diff line number Diff line change 122122 " README.md"
123123 ],
124124 "engines" : {
125- "node" : " >=18.0.0 "
125+ "node" : " ^20.x || ^22.x "
126126 },
127127 "gitHead" : " 6db273648ed19474f4125042556b10c051529912"
128128}
You can’t perform that action at this time.
0 commit comments