v0.137.0

Released Dec 13th 2018

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

Oh, and by the way, if you're using npm > 5.2 you can now do npm init sanity or yarn create sanity to initialize a new Sanity studio project.

✨ Highlights

🧮 Autocollapsing Panes!

The structure builder brought great things like singletons and query based collections. But in the abiliy to drill down by expanding there was also an issue: what happens when you run out of room?

Autocollapsing panes solves this by automatically folding the innermost panes when space becomes tight. It also makes the studio a joy navigate on iPad in landscape format.

💣 > sanity undeploy

You can now remove a deployed studio from our hosting service. This also unassigns the hostname you have chosen for the studio so you can pick a different name when redeploying.

🤪 Wildcards + uncredentialed CORS-origins ⚠️

CORS origins now support wildcards (for example https://*.mycompany.com or http://localhost:*) as well as a flag for whether or not the origin should be allowed to send authenticated requests (using tokens or sessions).

While this is a much requested feature, we want to emphasize that you should be very careful about allowing wildcards in your origins. Most CORS-origins should be uncredentialed, except for hosts that needs to do mutations or see private data (drafts or private datasets).

🐛 Notable bugfixes

  • Fixed a bug in @sanity/color-input causing missing keys for arrays of colors
  • Code input now automatically registers its schema so you can simply use type: 'code' after installing it
  • Fixed a bug where sanity dataset import would not treat special characters in imported asset URLs correctly, leading to 404s
  • Fixed a bug where sanity dataset import could cause unpredictable results if the source contained documents with duplicate IDs
  • Fixed a bug where sanity init plugin would not actually bootstrap any files on Windows
  • Fixed a bug where selecting references on big datasets was slow
  • Support for phones with a notch in landscape mode

📓 Full changelog

AuthorMessageCommit
Kristoffer J. Sivertsencomponents Fix subtitle overflow crop (#1071)e4a92cba6
Kristoffer J. Sivertsendesk-tool Auto collapse panes (#1059)835ad8de2
Kristoffer J. Sivertsencomponents Buttons cleanup (#1067)224a69148
Kristoffer J. Sivertsendesk-tool Autocollapse hover & click area (#1072)f5ba239f8
Espen Hovlandsdalcore Remove unused dependencies1ffa13ba2
Espen Hovlandsdalimport Fix incorrectly encoded URIs in source stream (#1073)28bd33d1f
Bjørge Næsscolor-input Make color input emit setIfMissing w/default value in order to preserve _key (#1074)5826b8bf8
Bjørge Næsscreate-sanity Add create-sanity package (#1075)bc369078e
Bjørge Næsssanity Add sanity package (placeholder) (#1076)94164c604
Kristoffer J. Sivertsencolor-input Object with object with colors (#1078)d697cccbc
Kristoffer J. Sivertsendefault-layout Use safe area to place outside notch (#1077)6b2efef76
Kristoffer J. Sivertsencomponents Sync styleselect with realtime block editor branch (#1079)39895754e
Kristoffer J. Sivertsencomponents Tiny design fixes (#1080)6c0bffe3e
Kristoffer J. Sivertsencomponents Fallback when no onEscape or onClose (#1082)251a0d524
Kristoffer J. Sivertsencomponents Deprecate button collection (#1083)49dde355e
Kristoffer J. Sivertsenform-builder Cap reference search (#1084)bfb354f95
Marius Lundgårdcomponents Use default cursor (#1086)542feaa47
Kristoffer J. Sivertsencomponents Stop propagation when item click (#1089)b5ceb86c9
Kristoffer J. Sivertsencolor-input Readonly color input (#1088)cd6d31aa2
Bjørge Næsspreview Keep latest known snapshot when unsubscribing from offscreen values (#1094)a404170bd
Espen Hovlandsdalcli Fix plugin bootstrapping on Windows (#1099)e93c148f0
Espen Hovlandsdalcore Add support for wildcard + credential-less CORS-origins (#1093)b4ea39716
Espen Hovlandsdalcore Introduce sanity undeploy for undeploying + unassigning studio hostname (#1100)0ddb75372
Kristoffer J. Sivertsenall Alt tag on image (#1097)dc478702d
Kristoffer J. Sivertsenform-builder Not have Edit in title when readOnly (#1090)f7b8039af
Kristoffer J. Sivertsencomponents Hide actions when collapsed (#1087)7f49cd838
Espen Hovlandsdalcode-input Implement schema part, better readme, use lazy requires (#1098)942828dd5
Kristoffer J. Sivertsenform-builder Removing alt on image (#1101)256054cf3
Espen Hovlandsdalimport Throw error when encountering duplicate IDs (#1102)2b9e959be
Kristoffer J. Sivertsendesk-tool Auto collapse fixes (#1103)e0caa547e