Packages

date-fns

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

Upgrading date-fns From 4.1.0 to 4.4.0

4 releases in betweenevery note read

Before you upgrade

Tick each one off as you go
  • Breaking4.4.0
  • Deprecated4.4.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.

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.