npm @sanity/cli 3.8.0
v3.8.0

latest releases: 3.57.4, 3.57.4-memoized-form-state.18, 3.57.4-upgrade-vite-v5.9...
18 months ago

Installation and upgrading

To initiate a new Studio without installing the CLI globally:

npx create-sanity@latest

To upgrade a v3 Studio:

npm install sanity@latest

✨ Highlights

Improved global create menu

The global create menu has been updated with alphabetically sorted options and a search field, providing a more convenient way to find a desired document. The menu has also been redesigned to appear in a popover instead of a full screen dialog for improved UX and less context switching.

🐛 Notable bugfixes

  • Fixes a recent regression in the Portable Text Editor where pasting content into an empty editor would cause an error
  • Fixes content overflow bug for query results in Vision and adds scroll bars to the result pane
  • Fixes issue where focus was not being returned to the editor after changing the style of a Portable Text block
  • Improves performance and issues related to validation in the Portable Text Editor

📓 Full changelog

Author Message Commit
Bjørge Næss refactor(perf-runner): convert perf runner to a cli + various improvements (#4298) bb9bcb9
Bjørge Næss chore(perf): add test for large array b454c8c
Binoy Patel chore(perf): add test for editing another field in large doc 1985a55
Herman Wikner feat(core): improve global create menu (#4288) ea69cf4
Per-Kristian Nordnes test(test-studio): rename schema file .ts > .tsx cc1937d
Per-Kristian Nordnes fix(portable-text-editor): remove unused props left behind fc6326f
Per-Kristian Nordnes refactor(portable-text-editor): rename type > schemaType + add schemaType to all rendercallbacks 2024861
Per-Kristian Nordnes refactor(form/imputs): fix issues and improve PT-input custom rendring fdec8fc
Per-Kristian Nordnes test(portable-text-editor): fix changed prop name 72746b2
Per-Kristian Nordnes refactor(form/inputs): improve BlockObject code 30fd991
Per-Kristian Nordnes refactor(form/inputs): refactor PT-input inlineObject code 01b4377
Per-Kristian Nordnes refactor(form/inputs): address minor code style improvements from PR review b447bb6
Per-Kristian Nordnes refactor(portable-text-editor): remove legacy code no longer needed f3b6c97
Per-Kristian Nordnes fix(form/inputs): fix popover open/close state issue with PT-input 921319c
Per-Kristian Nordnes test(portable-text-editor): update snapshot ed3eb32
Per-Kristian Nordnes refactor(form/inputs): remove unnecessary div aa381a7
Per-Kristian Nordnes refactor(form/inputs): improve block/inline-block actions handling e040c42
Per-Kristian Nordnes refactor(form/inputs): streamline Annotation custom rendering 9264d31
Per-Kristian Nordnes fix(form/inputs): fix wrong mode for delete inline object call c92586f
Per-Kristian Nordnes fix(form/inputs): mark as not contentEditable 0d79679
Per-Kristian Nordnes fix(portable-text-editor): remove redundant and incorrect hook 485e18b
Per-Kristian Nordnes fix(portable-text-editor): fix issue with focused and selected prop for leaves 1766c63
Per-Kristian Nordnes refactor(portable-text-editor): optimize performance for path conversions f3eaf40
Per-Kristian Nordnes fix(form/inputs): test for length of focusPath before creating initial selection c571694
Per-Kristian Nordnes refactor(form/inputs): refactor PT-input customization props e9f496f
Per-Kristian Nordnes fix(portable-text-editor): fix incorrect path matching with diffMatchPatches 3e121d4
Per-Kristian Nordnes refactor(portable-text-editor): sync value more delicately 1c22357
Per-Kristian Nordnes chore(form/inputs): remove unused legacy code eec695a
Per-Kristian Nordnes fix(form/inputs): fix invalid CSS value 0f42777
Per-Kristian Nordnes fix(portable-text-editor): ensure that changed inlineBlocks gets correct _key aea3b23
Per-Kristian Nordnes refactor(form/inputs): complete block customization support and refactor code 4cc3b59
Per-Kristian Nordnes dev(test-studio): restore simpleBlock schema 01e39af
Per-Kristian Nordnes refactor(portable-text-editor): make useSyncValue more readable b253bbc
Per-Kristian Nordnes refactor(portable-text-editor): add backwards comp. for renamed prop. 0392d13
Per-Kristian Nordnes fix(portable-text-editor): fix useMemo deps gone wrong 2b3004b
Espen Hovlandsdal chore: drop unused smoke test (#4280) 53e5498
Espen Hovlandsdal chore: drop unused mock files (#4279) 01a3cda
Espen Hovlandsdal chore: refactor e2e test setup d92a606
Espen Hovlandsdal ci: add e2e test workflow 61c73a9
Binoy Patel fix(vision): fix results getting cut off in vision (#4287) 63753c2
Per-Kristian Nordnes fix(portable-text-editor): make deprecated property non-enumerable b9f0b5f
Cody Olsen fix: upgrade @sanity/eventsource (#4303) 55c4f31
Per-Kristian Nordnes (form/inputs): PT: fix various path and selection issues (#4310) 1690bee
Per-Kristian Nordnes PTE: Improve validation and value propagation (#4307) 57ac64e
Binoy Patel chore(perf): add perf tests for different array items (#4306) 137c701
Per-Kristian Nordnes fix(portable-text-editor): fix issue with setIfMissing and insert patches on empty editor 3aee080
Per-Kristian Nordnes test(portable-text-editor): update test to reflect recent changes to empty value handling 6d8e5b4
Per-Kristian Nordnes test(portable-text-editor): support pasting in collab test env. cec4b3b
Per-Kristian Nordnes test(portable-text-editor): test pasting into the editor bbb6a2b
Per-Kristian Nordnes refactor(portable-text-editor): improve selection management 8155969
Per-Kristian Nordnes test(portable-text-editor): temp. disable flakey expectation on CI a85b98d

Don't miss a new cli release

NewReleases is sending notifications on new releases.