Skip to content

Commit

Permalink
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.1.1…
Browse files Browse the repository at this point in the history
… to 2.2.0 (#388)

Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.1.1 to 2.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/releases"><code>@​aws-lambda-powertools/logger</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v2.2.0</h2>
<h2>Summary</h2>
<p>This release improves <strong>1/ Idempotency</strong> now handles
payloads with out-of-order keys and functions with no return value, and
<strong>2/ Batch Processing</strong> can optionally continue processing
messages with different group IDs for SQS FIFO queues.</p>
<p>🌟 ⭐ Special thanks to our contributors <a
href="https://github.com/daschaa"><code>@​daschaa</code></a> and <a
href="https://github.com/arnabrahman"><code>@​arnabrahman</code></a> -
thank you for your work on this release!</p>
<h3>Idempotency</h3>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/idempotency/">Docs</a></p>
</blockquote>
<h4>Deep sort payload</h4>
<h5>⚠️ Previously processed transactions with out-of-order keys might
lose idempotency guarantees</h5>
<p>We now sort payloads before creating an <a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/idempotency/#terminology">idempotency
key</a>. Before, we were serializing them with the keys in the order
they were provided.</p>
<p>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.</p>
<p>For example, the following two payloads would have resulted in two
different hashes before this release:</p>
<p><img
src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/b0827b20-a540-4e66-8353-3199e8a01e35"
alt="carbon-3" /></p>
<h4>Make functions idempotent with no return value</h4>
<p>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.</p>
<p><img
src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/236cdca9-7440-42de-81f8-df26c9858576"
alt="carbon-2" /></p>
<h3>Batch Processing</h3>
<h4>Skip processing failed group id messages of SQS FIFO queues on
error</h4>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/batch/#processing-messages-from-sqs">Docs</a></p>
</blockquote>
<p>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.</p>
<p><img
src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/5df60ef0-a235-4c37-bd36-df84e8ccb611"
alt="carbon-4" /></p>
<h3>Parser (beta)</h3>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/">Docs</a></p>
</blockquote>
<h4>Fix sourceIp validation for APIGatewayProxyEvent for Management
Console</h4>
<p><code>APIGatewayProxyEvent</code> 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,
<code>test-invoke-source-ip</code>, causing the validation to fail. The
Parser utility now includes an override to handle this edge case.</p>
<h2>Changes</h2>
<ul>
<li>test(idempotency): fix integration tests (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2622">#2622</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md"><code>@​aws-lambda-powertools/logger</code>'s
changelog</a>.</em></p>
<blockquote>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.1.1...v2.2.0">2.2.0</a>
(2024-06-13)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>idempotency:</strong> deep sort payload during hashing (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2570">#2570</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6765f35e98e2d8267d2672c12ba387a9af62a4b5">6765f35</a>)</li>
<li><strong>parser:</strong> handle API Gateway Test UI sourceIp (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2531">#2531</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/cd6c512c3a3b799debdafabac1558c8d40c8dc93">cd6c512</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>batch:</strong> add option to continue processing other
group IDs on failure in <code>SqsFifoPartialProcessor</code> (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2590">#2590</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a615c24108c4653be4c62d8488092fc08a4a3cc3">a615c24</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b35f9f101afea1c09dc94dea0c4990efaac9b488"><code>b35f9f1</code></a>
chore(ci): bump version to 2.2.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2647">#2647</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/df6952a2a9daef9fbea07a267a92ab7021205d60"><code>df6952a</code></a>
chore(deps-dev): pin lerna to 8.1.2 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2646">#2646</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/9f58754cb52343f10ad11a075cc1fbcd8462e067"><code>9f58754</code></a>
chore(deps): bump the aws-sdk group across 1 directory with 9 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2644">#2644</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/825dadf216787d65f25d906c796eeb241f88708f"><code>825dadf</code></a>
chore(ci): revert - bump version to 2.2.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2639">#2639</a>)
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2643">#2643</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/bfdd14f0f15649121aa4c84ca91223fd3a655743"><code>bfdd14f</code></a>
chore(ci): bump version to 2.2.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2639">#2639</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a649078297a5ec6edc863703f8798e4ce3cba4ca"><code>a649078</code></a>
chore(deps-dev): bump aws-sdk from 2.1637.0 to 2.1639.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2638">#2638</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e29347633fede9361fb2075edef84a59446f5893"><code>e293476</code></a>
chore(deps-dev): bump prettier from 3.3.1 to 3.3.2 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2633">#2633</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4337323083ee7b3df59c9a9281e06c3b8fac98a6"><code>4337323</code></a>
chore(deps): bump aws-xray-sdk-core from 3.6.0 to 3.9.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2631">#2631</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e894c7e13219116b672a6ebfdcdcd0276704bd54"><code>e894c7e</code></a>
docs(tracer): add ESM instructions to tracer usage docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2630">#2630</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b2109af87254f7ea52ec356af48957d2a7d77f27"><code>b2109af</code></a>
test(idempotency): fix integration tests (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2622">#2622</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.1.1...v2.2.0">compare
view</a></li>
</ul>
</details>
<br />


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

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jun 14, 2024
1 parent 35842a7 commit 0374596
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/capabilityStatement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/cpsuLambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/gsul/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/statusLambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/updatePrescriptionStatus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0374596

Please sign in to comment.