4.31.0
Features
Serverless Framework
-
Integrated
serverless-prune-pluginfunctionality. Lambda version and layer pruning is now built directly into the Serverless Framework. Use thesls prunecommand to manually remove old function versions, or enable automatic pruning after deployments via thecustom.pruneconfiguration. Read more in our docs. (#13244)Thanks to @claygregory for creating the original plugin and to all contributors!
custom: prune: automatic: true number: 3 # Keep 3 most recent versions includeLayers: true # Also prune layer versions# Manual pruning sls prune -n 3 -
Added support for AWS Asia Pacific (Taipei) region
ap-east-2. (#13260, #13257)provider: name: aws region: ap-east-2
[!NOTE] The
serverless devcommand is not supported inap-east-2because AWS IoT Core is not currently available in that region.
Bug Fixes
Serverless Framework
-
Fixed esbuild sourcemap configuration error. Setting
build.esbuild.sourcemap.setNodeOptions: falseno longer throws"sourcemap" must be a string or a boolean. The framework now correctly defaults tosourcemap: truewhen onlysetNodeOptionsis specified. (#13246) -
Fixed AppSync schema empty on Windows. Resolved an issue where
.graphqlschema files using glob patterns (e.g.,Schema/*.graphql) were not found on Windows due to path separator incompatibility with globby. (#13242, #13240) -
Fixed Windows CI/CD intermittent failures. Resolved
EPERM: operation not permitted, renameerrors on Windows by using the system temp directory for AJV cache and adding retry logic with exponential backoff for file operations. (#13243, #13264)
Maintenance
- Updated multiple dependencies: