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-fnsv2 is no longer supported- Renamed
utcToZonedTimetotoZonedTimeto make the name less confusing, just search & replace - Renamed
zonedTimeToUtctofromZonedTimeto 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-fnsv3 - Arguments are not explicitly converted to the target types; instead, they are passed as is, delegating this task to type checkers similar to
date-fnsv3 - IE is no longer supported since
date-fnsno longer supports it - Removed
flowsupport sincedate-fnsalso removed it