Commit fe453a3
authored
Upgrade: [dependabot] - bump @aws-lambda-powertools/parameters from 2.32.0 to 2.33.0 (#2597)
Bumps
[@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.32.0 to 2.33.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/parameters</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v2.33.0</h2>
<h2>Summary</h2>
<p>In this release, the HTTP event handler gains a new metrics
middleware that lets you emit per-request latency, fault, and error
metrics with a single line of configuration. The middleware
automatically uses the matched route as a dimension and attaches request
metadata like HTTP method, path, status code, and API Gateway request
IDs.</p>
<p>We've also improved the parser package by exporting
<code>InferOutput</code> from the public types entry point, resolving a
TypeScript declaration emit error (TS2883) that affected consumers using
<code>safeParse</code> mode — particularly those upgrading to TypeScript
6.</p>
<blockquote>
<p>⭐ Congratulations to <a
href="https://github.com/yashar-new10"><code>@yashar-new10</code></a>
and <a href="https://github.com/faberchri"><code>@faberchri</code></a>
for their first PR merged in the project 🎉</p>
</blockquote>
<h2>Metrics Middleware</h2>
<p>You can now use the Metrics utility with the HTTP event handler to
automatically emit CloudWatch metrics for every request. The
middleware:</p>
<ul>
<li>Adds the matched route as a metric dimension (e.g., <code>GET
/users/:id</code>)</li>
<li>Emits <code>latency</code> (Milliseconds), <code>fault</code>
(Count), and <code>error</code> (Count) metrics</li>
<li>Attaches request metadata including <code>httpMethod</code>,
<code>path</code>, <code>statusCode</code>, <code>userAgent</code>, and
<code>ipAddress</code></li>
<li>Adds API Gateway-specific metadata (<code>apiGwRequestId</code>,
<code>apiGwApiId</code>) when available</li>
<li>Uses <code>NOT_FOUND</code> as the route dimension when no route
matches, preventing dimension explosion</li>
</ul>
<pre lang="typescript"><code>import { Router } from
'@aws-lambda-powertools/event-handler/http';
import { metrics as metricsMiddleware } from
'@aws-lambda-powertools/event-handler/http/middleware/metrics';
import { Metrics } from '@aws-lambda-powertools/metrics;
import type { Context } from 'aws-lambda';
<p>const metrics = new Metrics({ namespace: 'my-app', serviceName:
'my-service' });<br />
const app = new Router();</p>
<p>app.use(metricsMiddleware(metrics));</p>
<p>app.get('/users/:id', async ({ params }) => {<br />
return { id: params.id, name: 'Jane' };<br />
});</p>
<p>export const handler = async (event: unknown, context: Context)
=><br />
app.resolve(event, context);<br />
</code></pre></p>
<h2>Changes</h2>
<ul>
<li>improv(parser): export InferOutput from public types entry point (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5175">#5175</a>)
by <a
href="https://github.com/yashar-new10"><code>@yashar-new10</code></a></li>
<li>chore(deps): add esbuild as explicit devDependency (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5173">#5173</a>)
by <a href="https://github.com/sdangol"><code>@sdangol</code></a></li>
<li>chore: temporarily remove Bahrain (me-south-1) region from layer
publishing (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5169">#5169</a>)
by <a href="https://github.com/svozza"><code>@svozza</code></a></li>
<li>docs(commons): fix isStrictEqual and areArraysEqual JSDoc array
comparison description (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5165">#5165</a>)
by <a
href="https://github.com/Zelys-DFKH"><code>@Zelys-DFKH</code></a></li>
<li>docs: fix dependencies & broken references (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5156">#5156</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>docs: fix markdown table format (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5153">#5153</a>)
by <a
href="https://github.com/dothomson"><code>@dothomson</code></a></li>
<li>style: remove useAwait linting rule (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5146">#5146</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>docs(event-handler): update custom middleware example to use Store
API (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5145">#5145</a>)
by <a href="https://github.com/svozza"><code>@svozza</code></a></li>
<li>fix(commons): don't overwrite existing value with
<code>undefined</code> in deepMerge (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5141">#5141</a>)
by <a
href="https://github.com/faberchri"><code>@faberchri</code></a></li>
<li>fix(event-handler): http response body validation typings (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5125">#5125</a>)
by <a
href="https://github.com/nateiler"><code>@nateiler</code></a></li>
<li>feat(event-handler): add metrics middleware for HTTP routes (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5086">#5086</a>)
by <a href="https://github.com/svozza"><code>@svozza</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/parameters</code>'s
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.32.0...v2.33.0">2.33.0</a>
(2026-04-14)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>commons</strong> don't overwrite existing value with
<code>undefined</code> in deepMerge (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5141">#5141</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c7c6c0febb91143215c7684fc7bb2c6ee9777555">c7c6c0f</a>)</li>
<li><strong>commons</strong> rename AvailabilityZoneId to
AvailabilityZoneID in docs and tests (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5118">#5118</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/65c054c62bcfa24a98e5d2e3eaaa89e22d74e8a2">65c054c</a>)</li>
<li><strong>event-handler</strong> http response body validation typings
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5125">#5125</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0805db9d65e93817f85ad640426e90725ae80ede">0805db9</a>)</li>
</ul>
<h3>Improvements</h3>
<ul>
<li><strong>parser</strong> export InferOutput from public types entry
point (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5175">#5175</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/16c6de6e3c7775fdd88efe44715a6366313cc848">16c6de6</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>event-handler</strong> add metrics middleware for HTTP
routes (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5086">#5086</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5af28e8c629fb934d4f711e10d4f74aece2c2e48">5af28e8</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5765cc447a90943fe7a1fe6a68c6e663275e768e"><code>5765cc4</code></a>
chore(ci): bump version to 2.33.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5183">#5183</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ad92246db4800824162be4f89e6f625a4b352028"><code>ad92246</code></a>
chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5181">#5181</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ec7dc7e6c47a9d26f975b2d1f3fd759b507b063a"><code>ec7dc7e</code></a>
chore(deps-dev): bump typedoc from 0.28.18 to 0.28.19 in the typescript
group...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b6ae31bf4d54554e8b2fb128e3d014b4ccb11986"><code>b6ae31b</code></a>
chore(deps): bump actions/github-script from 8.0.0 to 9.0.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5177">#5177</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a6368adab1abdfb4d515093bb0f20bb69076bc22"><code>a6368ad</code></a>
chore(deps): bump release-drafter/release-drafter from 7.1.1 to 7.2.0
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5178">#5178</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0777d90b56e165fdd28ade32f4bca859dd5f40ff"><code>0777d90</code></a>
chore(deps-dev): bump <code>@biomejs/biome</code> from 2.4.10 to 2.4.11
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5179">#5179</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fe45b4eae49958f49d8ff57d12b63d94551e0c7c"><code>fe45b4e</code></a>
chore(deps): bump <code>@types/node</code> from 25.5.2 to 25.6.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5180">#5180</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/16c6de6e3c7775fdd88efe44715a6366313cc848"><code>16c6de6</code></a>
improv(parser): export InferOutput from public types entry point (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5175">#5175</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/1e2f39f2fc9ac86f584f91830a2f7c0089cba09c"><code>1e2f39f</code></a>
chore(deps): bump aws-actions/configure-aws-credentials from 6.0.0 to
6.1.0 (...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e279e1b1fea12d8b41c1de44bd6f6c179c92e47c"><code>e279e1b</code></a>
chore(deps-dev): bump the vitest group across 1 directory with 2 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5176">#5176</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.32.0...v2.33.0">compare
view</a></li>
</ul>
</details>
<br />
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 334d4ec commit fe453a3
5 files changed
Lines changed: 21 additions & 10 deletions
File tree
- packages
- common/utilities
- enrichPrescriptions
- getMyPrescriptions
- statusLambda
Some 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 | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments