npm @sanity/cli 3.47.0
v3.47.0

latest releases: 3.59.2-corel.355, 3.59.2-corel.354, 3.59.2-corel.353...
4 months ago

Installation and upgrading

To initiate a new Studio without installing the CLI globally:

npm create sanity@latest

To upgrade a v3 Studio, run this command in its folder:

npm install sanity@latest

✨ Highlights

Array insert menu

This release includes a much requested upgrade of the array insert menu with various new options available. Including a new and more informative grid view, the ability to organize available schema types in groups, and filter them with a search term, and more. Check out the array article in the docs for examples.

array insert menu

Other features

Adds a type export of all the discovered Sanity schema variants resulting from running sanity typegen in the CLI. This can be useful in mocks/testing environments and used by third party tools to get a list of potential types. This union type is accessible as AllSanitySchemaTypes in the generated type definitions.

🐛 Notable bugfixes

  • Fixes an issue where a text preview image would be included into the Portable Text Editor (PTE) when pasting text from Word.
  • Fixes an issue where navigation options were not being passed as expected when calling a scoped router's navigate function.
  • Fixes an issue where the PTE wouldn't activate when you start dragging files into it.
  • Images in the Hotspot & Crop tool now render faster, and use far less memory.
  • Reduces layout shift when uploading images that replace existing image assets.
  • Fixes an issue that could cause a 409 error when restoring a document from history.
  • Fixes an issue where image and file types might be listed in their lowercase variant in array insert menus

📓 Full changelog

Author Message Commit
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#6916) 7f20f24
renovate[bot] chore(deps): update dependency @sanity/tsdoc to v1.0.72 (#6911) 7d312e4
Cody Olsen feat(deps): upgrade react-rx to v3 (#6883) c0fe9f6
renovate[bot] fix(deps): Update dev-non-major (#6915) f00ca7e
Per-Kristian Nordnes fix(core): fix issue with pasting mixed content (files and text) for pt-input (#6924) fda9387
Rupert Dunk fix(router): pass options on scoped router navigation (#6923) 2fabc2e
Fred Carlsen chore: clean playwright-ct cache on each run (#6928) 286aaed
Fred Carlsen fix(form): activate PTE input when dragging files (#6929) a2be16c
Ash chore: update lockfile (#6932) d935a3a
Cody Olsen fix: improve perf of by creating the canvas in a side effect (#6874) 5d8031b
Cody Olsen fix: layout shift when uploading images (#6930) ae142d4
renovate[bot] fix(deps): Update dev-non-major (#6941) 3300904
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.16.0 (#6942) abe562b
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.3.6 (#6943) c1869b9
renovate[bot] chore(lockfile): update dependency @sanity/import to v3.37.5 (#6940) 6cfe40e
Cody Olsen fix: change useListFormat to no longer violate the rule of hooks (#6876) cae047f
Bjørge Næss fix(sanity): only include create action when restoring a deleted document (#6937) 2736835
Cody Olsen refactor: change memoization of margins to support the rule of hooks (#6875) fbf90ec
Espen Hovlandsdal fix(schema): use base type for title if no subtype title or name is given (#6947) bbe7ac0
Binoy Patel fix(cli): account for base path in the importmap (#6919) 8f28054
renovate[bot] chore(lockfile): update dependency @sanity/bifur-client to v0.4.1 (#6939) e161e0b
Nina Andal Aarvik fix(vision): center loading spinner (#6900) 5943d4f
Christian Grøngaard chore: allow clean:deps to remove test studio node_modules (#6951) 339128d
Christian Grøngaard feat(core): new insert menu for arrays with filtering, type preview support (#6853) 203f135
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#6957) 4b89dd5
renovate[bot] fix(deps): Update dev-non-major (#6958) d89acea
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.4.0 (#6959) 5a38691
Sindre Gulseth feat(typegen): add all schema types exported union 5d97a0e
Sindre Gulseth Revert "feat(typegen): add all schema types exported union" e65adee
RitaDias test(e2e): update e2e flaky tests (#6927) 6b20e5f
Sindre Gulseth feat(typegen): add all schema types exported union (#6962) fa459a4
Ash test(e2e): ensure custom publish action can patch document before publication 17d0bbf
Ash fix(sanity): remove ifDraftRevisionId optimistic lock usage when publishing documents 3064705
Christian Grøngaard fix(core): make array insert menu full width if grid view is configured (#6969) 47d204c
Christian Grøngaard deps(core): update @sanity/insert-menu (#6971) de01b7c
Bjørge Næss fix(structure): don't replace url when navigating back to list after document deletion (#6953) f662ae2
Bjørge Næss refactor(core): change revision history label from 'Version' to the more accurate 'Revision' (#6956) b90820c
Espen Hovlandsdal feat(core): implement basic error reporting (#6914) 02dab2a
Binoy Patel fix(ci): importmap path on windows (#6948) 6bbf609
Carolina Gonzalez feat: notify AUS studio users of new studio versions (#6893) e9b16c8

Don't miss a new cli release

NewReleases is sending notifications on new releases.