Sourced from @aws-lambda-powertools/logger
's
releases.
v2.6.0
Summary
This release 1/ promotes Parser to Generally Available and ready for production, and 2/ adds support for unsupported types serialization in Logger.
⭐ Big thanks to
@daschaa
for helping improve our code quality automation 🏅 Congrats to@marlapativ
&@sandrokeil
on their first contributionParser is Generally Available
We want to thank the community who engaged with us, tested Parser during beta, and provided valuable feedback and contributions to improve everyone' experience.
New to Parser?
Parser provides data validation and parsing using Zod, a TypeScript-first schema declaration and validation library, and comes with built-in schemas and envelopes for common AWS event types for AWS Lambda.
To get started with Parser, you also need to install Zod:
npm install @aws-lambda-powertools/parser zod@~3
Next, you can extend one of the schemas using your own schema, and parse the event both with class method decorators (or Middy.js):
Support unserializable types
You can now extend the default logic used to emit JSON-structured logs by passing a custom serializer function to the Logger constructor, using the jsonReplacerFn option. This is useful when you want to customize the serialization of specific values.
Changes
- chore(parser): review imports (#2838) by
@dreamorosi
- chore(deps): bump github/codeql-action from 3.25.12 to 3.25.13 (#2789) by
@dependabot
- chore(maintenance): migrate jmespath utility to biome (#2807) by
@dreamorosi
- chore(maintenance): migrate testing utility to biome (#2808) by
@dreamorosi
- chore(maintenance): migrate idempotency utility to biome (#2810) by
@dreamorosi
- chore(deps): bump aws-actions/closed-issue-message from 36b7048ea77bb834d16e7a7c5b5471ac767a4ca1 to 80edfc24bdf1283400eb04d20a8a605ae8bf7d48 (#2784) by
@dependabot
- chore(deps): bump actions/setup-python from 5.1.0 to 5.1.1 (#2765) by
@dependabot
- chore(deps): bump github/codeql-action from 3.25.11 to 3.25.12 (#2771) by
@dependabot
🌟New features and non-breaking changes
... (truncated)
b285858
chore(ci): bump version to 2.6.0 (#2839)2deb223
chore(parser): review imports (#2838)f76acbe
chore(ci): revert bump version to 2.6.0 (#2836)38198e9
chore(ci): bump version to 2.6.0 (#2834)d94d70b
chore(parser): mark parser as GA (#2831)df71d78
improv(logger): export LoggerInterface (#2832)84192bb
chore(docs): Add lambda layer policy to versioning docs (#2824)72803e2
chore(maintenance): migrate parser utility to biome (#2822)22203cc
chore(deps-dev): bump typedoc from 0.26.4 to 0.26.5 in the typedoc group
acro...507861c
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(#2818)