Skip to content

Commit

Permalink
fix(lambda): Bump @aws-lambda-powertools/logger from 1.12.1 to 1.14.0…
Browse files Browse the repository at this point in the history
… in /lambdas (#3521)

Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 1.12.1 to 1.14.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/releases"><code>@​aws-lambda-powertools/logger</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v1.14.0</h2>
<h2>Summary</h2>
<p>This release brings all the generally available utilities to the <a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/#lambda-layer">Lambda
Layers</a>, improves the <a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/idempotency/">Idempotency</a>
utility with the addition of a new <code>@idempotent</code> class method
decorator, and makes <a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/core/tracer/">Tracer</a>
more reliable.</p>
<h3>Lambda Layers</h3>
<p>Starting from <strong>version 21</strong>, which corresponds to this
release, of our Lambda Layer includes the Idempotency, Parameters, and
Batch Processing utilities. The layer comes with its own reduced copy of
AWS SDK v3 for JavaScript clients so you can easily attach it to Lambda
functions running on Node.js 16 without having to bundle the SDK.</p>
<p>The layers are available in most commercial AWS Regions, <a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/">go
here</a> to learn more about how to use them and find the ARN for your
region.</p>
<h3>Idempotency</h3>
<p>If you use decorators you can now make your class methods idempotent
thanks to the new <a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/idempotency/#idempotent-decorator"><code>@idempotent</code>
decorator</a>.</p>
<p><img
src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/77cd00af-2970-466c-90d0-e410ec3ce693"
alt="idempotent" /></p>
<p>You can use the decorator on your Lambda handler, like shown in the
image above, or on any method that returns a response. This is useful
when you want to make a specific part of your code idempotent, for
example when your Lambda handler performs multiple side effects and you
only want to make part of it safe to retry.</p>
<h3>Tracer</h3>
<p>When segments generated by your code are about to be sent to the AWS
X-Ray daemon, the AWS X-Ray SDK for Node.js serializes them into a JSON
string. If the segment contains exotic objects like <code>BigInt</code>,
<code>Set</code>, or <code>Map</code> <a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/core/tracer/#annotations-metadata">in
the metadata</a> the serialization can throw an error because the native
<code>JSON.stringify()</code> function doesn't know how to handle these
objects.</p>
<p>To guard against this type of runtime errors we have wrapped within
<code>try/catch</code> logic the branches of code in Tracer where this
issue could happen. Now, when an error gets thrown during the
serialization of a segment within Tracer, we will catch it and log a
warning instead.</p>
<p>We are also working with the X-Ray team to add a <a
href="https://tc39.es/ecma262/multipage/structured-data.html#sec-json.stringify"><code>replacer</code></a>
function to the serialization logic directly in the X-Ray SDK so that
the issue can be better mitigated.</p>
<h3>Acknowledgements</h3>
<p>Congratulations to <a
href="https://github.com/HaaLeo"><code>@​HaaLeo</code></a> and <a
href="https://github.com/KhurramJalil"><code>@​KhurramJalil</code></a>
for having your first contribution to the project, thank you for helping
make Powertools better for everyone 🎉</p>
<blockquote>
<p><strong>Note</strong>
We have officially started working on the next major version of
Powertools for AWS (TypeScript) 🔥 We have <a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1714">published
a Request For Comment (RFC)</a> that details most of the changes that we
have planned and in the coming weeks we'll work on an upgrade guide. We
would love to hear what you think about our plan and hear any concern
you might have.</p>
</blockquote>
<h2>Changes</h2>
<ul>
<li>chore(ci): create v2 alpha release workflow (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1719">#1719</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(layers): add Idempotency, Batch, and Parameters to layer (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1712">#1712</a>)
by <a href="https://github.com/am29d"><code>@​am29d</code></a></li>
</ul>
<h2>🌟New features and non-breaking changes</h2>
<ul>
<li>feat(idempotency): add idempotency decorator (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1723">#1723</a>)
by <a href="https://github.com/am29d"><code>@​am29d</code></a></li>
<li>feat(tracer): add try/catch logic to decorator and middleware close
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1716">#1716</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>feat(layers): add <code>arm64</code> to integration test matrix (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1720">#1720</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
</ul>
<h2>🌟 Minor Changes</h2>
<ul>
<li>improv(commons): add number key type to JSONObject type (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1715">#1715</a>)
by <a
href="https://github.com/KhurramJalil"><code>@​KhurramJalil</code></a></li>
<li>refactor(commons): aws sdk util + identity check (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1708">#1708</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md"><code>@​aws-lambda-powertools/logger</code>'s
changelog</a>.</em></p>
<blockquote>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.13.1...v1.14.0">1.14.0</a>
(2023-09-29)</h1>
<h3>Features</h3>
<ul>
<li><strong>idempotency:</strong> add idempotency decorator (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1723">#1723</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d138673a33ff31f40b225dc046b2ff8258d0a97d">d138673</a>)</li>
<li><strong>layers:</strong> add <code>arm64</code> to integration test
matrix (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1720">#1720</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/61ad5ac3bcf7742684aeec28553ec294696f3301">61ad5ac</a>)</li>
<li><strong>tracer:</strong> add try/catch logic to decorator and
middleware close (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1716">#1716</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/be16b599b8023f95572234fb222ea70aea5b3f17">be16b59</a>)</li>
</ul>
<h2><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.13.0...v1.13.1">1.13.1</a>
(2023-09-21)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>maintenance:</strong> remove upper peer dependency Middy (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1705">#1705</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/df21ec8761b1be511c13c28fedd41bf0e2851061">df21ec8</a>)</li>
</ul>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.12.1...v1.13.0">1.13.0</a>
(2023-09-18)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>batch:</strong> Update processor to pass only context to
handler (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1637">#1637</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6fa09b2638bf247fd595db51ac3d1aa1252d3379">6fa09b2</a>)</li>
<li><strong>docs:</strong> update versions.json jq query (<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4e6f662b244a941a911c1ed5973bef11d7610093">4e6f662</a>)</li>
<li><strong>parameters:</strong> return type when options without
transform is used (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1671">#1671</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b2fe34150a0d896f1755ca30cbe89175cdb66ff2">b2fe341</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>batch:</strong> rename AsyncBatchProcessor to default
BatchProcessor (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1683">#1683</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e253755d09f50a75cde805168845f52d8b85af28">e253755</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/1dc1805401bd64a58031d8d991146a1e902d4d2f"><code>1dc1805</code></a>
chore(release): v1.14.0 [skip ci]</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/004894a83581e3cc7ef5611824a08c165e6d13ee"><code>004894a</code></a>
docs(idempotency): fix docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1724">#1724</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d138673a33ff31f40b225dc046b2ff8258d0a97d"><code>d138673</code></a>
feat(idempotency): add idempotency decorator (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1723">#1723</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/be16b599b8023f95572234fb222ea70aea5b3f17"><code>be16b59</code></a>
feat(tracer): add try/catch logic to decorator and middleware close (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1716">#1716</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/793f12fb5342846d49d96049f7773d0d978b9b3e"><code>793f12f</code></a>
chore(ci): create v2 alpha release workflow (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1719">#1719</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/61ad5ac3bcf7742684aeec28553ec294696f3301"><code>61ad5ac</code></a>
feat(layers): add <code>arm64</code> to integration test matrix (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1720">#1720</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/9cc7190589931745f712caa48172712efbb4771e"><code>9cc7190</code></a>
improv(commons): add <code>number</code> key type to
<code>JSONObject</code> type</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/58120e3c87c0782e52af711d926381dd4f2a3fdf"><code>58120e3</code></a>
chore(layers): add Idempotency, Batch, and Parameters to layer (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1712">#1712</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ccc0398c042f66f654444d34be5a20b39d8d774c"><code>ccc0398</code></a>
chore(layers): bundle assets from source when testing (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1710">#1710</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/02aae6d5b116ca4bd35805fd8b4aad2d96e515c4"><code>02aae6d</code></a>
refactor(commons): aws sdk util + identity check (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1708">#1708</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.12.1...v1.14.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@aws-lambda-powertools/logger&package-manager=npm_and_yarn&previous-version=1.12.1&new-version=1.14.0)](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)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Oct 3, 2023
1 parent 726565f commit 3f42529
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lambdas/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@
"@aws-sdk/util-utf8-browser" "^3.0.0"
tslib "^1.11.1"

"@aws-lambda-powertools/commons@^1.12.1":
version "1.12.1"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/commons/-/commons-1.12.1.tgz#17d2e925fe1a23bec85a5ccb12fd624d43e7538d"
integrity sha512-VChNfDUxxcB5KTfQPkJgxYihEZkrmeOzU9/A9FRBc+3v33EEM59T2pIgBkFy0VoINvGi3MoBEln/wyu2jV0ivA==
"@aws-lambda-powertools/commons@^1.14.0":
version "1.14.0"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/commons/-/commons-1.14.0.tgz#0840ed84f03687b4d6fd19a471b8f10ca8120199"
integrity sha512-+kxLITfkH/G4C6N9b1kmvT4HSvqxRMtzmghwdiigqSGkRubCCRaxewBIII66DHgpXK5JhoWmTmdsBVwpEWqwvA==

"@aws-lambda-powertools/logger@^1.8.0":
version "1.12.1"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/logger/-/logger-1.12.1.tgz#6a7d7d9df30519cb7030bfb282cba8c8fa25f66e"
integrity sha512-QMBkd6/rN2MniiNcWeCigT4AKqH+NG1X6xN8S+YLszd4qJvXvRqx2EBO01WVrtyctOE8IpLqxicevmw1cJqDIA==
version "1.14.0"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/logger/-/logger-1.14.0.tgz#cd8d255513bf637379384764773505ef89119664"
integrity sha512-GIj2MMFwULSKtvwcQqd6BjI5gVie/I7bPYBCfSkEhBFf2CsFPs/B3xJ+E8jMiTdaQdmvE2ykwHhqVgItRaKPvA==
dependencies:
"@aws-lambda-powertools/commons" "^1.12.1"
"@aws-lambda-powertools/commons" "^1.14.0"
lodash.merge "^4.6.2"

"@aws-sdk/client-ec2@^3.350.0":
Expand Down

0 comments on commit 3f42529

Please sign in to comment.