Skip to content

fix(deps): update sanity monorepo to ^6.4.0#1555

Merged
stipsan merged 1 commit into
mainfrom
cursor/bump-sanity-monorepo-6-4-2d06
Jul 13, 2026
Merged

fix(deps): update sanity monorepo to ^6.4.0#1555
stipsan merged 1 commit into
mainfrom
cursor/bump-sanity-monorepo-6-4-2d06

Conversation

@stipsan

@stipsan stipsan commented Jul 13, 2026

Copy link
Copy Markdown
Member

Supersedes the renovate attempt in #1523 with a cleaner take on the two code migrations the bump requires.

Dependency updates

Package Change
@sanity/mutator, @sanity/schema, @sanity/util, @sanity/vision, sanity (catalog) ^6.3.0^6.4.0
groq (sanity-plugin-media) ^6.3.0^6.4.0

sanity-plugin-mux-input

DocumentPreview used the as={DocumentPreviewLink(props) as FIXME} anti-pattern: a factory that returned a new component type on every render (forcing remounts) and swallowed every prop PreviewCard forwards to its as element (so the rendered link never received the card's padding/radius/data attributes). It now passes IntentLink directly with intent/params props on PreviewCard, which the card forwards to the link. This also removes the FIXME cast and the react/react-compiler suppression.

@sanity/orderable-document-list

  • Keeps using useDocumentVersionInfo, which became @deprecated in sanity 6.4.0, with an inline oxlint suppression: the suggested replacement (useDocumentVersions) returns raw version documents and would require reimplementing the internal, unexported getDocumentVersionInfoFromVersions util to derive the draft/published/versions shape DocumentStatus needs.
  • Drops a @ts-expect-error on PreviewCard's as={ChildLink} that 6.4.0's improved typings made unused (it now fails TS2578).

Testing

  • pnpm format / pnpm lint / pnpm knip / pnpm build / pnpm test run (893 tests passed)
  • Manual testing in the test studio:

mux-input — the "Used by" preview card renders as a real link (/home/intent/edit/id=… in the status bar on hover) and clicking it opens the referenced document:

mux_input_used_by_preview_link_navigates_to_document.mp4

orderable-document-list — status dots still resolve draft/published info via useDocumentVersionInfo (tooltip shows "Draft - Edited last week") and rows still open the editor via ChildLink:

orderable_document_list_status_tooltip_and_open_document.mp4

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Bumps the workspace catalog (@sanity/mutator, @sanity/schema, @sanity/util, @sanity/vision, sanity) and groq in sanity-plugin-media from ^6.3.0 to ^6.4.0.

- mux-input: replace the DocumentPreviewLink render-function workaround with IntentLink passed directly to PreviewCard's as prop, dropping the FIXME cast and the react-compiler lint suppression.
- orderable-document-list: keep using useDocumentVersionInfo (the useDocumentVersions replacement would need the unexported getDocumentVersionInfoFromVersions util) with an oxlint suppression for the new deprecation, and drop a ts-expect-error made obsolete by the 6.4.0 PreviewCard typings.
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d39810b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
sanity-plugin-media Patch
sanity-plugin-mux-input Patch
@sanity/orderable-document-list Patch

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

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview, Comment Jul 13, 2026 11:11am

Request Review

@stipsan stipsan added the 🤖 bot label Jul 13, 2026 — with Cursor
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​sanity/​util@​6.4.01001007198100
Addednpm/​@​sanity/​mutator@​6.4.01001007698100
Addednpm/​groq@​6.4.010010080100100
Addednpm/​@​sanity/​vision@​6.4.0981009698100
Addednpm/​sanity@​6.4.09610010098100
Addednpm/​@​sanity/​schema@​6.4.0991009998100

View full report

@stipsan
stipsan marked this pull request as ready for review July 13, 2026 11:13
@stipsan
stipsan requested a review from a team as a code owner July 13, 2026 11:13
Copilot AI review requested due to automatic review settings July 13, 2026 11:13
@stipsan
stipsan requested a review from a team as a code owner July 13, 2026 11:13
@stipsan
stipsan requested review from bjoerge and removed request for a team July 13, 2026 11:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the monorepo’s Sanity dependency set to ^6.4.0 and applies the small code migrations needed for the affected plugins to build cleanly and behave correctly with updated typings.

Changes:

  • Bump sanity (and related @sanity/* packages) to ^6.4.0, plus groq to ^6.4.0 for sanity-plugin-media.
  • Fix sanity-plugin-mux-input preview link rendering by passing IntentLink directly to PreviewCard (avoids per-render component factories and preserves forwarded props).
  • Adjust @sanity/orderable-document-list for Sanity 6.4 typings (remove now-unneeded @ts-expect-error, document deprecated hook usage with oxlint suppression).

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pnpm-workspace.yaml Updates Sanity catalog versions to ^6.4.0.
pnpm-lock.yaml Lockfile updates reflecting the new dependency graph.
plugins/sanity-plugin-mux-input/src/components/documentPreview/DocumentPreview.tsx Switches PreviewCard to use IntentLink directly for document previews.
plugins/sanity-plugin-media/package.json Bumps groq to ^6.4.0.
plugins/@sanity/orderable-document-list/src/Document.tsx Removes obsolete TS suppression and documents deprecated hook usage for Sanity 6.4.
.changeset/orderable-document-list-sanity-6-4.md Patch changeset for orderable-document-list compatibility with Sanity 6.4 typings.
.changeset/mux-input-document-preview-intent-link.md Patch changeset describing the mux-input preview link fix.
.changeset/dependencies-GH-1523.md Patch changeset for sanity-plugin-media dependency update (needs summary tweak to match actual change).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .changeset/dependencies-GH-1523.md
@stipsan
stipsan enabled auto-merge (squash) July 13, 2026 11:25
@stipsan
stipsan merged commit 5ade159 into main Jul 13, 2026
15 checks passed
@stipsan
stipsan deleted the cursor/bump-sanity-monorepo-6-4-2d06 branch July 13, 2026 11:25
@squiggler-app squiggler-app Bot mentioned this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants