Releases: marnusw/date-fns-tz
Releases · marnusw/date-fns-tz
v3.0.0
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
v1.2.2
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, andformat
functions throw aRangeError
- [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
ESM build for IE11
Removed const
, let
, template string and arrow function syntax which is not transpiled in the ems build.
Typescript typings
Fixes the errors with the Typescript typings (#3).
Add typings
Included typings in package.json.