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 | c21ccd3 |
Espen Hovlandsdal | [import] Support importing from folder | 97564ec |
Espen Hovlandsdal | [core] Allow importing datasets from directory | 37bc881 |
Espen Hovlandsdal | [core] Improve sanity dataset import documentation |
7c18827 |
Espen Hovlandsdal | [chore] Avoid mixed export/imports (#699) | d3924a6 |
Kristoffer J. Sivertsen | [components] Styling focus state on select (#682) | d1ff7c3 |
Espen Hovlandsdal | [server] Allow specifying a basePath for a studio (#720) | fa63389 |
Espen Hovlandsdal | [image-url] Code style fixes | 13b75dd |