Skip to content

Upgrade: [dependabot] - bump @aws-lambda-powertools/commons from 2.32.0 to 2.33.0#2588

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/aws-lambda-powertools/commons-2.33.0
Open

Upgrade: [dependabot] - bump @aws-lambda-powertools/commons from 2.32.0 to 2.33.0#2588
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/aws-lambda-powertools/commons-2.33.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 24, 2026

Bumps @aws-lambda-powertools/commons from 2.32.0 to 2.33.0.

Release notes

Sourced from @​aws-lambda-powertools/commons's releases.

v2.33.0

Summary

In this release, the HTTP event handler gains a new metrics middleware that lets you emit per-request latency, fault, and error metrics with a single line of configuration. The middleware automatically uses the matched route as a dimension and attaches request metadata like HTTP method, path, status code, and API Gateway request IDs.

We've also improved the parser package by exporting InferOutput from the public types entry point, resolving a TypeScript declaration emit error (TS2883) that affected consumers using safeParse mode — particularly those upgrading to TypeScript 6.

⭐ Congratulations to @​yashar-new10 and @​faberchri for their first PR merged in the project 🎉

Metrics Middleware

You can now use the Metrics utility with the HTTP event handler to automatically emit CloudWatch metrics for every request. The middleware:

  • Adds the matched route as a metric dimension (e.g., GET /users/:id)
  • Emits latency (Milliseconds), fault (Count), and error (Count) metrics
  • Attaches request metadata including httpMethod, path, statusCode, userAgent, and ipAddress
  • Adds API Gateway-specific metadata (apiGwRequestId, apiGwApiId) when available
  • Uses NOT_FOUND as the route dimension when no route matches, preventing dimension explosion
import { Router } from '@aws-lambda-powertools/event-handler/http';
import { metrics as metricsMiddleware } from '@aws-lambda-powertools/event-handler/http/middleware/metrics';
import { Metrics } from '@aws-lambda-powertools/metrics;
import type { Context } from 'aws-lambda';
const metrics = new Metrics({ namespace: 'my-app', serviceName: 'my-service' });
const app = new Router();
app.use(metricsMiddleware(metrics));
app.get('/users/:id', async ({ params }) => {
return { id: params.id, name: 'Jane' };
});
export const handler = async (event: unknown, context: Context) =>
app.resolve(event, context);

Changes

... (truncated)

Changelog

Sourced from @​aws-lambda-powertools/commons's changelog.

2.33.0 (2026-04-14)

Bug Fixes

  • commons don't overwrite existing value with undefined in deepMerge (#5141) (c7c6c0f)
  • commons rename AvailabilityZoneId to AvailabilityZoneID in docs and tests (#5118) (65c054c)
  • event-handler http response body validation typings (#5125) (0805db9)

Improvements

  • parser export InferOutput from public types entry point (#5175) (16c6de6)

Features

  • event-handler add metrics middleware for HTTP routes (#5086) (5af28e8)
Commits
  • 5765cc4 chore(ci): bump version to 2.33.0 (#5183)
  • ad92246 chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (#5181)
  • ec7dc7e chore(deps-dev): bump typedoc from 0.28.18 to 0.28.19 in the typescript group...
  • b6ae31b chore(deps): bump actions/github-script from 8.0.0 to 9.0.0 (#5177)
  • a6368ad chore(deps): bump release-drafter/release-drafter from 7.1.1 to 7.2.0 (#5178)
  • 0777d90 chore(deps-dev): bump @​biomejs/biome from 2.4.10 to 2.4.11 (#5179)
  • fe45b4e chore(deps): bump @​types/node from 25.5.2 to 25.6.0 (#5180)
  • 16c6de6 improv(parser): export InferOutput from public types entry point (#5175)
  • 1e2f39f chore(deps): bump aws-actions/configure-aws-credentials from 6.0.0 to 6.1.0 (...
  • e279e1b chore(deps-dev): bump the vitest group across 1 directory with 2 updates (#5176)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 24, 2026
Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot enabled auto-merge (squash) April 24, 2026 22:18
Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Bumps [@aws-lambda-powertools/commons](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-typescript/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md)
- [Commits](aws-powertools/powertools-lambda-typescript@v2.32.0...v2.33.0)

---
updated-dependencies:
- dependency-name: "@aws-lambda-powertools/commons"
  dependency-version: 2.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/commons-2.33.0 branch from d9a8f1a to bea8074 Compare April 25, 2026 12:47
Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Copy link
Copy Markdown

@eps-autoapprove-dependabot eps-autoapprove-dependabot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants