v3.72.0
📦 sanityView on GitHub →
✨ 4 features🐛 7 fixes🔧 10 symbols
Summary
This release significantly improves Portable Text serialization for better copy-pasting fidelity and fixes several critical bugs related to GraphQL schema generation, history loading, and Presentation mode integration. It also introduces new features like support for sticky parameters and an unstable document observation hook.
Migration Steps
- If updating from a version earlier than 3.37.0, check [this article](https://www.sanity.io/help/upgrade-packages) to ensure your dependencies are up to date.
- Refer to the comprehensive guide on [Installing and Upgrading Sanity Studio](https://www.sanity.io/docs/upgrade) for new installations or upgrades.
✨ New Features
- Improved content serialization for copy-pasting in the Portable Text Editor, preserving advanced formatting like lists and links more reliably when pasting into external applications (e.g., Notion, Word).
- Portable Text Editor now intelligently filters out unsupported object types and annotations when pasting content between Portable Text fields in different documents.
- Added support for sticky parameters and intent operations.
- Added unstable `useObserveDocument` hook.
🐛 Bug Fixes
- Fixed an issue causing a *maximum call stack size exceeded* error during GraphQL schema generation when referencing a type of the same kind of document within a document.
- Fixed an issue where the history panel failed to load when navigating via **History → Review Changes → History**.
- Fixed an error about calling `env` on `undefined` seen in Shopify Hydrogen, Remix, and Astro apps using Presentation.
- Fixed an issue in Presentation where live queries did not support `pt::text`.
- Fixed GraphQL schema generation by adding custom logic for reference unions.
- Removed the environment variable `process.env.SANITY_STUDIO_PRESENTATION_ENABLE_LIVE_DRAFT_EVENTS`.
- Fixed an issue where the history inspector height was incorrectly set to 0.
🔧 Affected Symbols
Portable Text EditorGraphQL schema generationHistory panelShopify HydrogenRemixAstroPresentationlive queriesreference unionsuseObserveDocument