v0.129.0

Released Apr 23rd 2018

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. Publish without confirmation

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

AuthorMessageCommit
Kristoffer J. Sivertsencomponents Improve focus handling on radio selects (#711)8d3dc7554
Kristoffer J. Sivertsenform-builder Min width causes image dialog to fail (#733)13a999cf6
Kristoffer J. Sivertsencomponents Fixing styling bugs and removing focus completly from va… (#714)d037bda4c
Espen Hovlandsdalvalidation Include $ in path on reference validation errors (#738)95985d286
even westvangchore Improve quality of README copy and display (#735)ab72b9538
Thomas Drevondesk-tool Add support for live edit (#741)6f34912d6
Bjørge Næsschore Configure lerna to use npm instead of yarn (#740)3306c4a1c
Espen Hovlandsdalcore Add --with-user-token flag for exec command (#746)0deb45b78
Espen Hovlandsdalcli Don't show upgrade prompt on same version (#734)5f03ef353
Bjørge Næssexample-studio Add an example of how to rename a document field (#745)8f35178d7
Bjørge Næssform-builder Fix error causing form-builder to fail on patches including ifRevisionID (#747)99b52fe1a
Bjørge Næssschema Make sure field name regex fail on dash and whitespace (#748)70035abe0
Bjørge Næssdesk-tool Remove publish confirmation (#750)c8c6a3245
Bjørge Næssvalidation Fix wrong URL constructor invocation. Fixes #751 (#752)782f7c507