Skip to content

Commit 984025a

Browse files
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.16.0 to 2.17.0 (#370)
Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.16.0 to 2.17.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>v2.17.0</h2> <p>Summary</p> <p>This release introduces the new Validation utility to validate payloads with JSON Schemas. This addition further reduces the feature gap between this version of Powertools for AWS Lambda and the more mature one in Python, and it’s also the first utility that was built primarily by community contributors, hats off to <a href="https://github.com/VatsalGoel3"><code>@​VatsalGoel3</code></a>!</p> <p>The release also enhances Logger with correlation ID support, improves cold start reporting for Provisioned Concurrency, adds customizable function name dimensions for metrics, and extends Lambda layer availability to GovCloud (US) regions.</p> <p>⭐️ Thanks to <a href="https://github.com/VatsalGoel3"><code>@​VatsalGoel3</code></a> and <a href="https://github.com/steven10172"><code>@​steven10172</code></a> for their contributions, and <a href="https://guild.com/">Guild</a> for becoming a public reference customer!</p> <h3>New Validation utility</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/validation/">Docs</a></p> </blockquote> <p>The new Validation utility helps you validate incoming events and responses using JSON Schemas. This is useful when you want request payloads to conform to expected formats. You can also verify that responses meet defined structures, ensuring consistency in both input and output.</p> <h4>Installation</h4> <pre lang="sh"><code>npm i @aws-lambda-powertools/validation </code></pre> <h4>Key Features</h4> <ul> <li><strong>JSON Schema validation</strong> (supports draft-07 by default, configurable to any version supported by <a href="https://ajv.js.org/">Ajv</a></li> <li><strong>Multiple implementation options</strong>: <ul> <li>Class method decorator <code>@validator</code></li> <li>Middy.js middleware <code>validator</code></li> <li>Standalone <code>validate</code> function</li> </ul> </li> <li><strong>Flexible validation targets:</strong> <ul> <li>Incoming requests</li> <li>Outbound responses</li> <li>Partial payload validation using JMESPath expressions</li> </ul> </li> </ul> <h4>Examples</h4> <p><strong>Using Middy.js middleware:</strong></p> <p><img src="https://github.com/user-attachments/assets/561159f1-fc20-48ef-9931-0413f609cbd2" alt="carbon-9" /></p> <p><strong>Using decorator with envelope extraction:</strong></p> <p><img src="https://github.com/user-attachments/assets/b3aa3eb5-4c5c-4019-a207-3e162d62828f" alt="carbon-10" /></p> <p><strong>Error handling with standalone validation:</strong></p> <p><img src="https://github.com/user-attachments/assets/fd42b73f-2261-40eb-9686-a941c9fe0037" alt="carbon-6" /></p> <p><strong>Learn more</strong></p> <p>Head over to the <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/validation/">documentation</a> to learn more about the utility and see more examples.</p> <!-- 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/v2.16.0...v2.17.0">2.17.0</a> (2025-03-25)</h1> <h3>Bug Fixes</h3> <ul> <li><strong>ci:</strong> Remove --compatible-architectures from workflow (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3752">#3752</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dafa49602ea45227384b63bff4d3f39d69e982d8">dafa496</a>)</li> <li><strong>idempotency:</strong> include sk in error msgs when using composite key (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3709">#3709</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/661f5ff7f3f3805e24f515892e98430dccebf979">661f5ff</a>)</li> <li><strong>logger:</strong> correctly refresh sample rate (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3722">#3722</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2692ca4d1b15763936659b05e1830d998a4d2020">2692ca4</a>)</li> <li><strong>parser:</strong> ddb base schema + other exports (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3741">#3741</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/51a3410be8502496362d5ed13a64fe55691604ba">51a3410</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>commons:</strong> make utilities aware of provisioned concurrency (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3724">#3724</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c28e45ecba315bac8fbc7744dbe21a3461747d44">c28e45e</a>)</li> <li><strong>logger:</strong> set correlation ID in logs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3726">#3726</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/aa74fc8548ccb8cb313ffd1742184c66e8d6c22c">aa74fc8</a>)</li> <li><strong>metrics:</strong> allow setting functionName via constructor parameter and environment variable (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3696">#3696</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3176fa08e1886d5c86e7b327134cc988b82cf8d8">3176fa0</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/577c76da79d069a2e9660e0af03fc352037284e9"><code>577c76d</code></a> chore(ci): bump version to 2.17.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3770">#3770</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fa414d57aeb7ea0acb3a336ecf7f4894125cf927"><code>fa414d5</code></a> chore(parameters): update AWS SDK client type (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3768">#3768</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/64f5cf28b2f88fcb4993aa7278aadf4aa3402f67"><code>64f5cf2</code></a> chore(deps): bump <code>@​types/aws-lambda</code> from 8.10.147 to 8.10.148 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3767">#3767</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/103a7f98a317612c6290a8bb0ca2152779f9d18f"><code>103a7f9</code></a> chore(deps): bump github/codeql-action from 3.28.12 to 3.28.13 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3764">#3764</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3cc04518715fdd3d450a314e3ca2c5a99725b0ca"><code>3cc0451</code></a> chore(deps): bump <code>@​types/node</code> from 22.13.11 to 22.13.13 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3766">#3766</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/434cc8b3804ee10aa3b1f2023ff22a616c2950e8"><code>434cc8b</code></a> chore: add Guild customer reference (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3769">#3769</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5e9f051d2a0fe4a39b1ac64367ebf659235eacc8"><code>5e9f051</code></a> chore(ci): Simplified GovCloud Deploy (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3763">#3763</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/afab04fc10404e0c35571c9c210140436df79000"><code>afab04f</code></a> chore(ci): fix region typo in govcloud (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3762">#3762</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/57d63442f2f4dc8f371f40ae85405568492692d6"><code>57d6344</code></a> chore(ci): fix workflow GovCloud formatting (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3761">#3761</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b44b1ebcb246d892940e85c60106c37e813a62aa"><code>b44b1eb</code></a> chore(deps-dev): bump the typescript group across 1 directory with 2 updates ...</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.16.0...v2.17.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=2.16.0&new-version=2.17.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>
1 parent e97c67c commit 984025a

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

package-lock.json

+12-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"typescript": "^5.8.2"
3939
},
4040
"dependencies": {
41-
"@aws-lambda-powertools/logger": "^2.16.0",
41+
"@aws-lambda-powertools/logger": "^2.17.0",
4242
"@types/mustache": "^4.2.5",
4343
"aws-lambda": "^1.0.7",
4444
"axios": "^1.8.4",

0 commit comments

Comments
 (0)