Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade: [dependabot] - bump @aws-lambda-powertools/logger from 2.14.…
…0 to 2.15.0 (#347) Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.14.0 to 2.15.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>v2.15.0</h2> <h2>Summary</h2> <p>This minor release improves the Idempotency utility by adding support for custom key prefixes. It also fixes a regression in Logger that caused runtime errors when passing an <code>undefined</code> or <code>null</code> value as extra argument.</p> <p>⭐️ Thanks to <a href="https://github.com/ConnorKirk"><code>@ConnorKirk</code></a>, <a href="https://github.com/VatsalGoel3"><code>@VatsalGoel3</code></a>, and <a href="https://github.com/shdq"><code>@shdq</code></a> for their contributions to this release!</p> <h3>Custom Idempotency Key Prefix Support</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/idempotency/#customizing-the-idempotency-key-prefix">Docs</a></p> </blockquote> <p>The <code>makeIdempotent</code>, <code>@idempotent</code> decorator, and <code>makeHandlerIdempotent</code> Middy.js middleware now support an optional keyPrefix parameter, allowing you to define custom prefixes for idempotency keys. With this feature, you can implement cross-function idempotency, group related operations under a common prefix, and ensure your idempotency records remain stable during code refactoring or Lambda function renaming.</p> <p>It allows you to override the default idempotency key prefix, which is typically a combination of Lambda function and function names. By specifying a custom prefix, you gain more control over the idempotency key structure.</p> <p><img src="https://github.com/user-attachments/assets/6f2edd86-8ba9-47c8-be27-711296276306" alt="carbon-7" /></p> <h3>Logging <code>undefined</code> or <code>null</code> arguments</h3> <p>In v2.13.1 we introduced a regression that caused runtime errors when passing <code>undefined</code> or <code>null</code> as extra arguments. This edge case could happen only when not using TypeScript or when passing arguments with broad types like <code>any</code> or <code>unknown</code>, since the types in all the logging methods already prevent you from passing these values. In this release we have fixed the regression so that Logger handles these values correctly.</p> <h2>Changes</h2> <ul> <li>chore(maintenance): set app sdk ua env variable when none is set (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3651">#3651</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>chore(deps): bump actions/setup-node from 4.1.0 to 4.2.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3630">#3630</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump aws-actions/configure-aws-credentials from 4.0.2 to 4.1.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3629">#3629</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump release-drafter/release-drafter from 6.0.0 to 6.1.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3628">#3628</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump actions/upload-artifact from 4.5.0 to 4.6.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3622">#3622</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump actions/stale from 9.0.0 to 9.1.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3621">#3621</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump actions/setup-go from 5.2.0 to 5.3.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3620">#3620</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.18 to 3.0.22 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3619">#3619</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump github/codeql-action from 3.27.9 to 3.28.9 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3618">#3618</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(ci): fix double <code>@</code> in action hash (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3587">#3587</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> </ul> <h2>🌟New features and non-breaking changes</h2> <ul> <li>chore: revert "feat(logger): refresh sample rate calculation per invocation" (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3652">#3652</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>feat(logger): refresh sample rate calculation per invocation (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3644">#3644</a>) by <a href="https://github.com/am29d"><code>@am29d</code></a></li> <li>feat(logger): Emit a warning on buffer flush (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3639">#3639</a>) by <a href="https://github.com/ConnorKirk"><code>@ConnorKirk</code></a></li> <li>feat(logger): Add log buffer and flush method (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3617">#3617</a>) by <a href="https://github.com/ConnorKirk"><code>@ConnorKirk</code></a></li> <li>feat(idempotency): add support for custom key prefix (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3532">#3532</a>) by <a href="https://github.com/shdq"><code>@shdq</code></a></li> <li>feat(parser): provide sub-path exports (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3598">#3598</a>) by <a href="https://github.com/am29d"><code>@am29d</code></a></li> <li>feat(logger): add circular buffer (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3593">#3593</a>) by <a href="https://github.com/VatsalGoel3"><code>@VatsalGoel3</code></a></li> </ul> <h2>📜 Documentation updates</h2> <ul> <li>chore: revert "feat(logger): refresh sample rate calculation per invocation" (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3652">#3652</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>feat(logger): refresh sample rate calculation per invocation (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3644">#3644</a>) by <a href="https://github.com/am29d"><code>@am29d</code></a></li> <li>chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3627">#3627</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>chore(deps): bump the aws-cdk group across 1 directory with 2 updates (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3626">#3626</a>) by @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> </ul> <!-- raw HTML omitted --> </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> <h1><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.14.0...v2.15.0">2.15.0</a> (2025-02-25)</h1> <h3>Bug Fixes</h3> <ul> <li><strong>ci:</strong> Add permissions to jobs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3586">#3586</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/90c93eac603b9a496aac1aee8e010fbc983aabdc">90c93ea</a>)</li> <li><strong>ci:</strong> fix path for latest SSM param (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3585">#3585</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e34952dacf0b55219f57aaf32a5422bd2595d7a9">e34952d</a>)</li> <li><strong>logger:</strong> handle illegal <code>null</code>/<code>undefined</code> as extra args (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3614">#3614</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6f99073cf61d2e49b01d8f7dcc9b4edf36166ad9">6f99073</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>idempotency:</strong> add support for custom key prefix (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3532">#3532</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7be7a83a07e86927221ba34ec1dbae7e73cf6e32">7be7a83</a>)</li> <li><strong>logger:</strong> add circular buffer (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3593">#3593</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/618cdeefd8838bf291b5b9df73d765c30d2457df">618cdee</a>)</li> <li><strong>logger:</strong> Add log buffer and flush method (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3617">#3617</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/6968ca87f55ef7574c7904e268ba0604d4b591b7">6968ca8</a>)</li> <li><strong>logger:</strong> Emit a warning on buffer flush (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3639">#3639</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f4715520322e768f4cc743388069f91d424b0ebd">f471552</a>)</li> <li><strong>logger:</strong> refresh sample rate calculation per invocation (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3644">#3644</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/1d66a2a0d0af36d6c8aa86b0c559f8489fe9ef77">1d66a2a</a>)</li> <li><strong>parser:</strong> provide sub-path exports (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3598">#3598</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/09f0aaaf92233d326acd9e5fbd21a5c241cdbfe7">09f0aaa</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/e85ef33e5871f6d2be8b1cf74f042541ac3543ff"><code>e85ef33</code></a> chore(ci): bump version to 2.15.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3654">#3654</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d94d3bfc5da23acc1c31b96a0eebf9e2c622cea2"><code>d94d3bf</code></a> chore(maintenance): set app sdk ua env variable when none is set (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3651">#3651</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/cd1331e71c50b192a249f96b1232775972420e6b"><code>cd1331e</code></a> chore: revert "feat(logger): refresh sample rate calculation per invocation" ...</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/1d66a2a0d0af36d6c8aa86b0c559f8489fe9ef77"><code>1d66a2a</code></a> feat(logger): refresh sample rate calculation per invocation (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3644">#3644</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/f4715520322e768f4cc743388069f91d424b0ebd"><code>f471552</code></a> feat(logger): Emit a warning on buffer flush (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3639">#3639</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/7ae904abcab2019f29c193f6078f4c7452565e49"><code>7ae904a</code></a> chore(deps): bump actions/setup-node from 4.1.0 to 4.2.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3630">#3630</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/152094b60dbae460f808bf7cea6ea6b8633a7bdf"><code>152094b</code></a> chore(deps): bump aws-actions/configure-aws-credentials from 4.0.2 to 4.1.0 (...</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/0594f28ffd19dee0d4f35b9bd99e043d43755832"><code>0594f28</code></a> chore(deps): bump release-drafter/release-drafter from 6.0.0 to 6.1.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3628">#3628</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a629010a5b81c44d9229f19fbaee163bdb6e6c59"><code>a629010</code></a> chore(deps): bump the aws-sdk-v3 group across 1 directory with 9 updates (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3627">#3627</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/01b993763725227f4efe01da1bd5295558fc3bd3"><code>01b9937</code></a> chore(deps): bump the aws-cdk group across 1 directory with 2 updates (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/3626">#3626</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.14.0...v2.15.0">compare view</a></li> </ul> </details> <br /> [](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