github sanity-io/sanity v2.21.5

latest releases: v3.64.1, v3.64.0, v2.36.6...
3 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

🐛 Notable bugfixes

  • Fixes a bug where if a space was configured as the default but not the first in the spaces array, the initial studio load would redirect to the correct URL but not configure the client to use the correct dataset.
  • Fixes an edge case for user-defined components. All user-defined components are re-rendered on navigation regardless if the structure child is a function or not.
  • Fixes an issue where user-defined components would not be hidden when pane was collapsed.
  • Fixes sluggish UI in the image select dialog when the list contained large GIFs.
  • Fixes image select dialog scrolling to top when loading a new page.
  • Fixes an issue where deploying a GraphQL API might crash if schema-imported component tries to access localStorage.
  • Fixes an issue where switching betweeen two "singletons" (document list items) without a defined schema type might result in the incorrect schema type being used.
  • Fixes a styling issue in the @sanity/vision autocomplete styling.
  • Fixes an earlier regression that caused the withDocument higher-order component to pass on the edited document before it was fully loaded.
  • Fixes a bug where removing an annotation in the beginning of a Portable Text block would accidentally mutate trailing annotations inside that same block.

📓 Full changelog

Author Message Commit
Rico Kahler fix(desk-tool): force re-renders on user components on navigation (#2868) d8bd508
Espen Hovlandsdal fix(default-layout): respect space redirect on initial load (#2874) a8656fd
Rico Kahler refactor(desk-tool): up TS coverage; introduce pane types (#2853) 4fbdb53
hermanwikner fix(desk-tool): hide custom pane content if the pane is collapsed 1a53747
Fred Carlsen fix(form-builder): fix performance issues in default image source (#2873) 1bde86b
Victoria Bergquist refactor(form-builder): remove unused array item warning component (#2828) 2a884a7
Espen Hovlandsdal fix(core): use non-opaque origin when mocking browser env f5054ea
Fred Carlsen fix(vision): fix codemirror autocomplete styling (#2875) 9b10c55
hermanwikner fix(desk-tool): add missing dependency in useMemo in FormView bf9d007
hermanwikner fix(desk-tool) reset documentType when documentId changes in useDocumentType d0468f5
Bjørge Næss fix(base): return ready state from useEditState() 0326d9c
Per-Kristian Nordnes fix(portable-text-editor): fix bug with removing annotations 9a9afa9

Don't miss a new sanity release

NewReleases is sending notifications on new releases.