Commit 03b3c9d
authored
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.20.0 to 2.21.0 (#435)
Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.20.0 to 2.21.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.21.0</h2>
<h2>Summary</h2>
<p>This release introduces a new BedrockAgentFunctionResolver to Event
Handler that simplifies connecting AWS Lambda functions to Amazon
Bedrock Agents. This feature eliminates the need to write boilerplate
code for parsing requests and formatting responses, allowing you to
focus on your agent's business logic.</p>
<p>⭐ A big thank you to <a
href="https://github.com/VatsalGoel3"><code>@VatsalGoel3</code></a> and
<a href="https://github.com/svozza"><code>@svozza</code></a> for their
contributions to this release and to Instil for becoming a public
customer reference!</p>
<h3>Creating Amazon Bedrock Agents</h3>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/event-handler/bedrock-agents/">Docs</a></p>
</blockquote>
<p>You can now use the new <code>BedrockAgentFunctionResolver</code> to
register tools and handle requests in your Lambda functions. The
resolver will automatically parse the request, route it to the
appropriate function, and return a well-formed response that includes
the tool's output and any existing session attributes.</p>
<p><img
src="https://github.com/user-attachments/assets/4b19ad0a-6a73-40e7-b3c0-6c6c6aa9fd4a"
alt="carbon" /></p>
<p>By default, errors are handled gracefully and returned to the agent
with error type and message information, allowing the conversation to
continue. This is useful when you want to let the LLM handle errors and
reduce boilerplate error-handling code.</p>
<p>If you need more control over error scenarios, you can use
<code>BedrockFunctionResponse</code> to customize the response and
determine if the conversation should continue:</p>
<p><img
src="https://github.com/user-attachments/assets/9fbbe3aa-72ef-49d6-a874-031c055e3ee3"
alt="carbon" /></p>
<p>You can also use the <code>BedrockFunctionResponse</code> when you
want to enrich the response with session attributes or knowledge base
configurations, or when you want the agent to re-prompt the user to
provide additional information.</p>
<p><img
src="https://github.com/user-attachments/assets/9d605a5a-fbba-4d34-8a2d-45a5c6f90455"
alt="carbon-2" /></p>
<h2>Changes</h2>
<ul>
<li>chore: fix esm scope for layers stack (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4007">#4007</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>chore(commons): consolidate boolean parsing (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3970">#3970</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
</ul>
<h2>🌟New features and non-breaking changes</h2>
<ul>
<li>feat(event-handler): add Amazon Bedrock Agents Functions Resolver
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3957">#3957</a>)
by <a href="https://github.com/svozza"><code>@svozza</code></a></li>
<li>feat(commons): environment variable helpers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3945">#3945</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
</ul>
<h2>📜 Documentation updates</h2>
<ul>
<li>docs: add bedrock agents page to llmtxt (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4010">#4010</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>docs(event-handler): add docs page for Bedrock Agent Function (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3991">#3991</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li>
<li>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/4004">#4004</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump <code>@types/node</code> from 22.15.23 to
22.15.29 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4001">#4001</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/4002">#4002</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump aws-cdk-lib from 2.198.0 to 2.199.0 in the aws-cdk
group across 1 directory (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3984">#3984</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump <code>@types/node</code> from 22.15.21 to
22.15.23 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3985">#3985</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump esbuild from 0.25.4 to 0.25.5 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3980">#3980</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore: add Instil as customer reference (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3978">#3978</a>)
by <a
href="https://github.com/dreamorosi"><code>@dreamorosi</code></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/3975">#3975</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore(deps): bump aws-cdk-lib from 2.197.0 to 2.198.0 in the aws-cdk
group across 1 directory (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3968">#3968</a>)
by @<a
href="https://github.com/apps/dependabot">dependabot[bot]</a></li>
<li>chore: add latest to site_url (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3966">#3966</a>)
by <a href="https://github.com/hjgraca"><code>@hjgraca</code></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/3965">#3965</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>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.20.0...v2.21.0">2.21.0</a>
(2025-06-03)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>parameters:</strong> preserve original stack trace on
transform failures … (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3982">#3982</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/583e3ae9a5095a1185b2bd9dff31e6f3f50ff577">583e3ae</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>commons:</strong> environment variable helpers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3945">#3945</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7cfcd8517a0578e248ead1e2e0261fe7ba405e14">7cfcd85</a>)</li>
<li><strong>event-handler:</strong> add Amazon Bedrock Agents Functions
Resolver (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3957">#3957</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/720ddcb974bd044fccd54d4cf5e46a1576f487a7">720ddcb</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d3e41844e0df7875eb202ec82a7b5b64d41144cf"><code>d3e4184</code></a>
chore(ci): bump version to 2.21.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4005">#4005</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7361e117bd09b51bd6756facc72d8592d13cc252"><code>7361e11</code></a>
docs(event-handler): add docs page for Bedrock Agent Function (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3991">#3991</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/583e3ae9a5095a1185b2bd9dff31e6f3f50ff577"><code>583e3ae</code></a>
fix(parameters): preserve original stack trace on transform failures …
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3982">#3982</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3c38308b6dc0b2bc8fd39056a0e5064eb2532137"><code>3c38308</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/4004">#4004</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/de07c06f7aab77169bfb941abfb7d2a3af98466b"><code>de07c06</code></a>
chore(deps-dev): bump lint-staged from 16.0.0 to 16.1.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3994">#3994</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/35c496f3662622cac3fbbe27c7dbe7bd4dace080"><code>35c496f</code></a>
chore(deps): bump <code>@types/node</code> from 22.15.23 to 22.15.29
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4001">#4001</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2b0ec42167a5138b0ea1a8b6eaf4b9fd117f2b3c"><code>2b0ec42</code></a>
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/4002">#4002</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fe1b5c3a59b890388561e2251d9c075cef8c7b84"><code>fe1b5c3</code></a>
chore(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4003">#4003</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/de170ba75e41dd1e3b0adfc3aee7d7291e61f277"><code>de170ba</code></a>
chore(deps-dev): bump zod from 3.25.32 to 3.25.48 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4000">#4000</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2870ee8319df9d626fa81276de174e4a94e47ef1"><code>2870ee8</code></a>
chore(deps): bump vscode/devcontainers/javascript-node from
<code>1ab856e</code> to `0d2...</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.20.0...v2.21.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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 5b9dd95 commit 03b3c9d
2 files changed
+9
-9
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 | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments