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:
- Upgraded
dotenvto v17.2.3 (#13259) - Upgraded
chokidarto v4.0.3 (#13251) - Upgraded
jestto v30.2.0 (#13250) - Upgraded
globbyto v14 (#13236) - Upgraded
honoto v4.11.4 (#13247) - Upgraded
luxonfrom v2.5.2 to v3.7.2 (#13235) - Upgraded
terminal-linkto v4.0.0 (#13232) - Upgraded
ajv-formatsto v3 (#13230) - Upgraded
wsfrom v7.5.10 to v8.19.0 (#13226) - Upgraded
expressfrom v4 to v5 in@serverless/mcp(#13231) - Upgraded
undicito v6.23.0 (#13252) - Upgraded
@graphql-tools/mergefrom v8.4.2 to v9.1.7 (#13263) - Bumped AWS SDK group with 31 updates (#13253)
- Upgraded