Skip to content

Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.16.0 to 2.17.0 #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 26, 2025

Bumps @aws-lambda-powertools/logger from 2.16.0 to 2.17.0.

Release notes

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

v2.17.0

Summary

This release introduces the new Validation utility to validate payloads with JSON Schemas. This addition further reduces the feature gap between this version of Powertools for AWS Lambda and the more mature one in Python, and it’s also the first utility that was built primarily by community contributors, hats off to @​VatsalGoel3!

The release also enhances Logger with correlation ID support, improves cold start reporting for Provisioned Concurrency, adds customizable function name dimensions for metrics, and extends Lambda layer availability to GovCloud (US) regions.

⭐️ Thanks to @​VatsalGoel3 and @​steven10172 for their contributions, and Guild for becoming a public reference customer!

New Validation utility

Docs

The new Validation utility helps you validate incoming events and responses using JSON Schemas. This is useful when you want request payloads to conform to expected formats. You can also verify that responses meet defined structures, ensuring consistency in both input and output.

Installation

npm i @aws-lambda-powertools/validation

Key Features

  • JSON Schema validation (supports draft-07 by default, configurable to any version supported by Ajv
  • Multiple implementation options:
    • Class method decorator @validator
    • Middy.js middleware validator
    • Standalone validate function
  • Flexible validation targets:
    • Incoming requests
    • Outbound responses
    • Partial payload validation using JMESPath expressions

Examples

Using Middy.js middleware:

carbon-9

Using decorator with envelope extraction:

carbon-10

Error handling with standalone validation:

carbon-6

Learn more

Head over to the documentation to learn more about the utility and see more examples.

... (truncated)

Changelog

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

2.17.0 (2025-03-25)

Bug Fixes

  • ci: Remove --compatible-architectures from workflow (#3752) (dafa496)
  • idempotency: include sk in error msgs when using composite key (#3709) (661f5ff)
  • logger: correctly refresh sample rate (#3722) (2692ca4)
  • parser: ddb base schema + other exports (#3741) (51a3410)

Features

  • commons: make utilities aware of provisioned concurrency (#3724) (c28e45e)
  • logger: set correlation ID in logs (#3726) (aa74fc8)
  • metrics: allow setting functionName via constructor parameter and environment variable (#3696) (3176fa0)
Commits
  • 577c76d chore(ci): bump version to 2.17.0 (#3770)
  • fa414d5 chore(parameters): update AWS SDK client type (#3768)
  • 64f5cf2 chore(deps): bump @​types/aws-lambda from 8.10.147 to 8.10.148 (#3767)
  • 103a7f9 chore(deps): bump github/codeql-action from 3.28.12 to 3.28.13 (#3764)
  • 3cc0451 chore(deps): bump @​types/node from 22.13.11 to 22.13.13 (#3766)
  • 434cc8b chore: add Guild customer reference (#3769)
  • 5e9f051 chore(ci): Simplified GovCloud Deploy (#3763)
  • afab04f chore(ci): fix region typo in govcloud (#3762)
  • 57d6344 chore(ci): fix workflow GovCloud formatting (#3761)
  • b44b1eb chore(deps-dev): bump the typescript group across 1 directory with 2 updates ...
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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)

Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.16.0 to 2.17.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.16.0...v2.17.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 26, 2025
Copy link

@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 because it includes a patch or minor update

@eps-autoapprove-dependabot eps-autoapprove-dependabot bot enabled auto-merge (squash) March 26, 2025 02:36
@eps-autoapprove-dependabot eps-autoapprove-dependabot bot merged commit 984025a into main Mar 26, 2025
6 checks passed
@eps-autoapprove-dependabot eps-autoapprove-dependabot bot deleted the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.17.0 branch March 26, 2025 02:38
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