Change8

v4.22.0

📦 sanityView on GitHub →
2 features🐛 14 fixes1 deprecations🔧 6 symbols

Summary

Sanity Studio v4.22.0 introduces the ability to edit canvas documents and supports linking to documents in focus mode. This release also includes numerous dependency upgrades and bug fixes, particularly around CLI behavior and dependency resolution.

Migration Steps

  1. To upgrade to this version, run: `npm install sanity@latest`.
  2. Refer to the comprehensive guide on [Installing and Upgrading Sanity Studio](https://www.sanity.io/docs/upgrade) for detailed upgrade instructions or to initiate a new project.

✨ New Features

  • Enabled editing of canvas documents.
  • Added support for linking to documents in focus mode within the structure tool.

🐛 Bug Fixes

  • Improved handling of user application clients in the manifest.
  • Removed unnecessary warning about missing appId from `sanity dev`.
  • Updated dependency `portabletext`.
  • Fixed CLI to handle `sanity` binary as ESM/CJS/executable correctly.
  • Added `sanity` to `peerDependencies` in `@sanity/vision`.
  • Pinned `isomorphic-dompurify` to solve `jsdom` errors on Next.js.
  • Fixed peer dependency range for vision to match regular plugins.
  • Fixed issue with selected items in the collapse/overflow menu.
  • Fixed behavior when deleting and reverting objects within arrays (specifically in the middle of an array).
  • Fixed telemetry reporting in MCP commands.
  • Fixed issue where backward drag and selecting text in fullscreen Portable Text Editor (PTE) would skip focus.
  • Fixed issue where releases and scheduled plugins were incorrectly included in the list of plugins to reroute.
  • Fixed issue where deleting all versions of a document failed.
  • Added registration information to the CORS error screen.

🔧 Affected Symbols

@sanity/export@sanity/visionsanity@sanity/pkg-utilsportabletextisomorphic-dompurify

⚡ Deprecations

  • React versions less than 19.2.2 are now marked as deprecated in the CLI.