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/parameters from 2…
….5.0 to 2.6.0 (#581) Bumps [@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.5.0 to 2.6.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/parameters</code>'s releases</a>.</em></p> <blockquote> <h2>v2.6.0</h2> <h2>Summary</h2> <p>This release <strong>1/</strong> promotes <strong>Parser</strong> to Generally Available and ready for production, and <strong>2/</strong> adds support for unsupported types serialization in <strong>Logger</strong>.</p> <p>⭐ Big thanks to <a href="https://github.com/daschaa"><code>@daschaa</code></a> for helping improve our code quality automation 🏅 Congrats to <a href="https://github.com/marlapativ"><code>@marlapativ</code></a> & <a href="https://github.com/sandrokeil"><code>@sandrokeil</code></a> on their first contribution</p> <h3>Parser is Generally Available</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/">Docs</a></p> </blockquote> <p>We want to thank the community who engaged with us, tested Parser during beta, and provided valuable feedback and contributions to improve everyone' experience.</p> <h4>New to Parser?</h4> <p>Parser provides data validation and parsing using <a href="https://zod.dev/">Zod</a>, a TypeScript-first schema declaration and validation library, and comes with built-in <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/#built-in-schemas">schemas</a> and <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/#built-in-envelopes">envelopes</a> for common AWS event types for AWS Lambda.</p> <p>To get started with Parser, you also need to install Zod:</p> <pre lang="sh"><code>npm install @aws-lambda-powertools/parser zod@~3 </code></pre> <p>Next, you can extend one of the schemas using your own schema, and parse the event both with class method decorators (<a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/#middy-middleware">or Middy.js</a>):</p> <p><img src="https://github.com/user-attachments/assets/bd55687c-2607-4616-bc2a-8516d6c195b4" alt="carbon-2" /></p> <h3>Support unserializable types</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/core/logger/#bring-your-own-json-serializer">Docs</a></p> </blockquote> <p>You can now extend the default logic used to emit JSON-structured logs by passing a custom serializer function to the Logger constructor, using the jsonReplacerFn option. This is useful when you want to customize the serialization of specific values.</p> <p><img src="https://github.com/user-attachments/assets/65c99e72-3824-4969-89e3-ef64ca3e2336" alt="carbon-3" /></p> <h2>Changes</h2> <ul> <li>chore(parser): review imports (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2838">#2838</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>chore(deps): bump github/codeql-action from 3.25.12 to 3.25.13 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2789">#2789</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(maintenance): migrate jmespath utility to biome (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2807">#2807</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>chore(maintenance): migrate testing utility to biome (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2808">#2808</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>chore(maintenance): migrate idempotency utility to biome (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2810">#2810</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>chore(deps): bump aws-actions/closed-issue-message from 36b7048ea77bb834d16e7a7c5b5471ac767a4ca1 to 80edfc24bdf1283400eb04d20a8a605ae8bf7d48 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2784">#2784</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump actions/setup-python from 5.1.0 to 5.1.1 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2765">#2765</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump github/codeql-action from 3.25.11 to 3.25.12 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2771">#2771</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> </ul> <h2>🌟New features and non-breaking changes</h2> <ul> <li>feat(parser): allow parser set event type of handler with middy (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2786">#2786</a>) by <a href="https://github.com/am29d"><code>@am29d</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/parameters</code>'s changelog</a>.</em></p> <blockquote> <h1><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.5.0...v2.6.0">2.6.0</a> (2024-07-25)</h1> <h3>Features</h3> <ul> <li><strong>logger:</strong> introduce loglevel constant (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2787">#2787</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e75f5933602342a45fbeaa7a459452387e43c492">e75f593</a>)</li> <li><strong>parser:</strong> allow parser set event type of handler with middy (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2786">#2786</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/9973f09da260305ce8fd18780a9a474f3404ca1a">9973f09</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b2858588146bb4b079fab71c5036367463a27019"><code>b285858</code></a> chore(ci): bump version to 2.6.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2839">#2839</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2deb22328bbb3755dd38422e1b8cbb54b8bf279c"><code>2deb223</code></a> chore(parser): review imports (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2838">#2838</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f76acbe2a37e96d3ea4638b99c76803fc424f4e0"><code>f76acbe</code></a> chore(ci): revert bump version to 2.6.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2836">#2836</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/38198e972ce250dbecefa4528fd7660993ee5bad"><code>38198e9</code></a> chore(ci): bump version to 2.6.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2834">#2834</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d94d70b715d2612b0d82871ef180c798ddf7976a"><code>d94d70b</code></a> chore(parser): mark parser as GA (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2831">#2831</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/df71d78488849d34136db6a9a15e8fbf63b04894"><code>df71d78</code></a> improv(logger): export LoggerInterface (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2832">#2832</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/84192bb8ddc9501f24ee7f2d58cced70da25c73b"><code>84192bb</code></a> chore(docs): Add lambda layer policy to versioning docs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2824">#2824</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/72803e2f99509bca41db1ee0f0523abd93150f48"><code>72803e2</code></a> chore(maintenance): migrate parser utility to biome (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2822">#2822</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/22203ccb773413062cb11c849346770394324d26"><code>22203cc</code></a> chore(deps-dev): bump typedoc from 0.26.4 to 0.26.5 in the typedoc group acro...</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/507861c76824bf5ef11f573ab99447a4a48a1306"><code>507861c</code></a> 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/2818">#2818</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.5.0...v2.6.0">compare view</a></li> </ul> </details> <br /> [![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.5.0&new-version=2.6.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 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> Co-authored-by: anthony-nhs <[email protected]>
- Loading branch information