Commit 663b500
authored
Upgrade: [dependabot] - bump @aws-lambda-powertools/parameters from 2.31.0 to 2.32.0 (#1940)
Bumps
[@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.31.0 to 2.32.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.32.0</h2>
<h2>Summary</h2>
<p>In this release, we are pleased to announce a new utility for
interacting with the Lambda Metadata Service in the commons package,
allowing you to easily retrieve information about the Lambda function,
such as the Availability Zone ID.</p>
<p>In the HTTP event handler, we have delivered two much requested
features: a type-safe Store API, letting you share state between
middleware and route handlers with full type safety, and request and
response validation, so you can enforce data contracts at your API
boundary, eliminating manual parsing and type assertion code.</p>
<p>We've also fixed a bug where the Kafka consumer would throw when
processing tombstone events with undefined values.</p>
<blockquote>
<p>⭐ Congratulations to <a
href="https://github.com/haslers"><code>@haslers</code></a> for their
first PR merged in the project 🎉</p>
</blockquote>
<h2>Lambda Metadata Service</h2>
<p>A new <code>getMetadata()</code> utility in the commons package
fetches metadata from the AWS Lambda Metadata endpoint. The utility
automatically returns an empty object outside of Lambda, so your code
works seamlessly in local development and testing.</p>
<pre lang="typescript"><code>import { getMetadata } from
'@aws-lambda-powertools/commons/utils/metadata';
import { Logger } from '@aws-lambda-powertools/logger';
<p>const logger = new Logger({ serviceName: 'serverlessAirline' });<br
/>
const metadata = await getMetadata();</p>
<p>export const handler = async () => {<br />
const { AvailabilityZoneID: azId } = metadata;<br />
logger.appendKeys({ azId });<br />
};<br />
</code></pre></p>
<h2>Type-safe Store API</h2>
<p>The HTTP event handler now includes a Store API that provides
type-safe, scoped state management for route handlers with two built-in
storage scopes:</p>
<ul>
<li><strong>Request store</strong> — per-invocation state (set in
middleware, read in handlers). Cleared automatically between
requests.</li>
<li><strong>Shared store</strong> — router-scoped state (set at cold
start, read everywhere). Persists across invocations.</li>
</ul>
<pre lang="typescript"><code>import { Router } from
'@aws-lambda-powertools/event-handler/http';
import type { Context } from 'aws-lambda';
<p>type AppEnv = {<br />
store: {<br />
request: { userId: string; isAdmin: boolean };<br />
shared: { db: { query: (sql: string) => Promise<unknown> }
};<br />
};<br />
};</p>
<p>const app = new Router<AppEnv>();</p>
<p>app.shared.set('db', createDbClient());</p>
<p></tr></table><br />
</code></pre></p>
</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.31.0...v2.32.0">2.32.0</a>
(2026-03-19)</h2>
<h3>Features</h3>
<ul>
<li><strong>commons</strong> add Lambda Metadata Service support (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5109">#5109</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/46ffc2ad062d57678030834c8e1d2755f848cc7b">46ffc2a</a>)</li>
<li><strong>commons</strong> add Lambda Metadata Service support (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5106">#5106</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/bdfa5830ec5a315b5f5e687b2cac876bc2e2a748">bdfa583</a>)</li>
<li><strong>event-handler</strong> add type-safe Store API for request
and shared state (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5081">#5081</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/03034db1b8d6bb4208c657de4e47b298dd72ebfc">03034db</a>)</li>
<li><strong>event-handler</strong> add validation support for REST
router (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4736">#4736</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3617c8c1aaed53f9146189ef83ea4ac248250c14">3617c8c</a>)</li>
</ul>
<h3>Maintenance</h3>
<ul>
<li><strong>commons</strong> bump <code>@aws/lambda-invoke-store</code>
from 0.2.3 to 0.2.4 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5089">#5089</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fe519abf01c152eca16b93e42b48d77ce1d67c10">fe519ab</a>)</li>
<li><strong>logger</strong> bump <code>@aws/lambda-invoke-store</code>
from 0.2.3 to 0.2.4 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5089">#5089</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fe519abf01c152eca16b93e42b48d77ce1d67c10">fe519ab</a>)</li>
<li><strong>metrics</strong> bump <code>@aws/lambda-invoke-store</code>
from 0.2.3 to 0.2.4 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5089">#5089</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fe519abf01c152eca16b93e42b48d77ce1d67c10">fe519ab</a>)</li>
<li><strong>batch</strong> bump <code>@aws/lambda-invoke-store</code>
from 0.2.3 to 0.2.4 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5089">#5089</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fe519abf01c152eca16b93e42b48d77ce1d67c10">fe519ab</a>)</li>
<li><strong>validation</strong> bump ajv from 8.17.1 to 8.18.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5021">#5021</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a7791e17b13120c6fff81f6fc2f12f44cc1b504a">a7791e1</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>event-handler</strong> add overloads to route() for typed
validation context (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5052">#5052</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dae12e4c0c84aee1e9d2373c198b7628c26ee32d">dae12e4</a>)</li>
<li><strong>event-handler</strong> default error handler returns a web
Response correctly (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5024">#5024</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f8100e88fdfb46415b357726fcfffdde40116061">f8100e8</a>)</li>
<li><strong>kafka</strong> handle tombstone events without value (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5017">#5017</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/79553c96a404df96f57268309c4468fe6c92b470">79553c9</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0abf2f063c489b3d4708fe2370b93521825658bb"><code>0abf2f0</code></a>
chore(ci): bump version to 2.32.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5112">#5112</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3677abcb0262d410de43e0a593fb88db04a42534"><code>3677abc</code></a>
chore(ci): temporarily disable me-central-1 deployments (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5111">#5111</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/46ffc2ad062d57678030834c8e1d2755f848cc7b"><code>46ffc2a</code></a>
feat(commons): add Lambda Metadata Service support (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5109">#5109</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f1dc056494117ca148d666d9488364687af81045"><code>f1dc056</code></a>
revert: feat(commons): add Lambda Metadata Service support (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5106">#5106</a>)
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5107">#5107</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e49984d9a081ee2dbb2ff29337a56c539a7a2182"><code>e49984d</code></a>
chore(deps): bump valibot from 1.2.0 to 1.3.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5101">#5101</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0cc6b0a26bcfd83acabfdd66656c1e332f9fe8ad"><code>0cc6b0a</code></a>
chore(deps-dev): bump <code>@biomejs/biome</code> from 2.4.6 to 2.4.7
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5097">#5097</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4e3812b3739661d77195d6a36e739c6ffc33e8db"><code>4e3812b</code></a>
chore(deps): bump release-drafter/release-drafter from 7.0.0 to 7.1.0
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5104">#5104</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/bdfa5830ec5a315b5f5e687b2cac876bc2e2a748"><code>bdfa583</code></a>
feat(commons): add Lambda Metadata Service support (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5106">#5106</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/03034db1b8d6bb4208c657de4e47b298dd72ebfc"><code>03034db</code></a>
feat(event-handler): add type-safe Store API for request and shared
state (#...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a72f66c44d198717fdae5c811ede80c5d4a2a9b2"><code>a72f66c</code></a>
chore(deps): bump release-drafter/release-drafter from 6.4.0 to 7.0.0
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/5095">#5095</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.31.0...v2.32.0">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 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 51ea898 commit 663b500
File tree
5 files changed
+19
-67
lines changed- packages
- cognito
- common/authFunctions
- prescriptionDetailsLambda
- sessionManagementLambda
5 files changed
+19
-67
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 | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments