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.
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:
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 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 from 2.6.0 to 2.7.0.
Release notes
Sourced from
@aws-lambda-powertools/logger
's releases.... (truncated)
Changelog
Sourced from
@aws-lambda-powertools/logger
's changelog.Commits
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)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