Change8

v5.21.0

📦 sanityView on GitHub →
6 features🐛 17 fixes🔧 12 symbols

Summary

This release of Sanity Studio v5.21.0 brings dependency updates, performance telemetry for mutations, and GROQ syntax highlighting in Vision. It also includes numerous bug fixes related to form positioning, schema handling, and release navigation.

Migration Steps

  1. Run `npm install sanity@latest` to upgrade Sanity Studio.

✨ New Features

  • Added telemetry for mutation performance and document rebase.
  • Introduced GROQ syntax highlighting in the Vision tool.
  • Enabled switching the form gutter on or off for individual subtrees.
  • Added logic to prevent overriding the divergence enabled state in nested DocumentPaneProvider.
  • Added `onActiveChanged` and `onTargetDocumentsChanged` hooks to the diff view state.
  • Added telemetry tracking to the diff view.

🐛 Bug Fixes

  • Fixed positioning of reference autocomplete popovers in portaled dialogs.
  • Gracefully handled fallback for invalid locale component tags in Translate.
  • Fixed resolving of copying document ID on live edit schema type.
  • Fixed converting missing descriptor properties and expanded test coverage in schema handling.
  • Allowed text selection in validation panel error cards.
  • Preserved search input focus when filtering releases yields no results.
  • Fixed using "added" and "removed" diffs in the divergence inspector.
  • Fixed support for extracting object types without fields.
  • Resolved issues with navigation between scheduled drafts and releases.
  • Validated persisted sort order against the schema before applying it.
  • Scoped popover modal focus trapping to the owner pane.
  • Supported array index access in custom sort orderings.
  • Handled periods in array item keys when parsing paths in forms.
  • Fixed incoming references inspector showing a loading state.
  • Fixed support for runtime staging flag for auto-updating deploys.
  • Fixed always showing the plus icon in the pane header create button.
  • Fixed switching off divergences for the entire inspector subtree.

Affected Symbols