npm @sanity/core 0.128.0

latest releases: 2.36.2, 2.36.2-weighted-search.16, 2.36.2-weighted-search.10...
6 years ago

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

image

🐛 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

Author Message Commit
Espen Hovlandsdal [client] Allow specifying a request body for dataset creation requests 75e60db
Espen Hovlandsdal [core] Prompt for ACL mode when creating datasets 5eaa0f1
Espen Hovlandsdal [client] Add method to alter dataset properties e3d9a78
Espen Hovlandsdal [core] Add command to get and set the visibility mode of a dataset f066f61
Espen Hovlandsdal [cli] Add dataset visibility options to init command 1af19c1
Espen Hovlandsdal [core] Change acl-mode flag to visibility when creating datasets 426af96
Bjørge Næss [chore] Always publish with --exact (#675) 6375c94
Bjørge Næss [dev-studios] Upgrade to React 16 (#674) 59d56fb
Espen Hovlandsdal [validation] Run custom validators on undefined values unless rule is set to optional a8119ed
Kristoffer J. Sivertsen [form-builder] Correct smiley, no animation and hide on mobile (#678) 9d82a57
Kristoffer J. Sivertsen [default-layout] Fixes white stripe glitch on action modal (#681) 730d411
Kristoffer J. Sivertsen Fix/buttons and fullscreen tweaks (#680) e3b247e
Kristoffer J. Sivertsen [base] Background on root on text-input (#679) 604ded2
Bjørge Næss [chore] Upgrade eslint, flow and prettier packages aaf59a0
Bjørge Næss [chore] Prettier 🙌 1d1977e
Espen Hovlandsdal [test-studio] Only override dataset with spaces feature 2628cee
Espen Hovlandsdal [image-url] Allow specifying a baseUrl 3a56ba2
Espen Hovlandsdal [test-studio] Use less misleading dataset names for spaces 3870e66
Bjørge Næss [form-builder] Support collapsible objects with default limit (#685) 25b5c44
Bjørge Næss [validation] Move slug validation to @sanity/validation (#687) 491fe42
Espen Hovlandsdal [core] Check if @sanity/cli has dataset edit capabilities before using it 124ce23
Bjørge Næss [generate-help-url] ESLint: No ES2015 3c762f8

Don't miss a new core release

NewReleases is sending notifications on new releases.