Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.23.0 to 2.24.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 0
(11 months ago)
(11 months ago)
dependencies javascript
Bumps @aws-lambda-powertools/logger from 2.23.0 to 2.24.0.
Release notes
Sourced from @aws-lambda-powertools/logger's releases.
v2.24.0
Summary
We’ve listened to your feedback and starting from this release of Parser we support only Zod v4 for all our built-in schemas and envelopes. Additionally the utility got a power up and it now supports schemas written using Standard Schema 🔥.
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..
🌟 Congratulations to
@chetan9518,@sdangol, and@matteofigusfor their first PRs merged in the project 🎉Using Parser with Standard Schema
You can now use schemas written using Valibot or other Standard Schema-compatible parsing library to parse incoming events using the
parserMiddy.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.Note that our built-in schemas and envelopes are still defined only using Zod. If you would like us to support other libraries like Valibot please open an issue and we will consider it based on the community's feedback.
If you are using Zod v3 and need more time to migrate, you can continue using Parser v2.23.0 as long as needed.
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';const logger = new Logger();
const orderSchema = object({
id: pipe(number(), toMinValue(0)),
description: string(),
items: array(
object({
id: pipe(number(), toMinValue(0)),
quantity: pipe(number(), toMinValue(1)),
description: string(),
})
),
optionalField: optional(string()),
});export const handler = middy()
.use(parser({ schema: orderSchema }))
</tr></table>
... (truncated)
Changelog
Sourced from @aws-lambda-powertools/logger's changelog.
2.24.0 (2025-07-15)
Improvements
- metrics optimize
addDimensionsmethod to avoid O(n²) complexity (#4156) (3982b4a)- tracer replace class-based env access with functional helpers (#4146) (51d9b98)
Bug Fixes
- metrics addDimensions() documentation and tests (#3964) (a801636)
- tracer skip tracing CONNECT requests (#4148) (a147c3b)
- parser remove nullable from md5OfMessageAttributes in SqsRecordSchema (#4165) (d6cbde0)
Maintenance
- batch exclude deprecated code from coverage (#4152) (30bbf5a)
- parser remove deprecated parser type (#4154) (a59db36)
Features
Commits
501dc17chore: bump to 2.24.0 (#4172)57902bechore(deps): bump@types/nodefrom 24.0.12 to 24.0.13 (#4167)c7ebae6chore(deps): bump esbuild from 0.25.5 to 0.25.6 (#4166)d6cbde0fix(parser): remove nullable from md5OfMessageAttributes in SqsRecordSchema (...67549f6feat(parser): support Standard Schema and upgrade to Zod v4 (#4164)191c846chore(deps-dev): bump@redis/clientfrom 5.5.6 to 5.6.0 (#4162)9472471chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (#4159)06622c3chore(deps): bump vscode/devcontainers/javascript-node from0d29e5fto `eac...af44b7cchore(deps-dev): bump zod from 3.25.67 to 3.25.76 (#4158)c9a1f7bchore(deps): bump@types/nodefrom 24.0.10 to 24.0.12 (#4157)- Additional commits viewable in compare view
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 commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+12
-10
Package Dependencies
@aws-lambda-powertools/logger
npm
2.23.0 → 2.24.0
Minor
Technical Details
| ID: | 3473621 |
| UUID: | 2669136324 |
| Node ID: | PR_kwDOL025w86fF8nE |
| Host: | GitHub |
| Repository: | NHSDigital/eps-load-test |
| Merge State: | Unknown |