Sanity Studio v4.6.1: Unpublish document action moved, Improvements, and bugfixes

✨ Highlights

Unpublish from the Published perspective

The Unpublish document action has been relocated within Sanity Studio for improved workflow clarity.

Previous behavior: Unpublish action was available from draft perspective

New behavior: Unpublish action is now only available from the published perspective

Impact:

To unpublish a document, editors must now:

Select the published perspective (on the Studio or document header level)

Access the unpublish action from the actions document footer

This change ensures editors are working with the published version when making unpublish decisions, providing better context and reducing potential confusion between draft and published states.

Presentation tool update

In Presentation Tool, origin is now always included in the Main Document Resolver context object (DocumentResolverContext). Previously it would be undefined for relative URLs.

🐛 Notable bugfixes

Fixes an issue that could in some cases leave the document stuck in "Saving" state after a connection loss.

Fixes an issue that in rare cases could cause the publish action to get stuck in "Publishing" state.

When discarding a version from the release detail, the preview will now be the correct one.

Fixes issue preventing custom asset source being used if directUploads is set to false.

Fixes an issue causing the unpublish action to be shown erroneously for nonexistent drafts.

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.