Skip to content
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

Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.13.0 to 2.13.1 #795

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 29, 2025

Bumps @aws-lambda-powertools/logger from 2.13.0 to 2.13.1.

Release notes

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

v2.13.1

Summary

This patch release fixes a number of bugs in all the built-in envelopes in the Parser utility so that they can now handle payloads of different formats including plain text and base64-encoded strings.

⭐️ Thanks to @​svozza for their contributions to this release!

Parser bug fixes

Docs

Starting with this release, Parser’s built-in envelopes treat event payloads as strings, enabling Zod transformations. Previously, they incorrectly treated all payloads as JSON strings, causing runtime errors for plain text or base64-encoded strings.

For example, when working with API Gateway events, use the ApiGatewayEnvelope with the JSONStringified Zod helper to automatically transform the payload before parsing. This is useful when you expect the payload to be a JSON string and want to parse its contents using a schema without code transformation.

carbon-2

This feature applies to all built-in envelopes, and additional helpers will be added based on customer demand.

Event Handler Request for Comments (RFC)

We are excited to share that we have published the RFC for Event Handler, an upcoming utility that helps you write REST APIs for Amazon API Gateway REST and HTTP APIs, Application Load Balancer (ALB), Lambda Function URLs, and VPC Lattice.

We’d like everyone interested in our most requested feature to review the RFC and share their feedback. We’re seeing good engagement, so we’ll keep the RFC open for a couple more weeks before starting implementation.

Changes

🌟 Minor Changes

📜 Documentation updates

🐛 Bug and hot fixes

... (truncated)

Changelog

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

2.13.1 (2025-01-28)

Bug Fixes

  • parser: allow Kinesis envelopes to handle non-JSON strings (#3531) (d18e03d)
  • parser: allow SQS envelopes to handle non-JSON strings (#3513) (89f0006)
  • parser: allow VPC envelopes to handle non-JSON strings (#3534) (603988d)
  • parser: API Gateway Envelopes handle non-JSON (#3511) (a4846af)
  • parser: CloudWatch Log Envelope handles non-JSON (#3505) (781a14e)
  • parser: DynamoDBStream schema & envelope (#3482) (7f7f8ce)
  • parser: EventBridge envelope uses correct path (#3504) (7cce60b)
  • parser: Firehose SQS should fail for invalid SQS message (#3526) (4721dda)
  • parser: Kafka Envelope + tests (#3489) (bd6b24a)
  • parser: LambdaFunctionUrl envelope assumes JSON string in body (#3514) (09aa287)
  • parser: make identitySource nulablel in APIGatewayRequestAuthorizerEventV2Schema (#3485) (8692de6)
  • parser: min array length on Records (#3521) (89a6281)
  • parser: set min length of 1 to s3 event lists (#3524) (937be64)
  • parser: SNS Envelope handles non-JSON (#3506) (4d7f05f)
Commits
  • 128e959 chore(ci): bump version to 2.13.1 (#3537)
  • 603988d fix(parser): allow VPC envelopes to handle non-JSON strings (#3534)
  • d18e03d fix(parser): allow Kinesis envelopes to handle non-JSON strings (#3531)
  • 4721dda fix(parser): Firehose SQS should fail for invalid SQS message (#3526)
  • 89a6281 fix(parser): min array length on Records (#3521)
  • 937be64 fix(parser): set min length of 1 to s3 event lists (#3524)
  • 5bb4a6a chore(parser): deprecate AlbMultiValueHeadersSchema (#3523)
  • 06e9975 chore(deps): bump squidfunk/mkdocs-material from ba73db5 to 41942f7 in /d...
  • d283a0e chore(deps): bump mkdocs-material from 9.5.49 to 9.5.50 in /docs (#3502)
  • 4099eab chore(deps-dev): bump markdownlint-cli2 from 0.17.1 to 0.17.2 (#3498)
  • 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 29, 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

Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.13.0 to 2.13.1.
- [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.13.0...v2.13.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.13.1 branch from 57d5837 to b063624 Compare January 29, 2025 03:17
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 merged commit 6c4e18a into main Jan 29, 2025
10 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/aws-lambda-powertools/logger-2.13.1 branch January 29, 2025 03:26
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