Released Aug 226th 2018


Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Get a list of Sanity projects in the command line

Some of us have acquired quite a few Sanity projects and for sure has the list, but who has time to open a browser? So now you can $ sanity projects list in your command line of choice, and get a fine responsive table of all your projects with their IDs and studio URLs for your logged in user.

🐛 Notable bugfixes

Order list of documents by fields on referenced documents (#908)

The sort orders now support ordering by a field on a referenced document, e.g.

// on book schema where author is a reference to an author doc
orderings: [
    title: 'Author name',
    name: 'authorName',
    by: [{field: '', direction: 'asc'}]

Arrays now tolerate items with missing keys (#919)

Quashed a bug that made the Content Studio crash when opening a document that had an array field where one or more items were missing a _key. This is now handled, and the user is presented with a way to quickly set keys on items that lack it.

Fix missing _keys in the Studio interface

📓 Full changelog

Espen Hovlandsdalchore Appveyor tests (#899)8cc4986d6
Espen Hovlandsdalcli Use ESM for clean template schema (#904)fdffb1a26
Espen Hovlandsdalimage-url Allow using materialized assets (#903)097d6aca3
Espen Hovlandsdalchore Upgrade dependencies (#901)dd2778732
Knut Melværimport Add check for valid prefixes in asset import strings (#866)9a6368a1d
Bjørge Næssimport Clarify the types of arguments that can be passed to sanityImport(…) (#898)f210598aa
Kristoffer J. Sivertsenall Using native scrollbars (#905)3f4fc7f72
Knut Melværcore More helpful CLI messages (#875)f56694d49
Bjørge Næssdesk-tool Support ordering by fields on referenced documents. Fixes #908 (#909)39ec7b7e4
Espen Hovlandsdalbase Add browser support + javascript check (#902)17ef5f7b9
Knut Melværcli Add project list command (#918)14d0e6775
Bjørge Næssform-builder Tolerate array items with missing keys and provide a way of fixing (#919)532578bb2