Skip to content

Commit 43f14f4

Browse files
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.23.0 to 2.24.0 (#466)
Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.23.0 to 2.24.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.24.0</h2> <h2>Summary</h2> <p>We’ve listened to <a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3951">your feedback</a> and starting from this release of Parser we support only <a href="https://zod.dev/v4">Zod v4</a> for all our built-in schemas and envelopes. Additionally the utility got a power up and it now supports schemas written using <a href="https://github.com/standard-schema/standard-schema">Standard Schema</a> 🔥.</p> <p>We’ve also fixed a bug in Tracer that prevented requests made via proxies to be traced correctly and another bug in Metrics that caused dimension sets to be added correctly to the metrics data object..</p> <p>🌟 Congratulations to <a href="https://github.com/chetan9518"><code>@​chetan9518</code></a>, <a href="https://github.com/sdangol"><code>@​sdangol</code></a>, and <a href="https://github.com/matteofigus"><code>@​matteofigus</code></a> for their first PRs merged in the project 🎉</p> <h3>Using Parser with Standard Schema</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/parser/">Docs</a></p> </blockquote> <p>You can now use schemas written using <a href="https://valibot.dev/">Valibot</a> or other <a href="https://github.com/standard-schema/standard-schema">Standard Schema</a>-compatible parsing library to parse incoming events using the <code>parser</code> Middy.js middleware or TypeScript class method decorator. This is useful if your codebase is already relying on one of these libraries or you want to have full control over the bundle size.</p> <p>Note that our <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/parser/#built-in-schemas">built-in schemas</a> and <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/parser/#built-in-envelopes">envelopes</a> are still defined only using Zod. If you would like us to support other libraries like Valibot please <a href="https://github.com/aws-powertools/powertools-lambda-typescript/issues/new?template=feature_request.yml">open an issue</a> and we will consider it based on the community's feedback.</p> <p>If you are using Zod v3 and need more time to migrate, you can continue using Parser v2.23.0 as long as needed.</p> <pre lang="ts"><code>import { Logger } from '@aws-lambda-powertools/logger'; import { parser } from '@aws-lambda-powertools/parser/middleware'; import middy from '@middy/core'; import { array, number, object, optional, pipe, string, toMinValue, } from 'valibot'; <p>const logger = new Logger();</p> <p>const orderSchema = object({<br /> id: pipe(number(), toMinValue(0)),<br /> description: string(),<br /> items: array(<br /> object({<br /> id: pipe(number(), toMinValue(0)),<br /> quantity: pipe(number(), toMinValue(1)),<br /> description: string(),<br /> })<br /> ),<br /> optionalField: optional(string()),<br /> });</p> <p>export const handler = middy()<br /> .use(parser({ schema: orderSchema }))<br /> &lt;/tr&gt;&lt;/table&gt;<br /> </code></pre></p> </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.23.0...v2.24.0">2.24.0</a> (2025-07-15)</h2> <h3>Improvements</h3> <ul> <li><strong>metrics</strong> optimize <code>addDimensions</code> method to avoid O(n²) complexity (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4156">#4156</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3982b4a6b25e82fa1b5001c73d238cf62eda1137">3982b4a</a>)</li> <li><strong>tracer</strong> replace class-based env access with functional helpers (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4146">#4146</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/51d9b988488aee01de337669dbfc68d0ab7af9dd">51d9b98</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>metrics</strong> addDimensions() documentation and tests (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3964">#3964</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a80163614e4a0ef7106beaa5cf91161d50a09fea">a801636</a>)</li> <li><strong>tracer</strong> skip tracing CONNECT requests (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4148">#4148</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a147c3b46ff975ed3e94722e21e79e65ae2bbc78">a147c3b</a>)</li> <li><strong>parser</strong> remove nullable from md5OfMessageAttributes in SqsRecordSchema (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4165">#4165</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d6cbde0fe977bb1ce011a80f31369e5f7161df08">d6cbde0</a>)</li> </ul> <h3>Maintenance</h3> <ul> <li><strong>batch</strong> exclude deprecated code from coverage (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4152">#4152</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/30bbf5af3ae78fdb4b837ad9b4322a9e90f15f57">30bbf5a</a>)</li> <li><strong>parser</strong> remove deprecated parser type (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4154">#4154</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a59db36e7816d8587b91acf282582204ccc78845">a59db36</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>parser</strong> support Standard Schema and upgrade to Zod v4 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4164">#4164</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/67549f61cd77e23a66e3338576efc96839833329">67549f6</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/501dc1781976e025f108acf9dd6549b38efae444"><code>501dc17</code></a> chore: bump to 2.24.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4172">#4172</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/57902be48bf9f9752ce0358ce9b758c003b61066"><code>57902be</code></a> chore(deps): bump <code>@​types/node</code> from 24.0.12 to 24.0.13 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4167">#4167</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c7ebae6ff6ede4b66ddd358737b8980aadc72a77"><code>c7ebae6</code></a> chore(deps): bump esbuild from 0.25.5 to 0.25.6 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4166">#4166</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d6cbde0fe977bb1ce011a80f31369e5f7161df08"><code>d6cbde0</code></a> fix(parser): remove nullable from md5OfMessageAttributes in SqsRecordSchema (...</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/67549f61cd77e23a66e3338576efc96839833329"><code>67549f6</code></a> feat(parser): support Standard Schema and upgrade to Zod v4 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4164">#4164</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/191c84636a85a1f4d132dbe6f3b6427c13e03e4c"><code>191c846</code></a> chore(deps-dev): bump <code>@​redis/client</code> from 5.5.6 to 5.6.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4162">#4162</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/947247118fe23d0c40e627c0eb4a25029e0455a1"><code>9472471</code></a> chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4159">#4159</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/06622c3db8df3bd9784d4ee27c394dfee0a8216f"><code>06622c3</code></a> chore(deps): bump vscode/devcontainers/javascript-node from <code>0d29e5f</code> to `eac...</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/af44b7c03e6f58846054754c64bffba1975c2072"><code>af44b7c</code></a> chore(deps-dev): bump zod from 3.25.67 to 3.25.76 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4158">#4158</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c9a1f7b3033c715b098cfc4e8f6f7b03e1921825"><code>c9a1f7b</code></a> chore(deps): bump <code>@​types/node</code> from 24.0.10 to 24.0.12 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4157">#4157</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.23.0...v2.24.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.23.0&new-version=2.24.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 5a08f3c commit 43f14f4

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

package-lock.json

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"typescript": "^5.8.3"
3939
},
4040
"dependencies": {
41-
"@aws-lambda-powertools/logger": "^2.23.0",
41+
"@aws-lambda-powertools/logger": "^2.24.0",
4242
"@types/mustache": "^4.2.6",
4343
"aws-lambda": "^1.0.7",
4444
"axios": "^1.10.0",

0 commit comments

Comments
 (0)