Fixed the bug in getOverlappingDaysInIntervals caused by incorrect sorting of interval components that led to 0 for timestamps of different lengths.
Fixed bugs when working with negative numbers caused by using Math.floor (-1.1 → -2) instead of Math.trunc (-1.1 → -1). Most of the conversion functions (i.e., hoursToMinutes) were affected when passing some negative fractional input. Also, some other functions that could be possibly affected by unfortunate timezone/date combinations were fixed.
The functions that were affected: format, parse, getUnixTime, daysToWeeks, hoursToMilliseconds, hoursToMinutes, hoursToSeconds, milliseconds, minutesToMilliseconds, millisecondsToMinutes, monthsToYears, millisecondsToHours, millisecondsToSeconds, minutesToHours, minutesToSeconds, yearsToQuarters, yearsToMonths, yearsToDays, weeksToDays, secondsToMinutes, secondsToHours, quartersToYears, quartersToMonths and monthsToQuarters.
Fixed the bug in getOverlappingDaysInIntervals caused by incorrect sorting of interval components that led to 0 for timestamps of different lengths.
Fixed bugs when working with negative numbers caused by using Math.floor (-1.1 → -2) instead of Math.trunc (-1.1 → -1). Most of the conversion functions (i.e., hoursToMinutes) were affected when passing some negative fractional input. Also, some other functions that could be possibly affected by unfortunate timezone/date combinations were fixed.
The functions that were affected: format, parse, getUnixTime, daysToWeeks, hoursToMilliseconds, hoursToMinutes, hoursToSeconds, milliseconds, minutesToMilliseconds, millisecondsToMinutes, monthsToYears, millisecondsToHours, millisecondsToSeconds, minutesToHours, minutesToSeconds, yearsToQuarters, yearsToMonths, yearsToDays, weeksToDays, secondsToMinutes, secondsToHours, quartersToYears, quartersToMonths and monthsToQuarters.
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [date-fns](https://github.com/date-fns/date-fns) from 3.2.0 to 3.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/date-fns/date-fns/releases">date-fns's releases</a>.</em></p>
<blockquote>
<h2>v3.3.0</h2>
<p>On this release worked <a href="https://github.com/kossnocorp"><code>@kossnocorp</code></a>, <a href="https://github.com/TheKvikk"><code>@TheKvikk</code></a>, <a href="https://github.com/fturmel"><code>@fturmel</code></a> and <a href="https://github.com/ckcherry23"><code>@ckcherry23</code></a>.</p>
<h3>Fixed</h3>
<ul>
<li>
<p>Fixed the bug in <code>getOverlappingDaysInIntervals</code> caused by incorrect sorting of interval components that led to 0 for timestamps of different lengths.</p>
</li>
<li>
<p>Fixed bugs when working with negative numbers caused by using <code>Math.floor</code> (<code>-1.1</code> → <code>-2</code>) instead of <code>Math.trunc</code> (<code>-1.1</code> → <code>-1</code>). Most of the conversion functions (i.e., <code>hoursToMinutes</code>) were affected when passing some negative fractional input. Also, some other functions that could be possibly affected by unfortunate timezone/date combinations were fixed.</p>
<p>The functions that were affected: <code>format</code>, <code>parse</code>, <code>getUnixTime</code>, <code>daysToWeeks</code>, <code>hoursToMilliseconds</code>, <code>hoursToMinutes</code>, <code>hoursToSeconds</code>, <code>milliseconds</code>, <code>minutesToMilliseconds</code>, <code>millisecondsToMinutes</code>, <code>monthsToYears</code>, <code>millisecondsToHours</code>, <code>millisecondsToSeconds</code>, <code>minutesToHours</code>, <code>minutesToSeconds</code>, <code>yearsToQuarters</code>, <code>yearsToMonths</code>, <code>yearsToDays</code>, <code>weeksToDays</code>, <code>secondsToMinutes</code>, <code>secondsToHours</code>, <code>quartersToYears</code>, <code>quartersToMonths</code> and <code>monthsToQuarters</code>.</p>
</li>
<li>
<p><a href="https://github.com/date-fns/date-fns/pull/3269">Fixed the Czech locale's <code>formatDistance</code> to include <code>1</code> in <code>formatDistance</code>.</a></p>
</li>
<li>
<p>Fixed <code>differenceInSeconds</code> and other functions relying on rounding options that can produce a negative 0.</p>
</li>
<li>
<p><a href="https://github.com/date-fns/date-fns/pull/3662">Added a preprocessor to the locales API, enabling fixing a long-standing bug in the French locale.</a> (<a href="https://github.com/date-fns/date-fns/issues/1391">#1391</a>)</p>
</li>
<li>
<p>Added missing <code>yearsToDays</code> to the FP submodule.</p>
</li>
<li>
<p>Made functions using rounding methods always return <code>0</code> instead of <code>-0</code>.</p>
</li>
</ul>
<h3>Added</h3>
<ul>
<li><a href="https://github.com/date-fns/date-fns/pull/3653">Added <code>format</code> alias <code>formatDate</code> with corresponding <code>FormatDateOptions</code> interface</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/date-fns/date-fns/blob/main/CHANGELOG.md">date-fns's changelog</a>.</em></p>
<blockquote>
<h2>v3.3.0 - 2024-01-20</h2>
<p>On this release worked <a href="https://github.com/kossnocorp"><code>@kossnocorp</code></a>, <a href="https://github.com/TheKvikk"><code>@TheKvikk</code></a>, <a href="https://github.com/fturmel"><code>@fturmel</code></a> and <a href="https://github.com/ckcherry23"><code>@ckcherry23</code></a>.</p>
<h3>Fixed</h3>
<ul>
<li>
<p>Fixed the bug in <code>getOverlappingDaysInIntervals</code> caused by incorrect sorting of interval components that led to 0 for timestamps of different lengths.</p>
</li>
<li>
<p>Fixed bugs when working with negative numbers caused by using <code>Math.floor</code> (<code>-1.1</code> → <code>-2</code>) instead of <code>Math.trunc</code> (<code>-1.1</code> → <code>-1</code>). Most of the conversion functions (i.e., <code>hoursToMinutes</code>) were affected when passing some negative fractional input. Also, some other functions that could be possibly affected by unfortunate timezone/date combinations were fixed.</p>
<p>The functions that were affected: <code>format</code>, <code>parse</code>, <code>getUnixTime</code>, <code>daysToWeeks</code>, <code>hoursToMilliseconds</code>, <code>hoursToMinutes</code>, <code>hoursToSeconds</code>, <code>milliseconds</code>, <code>minutesToMilliseconds</code>, <code>millisecondsToMinutes</code>, <code>monthsToYears</code>, <code>millisecondsToHours</code>, <code>millisecondsToSeconds</code>, <code>minutesToHours</code>, <code>minutesToSeconds</code>, <code>yearsToQuarters</code>, <code>yearsToMonths</code>, <code>yearsToDays</code>, <code>weeksToDays</code>, <code>secondsToMinutes</code>, <code>secondsToHours</code>, <code>quartersToYears</code>, <code>quartersToMonths</code> and <code>monthsToQuarters</code>.</p>
</li>
<li>
<p><a href="https://github.com/date-fns/date-fns/pull/3269">Fixed the Czech locale's <code>formatDistance</code> to include <code>1</code> in <code>formatDistance</code>.</a></p>
</li>
<li>
<p>Fixed <code>differenceInSeconds</code> and other functions relying on rounding options that can produce a negative 0.</p>
</li>
<li>
<p><a href="https://github.com/date-fns/date-fns/pull/3662">Added a preprocessor to the locales API, enabling fixing a long-standing bug in the French locale.</a> (<a href="https://github.com/date-fns/date-fns/issues/1391">#1391</a>)</p>
</li>
<li>
<p>Added missing <code>yearsToDays</code> to the FP submodule.</p>
</li>
<li>
<p>Made functions using rounding methods always return <code>0</code> instead of <code>-0</code>.</p>
</li>
</ul>
<h3>Added</h3>
<ul>
<li><a href="https://github.com/date-fns/date-fns/pull/3653">Added <code>format</code> alias <code>formatDate</code> with corresponding <code>FormatDateOptions</code> interface</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/date-fns/date-fns/commit/3e4af151a9e31cb400f0b95f5ccbf5cac6bc081b"><code>3e4af15</code></a> What's wrong with you, Lodash?</li>
<li><a href="https://github.com/date-fns/date-fns/commit/37079068ce2696d8aa6e18b3f5d99e5d55ef06bc"><code>3707906</code></a> Prepare v3.3.0</li>
<li><a href="https://github.com/date-fns/date-fns/commit/fadd58b132bff04a0de6597a1b30dfe2aab6cb8f"><code>fadd58b</code></a> Add missing <code>yearsToDays</code> to FP</li>
<li><a href="https://github.com/date-fns/date-fns/commit/ad2c654a6a97ebc93961e860760ea1d956fc7cba"><code>ad2c654</code></a> Fix bug in getOverlappingDaysInIntervals</li>
<li><a href="https://github.com/date-fns/date-fns/commit/e0a272dfe72b36fb98d623ebc8594fea94f666e1"><code>e0a272d</code></a> Add TODOs to decade functions</li>
<li><a href="https://github.com/date-fns/date-fns/commit/c0aa54cc317b4f0525ac84aa4f7be63bd3bcbdba"><code>c0aa54c</code></a> Fix bugs caused by flooring negative numbers</li>
<li><a href="https://github.com/date-fns/date-fns/commit/19ed9102da86c9c9537e769f6b3b0e0d01aa6045"><code>19ed910</code></a> Fix <code>formatDistance</code> in the Czech locale (<a href="https://github.com/date-fns/date-fns/issues/3269">#3269</a>)</li>
<li><a href="https://github.com/date-fns/date-fns/commit/9f2a6380ef80530b975b9f846d08d45f5611b465"><code>9f2a638</code></a> Fix differenceInSeconds producing -0</li>
<li><a href="https://github.com/date-fns/date-fns/commit/d36d2ebde2f36d5accce37c0a6d8bce9d84e6eb1"><code>d36d2eb</code></a> Localize preprocessor feature + french locales ordinal day with long month fo...</li>
<li><a href="https://github.com/date-fns/date-fns/commit/09af14288683a44577af4ff91e25223b9235377b"><code>09af142</code></a> Add alias formatDate for format function (<a href="https://github.com/date-fns/date-fns/issues/3653">#3653</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/date-fns/date-fns/compare/v3.2.0...v3.3.0">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps date-fns from 3.2.0 to 3.3.0.
Release notes
Sourced from date-fns's releases.
Changelog
Sourced from date-fns's changelog.
Commits
3e4af15What's wrong with you, Lodash?3707906Prepare v3.3.0fadd58bAdd missingyearsToDaysto FPad2c654Fix bug in getOverlappingDaysInIntervalse0a272dAdd TODOs to decade functionsc0aa54cFix bugs caused by flooring negative numbers19ed910FixformatDistancein the Czech locale (#3269)9f2a638Fix differenceInSeconds producing -0d36d2ebLocalize preprocessor feature + french locales ordinal day with long month fo...09af142Add alias formatDate for format function (#3653)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflictsadded 2 commits
ec4f351a- 1 commit from branchmaster706764e8- Build(deps): bump date-fns from 3.2.0 to 3.3.0Compare with previous version