fix(deps): update sanity monorepo to ^6.4.0#1555
Conversation
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 detectedLatest commit: d39810b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
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, plusgroqto^6.4.0forsanity-plugin-media. - Fix
sanity-plugin-mux-inputpreview link rendering by passingIntentLinkdirectly toPreviewCard(avoids per-render component factories and preserves forwarded props). - Adjust
@sanity/orderable-document-listfor 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.
Supersedes the renovate attempt in #1523 with a cleaner take on the two code migrations the bump requires.
Dependency updates
@sanity/mutator,@sanity/schema,@sanity/util,@sanity/vision,sanity(catalog)^6.3.0→^6.4.0groq(sanity-plugin-media)^6.3.0→^6.4.0sanity-plugin-mux-inputDocumentPreviewused theas={DocumentPreviewLink(props) as FIXME}anti-pattern: a factory that returned a new component type on every render (forcing remounts) and swallowed every propPreviewCardforwards to itsaselement (so the rendered link never received the card's padding/radius/data attributes). It now passesIntentLinkdirectly withintent/paramsprops onPreviewCard, which the card forwards to the link. This also removes theFIXMEcast and thereact/react-compilersuppression.@sanity/orderable-document-listuseDocumentVersionInfo, which became@deprecatedin sanity 6.4.0, with an inline oxlint suppression: the suggested replacement (useDocumentVersions) returns raw version documents and would require reimplementing the internal, unexportedgetDocumentVersionInfoFromVersionsutil to derive the draft/published/versions shapeDocumentStatusneeds.@ts-expect-erroronPreviewCard'sas={ChildLink}that 6.4.0's improved typings made unused (it now failsTS2578).Testing
pnpm format/pnpm lint/pnpm knip/pnpm build/pnpm test run(893 tests passed)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 viaChildLink:orderable_document_list_status_tooltip_and_open_document.mp4
To show artifacts inline, enable in settings.