This repository was archived by the owner on Jan 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit 23c2fe9
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 & 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 />
[](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 23c2fe9Copy full SHA for 23c2fe9
1 file changed
+8
-8
lines changed+8-8
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
102 |
| - | |
103 |
| - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
|
0 commit comments