⚠ 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 installedserverlessCLI is invoked in a context of a service, which has locally installedserverless. slssalias forserverlessCLI command was removed. Rely onslsorserverlessinsteadbin/serverlesswas removed. If you target CLI script directly, pointbin/serverless.jsinstead
- Locally installed (in service
- AWS HTTP API:
- Default
payloadwas changed from1.0to2.0 timeoutsetting as configured directly forhttpApievent 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[].allowUnauthenticatedsetting was removed. Rely onproviders.alb.authorizers[].onUnauthenticatedRequestinstead
Features
- CLI: Fallback to service local
serverlessinstallation 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,serverlesscommand alias (#8161) (33eef9f) (Christian Musa) - Remove deprecated
bin/serverlessfile (#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
timeoutsetting (#8184) (1cfd1f2) (Mariusz Nowak) - Replace
mkdripwithesnureDirfromfs-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
Linuxeden开源社区