Commit 454a763
Upgrade: [dependabot] - bump @aws-lambda-powertools/parameters from 2.26.1 to 2.27.0 (#2084)
Bumps
[@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.26.1 to 2.27.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.27.0</h2>
<h2>Summary</h2>
<p>We're excited to announce an update to our Event Handler utility,
featuring new middleware for CORS (Cross-Origin Resource Sharing)
configuration and automatic response compression. We have also added
support for Route Prefixes which allows you to avoid repeating a shared
prefix in each route definition.</p>
<p>We've listened to your feedback and also made some slight changes to
the type signature in the handlers to improve developer experience.</p>
<p>We have also made the error handlers more versatile by allowing <a
href="https://developer.mozilla.org/en-US/docs/Web/API/Response">a
Response object</a> or a JavaScript object to be returned from the error
handler.</p>
<p>⭐ Congratulations <a
href="https://github.com/guillemcomerma"><code>@guillemcomerma</code></a>
for their first PR merged in the project, and thank you to <a
href="https://github.com/shrivarshapoojari"><code>@shrivarshapoojari</code></a>
and <a href="https://github.com/dani-abib"><code>@dani-abib</code></a>
for their contributions 🎉</p>
<h3>CORS Middleware</h3>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/event-handler/rest/#cors">Docs</a></p>
</blockquote>
<p>The CORS middleware ensures CORS headers are returned as part of the
response when your functions match the path invoked and the Origin
matches one of the allowed values.</p>
<pre lang="typescript"><code>import { Router } from
'@aws-lambda-powertools/event-handler/experimental-rest';
import { cors } from
'@aws-lambda-powertools/event-handler/experimental-rest/middleware';
import type { Context } from 'aws-lambda';
<p>const app = new Router();</p>
<p>app.use(<br />
cors({<br />
origin: '<a href="https://example.com">https://example.com</a>',<br />
maxAge: 300,<br />
})<br />
);</p>
<p>app.get('/todos/:todoId', async ({ params: { todoId } }) => {<br
/>
const todo = await getTodoById(todoId);<br />
return { todo };<br />
});</p>
<p>export const handler = async (event: unknown, context: Context)
=><br />
app.resolve(event, context);</p>
<p>/**<br />
When invoked from a valid origin, this returns:</p>
<p>{<br />
"statusCode": 200,<br />
"headers": {<br />
"access-control-allow-credentials": "false",<br />
"access-control-allow-origin": "<a
href="https://example.com">https://example.com</a>",<br />
"content-type": "application/json"<br />
},<br />
"multiValueHeaders": {<br />
</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.26.1...v2.27.0">2.27.0</a>
(2025-09-24)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>batch</strong> fixed the build issue with Batch processor
due to missing dependencies (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4498">#4498</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ef67b43921f1d67b06b3257fb0f96c74e0d6dbae">ef67b43</a>)</li>
<li><strong>event-handler</strong> fixed CORS behaviour not aligned with
CORS spec (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4512">#4512</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dd368fa3eb08a86c2d5aad3cf9b832d7a8288486">dd368fa</a>)</li>
<li><strong>event-handler</strong> run global middleware on all requests
for REST API (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4507">#4507</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/49d5f8a4f36a5af26c573f7706347f34ec70689e">49d5f8a</a>)</li>
</ul>
<h3>Improvements</h3>
<ul>
<li><strong>event-handler</strong> rename HttpErrorCodes to
HttpStatusCodes (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4543">#4543</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e53aa8816325f21510706e3f9e62fb0a76692915">e53aa88</a>)</li>
<li><strong>event-handler</strong> made error handler responses
versatile (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4536">#4536</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f08b366b79152d338ebefb5a25caacade6846919">f08b366</a>)</li>
<li><strong>event-handler</strong> changed path parameter in middleware
and routehandler signature (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4532">#4532</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/278fca0491ce9cb955326523557c3ddf9d03dbc5">278fca0</a>)</li>
<li><strong>event-handler</strong> change the Middleware and
RequestContext signatures (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4530">#4530</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a05c07411629d1e23a9cb3fec8a78cf23bd8dd0c">a05c074</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>event-handler</strong> implemented route prefixes in HTTP
event handler (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4523">#4523</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/89138542cd9e195555299f401646ae94d0bb50ee">8913854</a>)</li>
<li><strong>event-handler</strong> throw error when middleware does not
await next() (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4511">#4511</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b0b43e862fb189941fe9db220580884e7707d541">b0b43e8</a>)</li>
<li><strong>event-handler</strong> add CORS middleware support (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4477">#4477</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/972cd1f86b6ea01c93abef5e6cde7876360196f1">972cd1f</a>)</li>
<li><strong>event-handler</strong> added compress middleware for the
REST API event handler (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4495">#4495</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/320e0dcaa07476de3b7d07209ef27379b9d4900a">320e0dc</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f38af1db92473327776fc3128bccad145062e354"><code>f38af1d</code></a>
chore(ci): bump version to 2.27.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4544">#4544</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/72cf1cd046fa37abb5148aa9ed5f3244ca5db1ac"><code>72cf1cd</code></a>
docs(event-handler): update to new APIs before release (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4542">#4542</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e53aa8816325f21510706e3f9e62fb0a76692915"><code>e53aa88</code></a>
improv(event-handler): rename HttpErrorCodes to HttpStatusCodes (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4543">#4543</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3d1255c145f85709b8ab4c4ec9e143ceb2a26ec9"><code>3d1255c</code></a>
docs(idempotency): fix dataKeywordArgument reference and remove unused
test c...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f08b366b79152d338ebefb5a25caacade6846919"><code>f08b366</code></a>
improv(event-handler): made error handler responses versatile (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4536">#4536</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fd156aa04806b3de37c16efb07bef111d411d31a"><code>fd156aa</code></a>
chore(ci): add <code>registry-url</code> to <code>setup-node</code>
steps to fix Scorecard packagin...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d281d46cbdd2e813005c5b5174aa017ace8f0671"><code>d281d46</code></a>
chore(deps): bump the aws-cdk group across 1 directory with 3 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4527">#4527</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/278fca0491ce9cb955326523557c3ddf9d03dbc5"><code>278fca0</code></a>
improv(event-handler): changed path parameter in middleware and
routehandler ...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7ea49c7dbc84d48da6ca214e367a5c612c583cc9"><code>7ea49c7</code></a>
chore(deps): bump the aws-sdk-v3 group across 1 directory with 62
updates (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4">#4</a>...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a05c07411629d1e23a9cb3fec8a78cf23bd8dd0c"><code>a05c074</code></a>
improv(event-handler): change the Middleware and RequestContext
signatures (#...</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.26.1...v2.27.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 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]>1 parent 6536681 commit 454a763
File tree
4 files changed
+16
-10
lines changed- packages
- enrichPrescriptions
- getMyPrescriptions
- statusLambda
4 files changed
+16
-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 | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| 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