Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 30, 2025

Bumps @aws-lambda-powertools/logger from 2.24.0 to 2.24.1.

Release notes

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

v2.24.1

Summary

In this release we have improved runtime validations in the Metrics utility, ensuring that invalid metrics are not sent to CloudWatch and avoiding data loss.

Furthermore, we now only support Zod 4.x. Using Zod 3.x with the Parser utility will result in a build-time error.

⭐ Congratulations @​JonkaSusaki and @​uttam282005 for their first PRs merged in the project 🎉

Metrics Runtime Validations

Docs

Before this release, if you published invalid metrics they could fail silently, leading to data loss. Now Lambda will throw an error if the following constraints do not hold:

  • Metric Name: Validated according to CloudWatch constraints
  • Metric Value: Validated for numeric values
  • Metric Unit: Validated for allowed units
  • Metric Resolution: Validated for allowed resolutions
  • Dimension Name: Both Dimension name and value are validated for non empty, non-null values.

Changes

  • fix(metrics): revert changes when raise warning with overridden default dimensions (#4226) by @​svozza
  • fix(metrics): emit warning when default dimensions are overwritten (#4222) by @​uttam282005
  • refactor(event-handler): replace EnvironmentVariablesService class with helper functions in Event Handler (#4225) by @​JonkaSusaki
  • ci: fix version output interpolation in make-version workflow (#4220) by @​dreamorosi
  • ci: set version number correctly when versioning (#4219) by @​dreamorosi
  • feat(event-handler): add route management system for ApiGw event handler (#4211) by @​svozza
  • ci: update make-release.yml workflow to use latest upstream (#4215) by @​dreamorosi
  • ci: remove local create-pr action (#4213) by @​dreamorosi
  • improv(maintenance): Removed some unused assignments and added missing error handling (#4208) by @​sdangol
  • ci: remove lerna version (#4201) by @​dreamorosi
  • refactor(ci): Updated the publish command in the CI to use npm publish instead of lerna publish (#4195) by @​sdangol
  • refactor(metrics): replace EnvironmentVariablesService with cached #envConfig (#4188) by @​uttam282005
  • improv(metrics): Added runtime validations for the metrics utility functions (#4181) by @​sdangol
  • refactor(parameters): replace EnvironmentVariablesService class with helper functions in Parameters (#4168) by @​JonkaSusaki

🌟New features and non-breaking changes

📜 Documentation updates

... (truncated)

Changelog

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

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)
Commits
  • fc26144 chore(ci): bump version to 2.24.1 (#4231)
  • c9d6aa0 fix(metrics): revert changes when raise warning with overridden default dimen...
  • a933a6a fix(metrics): emit warning when default dimensions are overwritten (#4222)
  • d17818e refactor(event-handler): replace EnvironmentVariablesService class with helpe...
  • fea274f ci: fix version output interpolation in make-version workflow (#4220)
  • 7bc1121 ci: set version number correctly when versioning (#4219)
  • c2cbb64 feat(event-handler): add route management system for ApiGw event handler (#4211)
  • 0c12440 ci: update make-release.yml workflow to use latest upstream (#4215)
  • 94ebf16 chore(deps): bump @​types/aws-lambda from 8.10.150 to 8.10.152 (#4205)
  • b1f7fee ci: remove local create-pr action (#4213)
  • 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/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.24.0 to 2.24.1.
- [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.24.0...v2.24.1)

---
updated-dependencies:
- dependency-name: "@aws-lambda-powertools/logger"
  dependency-version: 2.24.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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 Jul 30, 2025
Copy link

@eps-autoapprove-dependabot eps-autoapprove-dependabot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request because it includes a patch or minor update

@eps-autoapprove-dependabot eps-autoapprove-dependabot bot merged commit 865e170 into main Jul 30, 2025
2 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.24.1 branch July 30, 2025 01:45
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants