v0.142.6
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 toimage/*
, 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) | 85c855335
Bjørge Næss | [chore] Upgrade lerna | d49c1df83
Bjørge Næss | [chore] Upgrade prettier | 3e20541e7
Bjørge Næss | [chore] Upgrade TypeScript + misc gulp pkgs | 3971b2403
Bjørge Næss | [chore] Remove Flow config and cruft | d51b12933
Bjørge Næss | [chore] Add TypeScript specific eslint config | a1f2731d2
Bjørge Næss | [chore] Tweak TypeScript config and gulpfile | b6d959005
Bjørge Næss | [chore] Harmonize config between existing TypeScript projects | bb96416b9
Bjørge Næss | [state-router] Migrate from Flow to TypeScript | 76b5bd110
Bjørge Næss | [block-tools] Migrate from Flow to TypeScript | 66d78f4da
Bjørge Næss | [schema] Migrate from Flow to TypeScript | a4d6d7297
Bjørge Næss | [util] Migrate from Flow to TypeScript | c8339820c
Bjørge Næss | [mutator] Migrate from Flow to TypeScript | ca5047e20
Bjørge Næss | [components] Remove Flow annotations | 5e1d5b0fb
Bjørge Næss | [preview] Migrate from Flow to TypeScript | 15a70d92f
Bjørge Næss | [form-builder] Migrate from Flow to TypeScript | 4d1577905
Espen Hovlandsdal | [google-maps-input] Merge value with defaults before setting lat/lng (#1500) | 3a1fe1477
Richard Sewell | [core] fix API generation fails if schema has self-referencing types (#1497) | 6e6122f16
Richard Sewell | [core] Fix subtyped scalars used in array definitions (#1496) | ebf3744a4
Victoria Bergquist | [cli] inform about /create when init new project (#1490) | a8afc599b
Per-Kristian Nordnes | [test-studio] Make test with custom markers (#1505) | 8fb44d961
Victoria Bergquist | [validation] fix slug always required after being set once | 5d96c9faf
Bjørge Næss | [client] Add client.getDocuments (#1507) | e33c44ba2
Bjørge Næss | [base] Use doc endpoint when fetching documents for editing (#1508) | 44a18f457
Espen Hovlandsdal | [form-builder] Make asset upload options optional (#1512) | e6c7a9628
Espen Hovlandsdal | [imagetool] When limiting, use default crop if none specified (#1514) | 8ff80d096
Espen Hovlandsdal | [test-studio] Add nested two-column blocks test case | 0ca4de2cb
Victoria Bergquist | [desk-tool] fix history pane background (#1499) | 0dcd72420
Per-Kristian Nordnes | [form-builder] Block editor: fix design regressions from #1492 (#1516) | 6a8d1c44a
Espen Hovlandsdal | [form-builder] Pass accepted mime types to input (#1517) | 551a2083c
Bjørge Næss | [chore] Add postcss config for typescript-plugin-css-modules | 7ea7af5f0