Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.13.…
…0 to 2.13.1 (#325) Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.13.0 to 2.13.1. <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>v2.13.1</h2> <h2>Summary</h2> <p>This patch release fixes a number of bugs in all the <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/#built-in-envelopes">built-in envelopes</a> in the Parser utility so that they can now handle payloads of different formats including plain text and base64-encoded strings.</p> <p>⭐️ Thanks to <a href="https://github.com/svozza"><code>@svozza</code></a> for their contributions to this release!</p> <h3>Parser bug fixes</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser">Docs</a></p> </blockquote> <p>Starting with this release, Parser’s built-in envelopes treat event payloads as strings, enabling Zod transformations. Previously, they incorrectly treated all payloads as JSON strings, causing runtime errors for plain text or base64-encoded strings.</p> <p>For example, when working with API Gateway events, use the <code>ApiGatewayEnvelope</code> with the <code>JSONStringified</code> Zod helper to automatically transform the payload before parsing. This is useful when you expect the payload to be a JSON string and want to parse its contents using a schema without code transformation.</p> <p><img src="https://github.com/user-attachments/assets/62329e46-5487-4b81-9cce-c40547f07e8b" alt="carbon-2" /></p> <p>This feature applies to all built-in envelopes, and additional helpers will be added based on customer demand.</p> <h3>Event Handler Request for Comments (RFC)</h3> <p>We are excited to share that we have published the <a href="https://github.com/aws-powertools/powertools-lambda-typescript/discussions/3500">RFC for Event Handler</a>, an upcoming utility that helps you write REST APIs for Amazon API Gateway REST and HTTP APIs, Application Load Balancer (ALB), Lambda Function URLs, and VPC Lattice.</p> <p>We’d like everyone interested in our most requested feature to review the RFC and share their feedback. We’re seeing good engagement, so we’ll keep the RFC open for a couple more weeks before starting implementation.</p> <h2>Changes</h2> <ul> <li>chore(parser): deprecate <code>AlbMultiValueHeadersSchema</code> (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3523">#3523</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> </ul> <h2>🌟 Minor Changes</h2> <ul> <li>improv(parser): export APIGatewayEventRequestContextSchema (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3507">#3507</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> </ul> <h2>📜 Documentation updates</h2> <ul> <li>chore(deps): bump squidfunk/mkdocs-material from <code>ba73db5</code> to <code>41942f7</code> in /docs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3501">#3501</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump mkdocs-material from 9.5.49 to 9.5.50 in /docs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3502">#3502</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump the aws-sdk-v3 group across 1 directory with 10 updates (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3495">#3495</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump <code>@types/node</code> from 22.10.5 to 22.10.7 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3479">#3479</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump the aws-cdk group across 1 directory with 2 updates (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3477">#3477</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(ci): update layer ARN on documentation (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3474">#3474</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>chore(deps): bump the aws-cdk group (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3472">#3472</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> </ul> <h2>🐛 Bug and hot fixes</h2> <ul> <li>fix(parser): allow VPC envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3534">#3534</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>fix(parser): allow Kinesis envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3531">#3531</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>fix(parser): Firehose SQS should fail for invalid SQS message (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3526">#3526</a>) by <a href="https://github.com/am29d"><code>@am29d</code></a></li> <li>fix(parser): min array length on Records (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3521">#3521</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>fix(parser): set min length of 1 to s3 event lists (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3524">#3524</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>fix(parser): allow SQS envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3513">#3513</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> <h2><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.13.0...v2.13.1">2.13.1</a> (2025-01-28)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>parser:</strong> allow Kinesis envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3531">#3531</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d18e03d06e4fa4970aa24c4c041793d58a7cde79">d18e03d</a>)</li> <li><strong>parser:</strong> allow SQS envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3513">#3513</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/89f0006e9b50448372a5ce70592ea1af5a75ec35">89f0006</a>)</li> <li><strong>parser:</strong> allow VPC envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3534">#3534</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/603988d4ad187501aa93ea405a3a136e260dba13">603988d</a>)</li> <li><strong>parser:</strong> API Gateway Envelopes handle non-JSON (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3511">#3511</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a4846afd09c29032f79b79cfa1410675440d7dae">a4846af</a>)</li> <li><strong>parser:</strong> CloudWatch Log Envelope handles non-JSON (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3505">#3505</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/781a14e11b55767df24739badc77c6d309982d51">781a14e</a>)</li> <li><strong>parser:</strong> DynamoDBStream schema & envelope (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3482">#3482</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7f7f8ced2953e0fc72a33cd2b6e8af15fae8d3d6">7f7f8ce</a>)</li> <li><strong>parser:</strong> EventBridge envelope uses correct path (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3504">#3504</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7cce60b41b8b72c5aeee5eb17b87d159af3123ac">7cce60b</a>)</li> <li><strong>parser:</strong> Firehose SQS should fail for invalid SQS message (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3526">#3526</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4721ddaf943ec6695536bdd19e7c29ebf03cb4ed">4721dda</a>)</li> <li><strong>parser:</strong> Kafka Envelope + tests (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3489">#3489</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/bd6b24aa66b79ce267395b5376418bdabc0e31af">bd6b24a</a>)</li> <li><strong>parser:</strong> LambdaFunctionUrl envelope assumes JSON string in body (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3514">#3514</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/09aa287c9d44e50b843c0702d86a682c939b9525">09aa287</a>)</li> <li><strong>parser:</strong> make identitySource nulablel in APIGatewayRequestAuthorizerEventV2Schema (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3485">#3485</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8692de67292cf77db5f25e0ca8c572d71d72eadb">8692de6</a>)</li> <li><strong>parser:</strong> min array length on Records (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3521">#3521</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/89a62811c4b1732b77c225d64e8cda98b38968fa">89a6281</a>)</li> <li><strong>parser:</strong> set min length of 1 to s3 event lists (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3524">#3524</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/937be641b3ee82748fc1bdec0291abe5ef0e7a97">937be64</a>)</li> <li><strong>parser:</strong> SNS Envelope handles non-JSON (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3506">#3506</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4d7f05f7415cc52fae42de643ceaffcf764c2472">4d7f05f</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/128e959158ec27c7d46f1a689ae2be7a9505db4c"><code>128e959</code></a> chore(ci): bump version to 2.13.1 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3537">#3537</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/603988d4ad187501aa93ea405a3a136e260dba13"><code>603988d</code></a> fix(parser): allow VPC envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3534">#3534</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d18e03d06e4fa4970aa24c4c041793d58a7cde79"><code>d18e03d</code></a> fix(parser): allow Kinesis envelopes to handle non-JSON strings (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3531">#3531</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4721ddaf943ec6695536bdd19e7c29ebf03cb4ed"><code>4721dda</code></a> fix(parser): Firehose SQS should fail for invalid SQS message (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3526">#3526</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/89a62811c4b1732b77c225d64e8cda98b38968fa"><code>89a6281</code></a> fix(parser): min array length on Records (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3521">#3521</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/937be641b3ee82748fc1bdec0291abe5ef0e7a97"><code>937be64</code></a> fix(parser): set min length of 1 to s3 event lists (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3524">#3524</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5bb4a6af1dcd6f528a7830fa49f7df7e57b3d733"><code>5bb4a6a</code></a> chore(parser): deprecate <code>AlbMultiValueHeadersSchema</code> (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3523">#3523</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/06e997574aabc051b27c755a0a83b995b4628f34"><code>06e9975</code></a> chore(deps): bump squidfunk/mkdocs-material from <code>ba73db5</code> to <code>41942f7</code> in /d...</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d283a0e19bcfbf4978f4a18db867f799bbafda4c"><code>d283a0e</code></a> chore(deps): bump mkdocs-material from 9.5.49 to 9.5.50 in /docs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3502">#3502</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4099eab308a1b7ab31157252be091a1e7b486b08"><code>4099eab</code></a> chore(deps-dev): bump markdownlint-cli2 from 0.17.1 to 0.17.2 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3498">#3498</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.13.0...v2.13.1">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=2.13.0&new-version=2.13.1)](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 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) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information