Sourced from @aws-lambda-powertools/parameters
's
releases.
v2.0.3
Summary
This release brings a couple of bug fixes related to our new ESM builds as well as minor improvements in how Logger formats error stack traces.
Idempotency
Due to a misconfiguration in our build process some components of the Idempotency utility were not being transformed correctly when bundling our TypeScript source code to ESM-formatted JavaScript. This caused runtime errors when importing the ESM build of the utility.
With this release we have fixed the build process and resolved the issue so that the Idempotency utility can now be used with functions using ESM.
Layers
Since the v2 release we have started including ESM builds to our public Lambda Layers, however we failed to include a polyfill for the
require
keywordBased on our tests the presence of this polyfill should not impact your code but only code paths evaluated as a result of importing Powertools utilities from the layer itself. If you encounter issues with this change please let us know by opening an issue.
Logger
As part of this release have improved the regular expression used to extract the file and line locations of an error from its stack trace. The change didn't result in any chance in the way errors are formatted, so you should not see any difference in your logs.
Acknowledgements
Special thanks to
@karthikeyanjp
and@miguel-martinr
for their contributions as well as@AllyMurray
for reporting the issue with bundling.Changes
- chore(deps): bump github/codeql-action from 3.24.6 to 3.24.7 (#2220) by
@dependabot
- chore(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#2215) by
@dependabot
- chore(docs): remove missing README from typedoc for jmespath temporarily (#2200) by
@am29d
- chore(deps): bump actions/download-artifact from 4.1.3 to 4.1.4 (#2157) by
@dependabot
🌟New features and non-breaking changes
- feat(logger): improve regex in stack trace parsing (#2194) by
@karthikeyanjp
- feat(commons): add fromBase64 helper function (#2190) by
@dreamorosi
- feat(jmespath): add base types and errors (#2192) by
@dreamorosi
🌟 Minor Changes
- improv(commons): expand type utils functions (#2189) by
@dreamorosi
📜 Documentation updates
- chore(deps): bump the aws-sdk group with 2 updates (#2237) by
@dependabot
- chore(deps-dev): bump aws-sdk from 2.1576.0 to 2.1578.0 (#2236) by
@dependabot
- chore(deps): bump the aws-sdk group with 9 updates (#2227) by
@dependabot
- docs(maintenance): update v1 and v2 status (#2226) by
@dreamorosi
- chore(deps-dev): bump aws-sdk from 2.1575.0 to 2.1576.0 (#2222) by
@dependabot
- chore(deps-dev): bump the aws-sdk group with 1 update (#2221) by
@dependabot
... (truncated)
Sourced from @aws-lambda-powertools/parameters
's
changelog.
2.0.3 (2024-03-15)
feat(logger): improve regex in stack trace parsing (#2121) (ebe5eef) fix(idempotency): transform private class fields (#2230) (aa6e6e0) improv(commons):: expand type utils functions (#2191) (9208393) feat(commons): add fromBase64 helper function (#2188) (133159b) fix(layers):: add createRequire banner in esm build (#2231) (730bcc9)
8138df1
chore(ci): bump version to 2.0.3 (#2240)a88ec79
chore(deps): bump the aws-cdk group with 2 updates (#2238)de0e759
chore(deps): bump the aws-sdk group with 2 updates (#2237)99d7821
chore(deps): bump esbuild from 0.20.1 to 0.20.2 (#2239)3c90a04
chore(deps-dev): bump aws-sdk from 2.1576.0 to 2.1578.0 (#2236)6929c16
chore(deps-dev): bump @types/node
from 20.11.26 to
20.11.28 (#2235)e29088d
chore(deps-dev): bump follow-redirects from 1.15.5 to 1.15.6 (#2234)02cbaf9
chore(deps): bump the aws-sdk group with 9 updates (#2227)730bcc9
fix(layers): add createRequire banner in esm (#2232)aa6e6e0
fix(idempotency): transform private class fields (#2233)