chore(deps): bump sanity to 6.5.0 and enable unstable_bundledDev#1589
Conversation
Align @sanity/client (7.23.2) and @sanity/eventsource (5.0.4) so unstable_bundledDev can be enabled without EventSource2 crashes in Structure.
|
|
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.
|
Keep @sanity/client@7.23.2 and @sanity/eventsource@5.0.4 via the lockfile after pnpm dedupe; remove the temporary overrides and markdown changeset.
There was a problem hiding this comment.
Pull request overview
Updates the monorepo’s Sanity dependency set and test-studio dev configuration to work with Sanity 6.5.0 and to avoid @sanity/client/@sanity/eventsource mismatches when running the dev server.
Changes:
- Bump Sanity-related catalog entries (including
sanity,@sanity/*) to^6.5.0and@sanity/clientto^7.23.2. - Update the lockfile to resolve
@sanity/client@7.23.2and@sanity/eventsource@5.0.4. - Enable
unstable_bundledDevin the test studio CLI config and alignsanity-plugin-markdown’sinlinedDependenciesfor@sanity/client.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pnpm-workspace.yaml | Bumps Sanity catalog versions (including sanity and @sanity/client) to newer ranges. |
| pnpm-lock.yaml | Updates the resolved dependency graph to match the new catalog versions (incl. @sanity/eventsource@5.0.4). |
| plugins/sanity-plugin-markdown/package.json | Syncs inlinedDependencies.@sanity/client to 7.23.2 to match the lock/cached resolution. |
| dev/test-studio/sanity.cli.ts | Enables unstable_bundledDev for sanity dev in the test studio setup. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "inlinedDependencies": { | ||
| "@sanity/client": "7.23.0", | ||
| "@sanity/client": "7.23.2", | ||
| "rxjs": "7.8.2" | ||
| } |
Summary
Bumps catalog Sanity packages from
6.4.0→6.5.0and updates the lockfile so@sanity/client/@sanity/eventsourceresolve to latest, enablingunstable_bundledDevwithout Structure crashing on a missingEventSource2default export.Changes
sanity,@sanity/mutator,@sanity/schema,@sanity/util,@sanity/vision→^6.5.0@sanity/client→^7.23.2@sanity/client@7.23.2,@sanity/eventsource@5.0.4(preserved afterpnpm dedupe; no overrides)dev/test-studio/sanity.cli.ts: setunstable_bundledDev: truesanity-plugin-markdown:inlinedDependencies@sanity/clientsynced to7.23.2Why
@sanity/clientdoesimport("@sanity/eventsource")and readsdefaultasEventSource2. Withunstable_bundledDev, outdated@sanity/eventsource(5.0.2, CJS-only browser export) can leave that default undefined.5.0.4ships a proper ESMbrowser.mjsdefault export.Verification
@sanity/client@7.23.2and@sanity/eventsource@5.0.4pnpm format,pnpm lint,pnpm knip,pnpm build,pnpm testall passStructure tool loaded
Console: no EventSource errors
Test plan
To show artifacts inline, enable in settings.