v0.128.0
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Private datasets! 🔒
When creating datasets, you may now choose whether it should be:
- Public (everyone can query for content in the dataset without being authorized - great for single page applications)
- Private (only authenticated users or requests with authorization tokens can read from the dataset)
You may change the visibility mode for your dataset either by running sanity dataset visibility set <datasetName> <public/private>
or by using the management UI at https://manage.sanity.io/
Collapsible objects
Object types can now be configured as collapsible. By default, deeply nested objects be collapsible and collapsed by default when reaching a depth of 3. Read more in the documentation for the object type
🐛 Notable bugfixes
- Custom validators now run even on undefined values, unless the rule is marked as optional or required by using
Rule.optional()
orRule.required()
. Please make sure you check for undefined values in your custom validator functions.
📓 Full changelog
Author | Message | Commit
------------ | ------------- | -------------
Espen Hovlandsdal | [client] Allow specifying a request body for dataset creation requests | 75e60db6e
Espen Hovlandsdal | [core] Prompt for ACL mode when creating datasets | 5eaa0f1f5
Espen Hovlandsdal | [client] Add method to alter dataset properties | e3d9a7820
Espen Hovlandsdal | [core] Add command to get and set the visibility mode of a dataset | f066f6195
Espen Hovlandsdal | [cli] Add dataset visibility options to init command | 1af19c141
Espen Hovlandsdal | [core] Change acl-mode
flag to visibility
when creating datasets | 426af9623
Bjørge Næss | [chore] Always publish with --exact (#675) | 6375c9432
Bjørge Næss | [dev-studios] Upgrade to React 16 (#674) | 59d56fbe0
Espen Hovlandsdal | [validation] Run custom validators on undefined values unless rule is set to optional | a8119ed0d
Kristoffer J. Sivertsen | [form-builder] Correct smiley, no animation and hide on mobile (#678) | 9d82a5709
Kristoffer J. Sivertsen | [default-layout] Fixes white stripe glitch on action modal (#681) | 730d41187
Kristoffer J. Sivertsen | Fix/buttons and fullscreen tweaks (#680) | e3b247e12
Kristoffer J. Sivertsen | [base] Background on root on text-input (#679) | 604ded23a
Bjørge Næss | [chore] Upgrade eslint, flow and prettier packages | aaf59a043
Bjørge Næss | [chore] Prettier 🙌 | 1d1977ea6
Espen Hovlandsdal | [test-studio] Only override dataset with spaces feature | 2628ceead
Espen Hovlandsdal | [image-url] Allow specifying a baseUrl | 3a56ba20f
Espen Hovlandsdal | [test-studio] Use less misleading dataset names for spaces | 3870e66ad
Bjørge Næss | [form-builder] Support collapsible objects with default limit (#685) | 25b5c44ff
Bjørge Næss | [validation] Move slug validation to @sanity/validation (#687) | 491fe4297
Espen Hovlandsdal | [core] Check if @sanity/cli has dataset edit capabilities before using it | 124ce2313
Bjørge Næss | [generate-help-url] ESLint: No ES2015 | 3c762f83e