From d9dfc643d425cba0038b385e7a10a2f1201bd61f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 17 Dec 2024 16:38:08 +0000
Subject: [PATCH] Upgrade: [dependabot] - bump @aws-lambda-powertools/logger
from 2.11.0 to 2.12.0 (#262)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.11.0 to 2.12.0.
Sourced from In this release we have made the Logger class more extensible, added
⭐️ Thanks to You can now overwrite the Logger methods
You can now set We have also added a warning message when you overwrite a dimension
with the same key, which will help you to troubleshoot unintentional
changes: const metrics = new Metrics({ singleMetric: true }); metrics.addDimension('test', 'foo'); // warning: Dimension "test" has already been added. The
previous value will be overwritten.Release notes
@aws-lambda-powertools/logger
's
releases.
v2.12.0
Summary
POWERTOOLS_METRICS_DISABLED
to control metrics output in
non production environment, and added AppSyncResolverSchema
and KinesisDynamoDBStreamSchema
to the parser utility.@zirkelc
and @svozza
for their
contributions to this release!Logger class is now more extensible
createAndPopulateLogItem
, printLog
,
processLogItem
, which were private before. This allows you
to extend the Logger and add new functionality, i.e. implement your own
message buffer.Metrics utility improvements
POWERTOOLS_METRICS_DISABLED
to control
the metrics output. This is useful when you don't want to emit metrics
in a non-production environment. When POWERTOOLS_DEV
is
enabled, the metrics are also suppressed, but you can always explicitly
enable it with POWERTOOLS_METRICS_DISABLED
.import { Metrics } from '@aws-lambda-powertools/metrics';
metrics.addDimension('test', 'bar'); // "bar" replaces
"foo"
You can now use AppSyncResolverSchema
and
AppSyncResolverBatchSchema
to parse AppSync Lambda resolver
event.
We have also added KinesisDynamoDBStreamSchema
to
validate the event from the invocation chain of DynamoDB, Kinesis and
Lambda, which are slightly different compared to direct DynamoDB Streams
invocations, see more details in #3193.
@dependabot
@dependabot
@dependabot
@dependabot
@dreamorosi
@dependabot
@jharlow
@dependabot
@dependabot
... (truncated)
Sourced from @aws-lambda-powertools/logger
's
changelog.
2.12.0 (2024-12-17)
Bug Fixes
Features
- logger: change selected method visibility to protected (#3377) (93a19a5)
- metrics: disable metrics with
POWERTOOLS_METRICS_DISABLED
(#3351) (7e8578e)- metrics: warn when overwriting dimension (#3352) (12f3e44)
- parser: Add appsync resolver event Zod schemas (#3301) (318f34b)
- parser: add schema for DynamoDB - Kinesis Stream event (#3328) (a8dfa74)
d5ec97b
chore(ci): bump version to 2.12.0 (#3432)3cd2f02
chore(deps-dev): bump markdownlint-cli2 from 0.15.0 to 0.16.0 (#3418)97db537
chore(deps-dev): bump zod from 3.23.8 to 3.24.1 (#3419)2e4f7f4
chore(deps): bump @types/node
from 22.10.1 to 22.10.2 (#3420)f260ebd
chore(deps): bump vscode/devcontainers/javascript-node from
d493ef0
to `896...0ee179c
chore(deps): bump github/codeql-action from 3.27.7 to 3.27.9 (#3422)63ff622
chore(deps-dev): bump lint-staged from 15.2.10 to 15.2.11 (#3417)0da9cea
fix(parser): make SNS subject field nullish (#3415)248a13e
docs: add videos section in community (#3416)fb11da8
chore(deps): bump the aws-cdk group across 1 directory with 2 updates
(#3413)