v5.2.0
Breaking Changes📦 sanityView on GitHub →
⚠ 2 breaking✨ 3 features🐛 9 fixes🔧 4 symbols
Summary
Sanity Studio v5.2.0 introduces new features like Scheduled Drafts menu item and SvelteKit query detection support, alongside significant internal cleanups including the removal of legacy packages.
⚠️ Breaking Changes
- The `migrate` package has been removed. Users relying on this package for migration tasks should look for alternative methods or updated documentation.
- The `create-sanity` package has been removed. Users should use the standard installation/upgrade command (`npm install sanity@latest`) or refer to the installation guide for new projects.
Migration Steps
- To upgrade to this version, run: `npm install sanity@latest`.
- Refer to the comprehensive guide on [Installing and Upgrading Sanity Studio](https://www.sanity.io/docs/upgrade) for initiating new projects or detailed upgrade instructions.
✨ New Features
- Added Scheduled Drafts menu item to the releases navbar.
- Added support for ".svelte" files in codegen.
- Added @sanity/sveltekit support to typegen query detection.
🐛 Bug Fixes
- Fixed a workaround for clickOutside issues in nested modals within the structure builder.
- Fixed releases validation to not validate references.
- Fixed hiding the 'Copy to' context menu if there are no drafts or releases.
- Fixed passing the current document to the reference filter function in forms.
- Fixed timing issues causing test flakes.
- Fixed ensuring `_type` is set on initial value templates.
- Fixed updating recent search version to 3 and improving search sanitization logic.
- Fixed removing a stray `ServerStyleSheet`.
- Fixed not showing the schema icon in preview when prepare() omits media.
🔧 Affected Symbols
migrate package (removed)create-sanity package (removed)enhancedObjectDialog (reworked architecture)@sanity/sveltekit