fix(deps): update dependency date-fns-tz to v3
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
date-fns-tz | dependencies | major | ^2.0.1 -> ^3.2.0 |
Release Notes
marnusw/date-fns-tz (date-fns-tz)
v3.2.0
- [DEPS]
date-fns@4.0.0
supported (#301) - [PERFORMANCE] Make testDateFormatted static to avoid re-initialising it on every call (#297) @hurali97
- [ENHANCEMENT] Compatibility with
date-fns
setDefaultOptions
(#286) @yangchristina - [DOCS] Fixed table of contents links (#284)
v3.1.3
- [BUGFIX] Make
getTimeZoneOffset
's 2nd arg optional
v3.1.2
- [BUGFIX] Fix
formatInTimeZone
use oftimeZone
string (#280)
v3.1.1
- [BUGFIX]
getTimeZoneOffset
's 2nd arg should be optional (#281)
v3.1.0
- [REFACTOR] Full rewrite in TypeScript (#278) Thank you, @brettwillis
- [BREAKING CHANGE]
OptionsWithTZ
is now eitherFormatOptionsWithTZ
orToDateOptionsWithTZ
, matchingdate-fns
v3.0.1
- [BUGFIX] Fix named export typings (#277)
v3.0.0
- [UPGRADE] Support
date-fns
v3 (#265) Thank you, @christopherklint97 - [BUGFIX] Correct import of
date-fns@v3
format and use Babel Webpack loader for mjs files (#271) - [BREAKING CHANGE]
date-fns
v2 is no longer supported - [BREAKING CHANGE] Renamed
utcToZonedTime
totoZonedTime
to make the name less confusing, just search & replace - [BREAKING CHANGE] Renamed
zonedTimeToUtc
tofromZonedTime
to make the name less confusing, just search & replace - [BREAKING CHANGE] All functions are now exported using named exports, this requires changing direct
imports from
import formatInTimeZone from 'date-fns-tz/formatInTimeZone'
toimport { formatInTimeZone } from 'date-fns-tz/formatInTimeZone'
- [BREAKING CHANGE] Functions now don’t check the number of passed arguments, delegating this task to type checkers
(This isn't fully implemented yet, but it should be the assumption moving forward, as it is in
date-fns
) - [BREAKING CHANGE] Arguments are not explicitly converted to the target types. Instead, they are passed as is,
delegating this task to type checkers (This isn't fully implemented yet, but it should be the assumption
moving forward, as it is in
date-fns
) - [BREAKING CHANGE] IE is no longer supported since
date-fns
no longer supports it - [BREAKING CHANGE] Removed
flow
support sincedate-fns
also removed it
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.