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

Bump @aws-lambda-powertools/logger from 1.18.1 to 2.5.0 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jul 19, 2024

Bumps @aws-lambda-powertools/logger from 1.18.1 to 2.5.0.

Release notes

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

v2.5.0

Summary

The regression on the Parser utility introduced in the last release is resolved in this release. You can now access again the errors that made the validation fail using the cause property of the ParseError.

We continue improving our test coverage for the utility during the beta period and before the utility is considered generally available.

Changes

🌟New features and non-breaking changes

  • feat(logger): custom function for unserializable values (JSON replacer) (#2739) by @​arnabrahman

📜 Documentation updates

  • chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (#2766) by @​dependabot
  • feat(logger): custom function for unserializable values (JSON replacer) (#2739) by @​arnabrahman
  • chore(deps): bump @​types/node from 20.14.9 to 20.14.10 (#2760) by @​dependabot
  • chore(deps): bump @​types/aws-lambda from 8.10.140 to 8.10.141 (#2761) by @​dependabot
  • docs(parser): add section on how to test parser using decorator (#2755) by @​am29d

🐛 Bug and hot fixes

🔧 Maintenance

  • chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (#2766) by @​dependabot
  • chore(deps-dev): bump typedoc from 0.26.3 to 0.26.4 in the typedoc group across 1 directory (#2759) by @​dependabot
  • chore(deps): bump @​types/node from 20.14.9 to 20.14.10 (#2760) by @​dependabot
  • chore(deps): bump vscode/devcontainers/javascript-node from cad3951 to cf26683 in /.devcontainer (#2756) by @​dependabot
  • chore(deps): bump @​types/aws-lambda from 8.10.140 to 8.10.141 (#2761) by @​dependabot

This release was made possible by the following contributors:

@​am29d, @​arnabrahman, @​dependabot, @​dependabot[bot], @​github-actions, @​github-actions[bot] and @​tusharf5

v2.4.0

Summary

This release improves: 1/ Logger by making it time zone aware, and 2/ Batch Processing which you can now customize to not throw an error when the entire batch of items fails to process.

We also dropped support for Node.js 16, and introduced support for Middy.js 5.x for functions using ES Modules.

🌟 ⭐ Thank you to @​arnabrahman for the work on both the new features!

Change timezone in log timestamps

... (truncated)

Changelog

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

2.5.0 (2024-07-15)

Bug Fixes

  • parser: include error cause in ParseError (#2774) (34d0b55)

Features

  • logger: custom function for unserializable values (JSON replacer) (#2739) (fbc8688)

2.4.0 (2024-07-10)

Bug Fixes

  • idempotency: check error identity via names (#2747) (55c3878)

Features

  • batch: add option to not throw FullBatchFailureError when the entire batch fails (#2711) (74198ef)
  • internal: support Middy.js 5.x (#2748) (1d7ad61)
  • layers: deploy Lambda layers in ap-south-2 and me-central-1 (#2675) (208c57a)
  • logger: time zone aware timestamp in Logger (#2710) (9fe4c75)
  • maintenance: drop support for Node.js 16.x (#2717) (e4eee73)

2.3.0 (2024-06-27)

Bug Fixes

  • idempotency: preserve scope of decorated class (#2693) (22ec1f0)
  • logger: reset log level after sampling refresh (#2673) (618faec)

Features

... (truncated)

Upgrade guide

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


title: Upgrade guide description: Guide to update between major Powertools for AWS Lambda (TypeScript) versions

End of support v1

!!! warning "On March 13th, 2024, Powertools for AWS Lambda (TypeScript) v1 entered maintenance mode, and will reach end-of-life on September 1st, 2024. If you are still using v1, we strongly recommend you to read our upgrade guide and update to the latest version."

Given our commitment to all of our customers using Powertools for AWS Lambda (TypeScript), we will keep npm v1 releases and documentation 1.x versions to prevent any disruption.

Migrate from v1 to v2

V2 is focused on official support for ESM (ECMAScript modules). We've made other minimal breaking changes to make your transition to v2 as smooth as possible.

Quick summary

Area Change Code change required
ESM support Added ESM support via dual CommonJS and ESM bundling, enabling top-level await and tree-shaking. -
Middy.js Updated import path for Middy.js middlewares to leverage subpath exports - i.e. @aws-lambda-powertools/tracer/middleware. Yes
Types imports Updated import path for TypeScript types to leverage subpath exports - i.e. @aws-lambda-powertools/logger/types. Yes
Logger Changed log sampling to dynamically switch log level to DEBUG on a percentage of requests. -
Logger Updated custom log formatter to include standard as well as persistent keys. Yes
Logger Removed ContextExamples from @aws-lambda-powertools/commons package. Yes
Logger and Tracer Removed deprecated createLogger and createTracer helper functions in favor of direct instantiation. Yes

First steps

Before you start, we suggest making a copy of your current working project or create a new git branch.

  1. Upgrade Node.js to v18 or higher, Node.js v20 is recommended.
  2. Ensure that you have the latest Powertools for AWS Lambda (TypeScript) version via Lambda Layer or npm.
  3. Review the following sections to confirm whether they apply to your codebase.

ESM support

With support for ES Modules in v2, you can now use import instead of require syntax.

This is especially useful when you want to run asynchronous code during the initialization phase by using top-level await.

import { getSecret } from '@aws-lambda-powertools/parameters/secrets';
// This code will run during the initialization phase of your Lambda function
const myApiKey = await getSecret('my-api-key', { transform: 'json' });
export const handler = async (_event: unknown, _context: unknown) => {
</tr></table>

... (truncated)

Commits
  • 3f5a4fa chore(ci): bump version to 2.5.0 (#2775)
  • 34d0b55 fix(parser): include error cause in ParseError (#2774)
  • e648f9b chore(deps): bump actions/dependency-review-action from 4.3.3 to 4.3.4 (#2772)
  • 157a39c chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (#2766)
  • fbc8688 feat(logger): custom function for unserializable values (JSON replacer) (#2739)
  • 08ee657 chore(deps-dev): bump typedoc from 0.26.3 to 0.26.4 in the typedoc group acro...
  • 612305c chore(deps): bump @​types/node from 20.14.9 to 20.14.10 (#2760)
  • a5687b1 chore(deps): bump vscode/devcontainers/javascript-node from cad3951 to `cf2...
  • b96b778 chore(deps): bump actions/setup-node from 4.0.2 to 4.0.3 (#2757)
  • 8eb2c5f chore(deps): bump @​types/aws-lambda from 8.10.140 to 8.10.141 (#2761)
  • 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 1.18.1 to 2.5.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)
- [Upgrade guide](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-typescript@v1.18.1...v2.5.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 19, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants