Skip to content

Commit

Permalink
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.10.…
Browse files Browse the repository at this point in the history
…0 to 2.11.0 (#248)

Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.10.0 to 2.11.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.11.0</h2>
<h2>Summary</h2>
<p>In this release we’ve added support for the new Node.js 22 managed
runtime in AWS Lambda 🚀.</p>
<p>We have also added two new features to Metrics to let you:
<strong>1/</strong> set a custom logger, and <strong>2/</strong> emit
metrics with a custom timestamp; and improved Batch Processing by adding
async processing of SQS FIFO queues.</p>
<p>⭐️ Thanks to <a
href="https://github.com/arnabrahman"><code>@​arnabrahman</code></a> and
<a href="https://github.com/psperber"><code>@​psperber</code></a> for
their contributions to this release!</p>
<h2>Node.js 22 support</h2>
<p>You can now use Powertools for AWS Lambda (TypeScript) with the new
Node.js 22 runtime in AWS Lambda.</p>
<p>We’ve partnered with the AWS Lambda team for this launch and have
been testing our toolkit for the past few weeks to ensure compatibility
with no changes from your side.</p>
<p>To start using Powertools for AWS with the new runtime, you can
upgrade to this version via npm or use the latest version of our Lambda
layer.</p>
<h2>Custom timestamps in metrics</h2>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/core/metrics/">Docs</a></p>
</blockquote>
<p>You can now configure the timestamp of all the metrics you create,
using the <code>setTimestamp()</code> method. This allows you to specify
a Datetime object or an integer representing an epoch timestamp in
milliseconds. This is useful when emitting metrics related to an event
in the past or in the future.</p>
<p><img
src="https://github.com/user-attachments/assets/4aa76012-f91e-4cf2-b34a-d36f98e83b0a"
alt="carbon-6" /></p>
<h2>Bring your own logger to Metrics</h2>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/2.11.0/api/types/_aws_lambda_powertools_metrics.types.MetricsOptions.html">Docs</a></p>
</blockquote>
<p>Additionally, you can now also set a custom logger that the Metrics
utility will use to emit warnings and debug logs. This is helpful for
when you want to silence certain warnings or see diagnostic messages
from the utility. To avoid compatibility issues and potential data loss,
we will continue to emit the EMF blobs for your metrics directly to
stdout.</p>
<p><img
src="https://github.com/user-attachments/assets/8b09b684-a42a-4cf9-a01c-2157acde2231"
alt="carbon-7" /></p>
<h2>FIFO queues async processing</h2>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/batch/#fifo-queues">Docs</a></p>
</blockquote>
<p>You can now use an asynchronous function as record handler when
processing a batch of items coming from an Amazon SQS FIFO queue. This
is helpful when you need to perform side effects that involve http
requests or other AWS services.</p>
<p><img
src="https://github.com/user-attachments/assets/8fa5e424-4588-4586-bf89-b7e2faa2252f"
alt="carbon-8" /></p>
<h2>Changes</h2>
<ul>
<li>chore(deps): bump github/codeql-action from 3.27.0 to 3.27.3 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3314">#3314</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(parser): fix type inference for result types (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3293">#3293</a>)
by <a href="https://github.com/am29d"><code>@​am29d</code></a></li>
<li>chore: fix relative import regression (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3287">#3287</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.15 to 3.0.16 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3282">#3282</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump actions/setup-node from 4.0.4 to 4.1.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3258">#3258</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump actions/dependency-review-action from 4.3.5 to
4.4.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3268">#3268</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump github/codeql-action from 3.26.13 to 3.27.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3245">#3245</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</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.10.0...v2.11.0">2.11.0</a>
(2024-11-20)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>metrics:</strong> skip empty string dimension values (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3319">#3319</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/924d49dcac8cc999782db51e61d8e854b752cd5c">924d49d</a>)</li>
<li><strong>parser:</strong> add aws region to kinesis event (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3260">#3260</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/246f13253bdba1f6963cf53605b0ae10698f063e">246f132</a>)</li>
<li><strong>parser:</strong> event type literal for selfManagedKafka (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3325">#3325</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5350afed92d02b7b8d47f387705f70c59deeeb65">5350afe</a>)</li>
<li><strong>parser:</strong> fix cause errors nested structure (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3250">#3250</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/1ff97cb758b2e44a76ce108d8e54c9335088abba">1ff97cb</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>batch:</strong> Async Processing of Records for for SQS Fifo
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3160">#3160</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e73b575b784b7a59ca8cde02d4ca51ec97789d19">e73b575</a>)</li>
<li><strong>metrics:</strong> ability to set custom timestamp with
<code>setTimestamp</code> for metrics (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3310">#3310</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0fb94c38cbead6333ff4a17354c81ce73fe51afd">0fb94c3</a>)</li>
<li><strong>metrics:</strong> add ability to pass custom logger (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3057">#3057</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a531b90031826970673eb8bfad78dee6edd0a359">a531b90</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/961f527328b6c2bedb1b9c6d517323d6725ba0f9"><code>961f527</code></a>
chore(ci): bump version to 2.11.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3337">#3337</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6733584407e2e1dc80c60515875d5566f423a51f"><code>6733584</code></a>
chore: migrate dev environment to nodejs22 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3327">#3327</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dffde6c2e12efe491d87a8d19373527953ab691d"><code>dffde6c</code></a>
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3335">#3335</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c71a3ae9f28c880587d5a2ccf6793a458fc19874"><code>c71a3ae</code></a>
chore(deps): bump mkdocs-material from 9.5.44 to 9.5.45 in /docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3334">#3334</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8cec7eade434479eda19a9ef53fbf6f33294b1fe"><code>8cec7ea</code></a>
chore(deps): bump cross-spawn from 7.0.3 to 7.0.6 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3331">#3331</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4cd551aec882b91ff63aab68bb7868c95789d369"><code>4cd551a</code></a>
chore(deps-dev): bump <code>@​vitest/coverage-v8</code> from 2.1.4 to
2.1.5 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3318">#3318</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/924d49dcac8cc999782db51e61d8e854b752cd5c"><code>924d49d</code></a>
fix(metrics): skip empty string dimension values (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3319">#3319</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5350afed92d02b7b8d47f387705f70c59deeeb65"><code>5350afe</code></a>
fix(parser): event type literal for selfManagedKafka (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3325">#3325</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/de1ee899f75150c8812443205cd99978e5b14b1e"><code>de1ee89</code></a>
chore(deps): bump aws-xray-sdk-core from 3.10.1 to 3.10.2 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3313">#3313</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ed867db20df39c7fb32396eec85a665b283135c0"><code>ed867db</code></a>
chore(deps): bump github/codeql-action from 3.27.0 to 3.27.3 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3314">#3314</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.10.0...v2.11.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.10.0&new-version=2.11.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>
Co-authored-by: anthony-nhs <[email protected]>
  • Loading branch information
dependabot[bot] and anthony-nhs authored Nov 20, 2024
1 parent 97b2423 commit a0e7956
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"typescript": "^5.6.3"
},
"dependencies": {
"@aws-lambda-powertools/logger": "^2.10.0",
"@aws-lambda-powertools/logger": "^2.11.0",
"@middy/core": "^5.5.1",
"conventional-changelog-eslint": "^6.0.0"
},
Expand Down

0 comments on commit a0e7956

Please sign in to comment.