Sourced from @aws-lambda-powertools/parameters
's
releases.
v2.1.1
Summary
This patch release brings bug fixes to the Parser and a deprecation notice to the Tracer utility.
Parser
In response to customer reports we have applied a number of fixes on some of the built-in schemas for the Parser utility.
Specifically, the
queryStringParameters
,multiValueQueryStringParameters
, andbody
fields in theAPIGatewayProxyEventSchema
have been converted to.nullable()
to account for them being set tonull
in some types of requests.Likewise, the
etag
field in theS3EventNotificationEventBridgeDetailSchema
has been made.optional()
since it's not included when an object being deleted on S3 sends a notification via Amazon EventBridge.Finally, the
principalOrgId
andcognitoIdentity
fields in theAPIGatewayProxyEventV2Schema
have been converted to.nullish()
.We want to thank everyone who has taken the time to test the first beta for the Parser utility and especially those who have also reported issues they might have encountered. Thank you for making Powertools for AWS Lambda better for everyone!
Tracer
In March 2024, AWS announced that AWS SDK for JavaScript v2 will reach end-of-support in September 8, 2025. In response to this announcement, and to align with the warnings already being emitted by the AWS SDK, with this release we are marking the
captureAWS
andcaptureAWSClient
methods as deprecated.This announcement does not impact the methods and you are free to continue using them. The deprecation tag serves only as a gentle nudge to consider a migration to the newer AWS SDK for JavaScript v3 which can be instrumented via the
captureAWSv3Client
.The two methods we are marking as deprecated today will be removed in the next major release, which as of today has no planned date.
Acknowledgements
Congratulations to
@blytheaw
for getting their first PR merged 🎉 and thanks also to@arnabrahman
for another successful contribution 🙏!Workshop
For those of you wanting to get a deeper introduction to Powertools for AWS Lambda, you can now try our official self-paced workshop titled “Accelerate your serverless journey with Powertools for AWS Lambda”.
Miscellaneous
We are happy to also share that we have restarted working on the RFC process for the upcoming Event Handler utility. Last week we have published a first decision log on our direction in terms of routing implementation where we have decided to move forward with a new implementation rather than taking a 3rd party library as dependency. The next step will be to finalize the main RFC for how the API and Developer Experience (DX) for the utility will look like.
In parallel, we have started refreshing the API docs for the utilities starting with the Commons utility, which is mainly used internally by other utilities. The goal for this workstream is to standardize the docstrings and contextual documentation so that you can have more details on what different public APIs do.
Changes
- chore(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#2506) by
@dependabot
- chore(deps): bump github/codeql-action from 3.25.4 to 3.25.5 (#2514) by
@dependabot
- chore(tracer): mark captureAWS & captureAWSClient functions as deprecated (#2508) by
@arnabrahman
- chore(deps): bump github/codeql-action from 3.25.3 to 3.25.4 (#2495) by
@dependabot
- chore(deps): bump actions/checkout from 4.1.4 to 4.1.5 (#2489) by
@dependabot
- chore(docs): fix update layer arn for cdk (#2487) by
@am29d
- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.4 to 3.0.5 (#2475) by
@dependabot
- chore(deps): bump actions/dependency-review-action from 4.2.5 to 4.3.2 (#2460) by
@dependabot
- chore(deps): bump actions/download-artifact from 4.1.6 to 4.1.7 (#2439) by
@dependabot
... (truncated)
cc10139
chore(ci): bump version to 2.1.1 (#2518)2f1f259
chore(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#2506)e24309b
chore(deps): bump squidfunk/mkdocs-material in /docs (#2516)6d4f637
chore(deps-dev): bump tsx from 4.9.3 to 4.10.2 (#2510)c668649
chore(deps): bump mkdocs-material from 9.5.21 to 9.5.22 in /docs (#2515)2cf7ba3
chore(deps): bump github/codeql-action from 3.25.4 to 3.25.5 (#2514)2614dbb
chore(deps): bump the aws-sdk group with 11 updates (#2509)c951388
chore(deps-dev): bump lerna from 8.1.2 to 8.1.3 (#2513)e5cf50e
chore(tracer): mark captureAWS
&
captureAWSClient
methods as deprecated (...00ebc11
chore(deps-dev): bump aws-sdk from 2.1616.0 to 2.1617.0 (#2507)