Packages

luxon

3.7.2 · 5 Sep 2025MIT61.4M / weekRepositoryHomepagenpmAtom feed

Upgrading luxon From 1.28.1 to 2.5.2

13 releases in betweennotes for 10

Reading releases, release notes and advisories…

Other targets from 1.28.1Latest3.7.2
The note of 2.0.0 lists no breaking change or deprecation; the migration guide below lists them.
  1. 1.28.1yours
  2. 2.0.0major
  3. 11 releases
  4. 2.5.2target
?
changes to make
0
advisories fixed
10+
new
9+
fixes

Counted from 10 of 13 release notes. Advisories are counted from the advisory database, in full.

Start here

Release by release

  1. 2.5.1 – 2.5.22 releases, no release note

  2. 2.5.0

    9 Jul 20221 new · 1 fix
    • New

      Support for ESM-style node imports

    • Fixed

      Fix Wednesday parsing for RFC 850 strings

  3. 2.4.0

    9 May 20222 new · 1 fix
    • New

      Add support for parsing the ISO zone extension, like 2022-05-08T20:42:00.000-04:00[America/New_York]

    • New

      Add an extendedZone option to toISO() and toISOTime

    • Fixed

      Fix for parsing in Vietnames (and probably other languages)

  4. 2.3.2

    17 Apr 20221 new · 2 fixes
    • New

      Add week formatting token "w" for durations

    • Fixed

      Fix timezone calculations for negative years

    • Fixed

      Fix weekday computation for years 0-100

  5. 2.3.1

    23 Feb 20222 new · 1 fix
    • New

      Added an includeOffsetSpace option to toSQL and toSQLTime

    • New

      Added toUnixInteger

    • Fixed

      Don't use -0 when negating durations with zeros in them

  6. 2.3.0

    2 Jan 20221 new · 1 fix
    • New

      Added Duration#toHuman()

    • Fixed

      Fixed date padding for negative years in toISO()

  7. 2.2.0

    10 Dec 20211 new · 1 fix
    • New

      Allow offsets to pick among ambiguous times when both an offset and zone are provided to fromFormat

    • Fixed

      Fix a floating point bug in Duration.shiftTo()

  8. 2.1.1

    8 Nov 20211 fix
    • Fixed

      Fix issue in quirky environments that lack hourCycle support and sometimes computed offsets 12 hours off

5 other lines we could not sort, mostly version bumps
  • Increase number of digits allowed in ISO durations

    2.5.0
  • Improvements to DateTime.isInDST()

    2.4.0
  • Major perf improvements to toISO(), toISODate(), toISOTime(), and toSQLDate()

    2.3.0
  • Export fromDurationLike

    2.1.0
  • Memoize zone validation

    2.1.0

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.