v0.142.0
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.).
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
Author | Message | Commit ------------ | ------------- | ------------- Kristoffer J. Sivertsen | [form-builder] Icons in blockeditor (#1416) | 5d1a90b39 Marius Lundgård | [storybook] Adjust base styles | 82f3b1835 Thomas Drevon | [client] Fix typo opereration --> operation | e004b0697 Bjørge Næss | [base] Optimize and move collate function to draft-utils (#1422) | 4bf926e02 Bjørge Næss | [desk-tool] Fix typo/potential listener leak | 3470bd485 Bjørge Næss | [base] Move listenQuery | 9a1879cc9 Bjørge Næss | [base] Remove reference to nonexistent document upon restore to previous revision (#1423) | 921e9544a Kristoffer J. Sivertsen | [default-layout] Prettier styling of broken avatar image (#1419) | ef9443cf0 Kristoffer J. Sivertsen | [desk-tool] Mobile full width publish button (#1417) | 9e613da1b Kristoffer J. Sivertsen | [desk-tool] Publish badge in document list (#1407) | 0de35e290 Kristoffer Sivertsen | [desk-tool] Autoprefixer changes | 5f94f5405 Kristoffer Sivertsen | [desk-tool] Minor bug fix to editor | bef69dc47 Kristoffer J. Sivertsen | [desk-tool] Moving spinners to staticContent (#1424) | b55701fd0 Victoria Bergquist | [components] Add new snackbars (#1426) | 8464b68bb Bjørge Næss | Bump the React version required by Sanity Studio to v16.3 (#1433) | 352e9cbf3 Espen Hovlandsdal | [validation] Disable uniqueness check for fields in arrays (#1434) | c83964f83 Bjørge Næss | [server] Upgrade React Hot Loader (#1435) | b18b10363 Bjørge Næss | [test-studio] Add example of custom input that uses hooks | 77cd20af9 Espen Hovlandsdal | [server] Only alias react-dom in development (#1436) | add49d7e4 Bjørge Næss | [chore] Run rename-unsafe-lifecycles codemod on all source files (#1439) | baef47cc3 Victoria Bergquist | Fix issues with the snacker (#1440) | f285758a8 Kristoffer J. Sivertsen | [components] NoResultText causing scrollbars (#1442) | fe5cee44b Bjørge Næss | [chore] Remove visual regression testing for now (#1443) | 23f4e089d Victoria Bergquist | [base] make base font size overrideable (#1441) | 0ed5f9fbf