Skip to content

Commit 2f4e851

Browse files
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.25.2 to 2.26.1 (#431)
Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.25.2 to 2.26.1. <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.26.0</h2> <h2>Summary</h2> <p>We're excited to announce support for API Gateway REST APIs in the Event Handler utility. This simplifies routing and processing of events in AWS Lambda functions by allowing you to define specific handlers that corresponds to routes in your REST APIs with minimal boilerplate code.</p> <p>We have also integrated the Parser utility with Batch Processing, enabling automatic validation of payloads from SQS, Kinesis and DynamoDB streams.</p> <p>Furthermore, we have added support for custom error handlers to the AppSync GraphQL event handler resolver, with automatic marshalling of errors to the expected AppSync format and logging built-in.</p> <p>⭐ Congratulations <a href="https://github.com/dcabib"><code>@​dcabib</code></a> for their first PR merged in the project and to <a href="https://github.com/arnabrahman"><code>@​arnabrahman</code></a> for their continued contributions to AppSync event handler 🎉</p> <h3>Working with API Gateway REST APIs</h3> <h4>Key Features</h4> <ul> <li>Lightweight routing to reduce boilerplate code for API Gateway REST APIs</li> <li>Built-in middleware engine for executing custom logic when processing requests and responses</li> <li>Supports micro function (one or a few routes) and monolithic functions (all routes)</li> </ul> <p>To get started install the Event Handler utility by running:</p> <p><code>npm install @aws-lambda-powertools/event-handler</code></p> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/features/event-handler/rest">Docs</a></p> </blockquote> <h4>Registering a route</h4> <p>You can register routes to match HTTP verbs and specific paths. Each HTTP verb corresponds to a method on the REST handler <code>Router</code> class and the path is the first argument of that method</p> <p>When a request is received, the event handler will automatically convert the event into a <a href="https://developer.mozilla.org/en-US/docs/Web/API/Request"><code>Request</code></a> object and give you access to the current request context, including this request object, the raw event, a <a href="https://developer.mozilla.org/en-US/docs/Web/API/Response">Response</a> object, and the lambda context.</p> <pre lang="ts"><code>import { Router } from '@aws-lambda-powertools/event-handler/experimental-rest'; import type { Context, APIGatewayProxyEvent } from 'aws-lambda'; <p>const app = new Router();</p> <p>app.get('/ping', async (_, {request: Request, res: Response, context: Context, event: APIGatewayProxyEvent}) =&gt; {<br /> return { message: 'pong' };<br /> });</p> <p>export const handler = async (event: unknown, context: Context) =&gt; {<br /> return app.resolve(event, context);<br /> };<br /> </code></pre></p> <p>We also support dynamic routes in the format <code>path/:identifer</code>, where the <code>:identifier</code> will be extracted as a named parameter and passed to your route handler.</p> <pre lang="ts"><code>&lt;/tr&gt;&lt;/table&gt; </code></pre> </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> <h2><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.26.0...v2.26.1">2.26.1</a> (2025-09-15)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>batch</strong> declare the <code>@​aws-lambda-powertools/commons</code> dependency (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4484">#4484</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8cfcccd6e94a6f0b25087ffbd8a4a2ec4bbf0e3d">8cfcccd</a>)</li> </ul> <h2><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.25.2...v2.26.0">2.26.0</a> (2025-09-11)</h2> <h3>Improvements</h3> <ul> <li><strong>logger</strong> update <code>getCodeLocation</code> regex to improve performance (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4389">#4389</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/801333deff04b09d4adb88860c60f497295685d9">801333d</a>)</li> <li><strong>batch</strong> simplified the parser integration api with batch processor (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4465">#4465</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/96977ff6b1330adcf82d9caa3b30454208d654e8">96977ff</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>parser</strong> updated the binaryValue and stringValue in the SqsMsgAttributeSchema to nullable (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4450">#4450</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/cefcbdbaec087ce1bfcee4294754dc173c0c473b">cefcbdb</a>)</li> <li><strong>event-handler</strong> handle nullable fields in APIGatewayProxyEvent (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4455">#4455</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/200f47b0c9e3864b2732d93ca50dd65323b109fb">200f47b</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>parser</strong> integrate parser with Batch Processing (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4408">#4408</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0b6bbbb751caaa7a81e1c2aaf823892c54b9e9cb">0b6bbbb</a>)</li> <li><strong>parser</strong> implemented a helper function <code>Base64Encoded</code> to decode base64 encoded payloads (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4413">#4413</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/15543602ea8182b0a5972fc2acfb364da4ad97f3">1554360</a>)</li> <li><strong>parser</strong> add IPv6 support for sourceIp in API Gateway schemas (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4398">#4398</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2a94c3759a04057423db8f346c921166ada173d0">2a94c37</a>)</li> <li><strong>event-handler</strong> remove undefined from Router's resolve type signature (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4463">#4463</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d36ef5569de910e467f7c6d6b1d518112a998d40">d36ef55</a>)</li> <li><strong>event-handler</strong> implement mechanism to manipulate response in middleware (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4439">#4439</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/35a510d3f3191b479105238f5f956bfeeb519389">35a510d</a>)</li> <li><strong>event-handler</strong> add route specific middleware registration and execution (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4437">#4437</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e6ea674b97953d0391573ea6536f9eb5f02f659b">e6ea674</a>)</li> <li><strong>event-handler</strong> add middleware registration and composition to rest handler (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4428">#4428</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fc87eb3f5c05a31002becf30e22928c8d7913a3f">fc87eb3</a>)</li> <li><strong>event-handler</strong> add support for error handling in AppSync GraphQL (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4317">#4317</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/77a992ff39ed41da2c965bc86d65a326f4db21d6">77a992f</a>)</li> <li><strong>event-handler</strong> add resolution logic to base router (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4349">#4349</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f1ecc6da353ed1d4a1a943a4b75dc3e2b50d8e5e">f1ecc6d</a>)</li> </ul> <h3>Maintenance</h3> <ul> <li><strong>event-handler</strong> rename variables to reflect that options object is now a RequestContext (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4460">#4460</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/5b4ee1ac77c4ebf0af6181f56a47340173306673">5b4ee1a</a>)</li> <li><strong>event-handler</strong> expose rest handler functionality (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4458">#4458</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/23eddfdd2f3ec0824dccd080824628c63ed8308c">23eddfd</a>)</li> <li><strong>event-handler</strong> split Router tests into multiple files (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4449">#4449</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/91a1ec4c4765e814b67f669ed2ff77c674cc3155">91a1ec4</a>)</li> <li><strong>event-handler</strong> rename BaseRouter class to Router (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4448">#4448</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b043c28820b18e2d518153992f4f3243d476e208">b043c28</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/08555250f6851fa966822f80516a91981e95f28d"><code>0855525</code></a> chore(ci): bump version to 2.26.1 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4486">#4486</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8cfcccd6e94a6f0b25087ffbd8a4a2ec4bbf0e3d"><code>8cfcccd</code></a> fix(batch): declare the <code>@​aws-lambda-powertools/commons</code> dependency (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4484">#4484</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/9118bbfbaccda931556df48586a3d32d06590ad2"><code>9118bbf</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/4443">#4443</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4fed581462b22c1a4210efc3f3d7a713ad390c84"><code>4fed581</code></a> docs(batch): added documentation for the parser integration feature in batch ...</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/dc7c65420d2425c804c0f85de0712b0785bd7eb2"><code>dc7c654</code></a> chore(deps-dev): bump zod from 4.1.7 to 4.1.8 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4473">#4473</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/cc233677d52f92eca40ee98ffa26abb308a85e08"><code>cc23367</code></a> chore(deps): bump actions/github-script from 7.0.1 to 8.0.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4432">#4432</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/bfdeeb62b0b941b53d96bdb2117c084fbb0e1ac4"><code>bfdeeb6</code></a> chore(ci): update layer ARN on documentation (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4471">#4471</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/ddb52e36476fb724b2eabbf0ec89995a8e10964b"><code>ddb52e3</code></a> chore(ci): bump version to 2.26.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4469">#4469</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d0bbfe0c5a8302940ffcaa055fd06886ccaddd15"><code>d0bbfe0</code></a> chore(deps): bump github/codeql-action from 3.30.2 to 3.30.3 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4467">#4467</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/41292d56e4069c3f5ffd88828b61922838014bbb"><code>41292d5</code></a> chore(deps-dev): bump zod from 4.1.5 to 4.1.7 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/4468">#4468</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.25.2...v2.26.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@aws-lambda-powertools/logger&package-manager=npm_and_yarn&previous-version=2.25.2&new-version=2.26.1)](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>
1 parent 6d42df8 commit 2f4e851

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"typescript": "^5.9.2"
3636
},
3737
"dependencies": {
38-
"@aws-lambda-powertools/logger": "^2.25.2",
38+
"@aws-lambda-powertools/logger": "^2.26.1",
3939
"@middy/core": "^6.4.5",
4040
"conventional-changelog-eslint": "^6.0.0"
4141
},

0 commit comments

Comments
 (0)