Sanity Studio v4.6.0: Document change event support in functions, Content Releases performance improvements, improvements and bugfixes

Adds support for new function document change events (create, delete, update), and filters (includeDrafts and includeAllVersions). Read more about these changes here.

Adds function recipe for formatting code blocks with Prettier. Install with npx sanity blueprints add function --example prettier-format-code.

Bug Fixes

Fixes issue where long annotations in a PTE modal were being hidden when scrolling.

When the validation pane is open and an item with a validation error is removed from an array, you will no longer have an error thrown.

Help text for the media command now shows up as expected in the CLI help output.

Performance improvements in the Content Releases tool when viewing releases with lots of documents.