From 6e612cddcd42ac04b5749bb08088857f31766f9a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 02:26:43 +0000 Subject: [PATCH] Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.14.0 to 2.15.0 (#347) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) 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

... (truncated)

Changelog

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

2.15.0 (2025-02-25)

Bug Fixes

Features

Commits

[![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.14.0&new-version=2.15.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) ---
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 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)
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 16 ++++++++-------- package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index b471a9e..744628b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@aws-lambda-powertools/logger": "^2.14.0", + "@aws-lambda-powertools/logger": "^2.15.0", "@types/mustache": "^4.2.5", "aws-lambda": "^1.0.7", "axios": "^1.7.9", @@ -48,18 +48,18 @@ } }, "node_modules/@aws-lambda-powertools/commons": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/commons/-/commons-2.14.0.tgz", - "integrity": "sha512-tJPVanYElAo0WymoQ0pyELpHdGCz9u7ERKdCwHv4abtJFY2VVoIMLtsUs8xUczV2hjIWl0+ye9CGYCBazKYB3Q==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/commons/-/commons-2.15.0.tgz", + "integrity": "sha512-KGcRr6Hh1tfhnKq8bU6EZRzZ399NHHMjttB0B1+4i6XEpqIl0OC4bkVEHjz7aYKx9my3wYVzMne5+kIbkN7NGQ==", "license": "MIT-0" }, "node_modules/@aws-lambda-powertools/logger": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-2.14.0.tgz", - "integrity": "sha512-gumsz+1yGBLB3zPB6Qlsw4Vse9SRgsg2qAy1Ocv+o7tE8AZiPslFFG1EldpNzz1hoGBzsdIKgoRlrUIdW8Pumg==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-2.15.0.tgz", + "integrity": "sha512-Ic8GYIDo2luaZOMGJ9i1ogem/fagVeJkhqk8l8lykMjBsI+dI/RLMTpZlWpgq7wGr/gecZs9AmBzSlhmxsv08g==", "license": "MIT-0", "dependencies": { - "@aws-lambda-powertools/commons": "^2.14.0", + "@aws-lambda-powertools/commons": "^2.15.0", "lodash.merge": "^4.6.2" }, "peerDependencies": { diff --git a/package.json b/package.json index e5d347e..74246ab 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "typescript": "^5.7.3" }, "dependencies": { - "@aws-lambda-powertools/logger": "^2.14.0", + "@aws-lambda-powertools/logger": "^2.15.0", "@types/mustache": "^4.2.5", "aws-lambda": "^1.0.7", "axios": "^1.7.9",