Update date-fns to v4, migrate date-fns-tz to @date-fns/tz, use subpath imports#686
Draft
Update date-fns to v4, migrate date-fns-tz to @date-fns/tz, use subpath imports#686
Conversation
🦋 Changeset detectedLatest commit: 4d7d9c1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…date-fns/tz, use subpath imports Co-authored-by: stipsan <81981+stipsan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update all date-fns dependencies
Update date-fns to v4, migrate date-fns-tz to @date-fns/tz, use subpath imports
Mar 6, 2026
This file contains hidden or 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
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.
Aligns date-fns usage with sanity-io/sanity: upgrade to v4, drop
date-fns-tzfor@date-fns/tz, and use subpath imports throughout.@sanity/assist
date-fns^3.6.0→^4.1.0@sanity/rich-date-input
date-fns^2.30.0→^4.1.0date-fns-tzremoved,@date-fns/tz^1.4.1addedformatInTimeZone(date, tz, fmt)→format(date, fmt, {in: tz(timezone)})getTimezoneOffset(tz, date) / 60 / 1000→-new TZDate(date, tz).getTimezoneOffset()zonedTimeToUtc→ helper usingTZDateconstructor (same pattern as sanity core'screateTZDateFromComponents)Lint
date-fnsbarrel import restriction to.oxlintrc.jsonWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
sanity-cdn.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/plugins/plugins/dev/test-studio/node_modules/.bin/../sanity/bin/sanity build git conf�� -report-unused-disable-directives --global bin/node(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.