-
-
Notifications
You must be signed in to change notification settings - Fork 13
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(ui): update dependency date-fns to v4 - abandoned #297
Closed
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/ui-date-fns-4.x
branch
from
October 1, 2024 15:35
0c00cfb
to
e720736
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 9, 2024 21:27
e720736
to
bb9aea2
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 9, 2024 21:34
bb9aea2
to
da62d6e
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 9, 2024 22:29
da62d6e
to
ee83f5a
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 11, 2024 06:05
ee83f5a
to
dd6d501
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 11, 2024 08:20
dd6d501
to
eeaaaed
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 11, 2024 15:17
eeaaaed
to
4e34268
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 11, 2024 15:25
4e34268
to
7c4a8f5
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
2 times, most recently
from
October 11, 2024 16:04
ee5303e
to
771f66e
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 11, 2024 16:38
771f66e
to
36daf1e
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 11, 2024 16:48
36daf1e
to
abd0d90
Compare
renovate
bot
force-pushed
the
renovate/ui-date-fns-4.x
branch
from
October 11, 2024 16:51
abd0d90
to
6194b8d
Compare
renovate
bot
changed the title
fix(ui): update dependency date-fns to v4
fix(ui): update dependency date-fns to v4 - abandoned
Oct 11, 2024
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 - "on the 1st day of the month" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.