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/parameters from 2…
….6.0 to 2.7.0 (#649) Bumps [@aws-lambda-powertools/parameters](https://github.com/aws-powertools/powertools-lambda-typescript) from 2.6.0 to 2.7.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/parameters</code>'s releases</a>.</em></p> <blockquote> <h2>v2.7.0</h2> <h2>Summary</h2> <p>This release <strong>1/</strong> brings a new helper function to parse JSON stringified fields when using <strong>Parser</strong>, <strong>2/</strong> and improved <strong>Metrics</strong>, which now can emit metrics using the <code>None</code> unit.</p> <p>⭐️ Thanks to <a href="https://github.com/daschaa"><code>@daschaa</code></a> for fixing <strong>Logger</strong> and making it default to :UTC when encountering an invalid time zone value.</p> <h3>Quickly parse JSON stringified fields</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/#sqs-schema-with-jsonstringified">Docs</a></p> </blockquote> <p>You can now parse and validate JSON stringified fields using Zod schemas without having to transform them first. This is useful when working with payloads coming from sources that stringify payloads like Amazon API Gateway, Amazon SQS, Amazon Application Load Balancer (ALB), etc.</p> <p>Use the <code>JSONStringified</code> helper to extend your schemas or any of the <a href="https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parser/#built-in-schemas">built-in schemas</a> in Parser:</p> <p><img src="https://github.com/user-attachments/assets/d1f93441-f2cd-48e9-9ac1-73c245d1ddc9" alt="carbon-2" /></p> <h3>Metrics without unit</h3> <blockquote> <p><a href="https://docs.powertools.aws.dev/lambda/typescript/latest/core/metrics/#metrics">Docs</a></p> </blockquote> <p>You can now create metrics without a unit of measure, this is helpful when your business metrics are tied to an abstract concept or when none of the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">units supported by the Embedded metric format specification</a> fit.</p> <p><img src="https://github.com/user-attachments/assets/be74ca01-50f3-4f88-89e9-5d272f18818e" alt="carbon-2" /></p> <h2>Changes</h2> <ul> <li>chore(ci): extract cached-node-modules action (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2876">#2876</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></a></li> <li>chore(deps): bump github/codeql-action from 3.25.14 to 3.25.15 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2855">#2855</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2856">#2856</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump github/codeql-action from 3.25.13 to 3.25.14 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2845">#2845</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> </ul> <h2>🌟New features and non-breaking changes</h2> <ul> <li>feat(metrics): add unit None for CloudWatch EMF Metrics (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2904">#2904</a>) by <a href="https://github.com/am29d"><code>@am29d</code></a></li> <li>feat(parser): add helper functions to transform JSON stringified payloads (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2901">#2901</a>) by <a href="https://github.com/am29d"><code>@am29d</code></a></li> </ul> <h2>📜 Documentation updates</h2> <ul> <li>feat(parser): add helper functions to transform JSON stringified payloads (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2901">#2901</a>) by <a href="https://github.com/am29d"><code>@am29d</code></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/2884">#2884</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump typescript from 5.4.5 to 5.5.4 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2820">#2820</a>) by <a href="https://github.com/dependabot"><code>@dependabot</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/2882">#2882</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump mkdocs-material from 9.5.30 to 9.5.31 in /docs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2877">#2877</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump <code>@types/node</code> from 22.0.2 to 22.1.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2879">#2879</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump squidfunk/mkdocs-material from <code>257eca8</code> to <code>9919d6e</code> in /docs (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2881">#2881</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump <code>@types/node</code> from 22.0.0 to 22.0.2 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2872">#2872</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps-dev): bump tsx from 4.16.3 to 4.16.5 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2873">#2873</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(deps): bump ts-jest from 29.1.5 to 29.2.4 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2874">#2874</a>) by <a href="https://github.com/dependabot"><code>@dependabot</code></a></li> <li>chore(maintenance): add LocalStack customer reference (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2870">#2870</a>) by <a href="https://github.com/dreamorosi"><code>@dreamorosi</code></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/parameters</code>'s changelog</a>.</em></p> <blockquote> <h1><a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.6.0...v2.7.0">2.7.0</a> (2024-08-08)</h1> <h3>Bug Fixes</h3> <ul> <li><strong>logger:</strong> invalid time zone environment variables leads to error (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2865">#2865</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/d55465f937390f4511e837033db0dab582cf4e14">d55465f</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>metrics:</strong> add unit None for CloudWatch EMF Metrics (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2904">#2904</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fa27cba5ffdb9d123b25d206c189ad17eeb8b44b">fa27cba</a>)</li> <li><strong>parser:</strong> add helper function to handle JSON stringified fields (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2901">#2901</a>) (<a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/806b884f51684fa4654d357fafdf8ebeda4de01b">806b884</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/24c423c1e731a6186f1eab8ceeb34cabac415f9e"><code>24c423c</code></a> chore(ci): bump version to 2.7.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2905">#2905</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fa27cba5ffdb9d123b25d206c189ad17eeb8b44b"><code>fa27cba</code></a> feat(metrics): add unit None for CloudWatch EMF Metrics (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2904">#2904</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/806b884f51684fa4654d357fafdf8ebeda4de01b"><code>806b884</code></a> feat(parser): add helper function to handle JSON stringified fields (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2901">#2901</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b064408e0581914d496091c8093a8c2f3e1f308c"><code>b064408</code></a> chore(commons): extract lru-cache into commons (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2899">#2899</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/a9d4a9cdfe5af9f0813be29374da45d43bdb5d59"><code>a9d4a9c</code></a> chore(deps-dev): bump lint-staged from 15.2.7 to 15.2.8 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2885">#2885</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/13411dd70dee8371b68818db701d31706844d706"><code>13411dd</code></a> chore(deps-dev): bump aws-sdk from 2.1667.0 to 2.1668.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2890">#2890</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/4f7e33b08981795c7cf01325a0e8c417f86095f7"><code>4f7e33b</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/2884">#2884</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/b9b9ec69e86c6a124dac0184df0a2fe12a6b042c"><code>b9b9ec6</code></a> chore(deps-dev): bump aws-sdk from 2.1666.0 to 2.1667.0 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2886">#2886</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/fae0fc99eeb39f6d09e0929fb9cc54203a8ff79b"><code>fae0fc9</code></a> chore(deps): bump typescript from 5.4.5 to 5.5.4 (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2820">#2820</a>)</li> <li><a href="https://github.com/aws-powertools/powertools-lambda-typescript/commit/3feba287559de5e7ed59680593c336650ee9742e"><code>3feba28</code></a> chore(ci): extract cached-node-modules action (<a href="https://redirect.github.com/aws-powertools/powertools-lambda-typescript/issues/2876">#2876</a>)</li> <li>Additional commits viewable in <a href="https://github.com/aws-powertools/powertools-lambda-typescript/compare/v2.6.0...v2.7.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@aws-lambda-powertools/parameters&package-manager=npm_and_yarn&previous-version=2.6.0&new-version=2.7.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 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> Co-authored-by: anthony-nhs <[email protected]>
- Loading branch information