date-fns
4.4.0 · 29 May 2026MIT126.2M / weekRepositorynpmAtom feed
Upgrading date-fns From 3.3.0 to 3.6.0
4 releases in betweenevery note read
Release by release
- New
- New
Added the
constructNowfunction that creates the current date using the passed reference date's constructor. - Fixed
- Fixed
- Fixed
- New
- New
- Fixed
Fixed DST issue in
getOverlappingDaysInIntervals, resulting in an inconsistent number of days returned for intervals starting and ending in different DST periods. - Fixed
Fixed functions incorrectly using
truncinstead ofround. The bug was introduced in v3.3.0. The affected functions:differenceInCalendarDays,differenceInCalendarISOWeeks,differenceInCalendarWeeks,getISOWeek,getWeek, andgetISOWeeksInYear.
- Fixed
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.