Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 13, 2025

Bumps @aws-lambda-powertools/commons from 2.20.0 to 2.25.0.

Release notes

Sourced from @​aws-lambda-powertools/commons's releases.

v2.25.0

Summary

We have discontinued support for Node.js 18 with this release. All users are strongly encouraged to upgrade to Node.js 20 or later to ensure continued compatibility and security updates.

The parse function is now exported from the Parser package. This addition enables manual parsing in scenarios such as validating query string parameters, offering more flexibility in data handling and validation.

We’ve also fixed a bug with the Zod schema for the Cognito Trigger Event in the parser.

Furthermore, we have been working on the improvements in the overall code quality and maintainability of the codebase.

⭐ Congratulations @​dwrth, @​bdellegrazie, @​jaimellamasi for their first PRs merged in the project 🎉

Parse Function

Docs

import { parse } from '@aws-lambda-powertools/parser';
export const handler = async (event: APIGatewayEvent) => {
try {
const querySchema = z.object({
id: z.string()
});
const params = parse(event.queryStringParameters, undefined, querySchema);
} catch(error) {
console.error("Failed to parse the query string parameters");
}
}

Before this release, it was only possible to use the parser through middleware or a decorator. To use the parse function, simply pass the payload to be parsed, the envelope (if required), the schema, and the optional safe parse flag.

Changes

  • feat(event-handler): add event handler registry (#4307) by @​svozza
  • feat(event-handler): add error classes for http errors (#4299) by @​svozza
  • feat(parser): Exported the parse function from the parser (#4300) by @​sdangol
  • feat(event-handler): implement route matching & resolution system for rest handler (#4297) by @​svozza
  • refactor(idempotency): fix code quality issues (#4298) by @​dwrth
  • improv(deps): Decrease the update schedule of aws-cdk and aws-sdk-v3 group in dependabot (#4290) by @​sdangol
  • refactor(commons): fix code quality issues (#4292) by @​dwrth
  • refactor(jmespath): fix code quality issues (#4286) by @​dwrth
  • refactor(batch): improve code quality in test handlers (#4281) by @​dwrth
  • refactor(logger): replace EnvironmentVariablesService class with helper functions (#4251) by @​jaimellamasi
  • test(event-handler): coverage 100% for AppSync GraphQL (#4261) by @​dreamorosi
  • refactor(kafka): improve tests & error handling (#4262) by @​dreamorosi
  • refactor(tracer): fix code quality issues (#4264) by @​dwrth

... (truncated)

Changelog

Sourced from @​aws-lambda-powertools/commons's changelog.

2.25.0 (2025-08-12)

Improvements

Features

  • parser make parse function available standalone (#4300) (4998d6b)
  • event-handler add event handler registry (#4307) (aaac429)
  • event-handler add error classes for http errors (#4299) (c1c3dd5)
  • event-handler implement route matching & resolution system for rest handler (#4297) (b8ca368)
  • event-handler add support for AppSync GraphQL batch resolvers (#4218) (12ac2e4)

Bug Fixes

  • parser cognito schema preferredRole may be null (#4259) (5ef5c85)

2.24.1 (2025-07-29)

Bug Fixes

  • metrics revert changes when raise warning with overridden default dimensions (#4226) (c9d6aa0)
  • metrics emit warning when default dimensions are overwritten (#4222) (a933a6a)
  • parser set zod peer range to 4.x (#4196) (7a65fcf)

Improvements

  • metrics replace EnvironmentVariablesService with cached #envConfig (#4188) (919063b)
  • metrics add runtime validations when adding dimensions (#4181) (4226058)
  • parameters replace EnvironmentVariablesService class with helper functions in Parameters (#4168) (ce4e618)
  • event-handler replace EnvironmentVariablesService class with helper functions in Event Handler (#4225) (d17818e)

Features

  • event-handler add route management system for ApiGw event handler (#4211) (c2cbb64)
  • event-handler add base router class (#3972) (3d4998c)

2.24.0 (2025-07-15)

Improvements

... (truncated)

Commits
  • deab7fc chore(deps): Bumped the version to 2.25.0 (#4310)
  • 60bf96e improv(ci): verify output of Layer deployment (Partitions) GitHub Action (#4308)
  • 5d5c602 chore(deps): bump actions/checkout from 4.2.2 to 5.0.0 (#4301)
  • 95fcefe chore(deps): bump @​types/node from 24.2.0 to 24.2.1 (#4304)
  • 723df62 chore(deps): bump the aws-sdk-v3 group across 1 directory with 34 updates (#4...
  • aaac429 feat(event-handler): add event handler registry (#4307)
  • eba63de chore(deps-dev): bump the typescript group across 1 directory with 2 updates ...
  • c1c3dd5 feat(event-handler): add error classes for http errors (#4299)
  • dc59488 chore(deps-dev): bump zod from 4.0.15 to 4.0.17 (#4302)
  • 4998d6b feat(parser): make parse function available standalone (#4300)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

Bumps [@aws-lambda-powertools/commons](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.20.0 to 2.25.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-typescript/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md)
- [Commits](aws-powertools/powertools-lambda-typescript@v2.20.0...v2.25.0)

---
updated-dependencies:
- dependency-name: "@aws-lambda-powertools/commons"
  dependency-version: 2.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 13, 2025
@dependabot dependabot bot requested a review from a team as a code owner August 13, 2025 07:05
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 13, 2025
@github-actions github-actions bot added the internal Maintenance changes label Aug 13, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 2, 2025

Superseded by #245.

@dependabot dependabot bot closed this Sep 2, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/unicorn_contracts/aws-lambda-powertools/commons-2.25.0 branch September 2, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file internal Maintenance changes javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants