v4.0.0
Breaking Changes📦 sanityView on GitHub →
⚠ 1 breaking✨ 2 features🐛 2 fixes🔧 7 symbols
Summary
Sanity Studio v4.0.0 introduces new CLI commands for documentation and drops support for Node.js 18, requiring Node.js 20 as the new base environment. This release also includes numerous dependency updates and fixes related to video schema handling.
⚠️ Breaking Changes
- Removed support for Node.js version 18; the base requirement is now Node.js 20. Update your Node.js environment to version 20 or higher to use this release.
Migration Steps
- Run `npm install sanity@latest` to upgrade.
- Ensure your development environment uses Node.js version 20 or higher, as Node 18 support has been removed.
- Refer to the comprehensive guide on [Installing and Upgrading Sanity Studio](https://www.sanity.io/docs/upgrade) for detailed upgrade instructions.
✨ New Features
- Added documentation search and read commands to the CLI.
- Ensured global document reference preview configuration is present for serialized `sanity.video` schema type.
🐛 Bug Fixes
- Fixed an issue related to manifest extraction for the `sanity.video` type.
- Dependency updates: Updated various internal dependencies including @sanity/presentation-comlink, @sanity/comlink, @sanity/import, @sanity/preview-url-secret, @portabletext/editor, and @sanity/ui.
🔧 Affected Symbols
@sanity/presentation-comlink@sanity/comlink@sanity/import@sanity/preview-url-secret@portabletext/editor@sanity/uisanity.video