Skip to content

Commit

Permalink
⬆️ Bump @aws-lambda-powertools/logger from 2.3.0 to 2.4.0 (#344)
Browse files Browse the repository at this point in the history
Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.3.0 to 2.4.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.4.0</h2>
<h2>Summary</h2>
<p>This release improves: <strong>1/</strong> Logger by making it time
zone aware, and <strong>2/</strong> Batch Processing which you can now
customize to not throw an error when the entire batch of items fails to
process.</p>
<p>We also dropped support for Node.js 16, and introduced support for
Middy.js 5.x for functions using ES Modules.</p>
<p>🌟 ⭐ Thank you to <a
href="https://github.com/arnabrahman"><code>@​arnabrahman</code></a> for
the work on both the new features!</p>
<h3>Change timezone in log timestamps</h3>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/core/logger/#setting-timestamp-to-custom-timezone">Docs</a></p>
</blockquote>
<p>You can now change the timezone used for timestamps in your logs
using the <code>TZ</code> environment variable, which is now taken in
account when instantiating a new Logger instance. This is useful for
when you want your logs to use a different timezone than the default UTC
one.</p>
<p><img
src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/4953b28d-4570-4bef-b3e7-0387cb86d50c"
alt="carbon" /></p>
<h3>Working with full batch failures</h3>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/batch/#working-with-full-batch-failures">Docs</a></p>
</blockquote>
<p>You can now configure the Batch Processing utility to not throw a
<code>FullBatchFailureError</code> when all the records in the batch
fail to process, by setting the <code>throwOnFullBatchFailure</code>
option to <code>false</code>. This is useful when working with functions
that handle batches with a small number of records, or when you use
errors as a flow control mechanism.</p>
<p><img
src="https://github.com/aws-powertools/powertools-lambda-typescript/assets/7353869/0423e3ff-1b29-4d18-865e-c3b29db704bc"
alt="carbon-24" /></p>
<h3>End of support for Node.js 16</h3>
<blockquote>
<p><a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2223">Docs</a></p>
</blockquote>
<p>Three months ago we <a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2223">announced</a>
that we would stop supporting Node.js 16, and today we are removing
support.
End of support does not impact existing functions and functions using
versions of Powertools for AWS Lambda (TypeScript) up to version 2.3.0,
however starting from this release we no longer guarantee compatibility
with Node.js 16.</p>
<p>We recommend that you upgrade your existing Node.js 16 functions to
Node.js 18 or later if you want to use Powertools for AWS Lambda
(TypeScript) version 2.4.0 and above.</p>
<h2>Changes</h2>
<ul>
<li>chore(ci): revert enable CodeQl (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2731">#2731</a>)
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2740">#2740</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(deps): bump github/codeql-action from 3.23.0 to 3.25.11 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2745">#2745</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump actions/download-artifact from 4.1.7 to 4.1.8 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2746">#2746</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump actions/upload-artifact from 4.3.3 to 4.3.4 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2744">#2744</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(ci): enable CodeQl (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2731">#2731</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions
from 3.0.9 to 3.0.10 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2729">#2729</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump github/codeql-action from 3.25.10 to 3.25.11 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2719">#2719</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(ci): update Dependabot groups for typedoc (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2716">#2716</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
</ul>
<h2>🌟New features and non-breaking changes</h2>
<ul>
<li>feat(internal): support Middy.js 5.x (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2748">#2748</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>feat(batch): add option to not throw
<code>FullBatchFailureError</code> when the entire batch fails (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2711">#2711</a>)
by <a
href="https://github.com/arnabrahman"><code>@​arnabrahman</code></a></li>
<li>feat(logger): time zone aware timestamp in Logger (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2710">#2710</a>)
by <a
href="https://github.com/arnabrahman"><code>@​arnabrahman</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.3.0...v2.4.0">2.4.0</a>
(2024-07-10)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>idempotency:</strong> check error identity via names (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2747">#2747</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/55c387816baee98829441526a0de001044d67344">55c3878</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>batch:</strong> add option to not throw
<code>FullBatchFailureError</code> when the entire batch fails (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2711">#2711</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/74198ef1ec1d11267813d2f4b6dd5f4c5692f7d4">74198ef</a>)</li>
<li><strong>internal:</strong> support Middy.js 5.x (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2748">#2748</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/1d7ad61a569a4b1421dbe1754b0179f676cfede7">1d7ad61</a>)</li>
<li><strong>layers:</strong> deploy Lambda layers in
<code>ap-south-2</code> and <code>me-central-1</code> (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2675">#2675</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/208c57a28eb7140bf4a2a93a4201a06fced049b9">208c57a</a>)</li>
<li><strong>logger:</strong> time zone aware timestamp in Logger (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2710">#2710</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/9fe4c754960a07aad008ff4ada63cf68aa9ba89a">9fe4c75</a>)</li>
<li><strong>maintenance:</strong> drop support for Node.js 16.x (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2717">#2717</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e4eee73770ffccead9212a566335ec256a31af7d">e4eee73</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/9f19407098828042f1820279aa040bc440db111f"><code>9f19407</code></a>
chore(ci): bump version to 2.4.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2763">#2763</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/eb07657b0104e2cf3d15d06324531f9c767e5dda"><code>eb07657</code></a>
chore(layers): revert deploy Lambda layers in <code>ap-south-2</code>
and <code>me-central-1</code>...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5de87d4d3597e41792ddd90e251ebe46576c1453"><code>5de87d4</code></a>
chore(deps-dev): bump aws-sdk from 2.1652.0 to 2.1657.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2753">#2753</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/aa52802044266b4e437b108894f77b255c19e9fa"><code>aa52802</code></a>
chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2754">#2754</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/1d7ad61a569a4b1421dbe1754b0179f676cfede7"><code>1d7ad61</code></a>
feat(internal): support Middy.js 5.x (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2748">#2748</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/12f8e5ffb6843caba7585d81d6cb4a96976fdbed"><code>12f8e5f</code></a>
chore(ci): revert enable CodeQl (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2731">#2731</a>)
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2740">#2740</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/55c387816baee98829441526a0de001044d67344"><code>55c3878</code></a>
fix(idempotency): check error identity via names (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2747">#2747</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/74198ef1ec1d11267813d2f4b6dd5f4c5692f7d4"><code>74198ef</code></a>
feat(batch): add option to not throw <code>FullBatchFailureError</code>
when the entire ...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/649662a44c49fcebd35db5561e6c0dd2f7dfe0fc"><code>649662a</code></a>
chore(deps): bump github/codeql-action from 3.23.0 to 3.25.11 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2745">#2745</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b06454b5795be3554cd894ee71406690e8e01182"><code>b06454b</code></a>
chore(deps): bump actions/download-artifact from 4.1.7 to 4.1.8 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2746">#2746</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.3.0...v2.4.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.3.0&new-version=2.4.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 Jul 12, 2024
1 parent 41f651b commit a853e76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 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/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@aws-lambda-powertools/commons": "^2.2.0",
"@aws-lambda-powertools/logger": "^2.3.0",
"@aws-lambda-powertools/logger": "^2.4.0",
"@middy/core": "^5.4.3",
"@middy/input-output-logger": "^5.4.3",
"@nhs/fhir-middy-error-handler": "^2.0.9"
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.2.0",
"@aws-lambda-powertools/logger": "^2.3.0",
"@aws-lambda-powertools/logger": "^2.4.0",
"@aws-lambda-powertools/parameters": "^2.3.0",
"@middy/core": "^5.4.3",
"@middy/input-output-logger": "^5.4.3",
Expand Down

0 comments on commit a853e76

Please sign in to comment.