chore(deps): override sanity and @sanity/vision to next - #1821
Conversation
Pin the Studio monorepo packages to the `next` dist-tag via pnpm overrides for compatibility testing. Keep mutator/schema/types/util/groq in lockstep with sanity to avoid duplicate versions in the lockfile.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: 29175f6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
✅ E2E Tests🟢 24 passed • view full report • view run Studio: https://plugins-e2e-test-studio-pctcid71s.sanity.dev Datasets: |
Make selected preview fields optional so prepare is assignable under SchemaTypeDefinition's Record<string, any> value typing in 6.9.0-next.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
|
@SocketSecurity ignore npm/@module-federation/sdk@2.8.1 |
|
@copilot resolve the merge conflicts in this pull request |
Resolve pnpm-lock.yaml conflict by regenerating against merged pnpm-workspace.yaml (next overrides + @sanity/client ^7.26.0 from main).
There was a problem hiding this comment.
Pull request overview
This PR updates the workspace dependency resolution to exercise the monorepo against sanity@next and @sanity/vision@next, regenerating the lockfile accordingly, and includes a small typing adjustment in @sanity/color-input to remain compatible with updated prepare typings in the next channel.
Changes:
- Pin
sanity,@sanity/vision, and related Studio monorepo packages to thenextdist-tag viapnpm-workspace.yamloverrides. - Regenerate
pnpm-lock.yamlto reflect thenextresolutions and related dependency graph shifts (incl.react-rx@5.1.1). - Adjust
@sanity/color-inputschema previewpreparetyping and add a changeset for the consumer-facing typing fix.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pnpm-workspace.yaml | Updates minimumReleaseAgeExclude and pins core Sanity Studio packages to next via overrides for compatibility testing. |
| pnpm-lock.yaml | Regenerated lockfile reflecting the next overrides and updated dependency graph. |
| plugins/@sanity/color-input/src/schemas/color.tsx | Makes preview prepare selected fields optional and adds a fallback title to satisfy updated typing expectations. |
| .changeset/color-input-preview-prepare.md | Adds a changeset for the @sanity/color-input typing compatibility fix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Resolved by merging |
List each version as its own exact name@version entry per AGENTS.md instead of a combined || expression.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (2)
pnpm-workspace.yaml:158
- The comment says the lockstep override is for mutator/schema/types/util/groq, but this override set also includes
@sanity/vision. Updating the comment avoids drift between the doc and the actual overrides.
# Pin the Sanity Studio monorepo to the `next` dist-tag for compatibility testing.
# Keep mutator/schema/types/util/groq in lockstep with sanity so dts emit and
# transitive deps (cli/migrate/portabletext) cannot leave a second major.minor
plugins/@sanity/color-input/src/schemas/color.tsx:96
- Using
title || 'Color'will also replace an intentionally empty string title with the fallback. If an empty string is a valid (even if rare) value here, prefer nullish coalescing so onlyundefined/nullfall back.
return {
title: title || 'Color',
subtitle: subtitle,
Draft PR to exercise plugins against
sanity@nextand@sanity/vision@next(currently6.9.0-next.19).Changes
pnpm-workspace.yamloverrides:sanity,@sanity/vision→next@sanity/mutator,@sanity/schema,@sanity/types,@sanity/util, andgroqtonextso they stay in lockstep withsanity(required to avoid duplicate Studio package versions / dts emit failures)minimumReleaseAgeExcludeupdated forreact-rx@5.1.1(pulled in bysanity@next)^6.7.0— only overrides force the next dist-tagCompatibility fix
@sanity/color-input: make previewprepareselected fields optional so the schema type is assignable undersanity@next'sRecord<string, any>prepare typing (TS2322)Verification
pnpm format✅pnpm lint✅pnpm knip✅pnpm build✅pnpm test run✅ (211 files / 1280 tests)Notes
Intent
Compatibility test only — do not merge until ready to adopt the next channel.