Released Sep 273rd 2019


Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Flow => TypeScript

Although this should not be noticable for end users yet, we have now converted all the packages that were using Flow to use TypeScript instead. Check out our blog post for more details.

GraphQL schema fixes

Two long-standing bugs in the GraphQL schema generating code has now been fixed: circular references in types should no longer give stack overflow errors, and subtyped scalars should now work as expected. Huge thanks to Richard Sewell for taking the time to look at these!

Other features

  • Added the getDocuments() method to @sanity/client for fetching multiple documents in one go. Note: this method should be used sparingly and performing a GROQ query is usually a better option.

🐛 Notable bugfixes

  • Inform users about when running sanity init
  • Fixed a bug where slugs would always be required after writing it once and then deleted it
  • Fixed history pane background color for better Studio customization experience
  • Fixed a bug where adding geopoints to arrays through @sanity/google-maps-input would break
  • Fixed a bug where drag-and-drop of files to an array would crash
  • Fixed a bug where changing the crop area of an image would crash when not first setting a hotspot
  • Fixed a bug where any configured accept parameter would not be passed down to the underlying input. Also changed the default accepted file types for images to image/*, which should provide a more user-friendly way to select images

📓 Full changelog

Bjørge Næsschore Upgrade dev tooling (babel + eslint, etc)85c855335
Bjørge Næsschore Upgrade lernad49c1df83
Bjørge Næsschore Upgrade prettier3e20541e7
Bjørge Næsschore Upgrade TypeScript + misc gulp pkgs3971b2403
Bjørge Næsschore Remove Flow config and cruftd51b12933
Bjørge Næsschore Add TypeScript specific eslint configa1f2731d2
Bjørge Næsschore Tweak TypeScript config and gulpfileb6d959005
Bjørge Næsschore Harmonize config between existing TypeScript projectsbb96416b9
Bjørge Næssstate-router Migrate from Flow to TypeScript76b5bd110
Bjørge Næssblock-tools Migrate from Flow to TypeScript66d78f4da
Bjørge Næssschema Migrate from Flow to TypeScripta4d6d7297
Bjørge Næssutil Migrate from Flow to TypeScriptc8339820c
Bjørge Næssmutator Migrate from Flow to TypeScriptca5047e20
Bjørge Næsscomponents Remove Flow annotations5e1d5b0fb
Bjørge Næsspreview Migrate from Flow to TypeScript15a70d92f
Bjørge Næssform-builder Migrate from Flow to TypeScript4d1577905
Espen Hovlandsdalgoogle-maps-input Merge value with defaults before setting lat/lng (#1500)3a1fe1477
Richard Sewellcore fix API generation fails if schema has self-referencing types (#1497)6e6122f16
Richard Sewellcore Fix subtyped scalars used in array definitions (#1496)ebf3744a4
Victoria Bergquistcli inform about /create when init new project (#1490)a8afc599b
Per-Kristian Nordnestest-studio Make test with custom markers (#1505)8fb44d961
Victoria Bergquistvalidation fix slug always required after being set once5d96c9faf
Bjørge Næssclient Add client.getDocuments (#1507)e33c44ba2
Bjørge Næssbase Use doc endpoint when fetching documents for editing (#1508)44a18f457
Espen Hovlandsdalform-builder Make asset upload options optional (#1512)e6c7a9628
Espen Hovlandsdalimagetool When limiting, use default crop if none specified (#1514)8ff80d096
Espen Hovlandsdaltest-studio Add nested two-column blocks test case0ca4de2cb
Victoria Bergquistdesk-tool fix history pane background (#1499)0dcd72420
Per-Kristian Nordnesform-builder Block editor: fix design regressions from #1492 (#1516)6a8d1c44a
Espen Hovlandsdalform-builder Pass accepted mime types to input (#1517)551a2083c
Bjørge Næsschore Add postcss config for typescript-plugin-css-modules7ea7af5f0