v5.0.0
Breaking Changes📦 sanityView on GitHub →
⚠ 2 breaking✨ 4 features🔧 2 symbols
Summary
Sanity Studio v5.0.0 introduces a mandatory upgrade to React 19.2 and includes breaking changes to TypeGen output, alongside several schema and TypeGen improvements.
⚠️ Breaking Changes
- Dropped support for React versions older than 19.2. Users must upgrade to React 19.2 or newer.
- TypeGen output has breaking changes in the Sanity CLI. Review generated types if you rely on them.
Migration Steps
- Upgrade Sanity Studio by running: `npm install sanity@latest`.
- Ensure your project uses React 19.2 or newer.
- Refer to the comprehensive guide on [Installing and Upgrading Sanity Studio](https://www.sanity.io/docs/upgrade) for detailed instructions.
✨ New Features
- TypeGen now returns the same case when generating types.
- TypeGen includes memoizations, refactoring, and improved progress reporting.
- Schema now hoists reference types and uses inline objects to reference them.
- Typographic behaviors are enabled in Portable Text Inputs by default in the core.
🔧 Affected Symbols
Sanity CLI (TypeGen output)Portable Text Inputs