Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@marnusw marnusw released this 06 Apr 06:22
· 27 commits to master since this release

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