v0.140.17
Upgrade the Command Line Interface (CLI) with
npm install --global @sanity/cli
Upgrade the Content Studio with:
sanity upgrade
✨ Highlights
New validation flag: assetRequired()
Image and file fields can can now use the assetRequired()
validation rule in order to enforce that an image has an actual image and not just metadata fields.
🐛 Notable bugfixes
sanity dataset import
no longer overwrites_type
field- Image and file fields should now show validation errors
- Validation rules on customized image/file types now work as expected
📓 Full changelog
Author | Message | Commit
------------ | ------------- | -------------
Espen Hovlandsdal | [form-builder] Pass on markers from asset inputs to fieldset (#1281) | bb1716cbb
Espen Hovlandsdal | [form-builder] Hide image edit button if no fields and no asset (#1284) | 802e5b2ba
Thomas Drevon | [test-studio] Access specific tutorial feed | 324b9f7b9
Thomas Drevon | [dashboard] If prop is set, request specific feed for template | f9b39187f
Espen Hovlandsdal | [import] Don't override _type for imported assets (#1288) | 372d1f70d
Espen Hovlandsdal | [client] Raise default timeout, allow overriding per-request (#1286) | 96b668995
Espen Hovlandsdal | [validation] Add new assetRequired
-flag (#1285) | 36428e8aa
Espen Hovlandsdal | [validation] Exclude meta fields from object emptiness check (#1282) | e9fc73423
Espen Hovlandsdal | [schema] Allow file + image to extend validation (#1283) | 8b13e880a