Released Apr 99th 2018
v0.128.12
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
Author | Message | Commit |
---|---|---|
Wojciech Romanski | image-url Fix parsing image source (#728) | 63f511f |
Espen Hovlandsdal | validation Allow unicode in URIs | c21ccd39a |
Espen Hovlandsdal | import Support importing from folder | 97564ec77 |
Espen Hovlandsdal | core Allow importing datasets from directory | 37bc881fa |
Espen Hovlandsdal | core Improve sanity dataset import documentation | 7c18827d3 |
Espen Hovlandsdal | chore Avoid mixed export/imports (#699) | d3924a644 |
Kristoffer J. Sivertsen | components Styling focus state on select (#682) | d1ff7c339 |
Espen Hovlandsdal | server Allow specifying a basePath for a studio (#720) | fa63389c2 |
Espen Hovlandsdal | image-url Code style fixes | 13b75dd83 |