Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.14.0 to 2.15.0 #347

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 26, 2025

Bumps @aws-lambda-powertools/logger from 2.14.0 to 2.15.0.

Release notes

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

v2.15.0

Summary

This minor release improves the Idempotency utility by adding support for custom key prefixes. It also fixes a regression in Logger that caused runtime errors when passing an undefined or null value as extra argument.

⭐️ Thanks to @​ConnorKirk, @​VatsalGoel3, and @​shdq for their contributions to this release!

Custom Idempotency Key Prefix Support

Docs

The makeIdempotent, @idempotent decorator, and makeHandlerIdempotent Middy.js middleware now support an optional keyPrefix parameter, allowing you to define custom prefixes for idempotency keys. With this feature, you can implement cross-function idempotency, group related operations under a common prefix, and ensure your idempotency records remain stable during code refactoring or Lambda function renaming.

It allows you to override the default idempotency key prefix, which is typically a combination of Lambda function and function names. By specifying a custom prefix, you gain more control over the idempotency key structure.

carbon-7

Logging undefined or null arguments

In v2.13.1 we introduced a regression that caused runtime errors when passing undefined or null as extra arguments. This edge case could happen only when not using TypeScript or when passing arguments with broad types like any or unknown, since the types in all the logging methods already prevent you from passing these values. In this release we have fixed the regression so that Logger handles these values correctly.

Changes

🌟New features and non-breaking changes

📜 Documentation updates

  • chore: revert "feat(logger): refresh sample rate calculation per invocation" (#3652) by @​dreamorosi
  • feat(logger): refresh sample rate calculation per invocation (#3644) by @​am29d
  • chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (#3627) by @dependabot[bot]
  • chore(deps): bump the aws-cdk group across 1 directory with 2 updates (#3626) by @dependabot[bot]

... (truncated)

Changelog

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

2.15.0 (2025-02-25)

Bug Fixes

Features

Commits
  • e85ef33 chore(ci): bump version to 2.15.0 (#3654)
  • d94d3bf chore(maintenance): set app sdk ua env variable when none is set (#3651)
  • cd1331e chore: revert "feat(logger): refresh sample rate calculation per invocation" ...
  • 1d66a2a feat(logger): refresh sample rate calculation per invocation (#3644)
  • f471552 feat(logger): Emit a warning on buffer flush (#3639)
  • 7ae904a chore(deps): bump actions/setup-node from 4.1.0 to 4.2.0 (#3630)
  • 152094b chore(deps): bump aws-actions/configure-aws-credentials from 4.0.2 to 4.1.0 (...
  • 0594f28 chore(deps): bump release-drafter/release-drafter from 6.0.0 to 6.1.0 (#3628)
  • a629010 chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (#3627)
  • 01b9937 chore(deps): bump the aws-cdk group across 1 directory with 2 updates (#3626)
  • 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.14.0 to 2.15.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.14.0...v2.15.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 26, 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 enabled auto-merge (squash) February 26, 2025 02:24
@eps-autoapprove-dependabot eps-autoapprove-dependabot bot merged commit 6e612cd into main Feb 26, 2025
6 checks passed
@eps-autoapprove-dependabot eps-autoapprove-dependabot bot deleted the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.15.0 branch February 26, 2025 02:26
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