Skip to content

Commit

Permalink
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.0.3…
Browse files Browse the repository at this point in the history
… to 2.0.4 (#112)

Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 2.0.3 to 2.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/releases"><code>@​aws-lambda-powertools/logger</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v2.0.4</h2>
<h2>Summary</h2>
<p>This release introduces a new Powertools utility to work with
JMESPath, adds the ability to trace requests made via the
<code>fetch</code> module for Tracer, and brings bug fixes and
improvements for the Logger and Idempotency utilities.</p>
<h3>JMESPath</h3>
<p>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.</p>
<h4>Usage</h4>
<p>To get started, install the library by running:</p>
<pre lang="sh"><code>npm i @aws-lambda-powertools/jmespath
</code></pre>
<p>At its core, the library provides a utility function to extract data
from a JSON object using a JMESPath expression.</p>
<pre lang="ts"><code>import { search } from
'@aws-lambda-powertools/jmespath';
import { Logger } from '@aws-lambda-powertools/logger';
<p>const logger = new Logger();</p>
<p>type MyEvent = {
foo: {
bar: string;
};
}</p>
<p>export const handler = async (event: MyEvent): Promise&lt;void&gt;
=&gt; {
const result = search(event, 'foo.bar');
logger.info(result); // &quot;baz&quot;
};
</code></pre></p>
<p>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.</p>
<pre lang="ts"><code>import { extractDataFromEnvelope } from
'@aws-lambda-powertools/jmespath/envelopes';
<p>type MyEvent = {
body: string; //
&quot;{&amp;quot;customerId&amp;quot;:&amp;quot;dd4649e6-2484-4993-acb8-0f9123103394&amp;quot;}&quot;
deeplyNested: Array&lt;{ someData: number[] }&gt;;
};</p>
<p>type MessageBody = {
customerId: string;
};
&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md"><code>@​aws-lambda-powertools/logger</code>'s
changelog</a>.</em></p>
<blockquote>
<h2>2.0.4 (2024-04-10)</h2>
<h3>Bug Fixes</h3>
<p><strong>idempotency:</strong> return correct value from in-memory
cache (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2309">#2309</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b908aa1111d332fcf3638a77f24a545b85b4c103">5b4c103</a>)
<strong>logger:</strong> buffer logs emitted during init (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2269">#2269</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/90d3b84b9297ba0d4755fd2608fd50dc91439867">1439867</a>)</p>
<h3>Features</h3>
<p><strong>tracer:</strong> support tracing <code>fetch</code> requests
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1619">#1619</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/cc34400000f9dffe5190968f2af64e4ce607548b">607548b</a>)
<strong>jmespath</strong> public release of JMESPAth utility (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1645">#1645</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/671a34d34ac80d3c1a7860ee8a6b41804233ff9b">233ff9b</a>)</p>
<h3>Minor Changes</h3>
<p><strong>logger:</strong> use template literal instead of
<code>node:util</code> format (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2283">#2283</a>)
(<a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/2383c1419d96bf980a044c7acbb4117b5961ace1">961ace1</a>)</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3f296d2749f60aece37b4759a702f92e22f6f3dc"><code>3f296d2</code></a>
chore(ci): bump version to 2.0.4 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2348">#2348</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/bd88aeda9cd73c322ab25740cfcb50bbc63052f3"><code>bd88aed</code></a>
chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2343">#2343</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4841789ad4d6db7fb04f9b21f972ad1055464dab"><code>4841789</code></a>
chore(deps): bump <code>@​types/node</code> from 20.12.5 to 20.12.6 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2342">#2342</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/22d5134af5ec05ca5b6f60671beca0962b7fa3c4"><code>22d5134</code></a>
chore(maintenance): update release flow diagram (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2322">#2322</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d34c905545afb83004f36869428192263418a7c3"><code>d34c905</code></a>
chore(docs): streamline docs homepage (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2328">#2328</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/13995511c3f706bd5354a3a96d6decf734a982b1"><code>1399551</code></a>
chore(deps-dev): bump typedoc from 0.25.12 to 0.25.13 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2333">#2333</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3eeddb5e13b4a7b939c9af3cd51e9ca2ba8c4d58"><code>3eeddb5</code></a>
chore(deps-dev): bump aws-sdk from 2.1593.0 to 2.1595.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2338">#2338</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/069dacc94b0887bd69aa738f1ff60c01d2296775"><code>069dacc</code></a>
chore(deps): bump <code>@​types/node</code> from 20.12.4 to 20.12.5 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2334">#2334</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/062f329f752e3ff9331b218fc391ba5a5b01588c"><code>062f329</code></a>
chore(deps): bump the aws-cdk group with 2 updates (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2332">#2332</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/91c56900e63d6d52d446910b9bb187229a63c400"><code>91c5690</code></a>
chore(deps): bump github/codeql-action from 3.24.9 to 3.24.10 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2331">#2331</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.0.3...v2.0.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@aws-lambda-powertools/logger&package-manager=npm_and_yarn&previous-version=2.0.3&new-version=2.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 <dependency name> 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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Apr 11, 2024
1 parent c1f2fe5 commit d390bef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"check-licenses": "license-checker --failOn GPL --failOn LGPL --start ../.."
},
"dependencies": {
"@aws-lambda-powertools/logger": "^2.0.3",
"@aws-lambda-powertools/logger": "^2.0.4",
"@middy/core": "^5.3.2",
"@middy/input-output-logger": "^5.3.2",
"@nhs/fhir-middy-error-handler": "^2.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/updatePrescriptionStatus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@aws-lambda-powertools/commons": "^2.0.0",
"@aws-lambda-powertools/logger": "^2.0.0",
"@aws-lambda-powertools/logger": "^2.0.4",
"@aws-sdk/client-dynamodb": "^3.552.0",
"@aws-sdk/util-dynamodb": "^3.552.0",
"@middy/core": "^5.2.6",
Expand Down

0 comments on commit d390bef

Please sign in to comment.