Released Mar 81st 2018


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

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() or Rule.required(). Please make sure you check for undefined values in your custom validator functions.

📓 Full changelog

Espen Hovlandsdalclient Allow specifying a request body for dataset creation requests75e60db6e
Espen Hovlandsdalcore Prompt for ACL mode when creating datasets5eaa0f1f5
Espen Hovlandsdalclient Add method to alter dataset propertiese3d9a7820
Espen Hovlandsdalcore Add command to get and set the visibility mode of a datasetf066f6195
Espen Hovlandsdalcli Add dataset visibility options to init command1af19c141
Espen Hovlandsdalcore Change acl-mode flag to visibility when creating datasets426af9623
Bjørge Næsschore Always publish with --exact (#675)6375c9432
Bjørge Næssdev-studios Upgrade to React 16 (#674)59d56fbe0
Espen Hovlandsdalvalidation Run custom validators on undefined values unless rule is set to optionala8119ed0d
Kristoffer J. Sivertsenform-builder Correct smiley, no animation and hide on mobile (#678)9d82a5709
Kristoffer J. Sivertsendefault-layout Fixes white stripe glitch on action modal (#681)730d41187
Kristoffer J. SivertsenFix/buttons and fullscreen tweaks (#680)e3b247e12
Kristoffer J. Sivertsenbase Background on root on text-input (#679)604ded23a
Bjørge Næsschore Upgrade eslint, flow and prettier packagesaaf59a043
Bjørge Næsschore Prettier 🙌1d1977ea6
Espen Hovlandsdaltest-studio Only override dataset with spaces feature2628ceead
Espen Hovlandsdalimage-url Allow specifying a baseUrl3a56ba20f
Espen Hovlandsdaltest-studio Use less misleading dataset names for spaces3870e66ad
Bjørge Næssform-builder Support collapsible objects with default limit (#685)25b5c44ff
Bjørge Næssvalidation Move slug validation to @sanity/validation (#687)491fe4297
Espen Hovlandsdalcore Check if @sanity/cli has dataset edit capabilities before using it124ce2313
Bjørge Næssgenerate-help-url ESLint: No ES20153c762f83e