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

fix(lambda): Bump @aws-lambda-powertools/logger from 1.12.1 to 1.14.0 in /lambdas #3521

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 2, 2023

Bumps @aws-lambda-powertools/logger from 1.12.1 to 1.14.0.

Release notes

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

v1.14.0

Summary

This release brings all the generally available utilities to the Lambda Layers, improves the Idempotency utility with the addition of a new @idempotent class method decorator, and makes Tracer more reliable.

Lambda Layers

Starting from version 21, which corresponds to this release, of our Lambda Layer includes the Idempotency, Parameters, and Batch Processing utilities. The layer comes with its own reduced copy of AWS SDK v3 for JavaScript clients so you can easily attach it to Lambda functions running on Node.js 16 without having to bundle the SDK.

The layers are available in most commercial AWS Regions, go here to learn more about how to use them and find the ARN for your region.

Idempotency

If you use decorators you can now make your class methods idempotent thanks to the new @idempotent decorator.

idempotent

You can use the decorator on your Lambda handler, like shown in the image above, or on any method that returns a response. This is useful when you want to make a specific part of your code idempotent, for example when your Lambda handler performs multiple side effects and you only want to make part of it safe to retry.

Tracer

When segments generated by your code are about to be sent to the AWS X-Ray daemon, the AWS X-Ray SDK for Node.js serializes them into a JSON string. If the segment contains exotic objects like BigInt, Set, or Map in the metadata the serialization can throw an error because the native JSON.stringify() function doesn't know how to handle these objects.

To guard against this type of runtime errors we have wrapped within try/catch logic the branches of code in Tracer where this issue could happen. Now, when an error gets thrown during the serialization of a segment within Tracer, we will catch it and log a warning instead.

We are also working with the X-Ray team to add a replacer function to the serialization logic directly in the X-Ray SDK so that the issue can be better mitigated.

Acknowledgements

Congratulations to @​HaaLeo and @​KhurramJalil for having your first contribution to the project, thank you for helping make Powertools better for everyone 🎉

Note We have officially started working on the next major version of Powertools for AWS (TypeScript) 🔥 We have published a Request For Comment (RFC) that details most of the changes that we have planned and in the coming weeks we'll work on an upgrade guide. We would love to hear what you think about our plan and hear any concern you might have.

Changes

🌟New features and non-breaking changes

🌟 Minor Changes

... (truncated)

Changelog

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

1.14.0 (2023-09-29)

Features

  • idempotency: add idempotency decorator (#1723) (d138673)
  • layers: add arm64 to integration test matrix (#1720) (61ad5ac)
  • tracer: add try/catch logic to decorator and middleware close (#1716) (be16b59)

1.13.1 (2023-09-21)

Bug Fixes

  • maintenance: remove upper peer dependency Middy (#1705) (df21ec8)

1.13.0 (2023-09-18)

Bug Fixes

  • batch: Update processor to pass only context to handler (#1637) (6fa09b2)
  • docs: update versions.json jq query (4e6f662)
  • parameters: return type when options without transform is used (#1671) (b2fe341)

Features

  • batch: rename AsyncBatchProcessor to default BatchProcessor (#1683) (e253755)
Commits
  • 1dc1805 chore(release): v1.14.0 [skip ci]
  • 004894a docs(idempotency): fix docs (#1724)
  • d138673 feat(idempotency): add idempotency decorator (#1723)
  • be16b59 feat(tracer): add try/catch logic to decorator and middleware close (#1716)
  • 793f12f chore(ci): create v2 alpha release workflow (#1719)
  • 61ad5ac feat(layers): add arm64 to integration test matrix (#1720)
  • 9cc7190 improv(commons): add number key type to JSONObject type
  • 58120e3 chore(layers): add Idempotency, Batch, and Parameters to layer (#1712)
  • ccc0398 chore(layers): bundle assets from source when testing (#1710)
  • 02aae6d refactor(commons): aws sdk util + identity check (#1708)
  • 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 <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

Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 1.12.1 to 1.14.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@v1.12.1...v1.14.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 2, 2023
@npalm npalm merged commit 3f42529 into main Oct 3, 2023
20 checks passed
@npalm npalm deleted the dependabot/npm_and_yarn/lambdas/aws-lambda-powertools/logger-1.14.0 branch October 3, 2023 14:44
npalm pushed a commit that referenced this pull request Oct 9, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.5.0](v4.4.1...v4.5.0)
(2023-10-04)


### Features

* namespace EC2 tags
([#3523](#3523))
([35aa73a](35aa73a))


### Bug Fixes

* **lambda:** Bump @aws-lambda-powertools/logger from 1.12.1 to 1.14.0
in /lambdas
([#3521](#3521))
([3f42529](3f42529))
* **lambda:** Bump the aws group in /lambdas with 5 updates
([#3525](#3525))
([1b24342](1b24342))
* **lambda:** Bump the octokit group in /lambdas with 1 update
([#3519](#3519))
([cde80cd](cde80cd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
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.

1 participant