github sanity-io/sanity v0.142.0

latest releases: v3.40.0, v3.39.1, v3.39.0...
4 years ago

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

New notification snackbars! 🍫

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 🎣

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

Author Message Commit
Kristoffer J. Sivertsen [form-builder] Icons in blockeditor (#1416) 5d1a90b
Marius Lundgård [storybook] Adjust base styles 82f3b18
Thomas Drevon [client] Fix typo opereration --> operation e004b06
Bjørge Næss [base] Optimize and move collate function to draft-utils (#1422) 4bf926e
Bjørge Næss [desk-tool] Fix typo/potential listener leak 3470bd4
Bjørge Næss [base] Move listenQuery 9a1879c
Bjørge Næss [base] Remove reference to nonexistent document upon restore to previous revision (#1423) 921e954
Kristoffer J. Sivertsen [default-layout] Prettier styling of broken avatar image (#1419) ef9443c
Kristoffer J. Sivertsen [desk-tool] Mobile full width publish button (#1417) 9e613da
Kristoffer J. Sivertsen [desk-tool] Publish badge in document list (#1407) 0de35e2
Kristoffer Sivertsen [desk-tool] Autoprefixer changes 5f94f54
Kristoffer Sivertsen [desk-tool] Minor bug fix to editor bef69dc
Kristoffer J. Sivertsen [desk-tool] Moving spinners to staticContent (#1424) b55701f
Victoria Bergquist [components] Add new snackbars (#1426) 8464b68
Bjørge Næss Bump the React version required by Sanity Studio to v16.3 (#1433) 352e9cb
Espen Hovlandsdal [validation] Disable uniqueness check for fields in arrays (#1434) c83964f
Bjørge Næss [server] Upgrade React Hot Loader (#1435) b18b103
Bjørge Næss [test-studio] Add example of custom input that uses hooks 77cd20a
Espen Hovlandsdal [server] Only alias react-dom in development (#1436) add49d7
Bjørge Næss [chore] Run rename-unsafe-lifecycles codemod on all source files (#1439) baef47c
Victoria Bergquist Fix issues with the snacker (#1440) f285758
Kristoffer J. Sivertsen [components] NoResultText causing scrollbars (#1442) fe5cee4
Bjørge Næss [chore] Remove visual regression testing for now (#1443) 23f4e08
Victoria Bergquist [base] make base font size overrideable (#1441) 0ed5f9f

Don't miss a new sanity release

NewReleases is sending notifications on new releases.