From d37841b2a93a0932c09970d917753a50be20fbfd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 03:09:59 +0000 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20@aws-lambda-powerto?= =?UTF-8?q?ols/parameters=20from=202.0.2=20to=202.0.3=20(#102)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.0.2 to 2.0.3.
Release notes

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 keyword

Based 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

🌟New features and non-breaking changes

🌟 Minor Changes

📜 Documentation updates

... (truncated)

Changelog

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)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@aws-lambda-powertools/parameters&package-manager=npm_and_yarn&previous-version=2.0.2&new-version=2.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 10 +++++----- packages/statusLambda/package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index d4275d63..164d8fa5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -78,11 +78,11 @@ } }, "node_modules/@aws-lambda-powertools/parameters": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/parameters/-/parameters-2.0.2.tgz", - "integrity": "sha512-NvRGEEE0PDVa8Uos6QzjADdZ+inNikEi3vm7gyMdJ3tSaA6BxWxc7jbwCm24mKKoi5WwrZAZXmU9VS+LK7j+RA==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/parameters/-/parameters-2.0.3.tgz", + "integrity": "sha512-/bXJXwHIlBDgcsru31gwRzRpGRVF077ihNgFRKRgCwXCfQ1FsdxcW6qMqaPhuOiwS5dw4wSRByi3ozYfcSy2nA==", "dependencies": { - "@aws-lambda-powertools/commons": "^2.0.2", + "@aws-lambda-powertools/commons": "^2.0.3", "@aws-sdk/util-base64-node": "^3.209.0" }, "peerDependencies": { @@ -6897,7 +6897,7 @@ "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", "@aws-lambda-powertools/logger": "^2.0.3", - "@aws-lambda-powertools/parameters": "^2.0.0", + "@aws-lambda-powertools/parameters": "^2.0.3", "@middy/core": "^5.3.2", "@middy/input-output-logger": "^5.3.0", "@nhs/fhir-middy-error-handler": "^2.0.0", diff --git a/packages/statusLambda/package.json b/packages/statusLambda/package.json index a55bfba4..fabc5808 100644 --- a/packages/statusLambda/package.json +++ b/packages/statusLambda/package.json @@ -15,7 +15,7 @@ "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", "@aws-lambda-powertools/logger": "^2.0.3", - "@aws-lambda-powertools/parameters": "^2.0.0", + "@aws-lambda-powertools/parameters": "^2.0.3", "@middy/core": "^5.3.2", "@middy/input-output-logger": "^5.3.0", "@nhs/fhir-middy-error-handler": "^2.0.0",