Sanity Studio v3.87.0: Bug fixes in Review Changes, improved release reference validation, and CLI commands

🐛 Notable bugfixes

When working with documents in a release, document validations will now show the correct error when referencing a document that will be unpublished in the same release.

Fixes an issue in the "Review Changes" pane which showed all fields in a draft as being erased after a document draft had been published. Now, the pane will show the correct diff comparing the most recent publish with the one prior.

The sanity build command will no longer fail if the version parameter in the Studio's package.json is missing.

sanity init can now be run in Next.js projects in unattended (-y) mode.

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.