v0.133.0
Release notes
Upgrade the Command Line Interface (CLI) with
npm install --global @sanity/cli
Upgrade the Content Studio with:
sanity upgrade
✨ Highlights
Babel 7
We have upgraded to Babel 7, which means you now can use Fragments short syntax <>
for custom components, and use babel to compile TypeScript.
Note: if you have a custom .babelrc
setup in your content studio project, you will have to migrate to v7 following this guide: https://babeljs.io/docs/en/v7-migration
Sanity CLI honors dataset
parameter
- You can now specify the target dataset when you run
sanity get/query/create/delete
with--dataset=<dataset name>
🐛 Notable bugfixes
- Improved studio search so it also looks for string content within arrays
- When searching for references the result set is now narrowed by adding more words/search terms.
- Better browser support for the @sanity/image-url module
📓 Full changelog
Author | Message | Commit ------------ | ------------- | ------------- Bjørge Næss | [chore] Upgrade to babel v7 (#946) | f4352004f Bjørge Næss | [schema] Improve text search within arrays (#947) | b52f0641f Bjørge Næss | [chore] Rename Javascript => JavaScript (#949) | 92f27aa41 Kristoffer J. Sivertsen | [all] Cleanup stylelint (#952) | 841fd92ae Bjørge Næss | [chore] Remove more editorconfig files (#950) | ae8c55e7e Bjørge Næss | [default-layout] Pass search terms as params (#948) | a9e7c4a43 Bjørge Næss | [mutator] Use exponential backoff with hard limit when retrying commits (#954) | 625478ed3 Bjørge Næss | [default-layout] Use onChange instead of onInput on search input | 22d0514c7 Espen Hovlandsdal | [image-url] Use object rest spread instead of Object.assign (#958) | 215012eb9 Bjørge Næss | [form-builder] Make sure we pass down onFocus to wrapped input components (#960) | d54a6b7f3 Bjørge Næss | [example-studio] Remove type annotation from protein input | 6f2ed6478 Bjørge Næss | [desk-tool] Support order by reference fields on level > 1 (#962) | 5e2f6eb0c Espen Hovlandsdal | [reflector-client] Use IE9 as babel target (#964) | 5b6d4734a Espen Hovlandsdal | [image-url] Use global form of isFinite (#965) | 916c9fbe3 Thomas Drevon | [core] Honor --dataset option on get/query/create/delete CLI commands (#955) | 82e84ae4f