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) | bb1716c |
Espen Hovlandsdal | [form-builder] Hide image edit button if no fields and no asset (#1284) | 802e5b2 |
Thomas Drevon | [test-studio] Access specific tutorial feed | 324b9f7 |
Thomas Drevon | [dashboard] If prop is set, request specific feed for template | f9b3918 |
Espen Hovlandsdal | [import] Don't override _type for imported assets (#1288) | 372d1f7 |
Espen Hovlandsdal | [client] Raise default timeout, allow overriding per-request (#1286) | 96b6689 |
Espen Hovlandsdal | [validation] Add new assetRequired -flag (#1285) |
36428e8 |
Espen Hovlandsdal | [validation] Exclude meta fields from object emptiness check (#1282) | e9fc734 |
Espen Hovlandsdal | [schema] Allow file + image to extend validation (#1283) | 8b13e88 |