Migrating to Sanity v5.0.0
Version v5.0.0 introduces 2 breaking changes. This guide details how to update your code.
Released: 12/16/2025
2
Breaking Changes
3
Migration Steps
2
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
Sanity CLI (TypeGen output)Portable Text InputsBreaking Changes
●Issue #1
Dropped support for React versions older than 19.2. Users must upgrade to React 19.2 or newer.
●Issue #2
TypeGen output has breaking changes in the Sanity CLI. Review generated types if you rely on them.
Migration Steps
- 1Upgrade Sanity Studio by running: `npm install sanity@latest`.
- 2Ensure your project uses React 19.2 or newer.
- 3Refer to the comprehensive guide on [Installing and Upgrading Sanity Studio](https://www.sanity.io/docs/upgrade) for detailed instructions.
Release 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.
Need More Details?
View the full release notes and all changes for Sanity v5.0.0.
View Full Changelog