Released Apr 99th 2018


Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Import from folder

You may now target a folder when using sanity dataset import. It will look for an ndjson file within the directory. This is useful when extracting a tarball exported with sanity dataset export to a folder and changing its content.

Studio on non-root paths

When hosting the studio yourself, you may want to put it on a non-root path in order to serve a website and the studio from the same domain. This is now supported by specifying a basePath property under the project key of your projects sanity.json file. Example:

  // ...
  "project": {
    "name": "Movies studio",
    "basePath": "/studio"
  // ...

πŸ› Notable bugfixes

  • Unicode URLs are now treated as valid URLs
  • The image-url module now properly supports passing a document ID, a reference or a materialized asset document (thanks @enigosi!)

πŸ““ Full changelog

Wojciech Romanskiimage-url Fix parsing image source (#728)63f511f
Espen Hovlandsdalvalidation Allow unicode in URIsc21ccd39a
Espen Hovlandsdalimport Support importing from folder97564ec77
Espen Hovlandsdalcore Allow importing datasets from directory37bc881fa
Espen Hovlandsdalcore Improve sanity dataset import documentation7c18827d3
Espen Hovlandsdalchore Avoid mixed export/imports (#699)d3924a644
Kristoffer J. Sivertsencomponents Styling focus state on select (#682)d1ff7c339
Espen Hovlandsdalserver Allow specifying a basePath for a studio (#720)fa63389c2
Espen Hovlandsdalimage-url Code style fixes13b75dd83