Commit f6f87c0
fix(lambda): bump the aws-powertools group in /lambdas with 4 updates (#4663)
Bumps the aws-powertools group in /lambdas with 4 updates:
[@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript),
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript),
[@aws-lambda-powertools/metrics](https://github.com/aws-powertools/powertools-lambda-typescript)
and
[@aws-lambda-powertools/tracer](https://github.com/aws-powertools/powertools-lambda-typescript).
Updates `@aws-lambda-powertools/parameters` from 2.22.0 to 2.23.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.23.0</h2>
<h2>Summary</h2>
<p>We're excited to announce a new resolver for AppSync GraphQL APIs in
the Event Handler utility. It simplifies routing and processing of
events in AWS Lambda functions by allowing you to define resolvers for
specific GraphQL types and fields.</p>
<p>We’ve also fixed two bugs in Logger: 1/ one causing timestamps to be
incorrectly formatted when using non-UTC timezone and around midnight,
and 2/ another causing temporary keys to not be properly cleared when
using the <code>injectLambdaContext()</code> Middy.js middleware.</p>
<p>Finally, starting from this release we're publishing our Lambda
layers in the AWS China Beijing Region operated by Sinnet.</p>
<p>🌟 A huge thank you to <a
href="https://github.com/arnabrahman"><code>@arnabrahman</code></a> for
the amazing work on the AppSync GraphQL resolver 🎉</p>
<h3>Working AppSync GraphQL APIs</h3>
<h4>Key Features</h4>
<ul>
<li>Route events based on GraphQL type and field keys</li>
<li>Automatically parse API arguments to function parameters</li>
<li>Handle GraphQL responses and errors in the expected format</li>
</ul>
<p>To get started install the Event Handler utility by running:</p>
<pre lang="sh"><code>npm install @aws-lambda-powertools/event-handler
</code></pre>
<h4>Registering a resolver</h4>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/event-handler/appsync-graphql/">Docs</a></p>
</blockquote>
<p>You can register functions to match GraphQL types and fields with one
of three methods:</p>
<ul>
<li><code>onQuery()</code> - Register a function to handle a GraphQL
Query type.</li>
<li><code>onMutation()</code> - Register a function to handle a GraphQL
Mutation type.</li>
<li><code>resolver()</code> - Register a function to handle a GraphQL
type and field.</li>
</ul>
<p>Your resolvers receive the parsed arguments from the GraphQL request
as their first parameter. We will take care of parsing the response or
catching errors and returning them in the expected format.</p>
<p>You can register a resolver for a <code>Query</code> type, you can
use the <code>onQuery()</code> method. This method allows you to define
a function that will be invoked when a GraphQL Query is made.</p>
<pre lang="ts"><code>import { AppSyncGraphQLResolver } from
'@aws-lambda-powertools/event-handler/appsync-graphql';
import { Logger } from '@aws-lambda-powertools/logger';
import type { Context } from 'aws-lambda';
<p>const logger = new Logger({<br />
serviceName: 'TodoManager',<br />
});<br />
const app = new AppSyncGraphQLResolver({ logger });</p>
<p>app.onQuery<{ id: string }>('getTodo', async ({ id }) =>
{<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>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">2.23.0</a>
(2025-07-02)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>ci:</strong> Partition workflows (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4084">#4084</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/40195ddc36f343c3b7905b51f2b82842d05fce58">40195dd</a>)</li>
<li><strong>logger:</strong> reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4">e310c50</a>)</li>
<li><strong>logger:</strong> set <code>hourCycle</code> to h23 when tz
is not UTC (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4102">#4102</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/54b08636474f11fefcb295cd04511d3f46be4382">54b0863</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>event-handler:</strong> add single resolver functionality
for AppSync GraphQL API (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3999">#3999</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b91383f6ec82cff9196ccc4e0c9e88d285eb567d">b91383f</a>)</li>
<li><strong>event-handler:</strong> expose event & context as object
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4">7e74c9e</a>)</li>
<li><strong>event-handler:</strong> support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0">263db2d</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b8e6d9361c78e58921ed88e90cc4aec21971479e"><code>b8e6d93</code></a>
chore(ci): bump version to 2.23.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4123">#4123</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4"><code>e310c50</code></a>
fix(logger): reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7c3196f423c1c35a52da2df0db0744a9e5b896b6"><code>7c3196f</code></a>
docs(event-handler): add AppSync GraphQL docs page (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4120">#4120</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4"><code>7e74c9e</code></a>
feat(event-handler): expose event & context as object (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0"><code>263db2d</code></a>
feat(event-handler): support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dfc31da7ef5ca5a225bdba3c9883c7cf45270df8"><code>dfc31da</code></a>
chore(deps): bump <code>@types/node</code> from 24.0.7 to 24.0.8 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4107">#4107</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5d783ee9b447f086d5644dddb19712f9db83ddd8"><code>5d783ee</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/4106">#4106</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3359dbe556e3dd654d9e2af553cb41d9600a2495"><code>3359dbe</code></a>
chore(deps): bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4104">#4104</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/94a690ed9c5208427e5593ef94a082ac8ba4e756"><code>94a690e</code></a>
chore(deps): bump squidfunk/mkdocs-material from <code>eb04b60</code> to
<code>0bfdba4</code> in /d...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f6374e127ca176e5bee1397a3cabe5471dc06d4b"><code>f6374e1</code></a>
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4108">#4108</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">compare
view</a></li>
</ul>
</details>
<br />
Updates `@aws-lambda-powertools/logger` from 2.22.0 to 2.23.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.23.0</h2>
<h2>Summary</h2>
<p>We're excited to announce a new resolver for AppSync GraphQL APIs in
the Event Handler utility. It simplifies routing and processing of
events in AWS Lambda functions by allowing you to define resolvers for
specific GraphQL types and fields.</p>
<p>We’ve also fixed two bugs in Logger: 1/ one causing timestamps to be
incorrectly formatted when using non-UTC timezone and around midnight,
and 2/ another causing temporary keys to not be properly cleared when
using the <code>injectLambdaContext()</code> Middy.js middleware.</p>
<p>Finally, starting from this release we're publishing our Lambda
layers in the AWS China Beijing Region operated by Sinnet.</p>
<p>🌟 A huge thank you to <a
href="https://github.com/arnabrahman"><code>@arnabrahman</code></a> for
the amazing work on the AppSync GraphQL resolver 🎉</p>
<h3>Working AppSync GraphQL APIs</h3>
<h4>Key Features</h4>
<ul>
<li>Route events based on GraphQL type and field keys</li>
<li>Automatically parse API arguments to function parameters</li>
<li>Handle GraphQL responses and errors in the expected format</li>
</ul>
<p>To get started install the Event Handler utility by running:</p>
<pre lang="sh"><code>npm install @aws-lambda-powertools/event-handler
</code></pre>
<h4>Registering a resolver</h4>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/event-handler/appsync-graphql/">Docs</a></p>
</blockquote>
<p>You can register functions to match GraphQL types and fields with one
of three methods:</p>
<ul>
<li><code>onQuery()</code> - Register a function to handle a GraphQL
Query type.</li>
<li><code>onMutation()</code> - Register a function to handle a GraphQL
Mutation type.</li>
<li><code>resolver()</code> - Register a function to handle a GraphQL
type and field.</li>
</ul>
<p>Your resolvers receive the parsed arguments from the GraphQL request
as their first parameter. We will take care of parsing the response or
catching errors and returning them in the expected format.</p>
<p>You can register a resolver for a <code>Query</code> type, you can
use the <code>onQuery()</code> method. This method allows you to define
a function that will be invoked when a GraphQL Query is made.</p>
<pre lang="ts"><code>import { AppSyncGraphQLResolver } from
'@aws-lambda-powertools/event-handler/appsync-graphql';
import { Logger } from '@aws-lambda-powertools/logger';
import type { Context } from 'aws-lambda';
<p>const logger = new Logger({<br />
serviceName: 'TodoManager',<br />
});<br />
const app = new AppSyncGraphQLResolver({ logger });</p>
<p>app.onQuery<{ id: string }>('getTodo', async ({ id }) =>
{<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/logger</code>'s
changelog</a>.</em></p>
<blockquote>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">2.23.0</a>
(2025-07-02)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>ci:</strong> Partition workflows (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4084">#4084</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/40195ddc36f343c3b7905b51f2b82842d05fce58">40195dd</a>)</li>
<li><strong>logger:</strong> reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4">e310c50</a>)</li>
<li><strong>logger:</strong> set <code>hourCycle</code> to h23 when tz
is not UTC (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4102">#4102</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/54b08636474f11fefcb295cd04511d3f46be4382">54b0863</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>event-handler:</strong> add single resolver functionality
for AppSync GraphQL API (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3999">#3999</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b91383f6ec82cff9196ccc4e0c9e88d285eb567d">b91383f</a>)</li>
<li><strong>event-handler:</strong> expose event & context as object
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4">7e74c9e</a>)</li>
<li><strong>event-handler:</strong> support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0">263db2d</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b8e6d9361c78e58921ed88e90cc4aec21971479e"><code>b8e6d93</code></a>
chore(ci): bump version to 2.23.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4123">#4123</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4"><code>e310c50</code></a>
fix(logger): reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7c3196f423c1c35a52da2df0db0744a9e5b896b6"><code>7c3196f</code></a>
docs(event-handler): add AppSync GraphQL docs page (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4120">#4120</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4"><code>7e74c9e</code></a>
feat(event-handler): expose event & context as object (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0"><code>263db2d</code></a>
feat(event-handler): support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dfc31da7ef5ca5a225bdba3c9883c7cf45270df8"><code>dfc31da</code></a>
chore(deps): bump <code>@types/node</code> from 24.0.7 to 24.0.8 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4107">#4107</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5d783ee9b447f086d5644dddb19712f9db83ddd8"><code>5d783ee</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/4106">#4106</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3359dbe556e3dd654d9e2af553cb41d9600a2495"><code>3359dbe</code></a>
chore(deps): bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4104">#4104</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/94a690ed9c5208427e5593ef94a082ac8ba4e756"><code>94a690e</code></a>
chore(deps): bump squidfunk/mkdocs-material from <code>eb04b60</code> to
<code>0bfdba4</code> in /d...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f6374e127ca176e5bee1397a3cabe5471dc06d4b"><code>f6374e1</code></a>
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4108">#4108</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">compare
view</a></li>
</ul>
</details>
<br />
Updates `@aws-lambda-powertools/metrics` from 2.22.0 to 2.23.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/metrics</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v2.23.0</h2>
<h2>Summary</h2>
<p>We're excited to announce a new resolver for AppSync GraphQL APIs in
the Event Handler utility. It simplifies routing and processing of
events in AWS Lambda functions by allowing you to define resolvers for
specific GraphQL types and fields.</p>
<p>We’ve also fixed two bugs in Logger: 1/ one causing timestamps to be
incorrectly formatted when using non-UTC timezone and around midnight,
and 2/ another causing temporary keys to not be properly cleared when
using the <code>injectLambdaContext()</code> Middy.js middleware.</p>
<p>Finally, starting from this release we're publishing our Lambda
layers in the AWS China Beijing Region operated by Sinnet.</p>
<p>🌟 A huge thank you to <a
href="https://github.com/arnabrahman"><code>@arnabrahman</code></a> for
the amazing work on the AppSync GraphQL resolver 🎉</p>
<h3>Working AppSync GraphQL APIs</h3>
<h4>Key Features</h4>
<ul>
<li>Route events based on GraphQL type and field keys</li>
<li>Automatically parse API arguments to function parameters</li>
<li>Handle GraphQL responses and errors in the expected format</li>
</ul>
<p>To get started install the Event Handler utility by running:</p>
<pre lang="sh"><code>npm install @aws-lambda-powertools/event-handler
</code></pre>
<h4>Registering a resolver</h4>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/event-handler/appsync-graphql/">Docs</a></p>
</blockquote>
<p>You can register functions to match GraphQL types and fields with one
of three methods:</p>
<ul>
<li><code>onQuery()</code> - Register a function to handle a GraphQL
Query type.</li>
<li><code>onMutation()</code> - Register a function to handle a GraphQL
Mutation type.</li>
<li><code>resolver()</code> - Register a function to handle a GraphQL
type and field.</li>
</ul>
<p>Your resolvers receive the parsed arguments from the GraphQL request
as their first parameter. We will take care of parsing the response or
catching errors and returning them in the expected format.</p>
<p>You can register a resolver for a <code>Query</code> type, you can
use the <code>onQuery()</code> method. This method allows you to define
a function that will be invoked when a GraphQL Query is made.</p>
<pre lang="ts"><code>import { AppSyncGraphQLResolver } from
'@aws-lambda-powertools/event-handler/appsync-graphql';
import { Logger } from '@aws-lambda-powertools/logger';
import type { Context } from 'aws-lambda';
<p>const logger = new Logger({<br />
serviceName: 'TodoManager',<br />
});<br />
const app = new AppSyncGraphQLResolver({ logger });</p>
<p>app.onQuery<{ id: string }>('getTodo', async ({ id }) =>
{<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/metrics</code>'s
changelog</a>.</em></p>
<blockquote>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">2.23.0</a>
(2025-07-02)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>ci:</strong> Partition workflows (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4084">#4084</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/40195ddc36f343c3b7905b51f2b82842d05fce58">40195dd</a>)</li>
<li><strong>logger:</strong> reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4">e310c50</a>)</li>
<li><strong>logger:</strong> set <code>hourCycle</code> to h23 when tz
is not UTC (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4102">#4102</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/54b08636474f11fefcb295cd04511d3f46be4382">54b0863</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>event-handler:</strong> add single resolver functionality
for AppSync GraphQL API (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3999">#3999</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b91383f6ec82cff9196ccc4e0c9e88d285eb567d">b91383f</a>)</li>
<li><strong>event-handler:</strong> expose event & context as object
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4">7e74c9e</a>)</li>
<li><strong>event-handler:</strong> support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0">263db2d</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b8e6d9361c78e58921ed88e90cc4aec21971479e"><code>b8e6d93</code></a>
chore(ci): bump version to 2.23.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4123">#4123</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4"><code>e310c50</code></a>
fix(logger): reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7c3196f423c1c35a52da2df0db0744a9e5b896b6"><code>7c3196f</code></a>
docs(event-handler): add AppSync GraphQL docs page (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4120">#4120</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4"><code>7e74c9e</code></a>
feat(event-handler): expose event & context as object (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0"><code>263db2d</code></a>
feat(event-handler): support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dfc31da7ef5ca5a225bdba3c9883c7cf45270df8"><code>dfc31da</code></a>
chore(deps): bump <code>@types/node</code> from 24.0.7 to 24.0.8 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4107">#4107</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5d783ee9b447f086d5644dddb19712f9db83ddd8"><code>5d783ee</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/4106">#4106</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3359dbe556e3dd654d9e2af553cb41d9600a2495"><code>3359dbe</code></a>
chore(deps): bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4104">#4104</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/94a690ed9c5208427e5593ef94a082ac8ba4e756"><code>94a690e</code></a>
chore(deps): bump squidfunk/mkdocs-material from <code>eb04b60</code> to
<code>0bfdba4</code> in /d...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f6374e127ca176e5bee1397a3cabe5471dc06d4b"><code>f6374e1</code></a>
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4108">#4108</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">compare
view</a></li>
</ul>
</details>
<br />
Updates `@aws-lambda-powertools/tracer` from 2.22.0 to 2.23.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/tracer</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v2.23.0</h2>
<h2>Summary</h2>
<p>We're excited to announce a new resolver for AppSync GraphQL APIs in
the Event Handler utility. It simplifies routing and processing of
events in AWS Lambda functions by allowing you to define resolvers for
specific GraphQL types and fields.</p>
<p>We’ve also fixed two bugs in Logger: 1/ one causing timestamps to be
incorrectly formatted when using non-UTC timezone and around midnight,
and 2/ another causing temporary keys to not be properly cleared when
using the <code>injectLambdaContext()</code> Middy.js middleware.</p>
<p>Finally, starting from this release we're publishing our Lambda
layers in the AWS China Beijing Region operated by Sinnet.</p>
<p>🌟 A huge thank you to <a
href="https://github.com/arnabrahman"><code>@arnabrahman</code></a> for
the amazing work on the AppSync GraphQL resolver 🎉</p>
<h3>Working AppSync GraphQL APIs</h3>
<h4>Key Features</h4>
<ul>
<li>Route events based on GraphQL type and field keys</li>
<li>Automatically parse API arguments to function parameters</li>
<li>Handle GraphQL responses and errors in the expected format</li>
</ul>
<p>To get started install the Event Handler utility by running:</p>
<pre lang="sh"><code>npm install @aws-lambda-powertools/event-handler
</code></pre>
<h4>Registering a resolver</h4>
<blockquote>
<p><a
href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/event-handler/appsync-graphql/">Docs</a></p>
</blockquote>
<p>You can register functions to match GraphQL types and fields with one
of three methods:</p>
<ul>
<li><code>onQuery()</code> - Register a function to handle a GraphQL
Query type.</li>
<li><code>onMutation()</code> - Register a function to handle a GraphQL
Mutation type.</li>
<li><code>resolver()</code> - Register a function to handle a GraphQL
type and field.</li>
</ul>
<p>Your resolvers receive the parsed arguments from the GraphQL request
as their first parameter. We will take care of parsing the response or
catching errors and returning them in the expected format.</p>
<p>You can register a resolver for a <code>Query</code> type, you can
use the <code>onQuery()</code> method. This method allows you to define
a function that will be invoked when a GraphQL Query is made.</p>
<pre lang="ts"><code>import { AppSyncGraphQLResolver } from
'@aws-lambda-powertools/event-handler/appsync-graphql';
import { Logger } from '@aws-lambda-powertools/logger';
import type { Context } from 'aws-lambda';
<p>const logger = new Logger({<br />
serviceName: 'TodoManager',<br />
});<br />
const app = new AppSyncGraphQLResolver({ logger });</p>
<p>app.onQuery<{ id: string }>('getTodo', async ({ id }) =>
{<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/tracer</code>'s
changelog</a>.</em></p>
<blockquote>
<h1><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">2.23.0</a>
(2025-07-02)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>ci:</strong> Partition workflows (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4084">#4084</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/40195ddc36f343c3b7905b51f2b82842d05fce58">40195dd</a>)</li>
<li><strong>logger:</strong> reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4">e310c50</a>)</li>
<li><strong>logger:</strong> set <code>hourCycle</code> to h23 when tz
is not UTC (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4102">#4102</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/54b08636474f11fefcb295cd04511d3f46be4382">54b0863</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>event-handler:</strong> add single resolver functionality
for AppSync GraphQL API (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3999">#3999</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b91383f6ec82cff9196ccc4e0c9e88d285eb567d">b91383f</a>)</li>
<li><strong>event-handler:</strong> expose event & context as object
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4">7e74c9e</a>)</li>
<li><strong>event-handler:</strong> support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0">263db2d</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b8e6d9361c78e58921ed88e90cc4aec21971479e"><code>b8e6d93</code></a>
chore(ci): bump version to 2.23.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4123">#4123</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e310c50fe12463a5e3759ee1ecd61e0467fbc6a4"><code>e310c50</code></a>
fix(logger): reset keys on error in middleware (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4122">#4122</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7c3196f423c1c35a52da2df0db0744a9e5b896b6"><code>7c3196f</code></a>
docs(event-handler): add AppSync GraphQL docs page (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4120">#4120</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7e74c9e356d97372c4f1ee5ca83d16dfefea42f4"><code>7e74c9e</code></a>
feat(event-handler): expose event & context as object (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4113">#4113</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/263db2d74e558adb9b088174a5500de6c29488d0"><code>263db2d</code></a>
feat(event-handler): support <code>onQuery</code> and
<code>onMutation</code> handlers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4111">#4111</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dfc31da7ef5ca5a225bdba3c9883c7cf45270df8"><code>dfc31da</code></a>
chore(deps): bump <code>@types/node</code> from 24.0.7 to 24.0.8 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4107">#4107</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5d783ee9b447f086d5644dddb19712f9db83ddd8"><code>5d783ee</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/4106">#4106</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3359dbe556e3dd654d9e2af553cb41d9600a2495"><code>3359dbe</code></a>
chore(deps): bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4104">#4104</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/94a690ed9c5208427e5593ef94a082ac8ba4e756"><code>94a690e</code></a>
chore(deps): bump squidfunk/mkdocs-material from <code>eb04b60</code> to
<code>0bfdba4</code> in /d...</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f6374e127ca176e5bee1397a3cabe5471dc06d4b"><code>f6374e1</code></a>
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4108">#4108</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.22.0...v2.23.0">compare
view</a></li>
</ul>
</details>
<br />
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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niek Palm <[email protected]>1 parent 802e955 commit f6f87c0
File tree
3 files changed
+32
-32
lines changed- lambdas
- functions/control-plane
- libs/aws-powertools-util
3 files changed
+32
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | | - | |
267 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments