-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency date-fns to v4 #1140
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/date-fns-4.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
September 17, 2024 07:47
b3a1ef4
to
f989824
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
September 19, 2024 14:46
f989824
to
b5d5a7c
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
September 20, 2024 16:31
b5d5a7c
to
b4b7017
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
September 25, 2024 15:51
b4b7017
to
5b511c9
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
September 26, 2024 15:37
5b511c9
to
d4d1497
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
September 27, 2024 18:14
d4d1497
to
86a804a
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 3, 2024 12:29
86a804a
to
d5c365d
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 3, 2024 18:40
d5c365d
to
2ec7915
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 4, 2024 22:33
2ec7915
to
5f4c229
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 8, 2024 12:25
5f4c229
to
740ed66
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 8, 2024 19:14
740ed66
to
7970f39
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 9, 2024 22:11
7970f39
to
878bda7
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 11, 2024 12:25
878bda7
to
922ad45
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 15, 2024 14:26
922ad45
to
f9297fa
Compare
renovate
bot
force-pushed
the
renovate/date-fns-4.x
branch
from
October 25, 2024 19:34
f9297fa
to
d101eef
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.6.0
->4.1.0
Release Notes
date-fns/date-fns (date-fns)
v4.1.0
Compare Source
This release adds time zone support to format functions (that I somehow missed when working on the feature) and fixes a few bugs.
Make sure also upgrade
TZDate
to v1.0.2 as it includes a bunch of critical bug fixes.Fixed
constructFrom
throwing an exception onnull
arguments. Whilenull
isn't allowed, the functions should rather returnInvalid Date
orNaN
in such cases. See #3885.Added
format
,formatISO
,formatISO9075
,formatRelative
andformatRFC3339
. See #3886.v4.0.0
Compare Source
I have great news! First, ten years after its release, date-fns finally gets first-class time zone support.
Another great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.
Read more about the release in the announcement blog post.
- Sasha @kossnocorp
Added
Added time zones support via
@date-fns/tz
'sTZDate
class andtz
helper function. See its README for the details about the API.All relevant functions now accept the context
in
option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:In the example,
addDays
will get the current date and time in Singapore and add 5 days to it.startOfDay
will inherit the date type and return the start of the day in Singapore.Changed
The function arguments, as well as
Interval
'sstart
andend
, now can be of different types, allowing you to mixUTCDate
,TZDate
,Date
, and other extensions, as well as primitives (strings and numbers).The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context
in
option or the first encountered argument object type. TheInterval
'sstart
andend
will be considered separately, starting fromstart
.In the given example, the result will be in the
TZDate
as the first argument is a number, and thestart
takes precedence over theend
.BREAKING: This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you running the type checker after the upgrade. If there are unfixable problems, please open an issue.
BREAKING: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please report them.
Fixed
$
by properly wrapping the code in an IIFE.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.