Skip to content

v0.125.0

Compare
Choose a tag to compare
@bjoerge bjoerge released this 30 Jan 22:46
· 11566 commits to next since this release

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

UI Rebalance ☯

We've sanded down the interface and spent time rebalancing that which defines it (contrast, margins, typography, hover states, button shapes, etc, etc, etc). It felt great.

Link to preview on site 🎉

A frequent feature request has been to support a way to preview content in a production setting, e.g on the web site. We have now added support for adding a link from the Content Studio to your site for previewing documents and drafts. Read more about the shiny new feature here.

Previews!

Modals are the new popovers 💯

The Sanity form builder supports editing embedded objects. Put them lists along with other types! Put objects inside objects inside objects! However complicated your model, we'll render it.

We initially decided to pop the editor for objects in-place, where you clicked. This was intuitive, but was brittle with complex objects sometimes finding a way off-screen. Object editing now pops in centred modals.

Goodbye popovers, we hardly knew ye.

Demo display of a modal

Update notifier ⚠️

The studio now includes an update notifier which lets you know if your studio is up to date with the latest Sanity releases.

Faster previews ⚡️

List views are optimized to load items faster - in certain situations up to 10x faster!

🐛 Notable bugfixes

  • Fixed a bug where running sanity build or sanity deploy without having run sanity start would fail because of missing plugin configuration files
  • Fixed a bug in the block editor regarding annotating a text with a reference that would throw an error.
  • Robustified how the block editor creates an editor state to better be able to recover from invalid source data.
  • Fixed a bug that caused the _createdAt field on documents to be reset upon publishing.
  • Fixed a bug causing fieldsets to be collapsed by default in some cases when they should not.
  • Fixed a bug that could in some rare cases cause inconsistencies when publishing documents.

📓 Full changelog

Author Message Commit
Bjørge Næss [schema] Remove stray assertions (#476) ff8f4d5
Bjørge Næss [chore] Upgrade/normalize dependencies and get rid of cyclic dependencies (#474) 0fa400f
Per-Kristian Nordnes [default-login] Allow overriding provider list through json config file (#461) e2811e8
Espen Hovlandsdal [base] Optimize preview snapshot fetching (#468) 55e707b
Espen Hovlandsdal [core] Re-initialize plugin configs before building to static assets c98f39d
Bjørge Næss [test-studio] Add default login config to test studio df13bcf
Bjørge Næss [form-builder] Don't force scroll input into view on focus (#481) 4c82ba1
Bjørge Næss [preview] Move preview related code to own package (#482) c49298a
Espen Hovlandsdal [default-layout] Add update notifier for outdated modules 01248c2
Kristoffer J. Sivertsen [default-layout] Styling update notifier 0c3b236
Bjørge Næss [observable] Upgrade rxjs to 5.5.6 (#483) 4309c6d
Bjørge Næss [form-builder] Improve UX of PrimitiveArray (#484) b20e7b1
Kristoffer J. Sivertsen [all] Visual improvements across studio (#486) 1808bc2
Kristoffer J. Sivertsen [components] Visual improvements - input components (#488) cb6fd8d
Kristoffer J. Sivertsen [form-builder] Use Dialog for editing array items (#487) 2b6e682
Kristoffer J. Sivertsen [default-layout] Visual improvements - create screen (#489) e2f6cfe
Bjørge Næss [imagetool] Support onChangeEnd event and cache imagetool value in ImageToolInput (#490) ec3c57c
Bjørge Næss [form-builder] Remove setTimeout hacks due to popover issues (#495) 84a5eae
Bjørge Næss [form-builder] Make ArrayOfPrimitives tolerant of missing value (#496) 003a049
Bjørge Næss [preview] Expose a default materializePaths function (#492) 4eb8590
Kristoffer J. Sivertsen [all] Design tweaks (#493) c32340b
Espen Hovlandsdal [chore] Travis: Sanity binary executable without full path 1b38e0f
Espen Hovlandsdal [cli] Don't import data in unattended mode 1eb50c1
Kristoffer J. Sivertsen [form-builder] Moving over styling from rich-date and fixing datetime (#501) 20deb5f
Bjørge Næss [schema] Give image fields higher priority for media preview (#506) 3c968dd
Espen Hovlandsdal [test-studio] Update vision 62577ef
Kristoffer J. Sivertsen [design] Mobile fixes (#509) ef49be8
Kristoffer J. Sivertsen [vision] Fixing scroll problem 02bb189
Espen Hovlandsdal [client] Make Promise polyfill details clearer, add help url to thrown error 27fa1a7
Kristoffer J. Sivertsen [form-builder] Styling upload input progress (#511) 8a15a1d
Espen Hovlandsdal [desk-tool] Add timestamp as title attribute on relative dates 10e5287
Bjørge Næss [desk-tool] Publish documents in a transaction (#517) a9f00f3
Bjørge Næss [desk-tool] Persist _createdAt between draft <=> published version of a document (#518) a6f24d3
Kristoffer J. Sivertsen [components] Design/bugfixes (#519) b058e39
Bjørge Næss [infrastructure] Add a command for deploying test studio 9a400a8
Kristoffer J. Sivertsen [components] Mobile bug. Remove padding from DefaultPane 7a05b33
Bjørge Næss [desk-tool] Provide a way to link from a document to a production preview (#521) 7c87e0e
Kristoffer J. Sivertsen [form-builder] Link z-index bug 72a4025
Bjørge Næss [chore] Remove sanity-plugin-vision from lerna.json 20df70e
Simen Svale Skogsrud [mutator] Respect embedded _createdAt property on create patches. Fixes #520 (#525) 75d7b61
Bjørge Næss [test-studio] Add a test case for selecting array items for preview f1ca669
Bjørge Næss [components] Stub a .focus() method on RadioSelect for now. 27c6f19
Bjørge Næss [desk-tool] Minor tweaks: production preview (#526) 2f1c2c0
Bjørge Næss [chore] Add example-studios for movies and blog templates (#529) 304b2a8
Espen Hovlandsdal [mutator] Fix createOrReplace and createIfNotExists mutations f65d19f
Bjørge Næss [chore] Hoist eslint, babel and flow setup (#533) c0aaadf
Bjørge Næss [document-window] Remove compiled files 3c175e8
Bjørge Næss [cli] Tweak moviedb template schema (#532) 29b7fc9
Bjørge Næss [preview] Ignore image cdn parameters from preview.imageUrl (#531) e70b167
Kristoffer J. Sivertsen [components] Not stopPropagation on click outside 9e16052
Kristoffer J. Sivertsen [components] Show lane on split pane resizer ea5b0ff
Bjørge Næss [chore] Use babel plugin env, set explicit env support (#534) 7b1b4b4
Kristoffer J. Sivertsen [form-builder] Fixes that content is selected when moving an item (#536) b60b633
Simen Svale Skogsrud [image-url] Some additional tests validating that the url-builder works for images with no specified crop/hotspot 296b74e
Bjørge Næss [form-builder] Fix collapsible/collapsed defaults on fieldsets (#538) e05026e
Bjørge Næss [form-builder] Display only 'add' on select type button (#539) 883263d
Bjørge Næss [chore] Pin client + observable env support to IE11 75cad15
Bjørge Næss [schema] Fix bug with map and default parameters c29997b
Bjørge Næss [form-builder] Cleanup: remove prepublish task 4201970
Bjørge Næss [core] Use uglify-es instead of uglify-js for minifying (#541) fa14771
Bjørge Næss [chore] Pin Edge support to 14 fafc0c7
Bjørge Næss [form-builder] Minor fixes (#544) 38df4be
Per-Kristian Nordnes [block-tools] Robustify annotation conversion (#543) d52b31c
Per-Kristian Nordnes [form-builder] Fix bug where annotations containing references didn't clean up properly (#542) 9fc8d6f