Skip to content

Commit

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

Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.11.0 to 2.12.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.12.0</h2>
<h2>Summary</h2>
<p>In this release we have made the Logger class more extensible, added
<code>POWERTOOLS_METRICS_DISABLED</code> to control metrics output in
non production environment, and added <code>AppSyncResolverSchema</code>
and <code>KinesisDynamoDBStreamSchema</code> to the parser utility.</p>
<p>⭐️ Thanks to <a
href="https://github.com/zirkelc"><code>@​zirkelc</code></a> and <a
href="https://github.com/svozza"><code>@​svozza</code></a> for their
contributions to this release!</p>
<h2>Logger class is now more extensible</h2>
<p>You can now overwrite the Logger methods
<code>createAndPopulateLogItem</code>, <code>printLog</code>,
<code>processLogItem</code>, which were private before. This allows you
to extend the Logger and add new functionality, i.e. implement your own
message buffer.</p>
<h2>Metrics utility improvements</h2>
<p>You can now set <code>POWERTOOLS_METRICS_DISABLED</code> to control
the metrics output. This is useful when you don't want to emit metrics
in a non-production environment. When <code>POWERTOOLS_DEV</code> is
enabled, the metrics are also suppressed, but you can always explicitly
enable it with <code>POWERTOOLS_METRICS_DISABLED</code> .</p>
<p>We have also added a warning message when you overwrite a dimension
with the same key, which will help you to troubleshoot unintentional
changes:</p>
<pre><code>import { Metrics } from '@aws-lambda-powertools/metrics';
<p>const metrics = new Metrics({ singleMetric: true });</p>
<p>metrics.addDimension('test', 'foo');<br />
metrics.addDimension('test', 'bar'); // &quot;bar&quot; replaces
&quot;foo&quot;</p>
<p>// warning: Dimension &quot;test&quot; has already been added. The
previous value will be overwritten.<br />
</code></pre></p>
<h2>New schema for AppSync and DynamoDB events</h2>
<p>You can now use <code>AppSyncResolverSchema</code> and
<code>AppSyncResolverBatchSchema</code> to parse AppSync Lambda resolver
event.</p>
<p>We have also added <code>KinesisDynamoDBStreamSchema</code> to
validate the event from the invocation chain of DynamoDB, Kinesis and
Lambda, which are slightly different compared to direct DynamoDB Streams
invocations, see more details in <a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3193">#3193</a>.</p>
<h2>Changes</h2>
<ul>
<li>chore(deps): bump github/codeql-action from 3.27.7 to 3.27.9 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3422">#3422</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump github/codeql-action from 3.27.5 to 3.27.7 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3411">#3411</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/3380">#3380</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions
from 3.0.16 to 3.0.17 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3362">#3362</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore: replace close-issue-message action (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3364">#3364</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(deps): bump github/codeql-action from 3.27.3 to 3.27.5 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3336">#3336</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(parser): return correct type for safeParse in envelopes (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3339">#3339</a>)
by <a href="https://github.com/jharlow"><code>@​jharlow</code></a></li>
<li>chore(deps): bump actions/dependency-review-action from 4.4.0 to
4.5.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3344">#3344</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
<li>chore(deps): bump aws-actions/closed-issue-message from
80edfc24bdf1283400eb04d20a8a605ae8bf7d48 to
37548691e7cc75ba58f85c9f873f9eee43590449 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3345">#3345</a>)
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
</ul>
<h2>🌟New features and non-breaking changes</h2>
<ul>
<li>feat(logger): change visibility to protected (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3377">#3377</a>)
by <a href="https://github.com/zirkelc"><code>@​zirkelc</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.11.0...v2.12.0">2.12.0</a>
(2024-12-17)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>parser:</strong> make SNS subject field nullish (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3415">#3415</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0da9ceaeccd088af09963690959871a2ca165729">0da9cea</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>logger:</strong> change selected method visibility to
protected (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3377">#3377</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/93a19a5181b6875d57a589e17c620b7a4631c085">93a19a5</a>)</li>
<li><strong>metrics:</strong> disable metrics with
<code>POWERTOOLS_METRICS_DISABLED</code> (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3351">#3351</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e8578e630218c9a987754bf789895ab63c3547f">7e8578e</a>)</li>
<li><strong>metrics:</strong> warn when overwriting dimension (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3352">#3352</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/12f3e448d8104b08518370a71db12646dededa4f">12f3e44</a>)</li>
<li><strong>parser:</strong> Add appsync resolver event Zod schemas (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3301">#3301</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/318f34b40331df7665939f92370797feb7b22dd0">318f34b</a>)</li>
<li><strong>parser:</strong> add schema for DynamoDB - Kinesis Stream
event (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3328">#3328</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a8dfa74bff22dcde273f11295c1defcc904e98d3">a8dfa74</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d5ec97bd0d90b81824bfaf2132e3b84a53ec2b34"><code>d5ec97b</code></a>
chore(ci): bump version to 2.12.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3432">#3432</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3cd2f02981bad99995c3aa407221e54328a6b85e"><code>3cd2f02</code></a>
chore(deps-dev): bump markdownlint-cli2 from 0.15.0 to 0.16.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3418">#3418</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/97db537883810c266c5b29cb86354a15d7877d15"><code>97db537</code></a>
chore(deps-dev): bump zod from 3.23.8 to 3.24.1 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3419">#3419</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2e4f7f43b6c724def78abbc79e51dc111c86f528"><code>2e4f7f4</code></a>
chore(deps): bump <code>@​types/node</code> from 22.10.1 to 22.10.2 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3420">#3420</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f260ebd38abbfa8b9ca9993aee7db6e274f8c61b"><code>f260ebd</code></a>
chore(deps): bump vscode/devcontainers/javascript-node from
<code>d493ef0</code> to `896...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0ee179cf235bc196de115e41a21578f2daeb93a8"><code>0ee179c</code></a>
chore(deps): bump github/codeql-action from 3.27.7 to 3.27.9 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3422">#3422</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/63ff6225894a9fbdded8eb9200b1c7a36deefc6e"><code>63ff622</code></a>
chore(deps-dev): bump lint-staged from 15.2.10 to 15.2.11 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3417">#3417</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0da9ceaeccd088af09963690959871a2ca165729"><code>0da9cea</code></a>
fix(parser): make SNS subject field nullish (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3415">#3415</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/248a13e172cce904d7b563ded1ca09e902d043b1"><code>248a13e</code></a>
docs: add videos section in community (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3416">#3416</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fb11da85a525d412ecabfa7c79811b85a9b11d67"><code>fb11da8</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/3413">#3413</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.11.0...v2.12.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.11.0&new-version=2.12.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 Dec 18, 2024
1 parent 2cba658 commit f5085c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 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 @@ -38,7 +38,7 @@
"typescript": "^5.7.2"
},
"dependencies": {
"@aws-lambda-powertools/logger": "^2.11.0",
"@aws-lambda-powertools/logger": "^2.12.0",
"@types/mustache": "^4.2.5",
"aws-lambda": "^1.0.7",
"axios": "^1.7.9",
Expand Down

0 comments on commit f5085c2

Please sign in to comment.