Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Publish without confirmation
We've removed the extra confirmation step after pressing the publish button. This after feedback that it was mostly annoying and very seldom helpful.
Live Edit
Even though the Content Studio saves your document as you are typing you typically need document changes to be buffered in drafts before you publish them. Sometimes though you want your changes to be immediate. We have therefore added the option liveEdit: true
to the document schema type. This does away with drafts and makes every document change reflect on the APIs and show up for listeners as mutations.
Migrations
The best way to run migrations is by writing a small JavaScriptlet that you execute using sanity exec
. In this release, we have added support for passing --with-user-token
to sanity exec
, which will allow you to import a preconfigured, authenticated client from part:@sanity/base/client
in your script. Our documentation also now covers running migrations.
🐛 Notable bugfixes
- Fixed a bug that allowed field names with invalid characters, causing invalid queries (#434, #748)
- Fixed a bug causing Safari to report valid urls as invalid (#751, #752)
📓 Full changelog
Author | Message | Commit |
---|---|---|
Kristoffer J. Sivertsen | [components] Improve focus handling on radio selects (#711) | 8d3dc75 |
Kristoffer J. Sivertsen | [form-builder] Min width causes image dialog to fail (#733) | 13a999c |
Kristoffer J. Sivertsen | [components] Fixing styling bugs and removing focus completly from va… (#714) | d037bda |
Espen Hovlandsdal | [validation] Include $ in path on reference validation errors (#738) | 95985d2 |
even westvang | [chore] Improve quality of README copy and display (#735) | ab72b95 |
Thomas Drevon | [desk-tool] Add support for live edit (#741) | 6f34912 |
Bjørge Næss | [chore] Configure lerna to use npm instead of yarn (#740) | 3306c4a |
Espen Hovlandsdal | [core] Add --with-user-token flag for exec command (#746)
| 0deb45b |
Espen Hovlandsdal | [cli] Don't show upgrade prompt on same version (#734) | 5f03ef3 |
Bjørge Næss | [example-studio] Add an example of how to rename a document field (#745) | 8f35178 |
Bjørge Næss | [form-builder] Fix error causing form-builder to fail on patches including ifRevisionID (#747) | 99b52fe |
Bjørge Næss | [schema] Make sure field name regex fail on dash and whitespace (#748) | 70035ab |
Bjørge Næss | [desk-tool] Remove publish confirmation (#750) | c8c6a32 |
Bjørge Næss | [validation] Fix wrong URL constructor invocation. Fixes #751 (#752) | 782f7c5 |