Sourced from @aws-lambda-powertools/logger
's
releases.
v2.7.0
Summary
This release 1/ brings a new helper function to parse JSON stringified fields when using Parser, 2/ and improved Metrics, which now can emit metrics using the
None
unit.⭐️ Thanks to
@daschaa
for fixing Logger and making it default to :UTC when encountering an invalid time zone value.Quickly parse JSON stringified fields
You can now parse and validate JSON stringified fields using Zod schemas without having to transform them first. This is useful when working with payloads coming from sources that stringify payloads like Amazon API Gateway, Amazon SQS, Amazon Application Load Balancer (ALB), etc.
Use the
JSONStringified
helper to extend your schemas or any of the built-in schemas in Parser:Metrics without unit
You can now create metrics without a unit of measure, this is helpful when your business metrics are tied to an abstract concept or when none of the units supported by the Embedded metric format specification fit.
Changes
- chore(ci): extract cached-node-modules action (#2876) by
@dreamorosi
- chore(deps): bump github/codeql-action from 3.25.14 to 3.25.15 (#2855) by
@dependabot
- chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#2856) by
@dependabot
- chore(deps): bump github/codeql-action from 3.25.13 to 3.25.14 (#2845) by
@dependabot
🌟New features and non-breaking changes
- feat(metrics): add unit None for CloudWatch EMF Metrics (#2904) by
@am29d
- feat(parser): add helper functions to transform JSON stringified payloads (#2901) by
@am29d
📜 Documentation updates
- feat(parser): add helper functions to transform JSON stringified payloads (#2901) by
@am29d
- chore(deps): bump the aws-cdk group across 1 directory with 2 updates (#2884) by
@dependabot
- chore(deps): bump typescript from 5.4.5 to 5.5.4 (#2820) by
@dependabot
- chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (#2882) by
@dependabot
- chore(deps): bump mkdocs-material from 9.5.30 to 9.5.31 in /docs (#2877) by
@dependabot
- chore(deps): bump
@types/node
from 22.0.2 to 22.1.0 (#2879) by@dependabot
- chore(deps): bump squidfunk/mkdocs-material from
257eca8
to9919d6e
in /docs (#2881) by@dependabot
- chore(deps): bump
@types/node
from 22.0.0 to 22.0.2 (#2872) by@dependabot
- chore(deps-dev): bump tsx from 4.16.3 to 4.16.5 (#2873) by
@dependabot
- chore(deps): bump ts-jest from 29.1.5 to 29.2.4 (#2874) by
@dependabot
- chore(maintenance): add LocalStack customer reference (#2870) by
@dreamorosi
... (truncated)
Sourced from @aws-lambda-powertools/logger
's
changelog.
2.7.0 (2024-08-08)
Bug Fixes
Features
24c423c
chore(ci): bump version to 2.7.0 (#2905)fa27cba
feat(metrics): add unit None for CloudWatch EMF Metrics (#2904)806b884
feat(parser): add helper function to handle JSON stringified fields (#2901)b064408
chore(commons): extract lru-cache into commons (#2899)a9d4a9c
chore(deps-dev): bump lint-staged from 15.2.7 to 15.2.8 (#2885)13411dd
chore(deps-dev): bump aws-sdk from 2.1667.0 to 2.1668.0 (#2890)4f7e33b
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(#2884)b9b9ec6
chore(deps-dev): bump aws-sdk from 2.1666.0 to 2.1667.0 (#2886)fae0fc9
chore(deps): bump typescript from 5.4.5 to 5.5.4 (#2820)3feba28
chore(ci): extract cached-node-modules action (#2876)