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 manage.sanity.io 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: 'author.name', 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.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [chore] Appveyor tests (#899) | 8cc4986 |
Espen Hovlandsdal | [cli] Use ESM for clean template schema (#904) | fdffb1a |
Espen Hovlandsdal | [image-url] Allow using materialized assets (#903) | 097d6ac |
Espen Hovlandsdal | [chore] Upgrade dependencies (#901) | dd27787 |
Knut Melvær | [import] Add check for valid prefixes in asset import strings (#866) | 9a6368a |
Bjørge Næss | [import] Clarify the types of arguments that can be passed to sanityImport(…) (#898) | f210598 |
Kristoffer J. Sivertsen | [all] Using native scrollbars (#905) | 3f4fc7f |
Knut Melvær | [core] More helpful CLI messages (#875) | f56694d |
Bjørge Næss | [desk-tool] Support ordering by fields on referenced documents. Fixes #908 (#909) | 39ec7b7 |
Espen Hovlandsdal | [base] Add browser support + javascript check (#902) | 17ef5f7 |
Knut Melvær | [cli] Add project list command (#918) | 14d0e67 |
Bjørge Næss | [form-builder] Tolerate array items with missing keys and provide a way of fixing (#919) | 532578b |