Skip to content

Commit

Permalink
[Snyk] Upgrade date-fns-tz from 2.0.1 to 3.1.3 (#15)
Browse files Browse the repository at this point in the history
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)


<h3>Snyk has created this PR to upgrade date-fns-tz from 2.0.1 to
3.1.3.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>

⚠️ **Warning:** This PR contains major version upgrade(s), and may be a
breaking change.

- The recommended version is **14 versions** ahead of your current
version.

- The recommended version was released on **5 months ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>date-fns-tz</b></summary>
    <ul>
      <li>
<b>3.1.3</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.1.3">2024-04-17</a></br><p>3.1.3</p>
      </li>
      <li>
<b>3.1.2</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.1.2">2024-04-16</a></br><p>3.1.2</p>
      </li>
      <li>
<b>3.1.1</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.1.1">2024-04-16</a></br><p>3.1.1</p>
      </li>
      <li>
        <b>3.1.0</b> - 2024-04-15
      </li>
      <li>
<b>3.0.1</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.0.1">2024-04-10</a></br><p>3.0.1</p>
      </li>
      <li>
        <b>3.0.1-beta.0</b> - 2024-04-09
      </li>
      <li>
<b>3.0.0</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.0.0">2024-04-06</a></br><p>This
release adds support for <code>date-fns</code> v3. Thank you <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/christopherklint97/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://github.com/christopherklint97">@ christopherklint97</a>
(<a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="2058111602" data-permission-text="Title is private"
data-url="marnusw/date-fns-tz#265"
data-hovercard-type="pull_request"
data-hovercard-url="/marnusw/date-fns-tz/pull/265/hovercard"
href="https://github.com/marnusw/date-fns-tz/pull/265">#265</a>) and
everyone who helped test and fix the beta releases.</p>
<p><strong>BREAKING CHANGES</strong></p>
<ul>
<li><code>date-fns</code> v2 is no longer supported</li>
<li>Renamed <code>utcToZonedTime</code> to <code>toZonedTime</code> to
make the name less confusing, just search &amp; replace</li>
<li>Renamed <code>zonedTimeToUtc</code> to <code>fromZonedTime</code> to
make the name less confusing, just search &amp; replace</li>
<li>All functions are now exported using named exports, this requires
changing direct<br>
imports from <code>import formatInTimeZone from
'date-fns-tz/formatInTimeZone'</code> to<br>
<code>import { formatInTimeZone } from
'date-fns-tz/formatInTimeZone'</code></li>
<li>Functions now don’t check the number of passed arguments, delegating
this task to type checkers similar to <code>date-fns</code> v3</li>
<li>Arguments are not explicitly converted to the target types; instead,
they are passed as is, delegating this task to type checkers similar to
<code>date-fns</code> v3</li>
<li>IE is no longer supported since <code>date-fns</code> no longer
supports it</li>
<li>Removed <code>flow</code> support since <code>date-fns</code> also
removed it</li>
</ul>
      </li>
      <li>
<b>3.0.0-beta.6</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/3.0.0-beta.6">2024-04-04</a></br><p>3.0.0-beta.6</p>
      </li>
      <li>
<b>3.0.0-beta.5</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.0.0-beta.5">2024-04-04</a></br><p>3.0.0-beta.5</p>
      </li>
      <li>
<b>3.0.0-beta.4</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/3.0.0-beta.4">2024-04-04</a></br><p>3.0.0-beta.4</p>
      </li>
      <li>
<b>3.0.0-beta.3</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.0.0-beta.3">2024-03-28</a></br><p>3.0.0-beta.3</p>
      </li>
      <li>
<b>3.0.0-beta.2</b> - <a
href="https://github.com/marnusw/date-fns-tz/releases/tag/v3.0.0-beta.2">2024-03-26</a></br><p>3.0.0-beta.2</p>
      </li>
      <li>
        <b>3.0.0-beta.1</b> - 2024-03-22
      </li>
      <li>
        <b>3.0.0-beta.0</b> - 2024-03-18
      </li>
      <li>
        <b>2.0.1</b> - 2024-03-09
      </li>
    </ul>
from <a
href="https://github.com/marnusw/date-fns-tz/releases">date-fns-tz
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - **Warning:** This PR contains a major version upgrade, and may be a
breaking change.
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiIwNzcwYzEwMy1kMTlhLTQxZjQtOWY1NS1mOGE2NmUzZGNkZDIiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjA3NzBjMTAzLWQxOWEtNDFmNC05ZjU1LWY4YTY2ZTNkY2RkMiJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/otherguy/project/8757423a-894a-444c-ba30-fe625db0d474?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/otherguy/project/8757423a-894a-444c-ba30-fe625db0d474/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/otherguy/project/8757423a-894a-444c-ba30-fe625db0d474/settings/integration?pkg&#x3D;date-fns-tz&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"date-fns-tz","from":"2.0.1","to":"3.1.3"}],"env":"prod","hasFixes":false,"isBreakingChange":true,"isMajorUpgrade":true,"issuesToFix":[],"prId":"0770c103-d19a-41f4-9f55-f8a66e3dcdd2","prPublicId":"0770c103-d19a-41f4-9f55-f8a66e3dcdd2","packageManager":"npm","priorityScoreList":[],"projectPublicId":"8757423a-894a-444c-ba30-fe625db0d474","projectUrl":"https://app.snyk.io/org/otherguy/project/8757423a-894a-444c-ba30-fe625db0d474?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":14,"publishedDate":"2024-04-17T07:41:50.881Z"},"vulns":[]}'

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
  • Loading branch information
otherguy and snyk-bot authored Oct 1, 2024
1 parent 2249c7e commit 93ba621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
"date-fns-tz": "^3.1.3",
"elysia": "^0.8.17"
},
"peerDependencies": {
Expand Down

0 comments on commit 93ba621

Please sign in to comment.