date-fns
4.4.0 · 29 May 2026MIT126.2M / weekRepositorynpmAtom feed
2.30.0 is the newest release of 2.x.
In short
4 new3 fixed3 changed
Release note
Kudos to @oakhan3, @Mukhammadali, @altrim, @leepowellcouk, @amatzon, @bryanMt, @kalekseev, @eugene-platov and @tjrobinson for working on the release.
Fixed
Fixed a bug in
differenceInYearscausing incorrect results when the left date is a leap day.Fixed
formatto work correctly with GMT-0752/GMT-0456 and similar timezones.
Changed
Changed
getDaytypings to return0|1|2|3|4|5|6instead ofnumber.Change date format to meet the national standard (GB/T 7408-2005).
Improve
ordinalNumberfunction behavior.Add prefix in
formatRelativedepending on if it's a current week or not.
Added
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.