-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(deps): update dependency @js-temporal/polyfill to ^0.5.0 #6643
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
54bebcc
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This PR contains the following updates:
^0.4.4->^0.5.0Release Notes
js-temporal/temporal-polyfill (@js-temporal/polyfill)
v0.5.0Compare Source
Breaking changes:
This major update reflects all changes to the Temporal proposal adopted by TC39 between May 2023 and March 2025.
The majority of these changes were made in the June 2024 TC39 meeting (slides here) where the scope of Temporal was reduced at the request of JS engine implementers who were concerned about the size impact of adding Temporal to distributions on limited-capacity devices like low-end Android phones and Apple Watch.
Calendars are now represented by strings representing built-in calendars.
Without custom calendars, the huge surface area of
Temporal.Calendarwas not necessary, and that type was removed from the proposal.Time zones are now only represented by string identifiers representing built-in time zones: either a Zone or Link name from the IANA Time Zone Database, or a time zone offset with minutes precision.
Temporal.TimeZonehas also been removed, and its methods replaced by the following:getPreviousTransition/getNextTransition- use the newgetTimeZoneTransitionmethod ofTemporal.ZoneDateTime.equals- useZonedDateTime.prototype.equalsusing the same instant and calendar.Temporal.TimeZonemethods can use the corresponding methods onTemporal.ZonedDateTime.getISOFields()methods. Instead usewithCalendar('iso8601')and the individual property getters.withPlainDate()methods. Instead usewith({ year, monthCode, day }).toPlainDateTime()andtoZonedDateTime()methods ofTemporal.PlainTime. Instead use the same-named methods onTemporal.PlainDateto combine a date and a time.epochSecondsandepochMicrosecondsproperties. Instead calculate epoch seconds withMath.floor(epochMilliseconds / 1000)and epoch microseconds withepochNanoseconds / 1000n + ((epochNanoseconds % 1000n) < 0n ? -1n : 0n).toPlainYearMonth()andtoPlainMonthDay()methods ofTemporal.PlainDateTimeandTemporal.ZonedDateTime. Instead usetoPlainDate()and then the methods onTemporal.PlainDate.Temporal.Instant.prototype.toZonedDateTimeandTemporal.Now.zonedDateTime. Instead usetoZonedDateTimeISO()/zonedDateTimeISO()to create aTemporal.ZonedDateTimeobject using the ISO8601 calendar, and then usewithCalendar()if a non-ISO calendar is desired.relativeToparameter is no longer accepted inTemporal.Duration.prototype.addandsubtract. Instead take therelativeToobject, add the two durations to it, and difference it with the original usinguntil().Temporal.Duration, and placed limits on each of the units. Years, months, and weeks are each limited to 2³²−1. The other units (days through nanoseconds) are collectively limited: taken together, they must be less thanNumber.MAX_SAFE_INTEGERseconds plus 999,999,999 nanoseconds. This has few user-visible changes, but it does mean that some durations are no longer allowed (for example,Temporal.Duration.from({ seconds: Number.MAX_VALUE }).) (Proposal PR 1, PR 2, PR 3)[+01:01]but not[+01:00:01]or[+01:00:00.000000001](Proposal PR)Temporal.PlainDate.from(20230711)and it would be treated asTemporal.PlainDate.from("20230711"). This is no longer the case. (Proposal PR)Temporal.PlainYearMonth.prototype.toPlainDateandTemporal.PlainMonthDay.prototype.toPlainDatenow have clamping behaviour instead of throwing if the resulting PlainDate would be invalid. For example,birthday.toPlainDate({ year: 2025 })will now return February 28, 2025 if the birthday in question if February 29. (Proposal PR)weekOfYearandyearOfWeekmethods may now returnundefined(Proposal PR)Temporal.Duration.prototype.round(), rounding to a >1 increment of a calendarsmallestUnitwhile simultaneously balancing to a calendarlargestUnitis now disallowed and will throw (Proposal PR)Temporal.MonthDayin a non-ISO8601 calendar will now throw if the year is too far (>¼ million years) in the future or past (Proposal PR)Bug fixes:
Non-breaking changes
BigInt)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 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.