Skip to content

Commit

Permalink
fix(lambda): bump @aws-lambda-powertools/logger from 1.17.0 to 1.18.0…
Browse files Browse the repository at this point in the history
… in /lambdas (#3754)

Bumps
[@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript)
from 1.17.0 to 1.18.0.
<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>v1.18.0</h2>
<h2>Summary</h2>
<p>This minor release introduces improvements around how the Idempotency
utility handles conditional writes when used with DynamoDB as
persistence layer. Additionally the release fixes an issue with expired
AppConfig session tokens that affected long lived execution
environments.</p>
<h3>Idempotency: DynamoDB storage optimization</h3>
<p>The Idempotency utility uses conditional writes to persist the
idempotency state of a request. A failed conditional write signals to
the utility that the request payload being processed has already been
tried or is currently being processed.</p>
<p>Previously, condition check errors in single write operations did not
return a copy of the item in the event of a condition check error. A
separate read request was necessary to get the item and investigate the
cause of the error.</p>
<p>Now that AWS introduced the ability to return a copy of the item as
it was during the write attempt the Idempotency utility simplifies and
lowers the cost of handling retries by removing the need to perform a
separate read operation to retrieve the idempotency record of the
request already processed.</p>
<p>Note that this feature requires you to use version <a
href="https://github.com/aws/aws-sdk-js-v3/releases/tag/v3.363.0">v3.363.0</a>
of the <code>@aws-sdk/client-dynamodb</code> or newer together with
<code>@aws-lambda-powertools/idempotency</code>.</p>
<h3>Parameters: AppConfig Session Token handling</h3>
<p>When retrieving a configuration from AppConfig the Parameters utility
retrieves a session token that can be used to retrieve the next value
within 24 hours. Prior to this release the utility mistakenly assumed
that the execution environment would be recycled before that time due to
the Lambda timeout of 15 minutes.</p>
<p>For those customers who use provisioned concurrency or use the
Parameters utility outside of Lambda however this was an issue as it
caused the utility to fail retrieving new configurations from AppConfig
due to an expired token. Starting from this release the utility keeps
track of the token expiration timestamp and retrieves a new one before
attempting to call AppConfig if the token has already expired.</p>
<h3>Acknowledgements</h3>
<p>Congrats to <a
href="https://github.com/daschaa"><code>@​daschaa</code></a>, <a
href="https://github.com/tolutheo"><code>@​tolutheo</code></a>, and <a
href="https://github.com/yamatatsu"><code>@​yamatatsu</code></a> for
getting their first PR merged 🎉</p>
<h2>Changes</h2>
<ul>
<li>chore(maintenance): add overwrite to artifact arn in layer pipeline
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1970">#1970</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(maintenance): group CDK cli with other CDK dependencies (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1968">#1968</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(maintenance): add environment scope to npm token (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1957">#1957</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(maintenance): fine tune dependabot config (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1935">#1935</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(ci): add aws-sdk group and ignore middy upgrades in examples
(<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1893">#1893</a>)
by <a href="https://github.com/am29d"><code>@​am29d</code></a></li>
<li>chore(ci): allow deps-dev for semantic PR (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1861">#1861</a>)
by <a href="https://github.com/am29d"><code>@​am29d</code></a></li>
<li>chore(ci): allow dependabot PRs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1860">#1860</a>)
by <a
href="https://github.com/heitorlessa"><code>@​heitorlessa</code></a></li>
<li>chore(ci): [StepSecurity] Apply security best practices (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1839">#1839</a>)
by <a
href="https://github.com/step-security-bot"><code>@​step-security-bot</code></a></li>
<li>chore(internal): broken link in boring-cyborg app (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1807">#1807</a>)
by <a href="https://github.com/daschaa"><code>@​daschaa</code></a></li>
<li>chore(ci): Update log retention for layers (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1809">#1809</a>)
by <a href="https://github.com/sthulb"><code>@​sthulb</code></a></li>
<li>chore(ci): Update permissions in workflows (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1810">#1810</a>)
by <a href="https://github.com/sthulb"><code>@​sthulb</code></a></li>
<li>chore(ci): sets base permissions on all workflows (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1801">#1801</a>)
by <a href="https://github.com/sthulb"><code>@​sthulb</code></a></li>
</ul>
<h2>🌟New features and non-breaking changes</h2>
<ul>
<li>feat(idempotency): leverage new dynamodB Failed conditional writes
behavior (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1779">#1779</a>)
by <a
href="https://github.com/tolutheo"><code>@​tolutheo</code></a></li>
</ul>
<h2>📜 Documentation updates</h2>
<ul>
<li>chore(docs): bump layer version to 28 in docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1969">#1969</a>)
by <a href="https://github.com/am29d"><code>@​am29d</code></a></li>
<li>chore(docs): add link to performance tuning demo (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1960">#1960</a>)
by <a
href="https://github.com/dreamorosi"><code>@​dreamorosi</code></a></li>
<li>chore(layers): add ca-west-1 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1836">#1836</a>)
by <a href="https://github.com/am29d"><code>@​am29d</code></a></li>
<li>feat(idempotency): leverage new dynamodB Failed conditional writes
behavior (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1779">#1779</a>)
by <a
href="https://github.com/tolutheo"><code>@​tolutheo</code></a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7715df8060e92ab214f34c2afd5e9fb644de2218"><code>7715df8</code></a>
chore(release): v1.18.0 [skip ci]</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/76fc20c6a8b12e49ce57bfe60867ed77b86d3870"><code>76fc20c</code></a>
chore(docs): add link to performance tuning demo (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1960">#1960</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a9e5ba667ce873af705dfaef3636be2e3bb8cb17"><code>a9e5ba6</code></a>
chore(deps): bump the aws-sdk group with 9 updates (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1959">#1959</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/32a477a02ca844fb7d63824365a177cf6811452c"><code>32a477a</code></a>
chore(deps-dev): bump aws-sdk from 2.1540.0 to 2.1543.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1958">#1958</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/53976f94d3c1a6c9c7314c4105ebaf1c330dd600"><code>53976f9</code></a>
chore(deps-dev): bump <code>@​typescript-eslint/eslint-plugin</code> (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1948">#1948</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/481de731b12d441a9ab995a929c9efdf87f58914"><code>481de73</code></a>
chore(deps-dev): bump <code>@​typescript-eslint/parser</code> from
6.19.0 to 6.19.1 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1946">#1946</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6a4213be423024cc609400c5d5170021d9a8521c"><code>6a4213b</code></a>
chore(deps): bump actions/upload-artifact from 4.2.0 to 4.3.0 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1950">#1950</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/9fa77245666b1f63c910c808d253b707106c5f2d"><code>9fa7724</code></a>
chore(deps): bump esbuild from 0.19.11 to 0.19.12 (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1952">#1952</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/8c7286eadabf2004d5a41061c16c568cbdeec5dd"><code>8c7286e</code></a>
chore(maintenance): add environment scope to npm token (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1957">#1957</a>)</li>
<li><a
href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/c41140719dd3dcc0dfc7bc0708033deadeae7725"><code>c411407</code></a>
chore(deps): bump mkdocs-material from 9.5.4 to 9.5.5 in /docs (<a
href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/1949">#1949</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v1.17.0...v1.18.0">compare
view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a
href="https://www.npmjs.com/~aws-powertools-bot">aws-powertools-bot</a>,
a new releaser for <code>@​aws-lambda-powertools/logger</code> since
your current version.</p>
</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=1.17.0&new-version=1.18.0)](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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niek Palm <[email protected]>
  • Loading branch information
dependabot[bot] and npalm authored Feb 8, 2024
1 parent 595aec9 commit 98131ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lambdas/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@
"@aws-sdk/util-utf8-browser" "^3.0.0"
tslib "^1.11.1"

"@aws-lambda-powertools/commons@^1.17.0":
version "1.17.0"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/commons/-/commons-1.17.0.tgz#01c78e1c9344dcd8209160f54229269ef6981086"
integrity sha512-eZbOUGKH+oNG49oObXucffTdUyj0XmQTnddgDWmSWLgAQ4/L60n7x80hYOTCmDqATxPoA4ADa+fzAxGx0hyaxQ==
"@aws-lambda-powertools/commons@^1.17.0", "@aws-lambda-powertools/commons@^1.18.0":
version "1.18.0"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/commons/-/commons-1.18.0.tgz#ea0f4a367e9b3b0dcc55a64a70a397ab1a51f11d"
integrity sha512-oSnST8Wr3WZcT/FgCUzZYUFB+qYHWMAKS0GhWbUqHZMr7I5F75jq/JbeUUF16ShOMGgnEzs5oJjizBYVTI6Oww==

"@aws-lambda-powertools/logger@^1.17.0":
version "1.17.0"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/logger/-/logger-1.17.0.tgz#b62ae91c9ea5cd79630ccd5d6efa55ce89b1f75e"
integrity sha512-HdesKvINDebLsxEyLzjEvn4ZiO3lYnl9Ol7GuRGgSTsB4byEeRbhAghCGCPZb0CA/NaDVQleaLTTjjsJjm6I7A==
version "1.18.0"
resolved "https://registry.yarnpkg.com/@aws-lambda-powertools/logger/-/logger-1.18.0.tgz#55e815a3f005f42b84e88a7ae89937feb1c66fbf"
integrity sha512-oB4FPMYNPjME6xsDfm7rxRBHwaH0dQl+bmO9cDbRfiCsZfQxKtTiSvROGt6AvRo+5rhPZyCdn5eAHqCJ4f5tVQ==
dependencies:
"@aws-lambda-powertools/commons" "^1.17.0"
"@aws-lambda-powertools/commons" "^1.18.0"
lodash.merge "^4.6.2"

"@aws-lambda-powertools/tracer@^1.14.0":
Expand Down

0 comments on commit 98131ff

Please sign in to comment.