Custom actions for Content Releases, our first iteration of inline field diffs, bug fixes, and refinements

Published: September 9, 2025

v4.7.0
Sanity Studio

✨ Highlights

Custom actions for Content Releases

Much like with custom document actions, it is now possible to define custom release actions - actions that are provided with release and version context and are available within the Studio UI on the releases tool list page, and in the release detail view.

A screenshot showing custom "Log Release Info" and "Conditional Action" actions for Content Releases in Studio.

Inline diffs for string fields

Studio now supports the display of diffs inside fields. When viewing a version of a document in the editor, or viewing versions side by side in the Compare versions view, fields will display inline annotations reflecting how their content has changed.

Screenshot of string field in Sanity Studio showing diff annotations from "Fall Collection 2025" to "Autumn Collection 2025".

This functionality is being implemented for string fields to begin with, and will roll out for more fields in the future. To switch this on for a workspace, set the root advancedVersionControl.enabled configuration option to true.

Note

Other features

  • The sanity undeploy command output has been improved for custom apps. It should now be clearer which application will be undeployed, as applications will be referenced by both their title and their ID.
  • The beta SelectedPerspective type has been deprecated in favour of the new, public, TargetPerspective type. These types represent the same values. If you're using SelectedPerspective in your code, please migrate to TargetPerspective.
  • Adds visual indication of how many documents within the release have been validated and how many are still to go.
  • Improves editing experience during intermittent connection loss.
  • Improves performance of the release detail view.
  • Adds validation overview for each release in the list of releases view.

🐛 Notable bugfixes

  • Fixes an issue where sometimes it was not possible to revert changes to a document.
  • Errors thrown during application development are now contained to the current viewport height, allowing verbose errors to be scrolled and read in full.
  • Fixes issues when restoring documents to revisions in version document and reverting document changes.
  • Fixes issue where reverting to old revision in a document version was not possible.
  • Adds missing revert to revision action when viewing version documents.
  • Fixes issue causing latest edited by user avatar to be outdated.
  • Fixes issue where a document that will be unpublished was showing as undefined in the document list.

Install or upgrade Sanity Studio

To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.

If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.