Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 23c2fe9

Browse files
fix(lambda): bump @aws-lambda-powertools/logger from 1.10.0 to 1.12.1 in /lambdas (#3414)
Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 1.10.0 to 1.12.1. <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>v1.12.1</h2> <h2>Summary</h2> <p>This release brings another new utility to Powertools for AWS Lambda (TypeScript): introducing the Batch Processing utility ✨ The release also improves the Logger utility, which can now include the <code>cause</code> field in error logs.</p> <h3>Batch Processing Beta</h3> <blockquote> <p><strong>Warning</strong> <strong>This utility is currently released as beta developer preview</strong> and is intended strictly for feedback and testing purposes <strong>and not for production workloads</strong>. The version and all future versions tagged with the <code>-beta</code> suffix should be treated as not stable. Up until before the <a href="https://github.com/awslabs/aws-lambda-powertools-typescript/milestone/14">General Availability release</a> we might introduce significant breaking changes and improvements in response to customers feedback.</p> </blockquote> <p>The batch processing utility handles partial failures when processing batches from Amazon SQS, Amazon Kinesis Data Streams, and Amazon DynamoDB Streams.</p> <h4>Key Features</h4> <ul> <li>Reports batch item failures to reduce number of retries for a record upon errors</li> <li>Simple interface to process each batch record</li> <li>Build your own batch processor by extending primitives</li> </ul> <h4>Problem Statement</h4> <p>When using SQS, Kinesis Data Streams, or DynamoDB Streams as a Lambda event source, your Lambda functions are triggered with a batch of messages.</p> <p>If your function fails to process any message from the batch, the entire batch returns to your queue or stream. This same batch is then retried until either condition happens first: <strong>a)</strong> your Lambda function returns a successful response, <strong>b)</strong> record reaches maximum retry attempts, or <strong>c)</strong> when records expire.</p> <p>With this utility, batch records are processed individually – only messages that failed to be processed return to the queue or stream for a further retry.</p> <h4>Getting Started</h4> <p>To get started, install the utility by running:</p> <pre lang="sh"><code>npm install @aws-lambda-powertools/batch </code></pre> <p>Then, define a record handler function:</p> <p><img src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/d2a1aa01-4914-4df2-bb5f-174093efba00" alt="record handler" /></p> <p>This function will be called by the Batch Processing utility for each record in the batch. If the function throws an error, the record will be marked as failed and reported once the main handler returns.</p> <p>Record handlers can be both synchronous and asynchronous, in the latter case the utility will process all the records of your batch in concurrently. To learn more about when it's safe to use async handlers, check the <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/batch/#processing-messages-asynchronously">dedicated section</a> in our docs.</p> <h4>SQS Processor</h4> <p>When using SQS as a Lambda event source, you can specify the <code>EventType.SQS</code> to process the records. The response will be a <code>SQSBatchResponse</code> which contains a list of items that failed to be processed.</p> <p><img src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/93ca3121-e708-4d5a-961e-e10658bf9f6f" alt="sqs processing" /></p> <p>To learn more about this mode, as well as how to process SQS FIFO queues, <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/batch/#processing-messages-from-sqs">check the docs</a>.</p> <!-- 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> <h2><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.12.0...v1.12.1">1.12.1</a> (2023-07-25)</h2> <p><strong>Note:</strong> Version bump only for package aws-lambda-powertools-typescript</p> <h1><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.11.1...v1.12.0">1.12.0</a> (2023-07-25)</h1> <h3>Features</h3> <ul> <li><strong>batch:</strong> add batch processing utility (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1625">#1625</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c4e6b192c3658cbcc3f458a579a0752153e3c201">c4e6b19</a>), closes <a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1588">#1588</a> <a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1591">#1591</a> <a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1593">#1593</a> <a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1592">#1592</a> <a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1594">#1594</a></li> <li><strong>logger:</strong> add cause to formatted error (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1617">#1617</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6a145959249db6eeb89fdfe3ed4c6e30ab155f9c">6a14595</a>)</li> </ul> <h2><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.11.0...v1.11.1">1.11.1</a> (2023-07-11)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>docs:</strong> fix alias in versions.json (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1576">#1576</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7198cbca28962e07486b90ecb4f265cafe28bf73">7198cbc</a>)</li> <li><strong>idempotency:</strong> types, docs, and <code>makeIdempotent</code> function wrapper (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1579">#1579</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/bba1c01a0b3f08e962568e1d0eb44d486829657b">bba1c01</a>)</li> </ul> <h1><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.10.0...v1.11.0">1.11.0</a> (2023-06-29)</h1> <h3>Features</h3> <ul> <li><strong>idempotency:</strong> preserve original error when wrapping into <code>IdempotencyPersistenceLayerError</code> (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1552">#1552</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/866837daf34563698709612351c45769e02daf16">866837d</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2aa1d880a8cb645cbaa7dc2556c362a4a2d5d1a1"><code>2aa1d88</code></a> chore(release): v1.12.1 [skip ci]</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c303a592088f7dfc16cffd9ba9f1cc17e95390a6"><code>c303a59</code></a> chore(ci): add batch to build (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1630">#1630</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e7d84114c60b3db9e0528987857fd22712ed8457"><code>e7d8411</code></a> chore: update layer ARN on documentation</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/368bb0ddf5edf0c0f9a3bfc0f1568af3d31fb834"><code>368bb0d</code></a> chore(release): v1.12.0 [skip ci]</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ee0a141523aa1c5b151086629cd3ad0f2fe11a73"><code>ee0a141</code></a> chore(commons): bump version prior to release (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1628">#1628</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/02cd84bbe8505345c7f6bf8d7cdf123d3608daa0"><code>02cd84b</code></a> docs(parameters): add parameters examples cdk and sam (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1622">#1622</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c4e6b192c3658cbcc3f458a579a0752153e3c201"><code>c4e6b19</code></a> feat(batch): add batch processing utility (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1625">#1625</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0b575a1f136044c7e00b40a95cc66bf0d07963f5"><code>0b575a1</code></a> chore(maintenance): bump word-wrap from 1.2.3 to 1.2.4 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1618">#1618</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6a145959249db6eeb89fdfe3ed4c6e30ab155f9c"><code>6a14595</code></a> feat(logger): add cause to formatted error (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1617">#1617</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a57dc113a875ea098b659cdf5f90c34010664097"><code>a57dc11</code></a> chore(ci): restore dependencies &amp; fix e2e tests (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1615">#1615</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.10.0...v1.12.1">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=1.10.0&new-version=1.12.1)](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 </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niek Palm <[email protected]>
1 parent ef46827 commit 23c2fe9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: lambdas/yarn.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@
9292
"@aws-sdk/util-utf8-browser" "^3.0.0"
9393
tslib "^1.11.1"
9494

95-
"@aws-lambda-powertools/commons@^1.10.0":
96-
version "1.10.0"
97-
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/commons/-/commons-1.10.0.tgz#86623f1c4b02f28419a8006318d1c6c982629c1e"
98-
integrity sha512-MgiQrspYfywSwiWbKjWNfhhgVoYCPRXvhBOzUrGhOomBxX+Fd9YxXaJDWTYLL6myOuCD2KjzUUiQmWnxH9/3Xg==
95+
"@aws-lambda-powertools/commons@^1.12.1":
96+
version "1.12.1"
97+
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/commons/-/commons-1.12.1.tgz#17d2e925fe1a23bec85a5ccb12fd624d43e7538d"
98+
integrity sha512-VChNfDUxxcB5KTfQPkJgxYihEZkrmeOzU9/A9FRBc+3v33EEM59T2pIgBkFy0VoINvGi3MoBEln/wyu2jV0ivA==
9999

100100
"@aws-lambda-powertools/logger@^1.8.0":
101-
version "1.10.0"
102-
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/logger/-/logger-1.10.0.tgz#2f682b7e62ed92f6c773e5d9c65a0c530d060a54"
103-
integrity sha512-tuXCpadvanMNwpu+zjK8WHDF3d4BUPB7YMzgrhLxDR1Z6so4FdBSZlt0UQW4l26UKVBdn9hoM4ztunsTVlbO1Q==
101+
version "1.12.1"
102+
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/logger/-/logger-1.12.1.tgz#6a7d7d9df30519cb7030bfb282cba8c8fa25f66e"
103+
integrity sha512-QMBkd6/rN2MniiNcWeCigT4AKqH+NG1X6xN8S+YLszd4qJvXvRqx2EBO01WVrtyctOE8IpLqxicevmw1cJqDIA==
104104
dependencies:
105-
"@aws-lambda-powertools/commons" "^1.10.0"
105+
"@aws-lambda-powertools/commons" "^1.12.1"
106106
lodash.merge "^4.6.2"
107107

108108
"@aws-sdk/client-ec2@^3.350.0":

0 commit comments

Comments
 (0)