Bump date-fns from 2.30.0 to 3.3.1 in /ui
Bumps date-fns from 2.30.0 to 3.3.1.
Release notes
Sourced from date-fns's releases.
v3.3.1
Kudos to
@kossnocorpand@fturmelfor working on the release.Fixed
Fixed DST issue in
getOverlappingDaysInIntervals, resulting in an inconsistent number of days returned for intervals starting and ending in different DST periods.Fixed functions incorrectly using
truncinstead ofround. The bug was introduced in v3.3.0. The affected functions:differenceInCalendarDays,differenceInCalendarISOWeeks,differenceInCalendarWeeks,getISOWeek,getWeek, andgetISOWeeksInYear.v3.3.0
On this release worked
@kossnocorp,@TheKvikk,@fturmeland@ckcherry23.Fixed
Fixed the bug in
getOverlappingDaysInIntervalscaused 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 ofMath.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,quartersToMonthsandmonthsToQuarters.Fixed the Czech locale's
formatDistanceto include1informatDistance.Fixed
differenceInSecondsand other functions relying on rounding options that can produce a negative 0.Added a preprocessor to the locales API, enabling fixing a long-standing bug in the French locale. (#1391)
Added missing
yearsToDaysto the FP submodule.Made functions using rounding methods always return
0instead of-0.Added
v3.2.0
This release is brought to you by
@kossnocorp,@fturmel,@grossbart,@MelvinVermeer, and@jcarstairs-scottlogic.Fixed
Fixed types compatibility with Lodash's
flowand fp-ts'spipe. (#3641)Added
- Added exports of
format,lightFormat, andparseinternals that enable 3rd-parties to consume those.v3.1.0
This release is brought to you by
@kossnocorp,@makstyle119and@dmgawel.
... (truncated)
Changelog
Sourced from date-fns's changelog.
v3.3.1 - 2024-01-22
Kudos to
@kossnocorpand@fturmelfor working on the release.Fixed
Fixed DST issue in
getOverlappingDaysInIntervals, resulting in an inconsistent number of days returned for intervals starting and ending in different DST periods.Fixed functions incorrectly using
truncinstead ofround. The bug was introduced in v3.3.0. The affected functions:differenceInCalendarDays,differenceInCalendarISOWeeks,differenceInCalendarWeeks,getISOWeek,getWeek, andgetISOWeeksInYear.v3.3.0 - 2024-01-20
On this release worked
@kossnocorp,@TheKvikk,@fturmeland@ckcherry23.Fixed
Fixed the bug in
getOverlappingDaysInIntervalscaused 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 ofMath.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,quartersToMonthsandmonthsToQuarters.Fixed the Czech locale's
formatDistanceto include1informatDistance.Fixed
differenceInSecondsand other functions relying on rounding options that can produce a negative 0.Added a preprocessor to the locales API, enabling fixing a long-standing bug in the French locale. (#1391)
Added missing
yearsToDaysto the FP submodule.Made functions using rounding methods always return
0instead of-0.Added
v3.2.0 - 2024-01-09
This release is brought to you by
@kossnocorp,@fturmel,@grossbart,@MelvinVermeer, and@jcarstairs-scottlogic.Fixed
Fixed types compatability with Lodash's
flowand fp-ts'spipe. (#3641)Added
- Added exports of
format,lightFormat, andparseinternals that enable 3rd-parties to consume those.
... (truncated)
Commits
35c1858Upgrade Vitestaa264e3Fix DST issue in getOverlappingDaysInIntervalsa960fc2Enable extended timezone tests on main2939472Fix incorrect rounding introduced in v3.3.0ff60d48Fix browser tests (#3677)659ad02Update v3.3.0 changelog3e4af15What's wrong with you, Lodash?3707906Prepare v3.3.0fadd58bAdd missingyearsToDaysto FPad2c654Fix bug in getOverlappingDaysInIntervals- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
@lukasrgr: Can you please take this over? Unfortunately the update has breaking changes, e.g.
./src/app/shared/pickdate/pickdate.component.ts:3:0-89 - Error: Module not found: Error: Package path ./esm is not exported from package /home/stefan/git/openems/ui/node_modules/date-fns (see exports field in /home/stefan/git/openems/ui/node_modules/date-fns/package.json)
./src/app/shared/pickdate/popover/popover.component.ts:3:0-115 - Error: Module not found: Error: Package path ./esm is not exported from package /home/stefan/git/openems/ui/node_modules/date-fns (see exports field in /home/stefan/git/openems/ui/node_modules/date-fns/package.json)
Error: node_modules/date-fns/index.d.ts:244:1 - error TS1383: Only named exports may use 'export type'.
244 export type * from "./types.js";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/intlFormatDistance.d.ts:9:12 - error TS2694: Namespace 'Intl' has no exported member 'UnicodeBCP47LocaleIdentifier'.
9 | Intl.UnicodeBCP47LocaleIdentifier
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
A newer version of date-fns exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
This PR has been automatically marked as stale due to inactivity. It will be closed in 7 days if no further activity occurs.
This PR has been closed due to inactivity
It was automatically closed because there has been no recent activity. If the PR is still relevant, please feel free to reopen and update it and add any new information.
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.