Upgrade with:
sanity upgrade
And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
✨ Highlights
New CLI login method
Logging in through the Sanity CLI tool no longer requires you to open a browser from the same machine/terminal. This allows you to run Sanity on a remote server somewhere, but still log in through a local browser.
New plugin template: Chess input
By running sanity init plugin
, you will get a list of plugin templates to start from. Included in this release is an example of how to build a chess board input, which highlights how to model a more complex data structure with arrays, and how to write fine-grained patches that will work in a real-time setting.
🐛 Notable bugfixes
- CLI tool no longer hangs after running
sanity docs
andsanity manage
sanity import
now assigns document IDs on the client side if they are missing, which solves problems with asset uploads and creating strong references on documents without an ID- Fixed a bug where block quotes containing child blocks would not be deserialized properly when pasting into the block content editor
📓 Full changelog
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | [cli] Add listener-based login flow | e9cddad |
Kristoffer J. Sivertsen | Make the dark theme plugin work (#360) | 556bff7 |
Espen Hovlandsdal | [cli] Restructure and clean up init command | b033986 |
Espen Hovlandsdal | [infrastructure] Package CLI on build | 9b201e4 |
Espen Hovlandsdal | [client] Make npm badge in readme use https | af5acf4 |
Espen Hovlandsdal | [cli] Add chess board input as plugin template | f65ee0d |
Espen Hovlandsdal | [cli] Don't wait for browser to close before resolving | 1079edc |
Espen Hovlandsdal | [cli] Whitelist fsevents module when packing | 20c4d34 |
Espen Hovlandsdal | [import] Generate document IDs on client side | dd796bd |
Per-Kristian Nordnes | [block-tools] Fix deserialization of blockquotes containing block elements (#410) | 3a7a56a |