Skip to content

Releases: sanity-io/sanity

v0.122.4

01 Dec 14:19
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed bug where JSONPath selectors on array items might match the last element in the array instead of none
  • Fixed bug where block content might not have keys set properly

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [webpack-integration] Allow passing options to CSSNext/Lost 6e4af6a
Espen Hovlandsdal [resolver] Fix sync functions being forced to async 137bcbc
Espen Hovlandsdal [plugin-loader] Use postcss plugins, improved resolving 494e6bf
Espen Hovlandsdal [form-builder] Set project ID for tests, allow local module resolution 31c6ada
Espen Hovlandsdal [form-builder] Fix array index resolving bug 93be532
Espen Hovlandsdal [form-builder] Make out-of-sync warning full-width 1725b47
Bjørge Næss [form-builder] Fix false weak mismatch false positive (#390) 99eb597
Per-Kristian Nordnes [block-tools] Set keys on blocks and spans (#387) 32b5d09
Bjørge Næss [test-studio] Minor cleanup 468c89c
Bjørge Næss [form-builder] Support skipping directly to block editor (#386) db5aabe
Bjørge Næss [default-layout] Extract url state into its own store and support tool precedence for intent links (#388) d0f1ddb
Bjørge Næss Experimental feature: Spaces (#389) 9c465dc
Bjørge Næss [test-studio] Tweak test cases and add a few more (#391) f2aeaf3
Bjørge Næss [default-layout] Prevent unnecessary rerenders of Search component (#394) 65ec018
Bjørge Næss [form-builder] Memoize hot methods (#395) 3c55877

v0.122.2

24 Nov 15:10
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Upgrade yarn to latest version b9639db

v0.122.1

24 Nov 12:07
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed a bug where new users sometimes would have to run sanity init twice when not authenticated

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Move resolving of login action to an earlier stage 4b1d8c9

v0.122.0

24 Nov 11:48
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Faster CLI installation

This release changes the way the CLI is distributed - bundling all dependencies in order to create a very fast installation.

Weak references

You can now flag references as weak in your schema, in the rare case where you want referenced documents to be deletable without first unsetting the reference. Should be used with caution!

📓 Full changelog

Author Message Commit
Thomas Drevon [client] Use correct URL for observable source code 337537a
Espen Hovlandsdal [base] Fix outdated modules message (#363) 63efb77
Espen Hovlandsdal [test-studio] Add staging project id 35368cc
Bjørge Næss Add support for weak references (#366) ac13d15
Espen Hovlandsdal [cli] Improve help text on init command e578163
Espen Hovlandsdal [cli] Show more useful next steps after initializing project 536eb13
Bjørge Næss [form-builder] Move item remove logic to ConfirmButton (#368) 10a0245
Espen Hovlandsdal [cli] Use webpack to bundle all code to a single file 64b1418
Espen Hovlandsdal [cli] Code style fixes 7329229
Espen Hovlandsdal [cli] Copy xdg-open binary to bin directory on pack 78ddc6e
Espen Hovlandsdal [client] Fix incorrect link and query examples in readme 9124e24
Espen Hovlandsdal [cli] CommonJSify debug module a72d909
Espen Hovlandsdal [cli] Ensure template manifest is not inside node_modules bdd4aa3
Espen Hovlandsdal [cli] Support specifying dependencies in plugin templates 529868b
Espen Hovlandsdal [cli] Allow specifying a minimum CLI version for templates 467f955
Espen Hovlandsdal [chore] Fix missing @sanity prefix 03780ff
Espen Hovlandsdal [cli] Ban node versions 8.1.0 and 8.1.1 due to input issues 97d52b5
Espen Hovlandsdal [cli] Add more commands to list of core cmds d8b0fc7

v0.121.0

13 Nov 13:43
Compare
Choose a tag to compare

Upgrade with:

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Image url

This release intoduces the @sanity/image-url package that allows you to quickly generate image urls from Sanity image records + a builder api for the Sanity image pipeline url options. Check out the readme for more info.

🐛 Notable bugfixes

  • Fixed React Native compatibility in @sanity/client + a few other React Native related issues.

📓 Full changelog

Author Message Commit
Bjørge Næss [components] Don't enforce stickToTop in EditItemPopover 6d83d9a
Per-Kristian Nordnes [default-login] Allow sending a React node as prop to title and description (#350) 6656fc1
Bjørge Næss [test-studio] Add a fieldsets test type 111528f
Simen Svale Skogsrud [image-url] Introducing the image-url package (#352) 426cf91
Espen Hovlandsdal [cli] Add CLI methods for manage and docs (#351) aa24531
Bjørge Næss [observable] Add .babelrc to .npmignore + some dotfiles cleanup (#353) 7c3db95
Bjørge Næss [client] Upgrade get-it (#354) 3e7351b
Espen Hovlandsdal [cli] Allow bootstrapping plugins from templates (#355) e9a62be
Bjørge Næss [chore] Add a release-notes script that outputs a release notes template (#356) 06bf025

v0.120.0

08 Nov 14:25
Compare
Choose a tag to compare

Upgrade with

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Fix all the popover things!

Popovers and dialogs in the studio just got a lot better. We have fixed several recurring issues related to layer placement and scrolling. In addition:

  • Escape only closes the topmost layer. You can hit Shift+Escape to close all.
  • Click outside to close works in a more reliable way.
  • Weird scrolling issues should be fixed.

🐛 Notable bugfixes

  • Fixed a bug that caused markDefs on block text to be duplicated with the same key.
  • Misc. improvements in the command line interface (CLI).

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Use new moviedb dataset URL (#329) 077222f
Bjørge Næss [form-builder] Add a separate part for patch-event (#327) 41adefb
Simen Svale Skogsrud [presence-store] Introducing the PresenceStore (#330) 30b79a1
Espen Hovlandsdal [core] Improve minification error messages (#328) 7624dd1
Espen Hovlandsdal [cli] Filter yarn output (#331) 57300b2
Bjørge Næss [form-builder] Fix race condition when patching block node values (#333) 9f189e1
Kristoffer J. Sivertsen [form-builder] Respect editModal schema option on Block Editor (#332) aef99c9
Bjørge Næss [example-studio] Simplify and fix a a few issues w/protein input example (#334) 7333288
Espen Hovlandsdal [client] Deprecate asset delete method (#336) 81ab6bf
Espen Hovlandsdal [core] Prompt for dataset on import/export (#337) 806f1f1
Bjørge Næss [example-studio] Use protocol relative url 7767ecd
Espen Hovlandsdal [core] Hint about installing plugins on plugin resolve failure (#338) 3ec63c3
Espen Hovlandsdal [base] Define schema type part for better plugin support (#292) 63fdc3b
Espen Hovlandsdal [core] Use PATCH-endpoint for setting studio host (#339) 8033a3c
Kristoffer J. Sivertsen [components] Add a general Popover dialog (#297) 4f61ac8
Bjørge Næss [components] Fix stacking (#297) 0ba11ff
Espen Hovlandsdal [core] Check if installed React version is supported on startup (#340) 8811ad8
Espen Hovlandsdal [default-layout] Center project name (#341) ab91d37
Kristoffer J. Sivertsen [components] Minor fixes after capture outside clicks (#342) d935792
Espen Hovlandsdal [document-window] Add initial prototype (#217) d6b6ff9
Kristoffer J. Sivertsen [components] Fix popover scrolling (#343) a0d96db
Bjørge Næss [form-builder] Don't pass unsupported prop on select 070e759
Bjørge Næss [schema] Fix typo 13d4b1b
Per-Kristian Nordnes [block-tools] Fix bug where markDefs where put incorrectly on Slate block's data (#347) 5c35d33
Kristoffer J. Sivertsen [components] Pass down scroll container as context (#349) 5211440

v0.119.0

02 Nov 16:02
Compare
Choose a tag to compare

Upgrade with

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Jump to referenced documents

You can now click on a link icon on references to jump to the referenced document.

image

Moar query strings!

Query string length limit for GET-queries is now 11kB, a substantial increase from the previous 2kB. This means that more requests will be GETs instead of POSTs, which will make more queries cacheable and cut down on the overall roundtrip time for larger queries.

Block-tools module

We have made an own module with various tools for our block content. Most notably is the new HTML Deserializer which will convert HTML into the Sanity block format. This is a great tool for pouring existing HTML content into your Sanity datasets. Read more

Dropped Node 4 support

We are starting to run into several dependencies which are no longer supporting node 4. This is getting quite tedious, and even though Node 4 is still in LTS for another 6 months, we feel we can justify the bump because this is developer tooling that will run locally, not on servers which might be hard to upgrade.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [client] Increase query size limit to 11kB (#309) def94dc
Bjørge Næss [desk-tool] Link to getting started guide if there are no schema types (#304) f86bc96
Kristoffer J. Sivertsen [desk-tool] Styling GetStarted (#304) 589ec9f
Espen Hovlandsdal [webpack-integration] Resolve symlinks to real files, cache imports (#312) 4677c65
Bjørge Næss [desk-tool] Keep info about type mismatch, and do type mismatch check only for '*' + on cWRP (#311) 08e6e91
Kristoffer J. Sivertsen [components] Respecting border-radius variable where needed (#315) 1cea012
Kristoffer J. Sivertsen Cleanup of sanity logo (#314) 43c7434
Kristoffer J. Sivertsen [components] Trivial fix for simple white button 00f0989
Kristoffer J. Sivertsen [form-builder] Link to reference in array and reference select (#317) 19241ab
Bjørge Næss [chore] Normalize dependencies (#322) db74ff8
Simen Svale Skogsrud [reflector-client] Initial commit (#319) 34b08a3
Espen Hovlandsdal [cli] Fix plugin init not serializing sanity.json (#324) 4ffe1f2
Per-Kristian Nordnes [block-tools] Introducing block tools module (#318) ba01881
Per-Kristian Nordnes [form-builder] Delete code which now is @sanity/block-tools (#318) c7d892e
Bjørge Næss [schema] Improve reference type validation (#316) a10c51b
Espen Hovlandsdal [chore] Bump minimum node version requirement to >= v6 (#326) ae079e2

v0.118.0

25 Oct 13:40
Compare
Choose a tag to compare

Upgrade with

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

Schema validation!

The Sanity Studio will now refuse to load if the schema contains critical errors, and give helpful hints about how the errors can be fixed. The validation is by no means complete, and we will keep detecting problems and adding helpful warnings/errors in the future.

Schema validation
Any schema problems that are not critical will will appear as warnings in the developer tool console.

Schema type document

We have introduced a new schema type named document. This is the type to use for all the schema types that you want to be able to create documents from. Read more about how to start using this type here.

🐛 Notable bugfixes

  • The input for datetime now supports readOnly.
  • Reference select will now position its dropdown menu above the field if there's not enough space below.
  • Fixed an issue with reference search yielding a query that targeted wrong fields.

📓 Full changelog

Author Message Commit
Bjørge Næss [form-builder] Support readOnly on datetime fields. Fixes #291 (#294) 8fc538d
Bjørge Næss Add toplevel document type (#293) a723ac2
Kristoffer J. Sivertsen [components] Automatic Top/bottom position on dropdown on SearchableS… (#296) 1b399f7
Bjørge Næss [core] Remove checksum warning until we can provide a way of fixing (#298) 7c1091f
Bjørge Næss Schema validation (#299) dcc39fd
Bjørge Næss [form-builder] Fix issue with recursive string field lookup for reference search cc359d8

v0.117.0

19 Oct 13:52
Compare
Choose a tag to compare

Upgrade with

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

  • Adds the datetime schema type. You can now use this if you just want a simple datetime field for storing UTC date strings.
  • The sanity-plugin-vision package has been renamed to @sanity/vision. More info
  • The @sanity/date-input package has been renamed to @sanity/rich-date-input. More info

🐛 Notable bugfixes

  • Fixes a layering issue with date picker causing it to appear underneath text inputs.
  • Fixes a bug in the Google Maps input that made it impossible to remove location from a geolocation field.

📓 Full changelog

Author Message Commit
Bjørge Næss [google-maps-input] Make remove button actually remove (#283) 9fa5ca6
Bjørge Næss [base] More asset schema tweaks (#282) 192e4a8
Per-Kristian Nordnes Feature: allow global logins with the default-login (#273) fe152cb
Per-Kristian Nordnes [default-login] Don't add projectId param when global login (#287) a756339
Per-Kristian Nordnes [default-login] Children can be a function that passes the user to the wrapped content (#288) 245bbf3
Per-Kristian Nordnes [default-login] Fix error in README 76218b0
Kristoffer J. Sivertsen [components] Respect disabled prop on input components and cleanup (#286) 9c5c16e
Thomas Drevon [form-builder] [schema] Add datetime type with default input (#275) 58493b8
Bjørge Næss [infrastructure] Move vision plugin to @sanity/vision (#289) d47a25a
Bjørge Næss [form-builder] Remove more validation cruft (fixes proptypes warning) 5f15276
Bjørge Næss [infrastructure] Remove sanity-plugin-vision 38c1e67

v0.116.0

12 Oct 15:07
Compare
Choose a tag to compare

This might be our most significant release to date. Includes a major revamp of content studio interface as well as a bunch of minor bug fixes and code enhancements improving overall quality and stability.

Upgrade your content studio with:

sanity upgrade

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

npm install --global @sanity/cli

✨ Highlights

👓 Sharper UI

New look

🆙 Batch upload files to arrays

We have been thinking hard about how to provide generics for uploading stuff to Sanity. The groundwork is in place, and this release enables batch uploading files from local disk to arrays by drag and drop:

Batch uploads

We will expand on this, enabling upload hooks for converting local files (and clipboards) to whatever schema content you'd like.

🏞 Select image from library

Instead of just uploading a new image, you can now choose images from previously uploaded images:

Select image

🐛 Notable bugfixes

  • Fixed a bug causing the delete dialog to fail when displaying referring documents
  • Improve Google Maps input with higher resolution preview image, better feedback in case of misconfiguration
  • Fixed login issues with browsers, lookin' at you iOS 11, not accepting our project host API cookie (third party) from the Sanity Studio host.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [import] Allow importing from array (#228) a2c762c
Espen Hovlandsdal [infrastructure] Upgrade to Webpack 3 (#224) f7a7021
Bjørge Næss [schema] Fix wrong asset type names and use asset.originalFilename as default preview title for images (#235) 4de8a0c
Bjørge Næss [infrastructure] Add infrastructure for generic uploads and support batch uploading to arrays (#229) 655e652
Bjørge Næss [base] Previews: fetch document snapshot immediately, debounce subsequent listener events instead 44667a0
Bjørge Næss [form-builder] Make resolveUploader optional for ArrayInput 5bd01c5
Bjørge Næss [form-builder] Simplify input resolving (#234) 64dcfb3
Bjørge Næss [chore] Upgrade flow-bin and regenerate yarn.lock (#236) 868cc8a
Espen Hovlandsdal [cli] Don't require logged in user on unattended bootstrap. Fixes #237 f5d6fc4
Espen Hovlandsdal [infrastructure] Basic continuous integration setup (#238) 488fbd8
Espen Hovlandsdal [components] Bump default media preview to 160px (#233) 3ae476b
Espen Hovlandsdal [infrastructure] Cache yarn dependencies on travis 4907a31
Espen Hovlandsdal [storybook] Skip empty lines and progress lines 747979f
Espen Hovlandsdal [storybook] Fix bad filtering step for webpack loaders ad378b2
Espen Hovlandsdal [server] Add missing dependencies ad7b49e
Bjørge Næss [form-builder] Make it possible to select existing image asset (#230) b0b0688
Espen Hovlandsdal [cli] Ensure CLI exits with positive error code on error (#240) c4f741a
Bjørge Næss [form-builder] Misc. minor adjustments uploader infrastructure (#241) 4380338
Espen Hovlandsdal [client] Specify metadata to extract with extract-option (#242) 8b7e61a
Espen Hovlandsdal [base] Add file size field to asset types (#243) f94dd23
Bjørge Næss [desk-tool] Fix issues with list of referring documents in the delete/unpublish dialogs (#244) 7adb9b7
Bjørge Næss [form-builder] Rewrite how we limit concurrent uploads (#245) cc503b1
Espen Hovlandsdal [code-input] Remove lockfile c2e8c1c
Espen Hovlandsdal [chore] Don't use/generate lockfiles d36dfde
Kristoffer Sivertsen [css] Fixing color syntax c65d2eb
Kristoffer Sivertsen [css] Minus with space on the color syntax 6057cf2
Bjørge Næss [cli] Fix missing eslint-config dependency and fix lint error 0fb6b6b
Bjørge Næss [base] Wrap PreviewSubscriber in element (#247) 0dd2a28
Bjørge Næss [form-builder] Fix lint errors (#248) b4bf026
Espen Hovlandsdal [base] Allow overriding the sanity root part ae0f2e7
Bjørge Næss [form-builder] Remove validation (#250) e10220c
Thomas Drevon [google-maps-input] Fix/geopoint debug (#249) 3bbbfc0
Bjørge Næss [base] Use span instead of div as wrapper element in PreviewSubscriber (#252) 42c15b6
Espen Hovlandsdal [server] Lock react-hot-loader to 3.0.0-beta.7 f3001ee
Bjørge Næss [chore] Replace moment with date-fns (#251) 6c79094
Bjørge Næss [server] Fix issue with webpack/moment (#253) ea55a97
Espen Hovlandsdal [chore] Add script to symlink dependencies from monorepo to project (#254) 1fcc70b
Espen Hovlandsdal [core] Fix help text for dataset list command (#256) 8c8663c
Espen Hovlandsdal [chore] CI: Symlink dependencies of newly created project (#257) 6c83ef2
Bjørge Næss [form-builder] Remove unused part ce40639
Thomas Drevon [google-maps-input] Fix/minor geo and cli fixes (#259) 6c88656
Kristoffer J. Sivertsen [design] Rework (#231) 77bf40a
Bjørge Næss [default-layout] Close search on select and escape (#262) a0d7095
Bjørge Næss [form-builder] Sort assets by last updated (#265) a5c888f
Bjørge Næss [desk-tool] Fix styling of referring documents list (#266) 0a3e01a
Bjørge Næss [default-layout] Make global search open on arrows + input click (#267) 61b0937
Per-Kristian Nordnes [default-login] Test cookies and allow for whitelisting before logging in (#271) a731831
Per-Kristian Nordnes [default-login] Streamline spinners (#272) 5d23935