Change8

v5.3.0

📦 sanityView on GitHub →
5 features🐛 9 fixes1 deprecations🔧 7 symbols

Summary

Sanity Studio v5.3.0 introduces new features like thumbhash support and typegen utilities, alongside numerous bug fixes related to structure previews, form data handling, and CI stability. Dependency updates across the project were also performed.

Migration Steps

  1. Run `npm install sanity@latest` to upgrade Sanity Studio.
  2. Refer to the guide on [Installing and Upgrading Sanity Studio](https://www.sanity.io/docs/upgrade) for new project initiation or upgrade details.

✨ New Features

  • Added thumbhash support for media-library.
  • Implemented dynamic mcp init prompt.
  • Added ArrayOf utility type for inline object array members in typegen.
  • Enabled private asset selection from the media library.
  • Omitted search weights when possible in sanity.

🐛 Bug Fixes

  • Threaded sortOrder through the preview system for viewOptions in structure.
  • Improved autoUpdates config upgrade message in CLI.
  • Prevented file descriptor leak in dataset import.
  • Sanitized timezone storage keys for datetime fields in arrays in form.
  • Fixed linter issues by enforcing no unnecessary boolean literal comparisons.
  • Preserved non-identifier keys in generated types in typegen.
  • Fixed deletion of drafts when creating scheduled drafts.
  • Fixed rendering and read-only state issues for DocumentNotInReleaseBanner when dealing with documents outside of a globally selected anonymous bundle.
  • Migrated Date, Worker, and Observer mocking to Vitest v4 API.

Affected Symbols

⚡ Deprecations

  • The unstable_use hooks have been renamed (see commit 83a03f171f).