Releases: sanity-io/sanity
v0.128.12
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Import from folder
You may now target a folder when using sanity dataset import
. It will look for an ndjson
file within the directory. This is useful when extracting a tarball exported with sanity dataset export
to a folder and changing its content.
Studio on non-root paths
When hosting the studio yourself, you may want to put it on a non-root path in order to serve a website and the studio from the same domain. This is now supported by specifying a basePath
property under the project
key of your projects sanity.json
file. Example:
{
// ...
"project": {
"name": "Movies studio",
"basePath": "/studio"
},
// ...
}
🐛 Notable bugfixes
- Unicode URLs are now treated as valid URLs
- The image-url module now properly supports passing a document ID, a reference or a materialized asset document (thanks @enigosi!)
📓 Full changelog
Author | Message | Commit |
---|---|---|
Wojciech Romanski | [image-url] Fix parsing image source (#728) | 63f511f |
Espen Hovlandsdal | [validation] Allow unicode in URIs | c21ccd3 |
Espen Hovlandsdal | [import] Support importing from folder | 97564ec |
Espen Hovlandsdal | [core] Allow importing datasets from directory | 37bc881 |
Espen Hovlandsdal | [core] Improve sanity dataset import documentation |
7c18827 |
Espen Hovlandsdal | [chore] Avoid mixed export/imports (#699) | d3924a6 |
Kristoffer J. Sivertsen | [components] Styling focus state on select (#682) | d1ff7c3 |
Espen Hovlandsdal | [server] Allow specifying a basePath for a studio (#720) | fa63389 |
Espen Hovlandsdal | [image-url] Code style fixes | 13b75dd |
v0.128.11
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
Bugfix release
This fixes a bug caused by a regression in a third party library that would cause reference inputs to not display the list of search hits properly.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [components] Pin version of popper.js. Fixes #709 (#713) | 9617ad5 |
Bjørge Næss | [chore] Replace react-datepicker with fork (#715) | 64f9968 |
v0.128.6
v0.128.5
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Hashed assets
Asset IDs are now generated from the file contents. This means that uploading the same image or file twice will not create a duplicate, but instead reuse the existing asset. This should result in less clutter and a better user experience.
Dataset export/import maintains metadata
When a dataset is exported, the metadata of assets (original filenames and similar) are now preserved.
🐛 Notable bugfixes
- Fixed a bug where invalid JSON in imported datasets would silently be ignored instead of failing the import
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [form-builder] Checksum files before uploading and link with existing asset document if any (#693) | c6ae5d4 |
Espen Hovlandsdal | [cli] Allow @sanity/core to declare CLI version requirement | 03e4c17 |
Espen Hovlandsdal | [export] Build asset map of asset metadata on export | 90b3d61 |
Espen Hovlandsdal | [import] Rename asset map to asset ref map to better reflect intention | 7055b80 |
Espen Hovlandsdal | [import] Reduce batch size to 128kb | 49c0174 |
Espen Hovlandsdal | [import] Update asset metadata from asset map after upload | c7dd303 |
Espen Hovlandsdal | [base] Add sha1sum to file and image asset schemas | d2664b5 |
Bjørge Næss | [form-builder] Support inc + dec patches (#694) | a913f17 |
Espen Hovlandsdal | [desk-tool] Allow hamburger menus to be toggled (#695) | 29a017e |
Bjørge Næss | [deps] Normalize versions (#696) | df1dcf1 |
dan-dr | [plugin-loader] Prevent throwing on all: -requests with no implementations (#702) |
8df3a66 |
dan-dr | [webpack-integration] Add missing postcss-url dependency (#701) | 5f0609a |
dan-dr | [core] Add ability to build in unattended mode (no prompts) (#700) | 561fca9 |
Espen Hovlandsdal | [import] Fix JSON parse errors not being emitted (#703) | 7b7efe2 |
Espen Hovlandsdal | [cli] Only reveal auth token in debug output if --secrets is used | a611fb4 |
Espen Hovlandsdal | [cli] Allow providing auth token through environment variable | eaa258b |
v0.128.4
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed a bug where array of primitive subtypes (e.g.
email
,url
) would resolve to the wrong array input
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [form-builder] Resolve array of primitives input for to array of primitives subtypes | 2a3874d |
v0.128.3
0.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 | 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 |
v0.127.0
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
React 16
The main focus of this release has been React 16 compatibility for the Content Studio. It took an effort, but you can now upgrade and start using the awesome features introduced in this version.
Note: Although your Content Studio still works with React 15.x, we're planning to drop support for React 15 as of the next minor release (0.128.0
), so we recommend upgrading your studios to React 16 the next time you run sanity upgrade
. Read more about how to upgrade the version of React in your Content Studio.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Kristoffer J. Sivertsen | [base] 50% opacity only affects text-input with readonly (#651) | 685bd9f |
Kristoffer J. Sivertsen | [components] Background color on closeButton (#657) | 91e9b78 |
Kristoffer J. Sivertsen | [components] Make arrow ignore pointer-event and clicks the select (#656) | e178271 |
Kristoffer J. Sivertsen | [components] Add description to booleans (#658) | ed99ec2 |
Kristoffer J. Sivertsen | [desk-tool] Centering editor spinners (#661) | c10d3cf |
Bjørge Næss | [imagetool] Set IE9 compat in .babelrc (#664) | 1159237 |
Kristoffer J. Sivertsen | [all] Replace sticky popover with popper.js based (#639) | f681449 |
Espen Hovlandsdal | [client] Improve asset upload documentation examples | cff9f7e |
Bjørge Næss | [cli] Support React 16 (#665) | 7e302ea |
Kristoffer J. Sivertsen | [components] Remove deprecated kind secondary button (#660) | 88cf94c |
Kristoffer J. Sivertsen | [components] No pointer-events on arrow. pointer events on functions (#667) | 477f012 |
Kristoffer J. Sivertsen | [desk-tool] Force auto height on ListView on mobile (#669) | b500a84 |
Kristoffer J. Sivertsen | [desk-tool] Clean up sync spinners (#668) | acf9306 |
Bjørge Næss | [cli] Use React 16 by default in new studios (#670) | 9ea2453 |
Bjørge Næss | [core] Warn on deprecated react version (#671) | 903747c |
v0.126.3
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed a relative import that could in some circumstance cause a "Module not found error".
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [default-layout] Fix wrong relative import (#654) | f37a3ba |
v0.126.2
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed assets potentially being invalid after export
- Fixed very old assets not being exportable through (
sanity dataset export
) - Fixed slug fields not being able to merge default validation with custom validation
📓 Full changelog
Author | Message | Commit |
---|---|---|
Thomas Drevon | [mutator] Update mutator readme (#406) | 2ff0084 |
Jørgen Aaberg | Remove typo in form-builder example in README.MD (#649) | bcbe852 |
Espen Hovlandsdal | [export] Handle exporting of old asset IDs | f8c4d76 |
Espen Hovlandsdal | [export] Temporarily store files to filesystem before archiving | 8923552 |
Espen Hovlandsdal | [schema] Fix combining slug validation rules with custom ones | 2b13b12 |