v0.129.0
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) | 8d3dc7554
Kristoffer J. Sivertsen | [form-builder] Min width causes image dialog to fail (#733) | 13a999cf6
Kristoffer J. Sivertsen | [components] Fixing styling bugs and removing focus completly from va… (#714) | d037bda4c
Espen Hovlandsdal | [validation] Include $ in path on reference validation errors (#738) | 95985d286
even westvang | [chore] Improve quality of README copy and display (#735) | ab72b9538
Thomas Drevon | [desk-tool] Add support for live edit (#741) | 6f34912d6
Bjørge Næss | [chore] Configure lerna to use npm instead of yarn (#740) | 3306c4a1c
Espen Hovlandsdal | [core] Add --with-user-token
flag for exec command (#746) | 0deb45b78
Espen Hovlandsdal | [cli] Don't show upgrade prompt on same version (#734) | 5f03ef353
Bjørge Næss | [example-studio] Add an example of how to rename a document field (#745) | 8f35178d7
Bjørge Næss | [form-builder] Fix error causing form-builder to fail on patches including ifRevisionID (#747) | 99b52fe1a
Bjørge Næss | [schema] Make sure field name regex fail on dash and whitespace (#748) | 70035abe0
Bjørge Næss | [desk-tool] Remove publish confirmation (#750) | c8c6a3245
Bjørge Næss | [validation] Fix wrong URL constructor invocation. Fixes #751 (#752) | 782f7c507