From fdc25392738099e7010c1a246294b2dd59eb00a3 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 11 Apr 2024 03:44:02 +0000
Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20@aws-lambda-powerto?=
=?UTF-8?q?ols/parameters=20from=202.0.3=20to=202.0.4=20(#804)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps
[@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.0.3 to 2.0.4.
Sourced from This release introduces a new Powertools utility to work with
JMESPath, adds the ability to trace requests made via the
We're excited to release the JMESPath utility, a fully spec compliant
high-level library to parse and extract data from JSON objects using
JMESPath expressions. To get started, install the library by running: At its core, the library provides a utility function to extract data
from a JSON object using a JMESPath expression. const logger = new Logger(); type MyEvent = {
foo: {
bar: string;
};
} export const handler = async (event: MyEvent): Promise<void>
=> {
const result = search(event, 'foo.bar');
logger.info(result); // "baz"
};
Release notes
@aws-lambda-powertools/parameters
's
releases.
v2.0.4
Summary
fetch
module for Tracer, and brings bug fixes and
improvements for the Logger and Idempotency utilities.JMESPath
Usage
npm i @aws-lambda-powertools/jmespath
import { search } from
'@aws-lambda-powertools/jmespath';
import { Logger } from '@aws-lambda-powertools/logger';
In some cases however, you may want to extract data from an envelope. The library provides a utility function to help you work with envelopes and extract data from them.
import { extractDataFromEnvelope } from
'@aws-lambda-powertools/jmespath/envelopes';
type MyEvent = {
body: string; //
"{"customerId":"dd4649e6-2484-4993-acb8-0f9123103394"}"
deeplyNested: Array<{ someData: number[] }>;
};
type MessageBody = {
customerId: string;
};
</tr></table>
... (truncated)
Sourced from @aws-lambda-powertools/parameters
's
changelog.
2.0.4 (2024-04-10)
Bug Fixes
idempotency: return correct value from in-memory cache (#2309) (5b4c103) logger: buffer logs emitted during init (#2269) (1439867)
Features
tracer: support tracing
fetch
requests (#1619) (607548b) jmespath public release of JMESPAth utility (#1645) (233ff9b)Minor Changes
logger: use template literal instead of
node:util
format (#2283) (961ace1)
3f296d2
chore(ci): bump version to 2.0.4 (#2348)bd88aed
chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions (#2343)4841789
chore(deps): bump @types/node
from 20.12.5 to 20.12.6 (#2342)22d5134
chore(maintenance): update release flow diagram (#2322)d34c905
chore(docs): streamline docs homepage (#2328)1399551
chore(deps-dev): bump typedoc from 0.25.12 to 0.25.13 (#2333)3eeddb5
chore(deps-dev): bump aws-sdk from 2.1593.0 to 2.1595.0 (#2338)069dacc
chore(deps): bump @types/node
from 20.12.4 to 20.12.5 (#2334)062f329
chore(deps): bump the aws-cdk group with 2 updates (#2332)91c5690
chore(deps): bump github/codeql-action from 3.24.9 to 3.24.10 (#2331)