Fixed DST issue in getOverlappingDaysInIntervals, resulting in an inconsistent number of days returned for intervals starting and ending in different DST periods.
Fixed functions incorrectly using trunc instead of round. The bug was introduced in v3.3.0. The affected functions: differenceInCalendarDays, differenceInCalendarISOWeeks, differenceInCalendarWeeks, getISOWeek, getWeek, and getISOWeeksInYear.
Fixed DST issue in getOverlappingDaysInIntervals, resulting in an inconsistent number of days returned for intervals starting and ending in different DST periods.
Fixed functions incorrectly using trunc instead of round. The bug was introduced in v3.3.0. The affected functions: differenceInCalendarDays, differenceInCalendarISOWeeks, differenceInCalendarWeeks, getISOWeek, getWeek, and getISOWeeksInYear.
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
[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 to toZonedTime to make the name less confusing, just search & replace
[BREAKING CHANGE] Renamed zonedTimeToUtc to fromZonedTime 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' to
import { 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 since date-fns also removed it
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps date-fns and date-fns-tz. These dependencies needed to be updated together. Updates
date-fns
from 2.30.0 to 3.6.0Release notes
Sourced from date-fns's releases.
... (truncated)
Changelog
Sourced from date-fns's changelog.
... (truncated)
Commits
ddb34e0
Promote to v3.6.0603aec4
Add the CDN guideea6da53
Add jsDelivr resolve to package.json5a2afce
Fix CDN build, add CDN smoke test0356ecc
Add CDN versions of modules (#3737)d22be9f
Fix v3.5.0's change log entrya9bf9e1
Fix weeks in Belarisuan formatDistance (#3720)1d78cd1
Prepare v3.5.0f0355f1
Rebuild lock file (#3733)3d118e2
FixconstructNow
import paths (#3734)Updates
date-fns-tz
from 2.0.1 to 3.0.1Release notes
Sourced from date-fns-tz's releases.
Changelog
Sourced from date-fns-tz's changelog.
Commits
d6812af
3.0.15eabc90
3.0.1-beta.0dabf472
Fix typings script to use named exports10933c9
Merge pull request #277 from brettwillis/master8c894df
fix: Named export typings for V34e2a2ac
3.0.03bcf1db
Merge pull request #273 from marnusw/version31cd68ff
v3 release notes1133e3c
3.0.0-beta.6d437176
Fix ESM import pathsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show