Change8

v5.10.0

Breaking Changes
📦 sanityView on GitHub →
2 breaking5 features🐛 9 fixes1 deprecations🔧 5 symbols

Summary

Sanity Studio v5.10.0 introduces dependency updates, including major changes to portabletext, alongside various bug fixes for asset handling, navigation, and editor interactions. Users are advised to review the portabletext updates for potential breaking changes.

⚠️ Breaking Changes

  • Update portabletext to v6 (major): This is a major update to portabletext, which may require corresponding updates in related packages or custom implementations.
  • Update portabletext to v5 (major): This is another major update to portabletext, potentially causing breaking changes if v6 was not the intended target.

Migration Steps

  1. Run `npm install sanity@latest` to upgrade Sanity Studio.
  2. Migrate deprecated `motion` call to `motion.create`.

✨ New Features

  • Route scheduledDraft as pane param in comment links.
  • Add missing `_allMembers` type.
  • Add `isArrayOfPrimitivesFormNode`.
  • Add `readOrderedFormMembers`.
  • Include more details with error messages.

🐛 Bug Fixes

  • Media library plugin upload existing asset issue fixed.
  • Don't make inline refs for references to top level doc types.
  • Timezone (tz) dropdown opens as expected even if an existing selection is made.
  • Fix root cause of undefined in perspective array.
  • Prevent erroneous upload warning when pasting plain text into Portable Text Editor (PTE).
  • Reset asset source state after upload completes.
  • Issue where clicking the "x" to close dialog or the breadcrumb to navigate would have issues when reopening Item fixed.
  • Scroll to field when navigating to a comment deeplink.
  • Fix issue related to change on PTE block.

Affected Symbols

⚡ Deprecations

  • Removal of beta disclaimers for typegen/schema extraction, indicating these features are now stable or fully integrated.