Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(node): change node version to 14 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Unit tests
run: npm test -- -b

linuxNode12:
linuxnode14:
name: '[Linux] Node.js 12: Isolated unit tests'
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
integrate:
name: Integrate
runs-on: ubuntu-latest
needs: [linuxNode14, windowsNode14, linuxNode12, linuxNode10]
needs: [linuxNode14, windowsNode14, linuxnode14, linuxNode10]
timeout-minutes: 30 # Default is 360
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Unit tests
run: npm test -- -b

linuxNode12:
linuxnode14:
name: '[Linux] Node.js 12: Isolated unit tests'
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2036,7 +2036,7 @@ All notable changes to this project will be documented in this file. See [standa
- [Updates to CI/CD settings for the beta](https://github.com/serverless/serverless/pull/6972)
- [rename output variables to outputs](https://github.com/serverless/serverless/pull/6971)
- [Fix Tencent Template and Readme](https://github.com/serverless/serverless/pull/6984)
- [Default to Nodejs12.x runtime](https://github.com/serverless/serverless/pull/6983)
- [Default to nodejs14.x runtime](https://github.com/serverless/serverless/pull/6983)
- [#6162: Support multiple schemas, don't overwrite RequestModels for each](https://github.com/serverless/serverless/pull/6954)
- [Support empty deploymentPrefix](https://github.com/serverless/serverless/pull/6941)

Expand Down
4 changes: 2 additions & 2 deletions docs/providers/aws/cli-reference/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ custom:

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x

functions:
hello:
Expand All @@ -67,7 +67,7 @@ custom:
bucketName: test
provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
stage: dev # <-- Resolved
functions:
hello:
Expand Down
4 changes: 2 additions & 2 deletions docs/providers/aws/events/apigateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ service: my-api

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
stage: dev
region: eu-west-2

Expand Down Expand Up @@ -1635,7 +1635,7 @@ Resource policies are policy documents that are used to control the invocation o
```yml
provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x

resourcePolicy:
- Effect: Allow
Expand Down
2 changes: 1 addition & 1 deletion docs/providers/aws/events/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ service: serverless-ws-test

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
websocketsApiName: custom-websockets-api-name
websocketsApiRouteSelectionExpression: $request.body.action # custom routes are selected by the value of the action property in the body

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ service: hello-world # Service Name

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x

functions:
helloWorld:
Expand Down
4 changes: 2 additions & 2 deletions docs/providers/aws/guide/credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ You can even set up different profiles for different accounts, which can be used
service: new-service
provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
stage: dev
profile: devProfile
```
Expand Down Expand Up @@ -197,7 +197,7 @@ This example `serverless.yml` snippet will load the profile depending upon the s
service: new-service
provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
profile: ${self:custom.profiles.${sls:stage}}
custom:
profiles:
Expand Down
14 changes: 7 additions & 7 deletions docs/providers/aws/guide/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ service: myService

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
memorySize: 512 # optional, in MB, default is 1024
timeout: 10 # optional, in seconds, default is 6
versionFunctions: false # optional, default is true
Expand Down Expand Up @@ -62,7 +62,7 @@ service: myService

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x

functions:
functionOne:
Expand All @@ -82,7 +82,7 @@ service: myService

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
memorySize: 512 # will be inherited by all functions

functions:
Expand All @@ -98,7 +98,7 @@ service: myService

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x

functions:
functionOne:
Expand Down Expand Up @@ -134,7 +134,7 @@ service: myService

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
iam:
role:
statements: # permissions for all of your functions can be set here
Expand Down Expand Up @@ -489,7 +489,7 @@ service: service

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x

functions:
hello:
Expand Down Expand Up @@ -542,7 +542,7 @@ service: myService

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
tracing:
lambda: true
```
Expand Down
2 changes: 1 addition & 1 deletion docs/providers/aws/guide/serverless.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ functions:
memorySize: 512 # memorySize for this specific function.
reservedConcurrency: 5 # optional, reserved concurrency limit for this function. By default, AWS uses account concurrency limit
provisionedConcurrency: 3 # optional, Count of provisioned lambda instances
runtime: nodejs12.x # Runtime for this specific function. Overrides the default which is set on the provider level
runtime: nodejs14.x # Runtime for this specific function. Overrides the default which is set on the provider level
timeout: 10 # Timeout for this specific function. Overrides the default set above.
role: arn:aws:iam::XXXXXX:role/role # IAM role which will be used for this function
onError: arn:aws:sns:us-east-1:XXXXXX:sns-topic # Optional SNS topic / SQS arn (Ref, Fn::GetAtt and Fn::ImportValue are supported as well) which will be used for the DeadLetterConfig
Expand Down
6 changes: 3 additions & 3 deletions docs/providers/aws/guide/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ service: users

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
stage: dev # Set the default stage used. Default is dev
region: us-east-1 # Overwrite the default region used. Default is us-east-1
stackName: my-custom-stack-name-${sls:stage} # Overwrite default CloudFormation stack name. Default is ${self:service}-${sls:stage}
Expand Down Expand Up @@ -234,7 +234,7 @@ service: users

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
memorySize: 512

Expand All @@ -251,7 +251,7 @@ service: users

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
memorySize: 512

Expand Down
2 changes: 1 addition & 1 deletion docs/providers/aws/guide/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ You can add such custom output to CloudFormation stack. For example:
service: another-service
provider:
name: aws
runtime: nodejs12.x
runtime: nodejs14.x
region: ap-northeast-1
memorySize: 512
functions:
Expand Down
2 changes: 1 addition & 1 deletion docs/providers/azure/guide/serverless.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ frameworkVersion: '2'
provider:
name: azure
region: West US 2
runtime: nodejs12.x
runtime: nodejs14.x
prefix: sample # prefix of generated resource name
subscriptionId: 00000000-0000-0000-0000-000000000000
stage: dev # Default stage to be used
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/aws/customResources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async function addCustomResourceToService(awsProvider, resourceName, iamRoleStat
FunctionName: absoluteFunctionName,
Handler,
MemorySize: 1024,
Runtime: 'nodejs12.x',
Runtime: 'nodejs14.x',
Timeout: 180,
},
DependsOn: [],
Expand Down
Loading