Sanity Studio v4.9.0: Delta GROQ CLI tests, Auto update channel for standalone studios and more

✨ Highlights

Delta GROQ function test command (CLI)

This change enables support for testing with Delta GROQ function. When the event flag is set to update and before and after data is provided via one of the new flags (data-before/after, file-before/after, document-id-before/after), then delta functions in the filter will work as they do in the deployed functions.

Auto update channel for self hosted studios

Adds support for auto update channel configuration for self hosted Studios (i.e. studios not hosted on the *.sanity.studio-domain)

Changes to sanity.cli.ts config

Deprecates autoUpdates, replaced with deployment.autoUpdates

Deprecates app.id, replaced with deployment.appId.

Deprecates studioHost, superseded by deployment.appId.

Other features

Schema errors screen now contains a button to copy schema type errors as Markdown.

Updated the npx sanity@latest init command in next.js contexts to use next-sanity v11.

Fixes popover issues where if you opened a reference within a Portable Text Editor block and attempted to click a field from the opened reference, you would not be able to edit the content.

Fixes issue where when working with a PTE fullscreen, adding items that used popover and pressing escape it would close the fullscreen PTE instead of the popover that was opened on top first.

🐛 Notable bugfixes

Fixes an issue where sometimes it was not possible to revert changes to a document.

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.