Skip to content

Commit fcfb815

Browse files
committed
Updates related to Node.js 18 support
motdotla#616 Signed-off-by: abetomo <abe@enzou.tokyo>
1 parent a03978b commit fcfb815

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
220220

221221
## Node.js Runtime Configuration
222222

223-
AWS Lambda now supports Node.js 16 and Node.js 14. Please also check the [Lambda runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) page.
223+
AWS Lambda now supports Node.js 18, Node.js 16 and Node.js 14. Please also check the [Lambda runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) page.
224224

225225
## Use S3 to deploy
226226

lib/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ AWS_HANDLER=index.handler
1010
AWS_MEMORY_SIZE=128
1111
AWS_TIMEOUT=3
1212
AWS_DESCRIPTION=
13-
AWS_RUNTIME=nodejs16.x
13+
AWS_RUNTIME=nodejs18.x
1414
AWS_VPC_SUBNETS=
1515
AWS_VPC_SECURITY_GROUPS=
1616
AWS_TRACING_CONFIG=

test/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const originalProgram = {
2222
memorySize: 128,
2323
timeout: 3,
2424
description: '',
25-
runtime: 'nodejs16.x',
25+
runtime: 'nodejs18.x',
2626
deadLetterConfigTargetArn: '',
2727
tracingConfig: '',
2828
Layers: '',

test/node-lambda.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ describe('bin/node-lambda', () => {
157157
process.env.AWS_RUNTIME = 'test'
158158
})
159159
after(() => {
160-
process.env.AWS_RUNTIME = 'nodejs16.x'
160+
process.env.AWS_RUNTIME = 'nodejs18.x'
161161
})
162162

163163
it('`node-lambda run` exitCode is `254` (callback(null))', (done) => {
@@ -180,9 +180,6 @@ describe('bin/node-lambda', () => {
180180
before(() => {
181181
process.env.AWS_RUNTIME = 'nodejs18.x'
182182
})
183-
after(() => {
184-
process.env.AWS_RUNTIME = 'nodejs16.x'
185-
})
186183

187184
it('`node-lambda run` exitCode is not `254` (callback(null))', (done) => {
188185
_generateEventFile(Object.assign(eventObj, {

0 commit comments

Comments
 (0)