⚠ BREAKING CHANGES
- Node.js version 10 or later is required (dropped support for v6 and v8)
- CLI:
- Locally installed (in service
node_modules
) CLI will be run instead of global one, when globally installedserverless
CLI is invoked in a context of a service, which has locally installedserverless
. slss
alias forserverless
CLI command was removed. Rely onsls
orserverless
insteadbin/serverless
was removed. If you target CLI script directly, pointbin/serverless.js
instead
- Locally installed (in service
- AWS HTTP API:
- Default
payload
was changed from1.0
to2.0
timeout
setting as configured directly forhttpApi
event is no longer supported. Timeout value is now unconditionally resolved from function timeout setting (it’s to guarantee that configured endpoint has necessary room to process function invocation)
- Default
- AWS ALB: Support for
providers.alb.authorizers[].allowUnauthenticated
setting was removed. Rely onproviders.alb.authorizers[].onUnauthenticatedRequest
instead
Features
- CLI: Fallback to service local
serverless
installation by default (#8180) (dfc7839) (Mariusz Nowak) - AWS HTTP API: Switch default payload mode to 2.0 (#8133) (1596738) (andreizet)
Bug Fixes
- Packaging: Fix resolution of files with
.
In their names (#8130) (c620af3) (Christian Musa)
Maintanance Improvements
- Drop support for Node.js versions below v10 (#8131) (69dd4b9) (Mariusz Nowak)
- CLI:
- Remove
slss
,serverless
command alias (#8161) (33eef9f) (Christian Musa) - Remove deprecated
bin/serverless
file (#8142) (4ceaca0) (Piotr Grzesik)
- Remove
- AWS Lambda: Remove support for async config on destination (#8138) (e131f26) (Piotr Grzesik)
- AWS ALB: Remove support for
authorizers[].allowUnauthenticated
(#8160) (7c304df) (morgan-sam) - AWS HTTP API: Drop support for
timeout
setting (#8184) (1cfd1f2) (Mariusz Nowak) - Replace
mkdrip
withesnureDir
fromfs-extra
(#8183) (1beb8d0) (Mariusz Nowak)
相关下载:
serverless-linux-x64119 MB
serverless-macos-x64119 MB
serverless-win-x64.exe115 MB
转自 https://github.com/serverless/serverless/releases/tag/v2.0.0