Releases: sanity-io/sanity
v0.122.7
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed bug where "new item"-dialog would only work once per session
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [default-layout] Check for prevEvent before attempting to use it | 581f2c9 |
v0.122.5
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- A new version of uglify-js had a compression bug that might prevent deployed studios from
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [core] Lock uglify-js to version 3.1.10 | 8ab906f |
v0.122.4
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed bug where JSONPath selectors on array items might match the last element in the array instead of none
- Fixed bug where block content might not have keys set properly
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [webpack-integration] Allow passing options to CSSNext/Lost | 6e4af6a |
Espen Hovlandsdal | [resolver] Fix sync functions being forced to async | 137bcbc |
Espen Hovlandsdal | [plugin-loader] Use postcss plugins, improved resolving | 494e6bf |
Espen Hovlandsdal | [form-builder] Set project ID for tests, allow local module resolution | 31c6ada |
Espen Hovlandsdal | [form-builder] Fix array index resolving bug | 93be532 |
Espen Hovlandsdal | [form-builder] Make out-of-sync warning full-width | 1725b47 |
Bjørge Næss | [form-builder] Fix false weak mismatch false positive (#390) | 99eb597 |
Per-Kristian Nordnes | [block-tools] Set keys on blocks and spans (#387) | 32b5d09 |
Bjørge Næss | [test-studio] Minor cleanup | 468c89c |
Bjørge Næss | [form-builder] Support skipping directly to block editor (#386) | db5aabe |
Bjørge Næss | [default-layout] Extract url state into its own store and support tool precedence for intent links (#388) | d0f1ddb |
Bjørge Næss | Experimental feature: Spaces (#389) | 9c465dc |
Bjørge Næss | [test-studio] Tweak test cases and add a few more (#391) | f2aeaf3 |
Bjørge Næss | [default-layout] Prevent unnecessary rerenders of Search component (#394) | 65ec018 |
Bjørge Næss | [form-builder] Memoize hot methods (#395) | 3c55877 |
v0.122.2
v0.122.1
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
🐛 Notable bugfixes
- Fixed a bug where new users sometimes would have to run
sanity init
twice when not authenticated
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [cli] Move resolving of login action to an earlier stage | 4b1d8c9 |
v0.122.0
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Faster CLI installation
This release changes the way the CLI is distributed - bundling all dependencies in order to create a very fast installation.
Weak references
You can now flag references as weak
in your schema, in the rare case where you want referenced documents to be deletable without first unsetting the reference. Should be used with caution!
📓 Full changelog
Author | Message | Commit |
---|---|---|
Thomas Drevon | [client] Use correct URL for observable source code | 337537a |
Espen Hovlandsdal | [base] Fix outdated modules message (#363) | 63efb77 |
Espen Hovlandsdal | [test-studio] Add staging project id | 35368cc |
Bjørge Næss | Add support for weak references (#366) | ac13d15 |
Espen Hovlandsdal | [cli] Improve help text on init command | e578163 |
Espen Hovlandsdal | [cli] Show more useful next steps after initializing project | 536eb13 |
Bjørge Næss | [form-builder] Move item remove logic to ConfirmButton (#368) | 10a0245 |
Espen Hovlandsdal | [cli] Use webpack to bundle all code to a single file | 64b1418 |
Espen Hovlandsdal | [cli] Code style fixes | 7329229 |
Espen Hovlandsdal | [cli] Copy xdg-open binary to bin directory on pack | 78ddc6e |
Espen Hovlandsdal | [client] Fix incorrect link and query examples in readme | 9124e24 |
Espen Hovlandsdal | [cli] CommonJSify debug module | a72d909 |
Espen Hovlandsdal | [cli] Ensure template manifest is not inside node_modules | bdd4aa3 |
Espen Hovlandsdal | [cli] Support specifying dependencies in plugin templates | 529868b |
Espen Hovlandsdal | [cli] Allow specifying a minimum CLI version for templates | 467f955 |
Espen Hovlandsdal | [chore] Fix missing @sanity prefix | 03780ff |
Espen Hovlandsdal | [cli] Ban node versions 8.1.0 and 8.1.1 due to input issues | 97d52b5 |
Espen Hovlandsdal | [cli] Add more commands to list of core cmds | d8b0fc7 |
v0.121.0
Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Image url
This release intoduces the @sanity/image-url
package that allows you to quickly generate image urls from Sanity image records + a builder api for the Sanity image pipeline url options. Check out the readme for more info.
🐛 Notable bugfixes
- Fixed React Native compatibility in
@sanity/client
+ a few other React Native related issues.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [components] Don't enforce stickToTop in EditItemPopover | 6d83d9a |
Per-Kristian Nordnes | [default-login] Allow sending a React node as prop to title and description (#350) | 6656fc1 |
Bjørge Næss | [test-studio] Add a fieldsets test type | 111528f |
Simen Svale Skogsrud | [image-url] Introducing the image-url package (#352) | 426cf91 |
Espen Hovlandsdal | [cli] Add CLI methods for manage and docs (#351) | aa24531 |
Bjørge Næss | [observable] Add .babelrc to .npmignore + some dotfiles cleanup (#353) | 7c3db95 |
Bjørge Næss | [client] Upgrade get-it (#354) | 3e7351b |
Espen Hovlandsdal | [cli] Allow bootstrapping plugins from templates (#355) | e9a62be |
Bjørge Næss | [chore] Add a release-notes script that outputs a release notes template (#356) | 06bf025 |
v0.120.0
Upgrade with
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Fix all the popover things!
Popovers and dialogs in the studio just got a lot better. We have fixed several recurring issues related to layer placement and scrolling. In addition:
Escape
only closes the topmost layer. You can hitShift+Escape
to close all.- Click outside to close works in a more reliable way.
- Weird scrolling issues should be fixed.
🐛 Notable bugfixes
- Fixed a bug that caused markDefs on block text to be duplicated with the same key.
- Misc. improvements in the command line interface (CLI).
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [cli] Use new moviedb dataset URL (#329) | 077222f |
Bjørge Næss | [form-builder] Add a separate part for patch-event (#327) | 41adefb |
Simen Svale Skogsrud | [presence-store] Introducing the PresenceStore (#330) | 30b79a1 |
Espen Hovlandsdal | [core] Improve minification error messages (#328) | 7624dd1 |
Espen Hovlandsdal | [cli] Filter yarn output (#331) | 57300b2 |
Bjørge Næss | [form-builder] Fix race condition when patching block node values (#333) | 9f189e1 |
Kristoffer J. Sivertsen | [form-builder] Respect editModal schema option on Block Editor (#332) | aef99c9 |
Bjørge Næss | [example-studio] Simplify and fix a a few issues w/protein input example (#334) | 7333288 |
Espen Hovlandsdal | [client] Deprecate asset delete method (#336) | 81ab6bf |
Espen Hovlandsdal | [core] Prompt for dataset on import/export (#337) | 806f1f1 |
Bjørge Næss | [example-studio] Use protocol relative url | 7767ecd |
Espen Hovlandsdal | [core] Hint about installing plugins on plugin resolve failure (#338) | 3ec63c3 |
Espen Hovlandsdal | [base] Define schema type part for better plugin support (#292) | 63fdc3b |
Espen Hovlandsdal | [core] Use PATCH-endpoint for setting studio host (#339) | 8033a3c |
Kristoffer J. Sivertsen | [components] Add a general Popover dialog (#297) | 4f61ac8 |
Bjørge Næss | [components] Fix stacking (#297) | 0ba11ff |
Espen Hovlandsdal | [core] Check if installed React version is supported on startup (#340) | 8811ad8 |
Espen Hovlandsdal | [default-layout] Center project name (#341) | ab91d37 |
Kristoffer J. Sivertsen | [components] Minor fixes after capture outside clicks (#342) | d935792 |
Espen Hovlandsdal | [document-window] Add initial prototype (#217) | d6b6ff9 |
Kristoffer J. Sivertsen | [components] Fix popover scrolling (#343) | a0d96db |
Bjørge Næss | [form-builder] Don't pass unsupported prop on select | 070e759 |
Bjørge Næss | [schema] Fix typo | 13d4b1b |
Per-Kristian Nordnes | [block-tools] Fix bug where markDefs where put incorrectly on Slate block's data (#347) | 5c35d33 |
Kristoffer J. Sivertsen | [components] Pass down scroll container as context (#349) | 5211440 |
v0.119.0
Upgrade with
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Jump to referenced documents
You can now click on a link icon on references to jump to the referenced document.
Moar query strings!
Query string length limit for GET-queries is now 11kB, a substantial increase from the previous 2kB. This means that more requests will be GETs instead of POSTs, which will make more queries cacheable and cut down on the overall roundtrip time for larger queries.
Block-tools module
We have made an own module with various tools for our block content. Most notably is the new HTML Deserializer which will convert HTML into the Sanity block format. This is a great tool for pouring existing HTML content into your Sanity datasets. Read more
Dropped Node 4 support
We are starting to run into several dependencies which are no longer supporting node 4. This is getting quite tedious, and even though Node 4 is still in LTS for another 6 months, we feel we can justify the bump because this is developer tooling that will run locally, not on servers which might be hard to upgrade.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [client] Increase query size limit to 11kB (#309) | def94dc |
Bjørge Næss | [desk-tool] Link to getting started guide if there are no schema types (#304) | f86bc96 |
Kristoffer J. Sivertsen | [desk-tool] Styling GetStarted (#304) | 589ec9f |
Espen Hovlandsdal | [webpack-integration] Resolve symlinks to real files, cache imports (#312) | 4677c65 |
Bjørge Næss | [desk-tool] Keep info about type mismatch, and do type mismatch check only for '*' + on cWRP (#311) | 08e6e91 |
Kristoffer J. Sivertsen | [components] Respecting border-radius variable where needed (#315) | 1cea012 |
Kristoffer J. Sivertsen | Cleanup of sanity logo (#314) | 43c7434 |
Kristoffer J. Sivertsen | [components] Trivial fix for simple white button | 00f0989 |
Kristoffer J. Sivertsen | [form-builder] Link to reference in array and reference select (#317) | 19241ab |
Bjørge Næss | [chore] Normalize dependencies (#322) | db74ff8 |
Simen Svale Skogsrud | [reflector-client] Initial commit (#319) | 34b08a3 |
Espen Hovlandsdal | [cli] Fix plugin init not serializing sanity.json (#324) | 4ffe1f2 |
Per-Kristian Nordnes | [block-tools] Introducing block tools module (#318) | ba01881 |
Per-Kristian Nordnes | [form-builder] Delete code which now is @sanity/block-tools (#318) |
c7d892e |
Bjørge Næss | [schema] Improve reference type validation (#316) | a10c51b |
Espen Hovlandsdal | [chore] Bump minimum node version requirement to >= v6 (#326) | ae079e2 |
v0.118.0
Upgrade with
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
Schema validation!
The Sanity Studio will now refuse to load if the schema contains critical errors, and give helpful hints about how the errors can be fixed. The validation is by no means complete, and we will keep detecting problems and adding helpful warnings/errors in the future.
Any schema problems that are not critical will will appear as warnings in the developer tool console.
Schema type document
We have introduced a new schema type named document
. This is the type to use for all the schema types that you want to be able to create documents from. Read more about how to start using this type here.
🐛 Notable bugfixes
- The input for
datetime
now supportsreadOnly
. - Reference select will now position its dropdown menu above the field if there's not enough space below.
- Fixed an issue with reference search yielding a query that targeted wrong fields.
📓 Full changelog
Author | Message | Commit |
---|---|---|
Bjørge Næss | [form-builder] Support readOnly on datetime fields. Fixes #291 (#294) | 8fc538d |
Bjørge Næss | Add toplevel document type (#293) | a723ac2 |
Kristoffer J. Sivertsen | [components] Automatic Top/bottom position on dropdown on SearchableS… (#296) | 1b399f7 |
Bjørge Næss | [core] Remove checksum warning until we can provide a way of fixing (#298) | 7c1091f |
Bjørge Næss | Schema validation (#299) | dcc39fd |
Bjørge Næss | [form-builder] Fix issue with recursive string field lookup for reference search | cc359d8 |