Commit 5f078ff
authored
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.24.0 to 2.24.1 (#473)
Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.24.0 to 2.24.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>v2.24.1</h2>
<h2>Summary</h2>
<p>In this release we have improved runtime validations in the Metrics
utility, ensuring that invalid metrics are not sent to CloudWatch and
avoiding data loss.</p>
<p>Furthermore, we now only support Zod 4.x. Using Zod 3.x with the
Parser utility will result in a build-time error.</p>
<p>⭐ Congratulations <a
href="https://github.com/JonkaSusaki"><code>@JonkaSusaki</code></a> and
<a href="https://github.com/uttam282005"><code>@uttam282005</code></a>
for their first PRs merged in the project 🎉</p>
<h3>Metrics Runtime Validations</h3>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/metrics/">Docs</a></p>
</blockquote>
<p>Before this release, if you published invalid metrics they could fail
silently, leading to data loss. Now Lambda will throw an error if the
following constraints do not hold:</p>
<ul>
<li>Metric Name: Validated according to CloudWatch <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">constraints</a></li>
<li>Metric Value: Validated for numeric values</li>
<li>Metric Unit: Validated for allowed <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Unit">units</a></li>
<li>Metric Resolution: Validated for allowed <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Resolution_definition">resolutions</a></li>
<li>Dimension Name: Both Dimension name and value are validated for non
empty, non-null values.</li>
</ul>
<h2>Changes</h2>
<ul>
<li>fix(metrics): revert changes when raise warning with overridden
default dimensions (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4226">#4226</a>)
by <a href="https://github.com/svozza"><code>@svozza</code></a></li>
<li>fix(metrics): emit warning when default dimensions are overwritten
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4222">#4222</a>)
by <a
href="https://github.com/uttam282005"><code>@uttam282005</code></a></li>
<li>refactor(event-handler): replace EnvironmentVariablesService class
with helper functions in Event Handler (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4225">#4225</a>)
by <a
href="https://github.com/JonkaSusaki"><code>@JonkaSusaki</code></a></li>
<li>ci: fix version output interpolation in make-version workflow (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4220">#4220</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>ci: set version number correctly when versioning (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4219">#4219</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>feat(event-handler): add route management system for ApiGw event
handler (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4211">#4211</a>)
by <a href="https://github.com/svozza"><code>@svozza</code></a></li>
<li>ci: update <code>make-release.yml</code> workflow to use latest
upstream (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4215">#4215</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>ci: remove local create-pr action (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4213">#4213</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>improv(maintenance): Removed some unused assignments and added
missing error handling (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4208">#4208</a>)
by <a href="https://github.com/sdangol"><code>@sdangol</code></a></li>
<li>ci: remove <code>lerna version</code> (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4201">#4201</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>refactor(ci): Updated the publish command in the CI to use <code>npm
publish</code> instead of <code>lerna publish</code> (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4195">#4195</a>)
by <a href="https://github.com/sdangol"><code>@sdangol</code></a></li>
<li>refactor(metrics): replace EnvironmentVariablesService with cached
#envConfig (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4188">#4188</a>)
by <a
href="https://github.com/uttam282005"><code>@uttam282005</code></a></li>
<li>improv(metrics): Added runtime validations for the metrics utility
functions (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4181">#4181</a>)
by <a href="https://github.com/sdangol"><code>@sdangol</code></a></li>
<li>refactor(parameters): replace EnvironmentVariablesService class with
helper functions in Parameters (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4168">#4168</a>)
by <a
href="https://github.com/JonkaSusaki"><code>@JonkaSusaki</code></a></li>
</ul>
<h2>🌟New features and non-breaking changes</h2>
<ul>
<li>feat(event-handler): add base router class (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3972">#3972</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
</ul>
<h2>📜 Documentation updates</h2>
<ul>
<li>chore(ci): bump version to 2.24.1 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4231">#4231</a>)
by <a href="https://github.com/sdangol"><code>@sdangol</code></a></li>
<li>chore(deps): bump <code>@types/aws-lambda</code> from 8.10.150 to
8.10.152 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4205">#4205</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump esbuild from 0.25.6 to 0.25.8 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4200">#4200</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump the aws-sdk-v3 group across 1 directory with 2
updates (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4192">#4192</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump <code>@types/node</code> from 24.0.14 to 24.1.0
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4193">#4193</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>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/4186">#4186</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</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>
<h2><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.24.0...v2.24.1">2.24.1</a>
(2025-07-29)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>metrics</strong> revert changes when raise warning with
overridden default dimensions (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4226">#4226</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c9d6aa09acc666d09ed13ebef331502f4119dacc">c9d6aa0</a>)</li>
<li><strong>metrics</strong> emit warning when default dimensions are
overwritten (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4222">#4222</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a933a6af6135b79b855353bbaf265ab0a3be60da">a933a6a</a>)</li>
<li><strong>parser</strong> set zod peer range to 4.x (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4196">#4196</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7a65fcf9759ac1a1f072ef5442ee8b0767705a92">7a65fcf</a>)</li>
</ul>
<h3>Improvements</h3>
<ul>
<li><strong>metrics</strong> replace EnvironmentVariablesService with
cached #envConfig (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4188">#4188</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/919063bc10f15b55f84c183208274836ae1d367e">919063b</a>)</li>
<li><strong>metrics</strong> add runtime validations when adding
dimensions (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4181">#4181</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/42260585eb84de373c6ae5daaf5d541dd5f78ec1">4226058</a>)</li>
<li><strong>parameters</strong> replace EnvironmentVariablesService
class with helper functions in Parameters (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4168">#4168</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ce4e6181ffed20153f3743707fdd31f68f392e0c">ce4e618</a>)</li>
<li><strong>event-handler</strong> replace EnvironmentVariablesService
class with helper functions in Event Handler (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4225">#4225</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d17818e1b8b17a8307e61966ab857f9c05c49670">d17818e</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>event-handler</strong> add route management system for ApiGw
event handler (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4211">#4211</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c2cbb642ca3a4cc57ad0e80d9f1239e8f67d56e3">c2cbb64</a>)</li>
<li><strong>event-handler</strong> add base router class (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3972">#3972</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3d4998cda6c1b8c1bea47d5c6a9fe760b6e957fb">3d4998c</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fc261446612028757eb8ea95ca90e31f2a164c11"><code>fc26144</code></a>
chore(ci): bump version to 2.24.1 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4231">#4231</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c9d6aa09acc666d09ed13ebef331502f4119dacc"><code>c9d6aa0</code></a>
fix(metrics): revert changes when raise warning with overridden default
dimen...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a933a6af6135b79b855353bbaf265ab0a3be60da"><code>a933a6a</code></a>
fix(metrics): emit warning when default dimensions are overwritten (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4222">#4222</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d17818e1b8b17a8307e61966ab857f9c05c49670"><code>d17818e</code></a>
refactor(event-handler): replace EnvironmentVariablesService class with
helpe...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fea274febb44969bc43f9e6e8e5e70cb9ee57f3c"><code>fea274f</code></a>
ci: fix version output interpolation in make-version workflow (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4220">#4220</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7bc1121745739e169788618a801965a0cd7bb616"><code>7bc1121</code></a>
ci: set version number correctly when versioning (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4219">#4219</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c2cbb642ca3a4cc57ad0e80d9f1239e8f67d56e3"><code>c2cbb64</code></a>
feat(event-handler): add route management system for ApiGw event handler
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4211">#4211</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0c124409deaf43788c020cfb850ed0d7b48918e5"><code>0c12440</code></a>
ci: update <code>make-release.yml</code> workflow to use latest upstream
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4215">#4215</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/94ebf168a00684bb9e26db48e54dc0e628a4687f"><code>94ebf16</code></a>
chore(deps): bump <code>@types/aws-lambda</code> from 8.10.150 to
8.10.152 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4205">#4205</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b1f7feeb91830b84692383b2b88b392fd8b18f7a"><code>b1f7fee</code></a>
ci: remove local create-pr action (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4213">#4213</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.24.0...v2.24.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
- `@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>1 parent b6b747e commit 5f078ff
2 files changed
+10
-10
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments