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
totoZonedTime
to make the name less confusing, just search & replace - Renamed
zonedTimeToUtc
tofromZonedTime
to make the name less confusing, just search & replace - All functions are now exported using named exports, this requires changing direct
imports fromimport 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 sincedate-fns
also removed it