Skip to content

Releases: marnusw/date-fns-tz

v3.0.0

06 Apr 06:22
Compare
Choose a tag to compare

This release adds support for date-fns v3. Thank you @christopherklint97 (#265) and everyone who helped test and fix the beta releases.

BREAKING CHANGES

  • date-fns v2 is no longer supported
  • Renamed utcToZonedTime to toZonedTime to make the name less confusing, just search & replace
  • Renamed zonedTimeToUtc to fromZonedTime to make the name less confusing, just search & replace
  • All functions are now exported using named exports, this requires changing direct
    imports from import formatInTimeZone from 'date-fns-tz/formatInTimeZone' to
    import { formatInTimeZone } from 'date-fns-tz/formatInTimeZone'
  • Functions now don’t check the number of passed arguments, delegating this task to type checkers similar to date-fns v3
  • Arguments are not explicitly converted to the target types; instead, they are passed as is, delegating this task to type checkers similar to date-fns v3
  • IE is no longer supported since date-fns no longer supports it
  • Removed flow support since date-fns also removed it

v1.2.2

31 Dec 16:49
Compare
Choose a tag to compare

v1.2.2 (21 December 2021)

  • [BUGFIX] Fix formatInTimeZone types and fp arguments

v1.2.1 (21 December 2021)

  • [DOCS] Fixed a broken link (#148)

v1.2.0 (18 December 2021)

  • [ENHANCEMENT] Add formatInTimeZone
  • [DOCS] Various improvements and corrections
  • [BUGFIX] Fixed zonedTimeToUtc parsing of date strings with time zone specifiers
  • [ENHANCEMENT] Functions that return dates will return Invalid Date for bad date / time zone
    inputs, and format functions throw a RangeError
  • [BUGFIX] Fix format returning wrong time zone offset close to DST. (#138)

v1.1.7 (17 December 2021)

  • [PERFORMANCE] Improve performance when validating the same timezones many times through caching; thanks @billthornton (#135)
  • [TESTS] Added a test for #33 which now passes
  • [BUGFIX] Fix format handling of quoted text next to a time zone token (#136)

v1.0.6

02 Feb 14:50
Compare
Choose a tag to compare

Rewrite import paths in esm version to use esm version of date-fns. (#8 @pkaske)

ESM build for IE11

21 Jan 08:02
Compare
Choose a tag to compare

Removed const, let, template string and arrow function syntax which is not transpiled in the ems build.

Typescript typings

01 Jan 19:56
Compare
Choose a tag to compare

Fixes the errors with the Typescript typings (#3).

Add typings

17 Dec 21:18
Compare
Choose a tag to compare

Included typings in package.json.