Packages

date-fns

4.4.0 · 29 May 2026MIT126.2M / weekRepositorynpmAtom feed

Upgrading date-fns From 3.0.2 to 3.6.0

11 releases in betweenevery note read

Other targets from 3.0.2Latest4.4.0
  1. 3.0.2yours
  2. 10 releases
  3. 3.6.0target
0
changes to make
0
advisories fixed
10
new
19
fixes

Release by release

  1. 3.3.1

    22 Jan 20242 fixes
    • 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 trunc instead of round. The bug was introduced in v3.3.0. The affected functions: differenceInCalendarDays, differenceInCalendarISOWeeks, differenceInCalendarWeeks, getISOWeek, getWeek, and getISOWeeksInYear.

  2. 3.3.0

    20 Jan 20242 new · 6 fixes
    • New

      Added missing yearsToDays to the FP submodule.

    • New
    • Fixed

      Fixed the bug in getOverlappingDaysInIntervals caused by incorrect sorting of interval components that led to 0 for timestamps of different lengths.

    • Fixed

      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.

  3. 3.2.0

    9 Jan 20241 new · 2 fixes
  4. 3.1.0

    5 Jan 20242 new · 1 fix

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.