Released May 3rd 2018

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

E-commerce sample schema

Till now when you have set up new projects with sanity init you have had the choice between a film database and blog to provide examples of how well known data structures are modeled in Sanity. Now we've expanded this to an e-commerce example.

For an example frontend to use with this schema, check out our Vue/Nuxt.js based ecommerce example frontend

If you don't like blogs, movie databases or e-commerce you can always just: sanity init --template clean

Error boundaries

If something inside of a tool crashes during rendering, a more user-friendly error message will be displayed.

Default input for date strings

We already had a default input for datetime types, now we also have an input for plain dates (as in date strings without a time segment, e.g. 2018-05-03)

Better feedback on invalid preview config

We have received quite a few error reports that have been caused by invalid values returned from the preview config. Instead of a hard failure in the Studio, these errors should now be handled more gracefully along with a detailed explanation in the developer console.

Node v10 compatibility

Initializing and running a Sanity Studio locally on Node v10 should now work.

📓 Full changelog

Bjørge Næsscore Remove checksum warning until we can provide a way of fixing (#757)8e9ea1b8c
Bjørge Næsspreview Tolerate invalid values returned from preview config and provide helpful errors (#760)3d14c292d
Bjørge Næssform-builder Refactor DateTimeInput and add DateInput (#756)4a9772328
Espen Hovlandsdalcli Use npm registry for modules. Upgrade yarn to 1.6.0 (#763)7d062c246
Espen Hovlandsdalchore Test on node 10 instead of node 9 (#759)298ab7fd4
Espen Hovlandsdalpresence-store Fix path to entry file (#765)c88c677e6
Espen Hovlandsdalreflector-client Reuse sanity client instead of using get-it directly (#764)4ad6e6dc6
Espen Hovlandsdalform-builder Add dl-parameter on download links to trigger attachment disposition (#767)e4f10b31e
Espen Hovlandsdaldefault-layout Provide error boundary at tool level (#766)4ea2fa146
Kristoffer J. Sivertsencli Adding ecommerce-studio (#758)5524c36ff