๐Ÿ”ฎ Sanity Create is here. Writing is reinvented. Try now, no developer setup
Back to changelog

Sanity Studio Update: Search weight no longer experimental, Document Actions API improved ++

Installation and upgrading

To initiate a new Studio without installing the CLI globally:

To upgrade a Sanity Studio, run this command in its folder:

npm create sanity@latest

npm install sanity@latest

๐Ÿ› Notable bugfixes

  • Resolves an issue where users were not redirected to their original destination after re-authenticating, ensuring seamless access to linked content within the Studio.
  • _projectId and _strengthenOnPublish are now valid values for Initial Value Templates, allowing for Cross Dataset Reference values in templates.
  • Fixes a type bug where the type for defineType and defineField was not being captured correctly.

Other Features

  • __experimental_search is deprecated in favor of field-level search options for strings and Portable Text arrays. You should now be able to define search weights in your schema, like:
defineField({
  name: 'title',
  type: 'string',
  options: {
    search: {
      weight: 10,
    },
  },
})
  • Document Actions can now specify a group, which will allow users to specify whether a specific document action should appear in the footer or in the document's context menu.
  • Adds ability to open the hotspot and crop dialog by double-clicking image preview.

Documentation affected by this release

Published March 12, 2024