Released Aug 225th 2019


Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

New notification snackbars! :chocolate_bar:

This release introduces new stackable notification “snackbars” that stacks, are closable, can have actions in them, and can be used by plugin authors with lots of configuration options (custom icons, etc.).

GIF demoing the snackbars

React Hooks support :fishing_pole_and_fish:

The content studio now works with custom components and plugins that's using React hooks.

Note: In order to use React hooks with your Sanity Studio, make sure to upgrade react and react-dom in your studio to version 16.8 (or later). Read more about how to upgrade React in your studio here.

🐛 Notable bugfixes and optimizations

  • Slugs inside of arrays can't be automatically checked for uniqueness. Previously, they triggered a number of requests when the document changed content, without actually performing a valid check. Users are now required to provide their own isUnique check should they want to ensure uniqueness.
  • Fixed a bug that would cause an error when restoring old versions of a document that has references to now deleted documents. If you restore a version that has a reference to a nonexisting document, that reference field will now be removed upon restore.
  • Missing avatar does not break mobile view.
  • Optimized studio list views which now should load significantly faster.

📓 Full changelog

Kristoffer J. Sivertsenform-builder Icons in blockeditor (#1416)5d1a90b39
Marius Lundgårdstorybook Adjust base styles82f3b1835
Thomas Drevonclient Fix typo opereration --> operatione004b0697
Bjørge Næssbase Optimize and move collate function to draft-utils (#1422)4bf926e02
Bjørge Næssdesk-tool Fix typo/potential listener leak3470bd485
Bjørge Næssbase Move listenQuery9a1879cc9
Bjørge Næssbase Remove reference to nonexistent document upon restore to previous revision (#1423)921e9544a
Kristoffer J. Sivertsendefault-layout Prettier styling of broken avatar image (#1419)ef9443cf0
Kristoffer J. Sivertsendesk-tool Mobile full width publish button (#1417)9e613da1b
Kristoffer J. Sivertsendesk-tool Publish badge in document list (#1407)0de35e290
Kristoffer Sivertsendesk-tool Autoprefixer changes5f94f5405
Kristoffer Sivertsendesk-tool Minor bug fix to editorbef69dc47
Kristoffer J. Sivertsendesk-tool Moving spinners to staticContent (#1424)b55701fd0
Victoria Bergquistcomponents Add new snackbars (#1426)8464b68bb
Bjørge NæssBump the React version required by Sanity Studio to v16.3 (#1433)352e9cbf3
Espen Hovlandsdalvalidation Disable uniqueness check for fields in arrays (#1434)c83964f83
Bjørge Næssserver Upgrade React Hot Loader (#1435)b18b10363
Bjørge Næsstest-studio Add example of custom input that uses hooks77cd20af9
Espen Hovlandsdalserver Only alias react-dom in development (#1436)add49d7e4
Bjørge Næsschore Run rename-unsafe-lifecycles codemod on all source files (#1439)baef47cc3
Victoria BergquistFix issues with the snacker (#1440)f285758a8
Kristoffer J. Sivertsencomponents NoResultText causing scrollbars (#1442)fe5cee44b
Bjørge Næsschore Remove visual regression testing for now (#1443)23f4e089d
Victoria Bergquistbase make base font size overrideable (#1441)0ed5f9fbf