Packages

date-fns

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

Upgrading date-fns From 0.15.0 to 4.4.0

119 releases in betweennotes for 66

Other targets from 0.15.0Newest 0.x0.17.0
1.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 0.15.0yours
  2. 0.16.0major
  3. 0.17.0major
  4. 1.0.0major
  5. 49 releases
  6. 2.0.0major
  7. 46 releases
  8. 3.0.0major
  9. 13 releases
  10. 4.0.0major
  11. 4 releases
  12. 4.4.0target
21+
changes to make
0
advisories fixed
119+
new
144+
fixes

Counted from 66 of 119 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking4.4.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0

Release by release

  1. 4.4.0

    Migration needed29 May 2026
    • Breaking

      Removed CDN source maps to reduce the package size. If you rely on them, please switch to the new @date-fns/cdn package that still includes them.

    • Deprecated

      DEPRECATED: The date-fns CDN scripts are now deprecated and will be removed in the next major release. Please switch to the new @date-fns/cdn package for CDN usage.

  2. 4.3.0

    22 May 20263 fixes
    • Fixed

      Fixed missing modularized optimization fallback (for Next.js and others). See #4193.

    • Fixed

      Fixed pt locale first day of week to be Sunday. See #4195

    • Fixed

      Fixed zh-CN, zh-HK, and zh-TW locale month parsing for October, November, and December. See #4194

  3. 4.2.1

    18 May 20261 fix
    • Fixed

      Fixed type definitions missing in v4.2.0 due to TypeScript misconfiguration.

  4. 4.2.0

    18 May 20261 new
    • New

      Added Temporal API references to the JSDoc annotations of add, addBusinessDays, and addDays.

  5. 4.1.0

    17 Sep 20241 new · 1 fix
    • New

      Added missing time zone support to format, formatISO, formatISO9075, formatRelative and formatRFC3339. See #3886.

    • Fixed

      Fixed internal constructFrom throwing an exception on null arguments. While null isn't allowed, the functions should rather return Invalid Date or NaN in such cases. See #3885.

  6. 4.0.0

    Migration needed16 Sep 20242 new · 1 fix
    • Breaking

      This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you run the type checker after the upgrade. If there are unfixable problems, please open an issue.

    • Breaking

      The package is now ESM-first. CommonJS is still supported, and it should not affect most users, but it might break in certain environments. If you encounter any issues, please report them.

    • New

      Added time zones support via @date-fns/tz's TZDate class and tz helper function. See its README for the details about the API.

    • New

      All relevant functions now accept the context in option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:

    • Fixed

      Fixed CDN build compatibility with jQuery and other tools that expose $ by properly wrapping the code in an IIFE.

4 other lines we could not sort, mostly version bumps
  • The function arguments, as well as Interval's start and end, now can be of different types, allowing you to mix UTCDate, TZDate, Date, and other extensions, as well as primitives (strings and numbers).

    4.0.0
  • Change date format to meet the national standard (GB/T 7408-2005).

    2.11.0
  • Improve ordinalNumber function behavior.

    2.11.0
  • Pre-releases changelog (if you're upgrading from alpha or beta): gist.github.com/kossnocorp/a307a464760b405bb78e…

    2.0.0

24 internal lines (docs, tests, tooling) left out.

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.