npm @sanity/base 0.142.6
v0.142.6

latest releases: 2.36.2, 2.36.2-weighted-search.16, 2.36.2-weighted-search.10...
4 years ago

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 sanity.io/create 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

Author Message Commit
Bjørge Næss [chore] Upgrade dev tooling (babel + eslint, etc) 85c8553
Bjørge Næss [chore] Upgrade lerna d49c1df
Bjørge Næss [chore] Upgrade prettier 3e20541
Bjørge Næss [chore] Upgrade TypeScript + misc gulp pkgs 3971b24
Bjørge Næss [chore] Remove Flow config and cruft d51b129
Bjørge Næss [chore] Add TypeScript specific eslint config a1f2731
Bjørge Næss [chore] Tweak TypeScript config and gulpfile b6d9590
Bjørge Næss [chore] Harmonize config between existing TypeScript projects bb96416
Bjørge Næss [state-router] Migrate from Flow to TypeScript 76b5bd1
Bjørge Næss [block-tools] Migrate from Flow to TypeScript 66d78f4
Bjørge Næss [schema] Migrate from Flow to TypeScript a4d6d72
Bjørge Næss [util] Migrate from Flow to TypeScript c833982
Bjørge Næss [mutator] Migrate from Flow to TypeScript ca5047e
Bjørge Næss [components] Remove Flow annotations 5e1d5b0
Bjørge Næss [preview] Migrate from Flow to TypeScript 15a70d9
Bjørge Næss [form-builder] Migrate from Flow to TypeScript 4d15779
Espen Hovlandsdal [google-maps-input] Merge value with defaults before setting lat/lng (#1500) 3a1fe14
Richard Sewell [core] fix API generation fails if schema has self-referencing types (#1497) 6e6122f
Richard Sewell [core] Fix subtyped scalars used in array definitions (#1496) ebf3744
Victoria Bergquist [cli] inform about /create when init new project (#1490) a8afc59
Per-Kristian Nordnes [test-studio] Make test with custom markers (#1505) 8fb44d9
Victoria Bergquist [validation] fix slug always required after being set once 5d96c9f
Bjørge Næss [client] Add client.getDocuments (#1507) e33c44b
Bjørge Næss [base] Use doc endpoint when fetching documents for editing (#1508) 44a18f4
Espen Hovlandsdal [form-builder] Make asset upload options optional (#1512) e6c7a96
Espen Hovlandsdal [imagetool] When limiting, use default crop if none specified (#1514) 8ff80d0
Espen Hovlandsdal [test-studio] Add nested two-column blocks test case 0ca4de2
Victoria Bergquist [desk-tool] fix history pane background (#1499) 0dcd724
Per-Kristian Nordnes [form-builder] Block editor: fix design regressions from #1492 (#1516) 6a8d1c4
Espen Hovlandsdal [form-builder] Pass accepted mime types to input (#1517) 551a208
Bjørge Næss [chore] Add postcss config for typescript-plugin-css-modules 7ea7af5

Don't miss a new base release

NewReleases is sending notifications on new releases.