From 03745965a68173e0bb499398b468f4fb31a82ce9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 13:20:07 +0000 Subject: [PATCH] Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.1.1 to 2.2.0 (#388) 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.1.1 to 2.2.0.
Release notes

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

v2.2.0

Summary

This release improves 1/ Idempotency now handles payloads with out-of-order keys and functions with no return value, and 2/ Batch Processing can optionally continue processing messages with different group IDs for SQS FIFO queues.

🌟 ⭐ Special thanks to our contributors @​daschaa and @​arnabrahman - thank you for your work on this release!

Idempotency

Docs

Deep sort payload

⚠️ Previously processed transactions with out-of-order keys might lose idempotency guarantees

We now sort payloads before creating an idempotency key. Before, we were serializing them with the keys in the order they were provided.

In use cases where the client can send out-of-order payloads like REST APIs, browser clients, and proxies this could have caused the request to not be idempotent.

For example, the following two payloads would have resulted in two different hashes before this release:

carbon-3

Make functions idempotent with no return value

You can now make your function idempotent even if it returns no value. This is useful when your want to trigger AWS Step Functions workflow, or fire-and-forget other services or APIs. Before, Idempotency required an explicit return value and would have failed if not provided.

carbon-2

Batch Processing

Skip processing failed group id messages of SQS FIFO queues on error

Docs

You have now a new flag skipGroupOnError to return the messages from a failed group ID back to SQS and continue processing messages from subsequent group IDs. Previously, Batch stopped processing upon any failure regardless of the message group ID.

carbon-4

Parser (beta)

Docs

Fix sourceIp validation for APIGatewayProxyEvent for Management Console

APIGatewayProxyEvent is now compatible with the test payload from Amazon API Gateway Console. When testing an endpoint from the AWS Console, API Gateway sends a mock source IP value, test-invoke-source-ip, causing the validation to fail. The Parser utility now includes an override to handle this edge case.

Changes

... (truncated)

Changelog

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

2.2.0 (2024-06-13)

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.1.1&new-version=2.2.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 | 20 +++++++++---------- packages/capabilityStatement/package.json | 2 +- packages/cpsuLambda/package.json | 2 +- packages/gsul/package.json | 2 +- packages/sandbox/package.json | 2 +- packages/statusLambda/package.json | 2 +- .../updatePrescriptionStatus/package.json | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 80335f8d5..b513d4e5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -340,11 +340,11 @@ "integrity": "sha512-ZBJ+1ccaP6u9fYrGVWOJYLcseUPZr66/JmL3Z8TcirFTvpb74+Fasn6fdJyh+GgbDDlxsmv62SDum09rKOMBfg==" }, "node_modules/@aws-lambda-powertools/logger": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-2.1.1.tgz", - "integrity": "sha512-OB/ycDef8VD4OpGZcte2dxkdNWQCSxjRu8OJ2nuizh7auqZMI5LX8PYoIBEBRQC138CeJBtKKCwjSi+NOFMY1w==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-2.2.0.tgz", + "integrity": "sha512-/qD15Q67ztTRJKKKmYProSIEnMRMByw/jH80ZTrOIYf0K0hCujl3cUfN2yDLBkRyoDfiIz22LfRoVYKJfYjc7Q==", "dependencies": { - "@aws-lambda-powertools/commons": "^2.1.1", + "@aws-lambda-powertools/commons": "^2.2.0", "lodash.merge": "^4.6.2" }, "peerDependencies": { @@ -15371,7 +15371,7 @@ "license": "MIT", "dependencies": { "@aws-lambda-powertools/commons": "^2.0.4", - "@aws-lambda-powertools/logger": "^2.1.0", + "@aws-lambda-powertools/logger": "^2.2.0", "@middy/core": "^5.4.0", "@middy/input-output-logger": "^5.4.0", "@nhs/fhir-middy-error-handler": "^2.0.8" @@ -15382,7 +15382,7 @@ "license": "MIT", "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-sdk/client-dynamodb": "^3.577.0", "@aws-sdk/util-dynamodb": "^3.596.0", "@middy/core": "^5.3.5", @@ -15406,7 +15406,7 @@ "license": "MIT", "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-sdk/client-dynamodb": "^3.577.0", "@aws-sdk/lib-dynamodb": "^3.596.0", "@aws-sdk/util-dynamodb": "^3.596.0", @@ -15421,7 +15421,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@middy/core": "^5.4.0", "@middy/input-output-logger": "^5.4.0", "@nhs/fhir-middy-error-handler": "^2.0.8" @@ -15444,7 +15444,7 @@ "license": "MIT", "dependencies": { "@aws-lambda-powertools/commons": "^2.0.4", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-lambda-powertools/parameters": "^2.2.0", "@middy/core": "^5.4.0", "@middy/input-output-logger": "^5.4.0", @@ -15460,7 +15460,7 @@ "license": "MIT", "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-sdk/client-dynamodb": "^3.577.0", "@aws-sdk/util-dynamodb": "^3.596.0", "@middy/core": "^5.4.0", diff --git a/packages/capabilityStatement/package.json b/packages/capabilityStatement/package.json index 24357b224..03e051883 100644 --- a/packages/capabilityStatement/package.json +++ b/packages/capabilityStatement/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@aws-lambda-powertools/commons": "^2.0.4", - "@aws-lambda-powertools/logger": "^2.1.0", + "@aws-lambda-powertools/logger": "^2.2.0", "@middy/core": "^5.4.0", "@middy/input-output-logger": "^5.4.0", "@nhs/fhir-middy-error-handler": "^2.0.8" diff --git a/packages/cpsuLambda/package.json b/packages/cpsuLambda/package.json index 97f89913c..b68e6f507 100644 --- a/packages/cpsuLambda/package.json +++ b/packages/cpsuLambda/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-sdk/client-dynamodb": "^3.577.0", "@aws-sdk/util-dynamodb": "^3.596.0", "@middy/core": "^5.3.5", diff --git a/packages/gsul/package.json b/packages/gsul/package.json index b2eb49659..b39954f90 100644 --- a/packages/gsul/package.json +++ b/packages/gsul/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-sdk/client-dynamodb": "^3.577.0", "@aws-sdk/lib-dynamodb": "^3.596.0", "@aws-sdk/util-dynamodb": "^3.596.0", diff --git a/packages/sandbox/package.json b/packages/sandbox/package.json index fd496b909..27938b4c9 100644 --- a/packages/sandbox/package.json +++ b/packages/sandbox/package.json @@ -13,7 +13,7 @@ "check-licenses": "license-checker --failOn GPL --failOn LGPL --start ../.." }, "dependencies": { - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@middy/core": "^5.4.0", "@middy/input-output-logger": "^5.4.0", "@nhs/fhir-middy-error-handler": "^2.0.8" diff --git a/packages/statusLambda/package.json b/packages/statusLambda/package.json index aa1f48f30..c0598d310 100644 --- a/packages/statusLambda/package.json +++ b/packages/statusLambda/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@aws-lambda-powertools/commons": "^2.0.4", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-lambda-powertools/parameters": "^2.2.0", "@middy/core": "^5.4.0", "@middy/input-output-logger": "^5.4.0", diff --git a/packages/updatePrescriptionStatus/package.json b/packages/updatePrescriptionStatus/package.json index ec8d2ac9f..2eb549253 100644 --- a/packages/updatePrescriptionStatus/package.json +++ b/packages/updatePrescriptionStatus/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@aws-lambda-powertools/commons": "^2.0.0", - "@aws-lambda-powertools/logger": "^2.1.1", + "@aws-lambda-powertools/logger": "^2.2.0", "@aws-sdk/client-dynamodb": "^3.577.0", "@aws-sdk/util-dynamodb": "^3.596.0", "@middy/core": "^5.4.0",