Skip to content

Releases: sanity-io/sanity

v0.132.1

24 May 15: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

🐛 Notable bugfixes

Fixed a bug causing the delete button on array items to not respond to mouse clicks

📓 Full changelog

Author Message Commit
Bjørge Næss [components] Prevent inner element in button from stealing focus (#834) 892e0ce

v0.132.0

24 May 13: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

This is a bugfix and maintenance release and includes several improvements and stability fixes

✨🐞 Notable improvements and bugfixes

  • Not displaying delete button when editing "empty" array items, instead showing "cancel" (#810)
  • Fixed a bug when drag-drop batch uploading images that caused an edit dialog to pop open for the last array item (#811)
  • When deleting array items, the confirm delete button is now focused by default, and focus is properly restored to the item when closing it (#783)
  • Fixed a bug causing text selection on Safari when dragging to reorder array items (#814)
  • Fixed various dialog sizing issues (#809, #815)
  • Upgraded RxJS to 6.1 and deprecated the @sanity/observable package (#768)
  • Upgraded react-json-inspector (#821)
  • Fixed a race condition that would sometimes display a document as deleted (for a brief period) when publishing it (#822)
  • Fixed a bug causing the style select to not pop up when editing block text in fullscreen mode (#823)
  • The studio base path can now be overridden using an environment variable. Thanks @dan-dr for putting this together! (#819)
  • The studio will now switch to responsive mode when resizing (#807)
  • Fixed a bug causing editing of inline objects to fail (#826)
  • Fixed an issue where buttons got wrong spacing in some cases (#824, #825)
  • Improved detail level of error messages on import failures (#831)

📓 Full changelog

Author Message Commit
Bjørge Næss [form-builder] Show cancel and hide delete buttons if edited item is empty (#810) 972c697
Bjørge Næss [form-builder] Don't open edit dialog for uploaded items (#811) 667659f
Bjørge Næss [form-builder] Fix tab/focus on confirm delete button (#783) 128d801
Bjørge Næss [components] Remove hard coded distance prop on Sortable components and prevent default on sort start (#814) 67fb139
Kristoffer J. Sivertsen Force poppersize when containing blockeditor (#809) c1e21ea
Bjørge Næss [chore] Replace @sanity/observable with RxJS (#768) 13565e3
Kristoffer J. Sivertsen DialogContent component for sizing dialogs (#815) a51044f
Espen Hovlandsdal [chore] Upgrade react-json-inspector (#821) 6358be0
Bjørge Næss [misc] Checkout draft/published as a pair instead of separately (#822) 2080144
Kristoffer J. Sivertsen [components] Fixing styleselect portal (#823) e5e1684
dan-dr [core] Add ability to override project basePath with environment variable (#819) 765fe2c
Kristoffer J. Sivertsen [components] Switch to mobile on resize. No need to refresh browser (#807) bdc174e
Bjørge Næss [form-builder] Use FocusManager with inline items (#826) 69e3bbd
Kristoffer J. Sivertsen Buttons collection and forms spacing (#824) b784101
Kristoffer J. Sivertsen [components] Spacing when using forms outside form-builder (#825) d3b8c54
Bjørge Næss [preview] Fix intersection observable fallback d060f6d
Bjørge Næss [client] Fix wrong import 7fcf9a3
Thomas Drevon [form-builder] Export withValuePath (#829) 29a8802
Espen Hovlandsdal [core] Throw on dataset import failure instead of only printing error (#831) 460a81f

v0.131.2

18 May 20:23
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 causing ecommerce studios to fail on first deploy

📓 Full changelog

Author Message Commit
Thomas Drevon [cli] Add missing folder to ecommerce template (#820) 9cb6161

v0.131.1

15 May 12:49
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

  • Fixes a bug causing the add-button on array of primitives to not work

📓 Full changelog

Author Message Commit
Bjørge Næss [form-builder] Fix invalid prop (#812) 5156a96

v0.131.0

14 May 12:56
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

⌨️ CORS management through CLI

The command line tool now allows you to manage CORS origins without going through the management interface: sanity cors add, sanity cors list and sanity cors delete are your new friends!

📭 Removing empty values

A common complaint has been that "empty" array items sometimes keep hanging around. For example, if you add an item to an array, then closes the add dialog immediately, then the added item was not removed again. This has now been fixed, and if array items are empty when the edit dialog is closed, the item will be removed from the array (see #780 for more details).

🗑 Dropping React 15 support

We launced with React 16 support as of v0.127.0, which was released two months ago. Since then, we have been developing against React 16.2, and since tracking usage of React 16 specific features is hard, we have decided to make it explicit that the studio needs React 16.2 or newer to run. In case you missed it, here's how to upgrade React in your Sanity studio.

🍱 Use layout: 'grid' on your array of images

Make an array look more like an image gallery. Just add options: {layout: 'grid'} to your array. Uses CSS Grid layout to autosize the columns.

ProTip: You can use the layout: 'grid'-option on arrays of any type, not only images.

layout: grid

🗝 Part-ify rendering of login providers

You can now take complete control of how your Studio renders your login providers. Create your own implementation of the LoginDialogContent.js component. Then wire it up in sanity.json:

{
  "implements": "part:@sanity/base/login-dialog-content",
  "path": "MyLoginDialogContent.js"
}

🐛 Notable bugfixes

  • Improved display of the tokenized tags input in readOnly mode
  • Fixed a bug causing errors when geopoint types were used in an array
  • Fixed a bug causing the sanity command to complain about incompatible version for prereleases
  • Fixed a bug causing preview components to erroneously identify numbers and empty values as invalid preview values

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [plugin-loader] Add option to stub CSS loading (#771) 49e6f09
Kristoffer J. Sivertsen [components] Make tags textfield display readOnly correct (#776) 86f73dd
Kristoffer J. Sivertsen Styleselect and official react popper (#777) ba8aadf
Kristoffer J. Sivertsen Responsive dialogs width (#775) 468769f
Bjørge Næss [form-builder] Remove empty values when array dialog closes and pass down undefined as item values if empty (#780) acf0a3b
Bjørge Næss [google-maps-input] Don't overwrite value, just set lat/lng (#781) 0dbbf5c
Bjørge Næss [schema] Remove geopoint as core type (#782) c0495a4
Espen Hovlandsdal [test-studio] Add custom reference input example (#778) 4847a79
Espen Hovlandsdal [chore] Normalize package fields a339d6d
Espen Hovlandsdal [default-layout] Ensure error message inclusion in error boundary (#789) 3fcdd21
Espen Hovlandsdal [test-studio] Add inline object without preview select to objects schema a79db5b
Kristoffer J. Sivertsen Overflowing switch description (#788) 4df78c8
Kristoffer J. Sivertsen [desk-tool] Fix syncing icon and publish button spacing (#787) 39bd39f
Espen Hovlandsdal [core] Add CLI-commands for managing CORS-origins (#790) 7bb4700
even westvang [ecommerce-studio] Change blurb to from localText to localeString (#779) c025d46
Thomas Drevon [default-login] Part-ify rendering of login providers (#793) c6658b2
Espen Hovlandsdal [image-url] Allow using actual query parameters instead of aliases (#792) d36b714
Espen Hovlandsdal [schema] Add missing fields for reference and slug types (#784) 9a79e5b
Espen Hovlandsdal [form-builder] Add overridable part for array input functionality (#795) 7b4bcb1
Knut Melvær [cli] Make upgrade message less confusing (#773) fd93e7d
Kristoffer J. Sivertsen Fix array grid view (#786) 6da04a0
Thomas Drevon [movies-studio] Update google maps api key 0849c5b
Thomas Drevon Fix typo in readme c57680f
Bjørge Næss [chore] Drop support for React 15 (#802) ec41631
Espen Hovlandsdal [image-url] Allow passing asset documents as source (#803) 2f6a7af
Kristoffer J. Sivertsen Button spacing & click to close on dropdown (#794) d98b3bf
Thomas Drevon [cli] Coerce @sanity/core version string before performing satisfaction check (#804) aa5eef2
Bjørge Næss [preview] Don't fail on numbers, booleans and empty values (#805) 869c8c9

v0.130.1

03 May 11:56
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 sanity upgrade would fail to upgrade modules because of inexplicable yarn bug

📓 Full changelog

Author Message Commit
Espen Hovlandsdal Delete Sanity-modules that needs upgrading to work around yarn bug (#774) ceb237c

v0.130.0

03 May 07:03
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

E-commerce sample schema

Till now when you have set up new projects with sanity init you have had the choice between a film database and blog to provide examples of how well known data structures are modeled in Sanity. Now we've expanded this to an e-commerce example.

For an example frontend to use with this schema, check out our Vue/Nuxt.js based ecommerce example frontend

If you don't like blogs, movie databases or e-commerce you can always just:
sanity init --template clean

Error boundaries

If something inside of a tool crashes during rendering, a more user-friendly error message will be displayed.

Default input for date strings

We already had a default input for datetime types, now we also have an input for plain dates (as in date strings without a time segment, e.g. 2018-05-03)

Better feedback on invalid preview config

We have received quite a few error reports that have been caused by invalid values returned from the preview config. Instead of a hard failure in the Studio, these errors should now be handled more gracefully along with a detailed explanation in the developer console.

Node v10 compatibility

Initializing and running a Sanity Studio locally on Node v10 should now work.

📓 Full changelog

Author Message Commit
Bjørge Næss [core] Remove checksum warning until we can provide a way of fixing (#757) 8e9ea1b
Bjørge Næss [preview] Tolerate invalid values returned from preview config and provide helpful errors (#760) 3d14c29
Bjørge Næss [form-builder] Refactor DateTimeInput and add DateInput (#756) 4a97723
Espen Hovlandsdal [cli] Use npm registry for modules. Upgrade yarn to 1.6.0 (#763) 7d062c2
Espen Hovlandsdal [chore] Test on node 10 instead of node 9 (#759) 298ab7f
Espen Hovlandsdal [presence-store] Fix path to entry file (#765) c88c677
Espen Hovlandsdal [reflector-client] Reuse sanity client instead of using get-it directly (#764) 4ad6e6d
Espen Hovlandsdal [form-builder] Add dl-parameter on download links to trigger attachment disposition (#767) e4f10b3
Espen Hovlandsdal [default-layout] Provide error boundary at tool level (#766) 4ea2fa1
Kristoffer J. Sivertsen [cli] Adding ecommerce-studio (#758) 5524c36

v0.129.3

02 May 10:51
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 that could cause the published document to get overwritten by an empty draft when publishing using the hotkey.

📓 Full changelog

Author Message Commit
Bjørge Næss [desk-tool] Prevent empty draft from overwriting published document (#770) f8717f9

v0.129.2

27 Apr 14:42
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 causing sanity init to fail when resolving dependencies in Node.js 10

📓 Full changelog

Author Message Commit
Bjørge Næss [cli] Run yarn with --ignore-engines when resolving dependencies (#762) 14dda34

v0.129.1

24 Apr 10:34
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 sanity start would crash if NODE_ENV was to production

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [core] Remove production server option from start command (#754) 64a327a