npm @sanity/cli 3.41.0
v3.41.0

latest releases: 3.42.2-canary.38, 3.42.1, 3.41.3-before-pane-break.11...
11 days ago

Install or upgrade Sanity Studio

To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.

If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.

✨ Highlights

  • The Portable Text Editor (PTE) now supports drag-n-dropping + pasting of images and files into Image and File blocks.

🐛 Notable bugfixes

  • Fixes a bug where importing a variable inside an imported file would fail in Typegen.
  • Fixes issues in the PTE where tools would show as being active for a selection when only part of the selection used the tool. Now tools will show as active only when all highlighted selections use the tool.
  • Fixes an Attempted import error related to using swr in embedded studios.
  • Fixes an issue in which listeners would sometimes not close if they were unsubscribed from shortly after opening.
  • Fixes an issue in which users were incorrectly seeing the scheduled publishing upsell UI.
  • When child within the PTE is created without a _key, we now automatically create one for it, avoiding unnecessary warning.
  • Fixes an issue in tasks in which the UI showed that they were created but the transaction didn't end.

📓 Full changelog

Author Message Commit
Herman Wikner feat(comments): add telemetry (#6541) 2d35256
Sindre Gulseth fix(typegen): pass resolved path instead of the imported path (#6540) e7ffe93
Cody Olsen fix: use vercelStegaClean util from @vercel/stega (#6544) 790bc8f
Pedro Bonamin fix(pte): preserve block key when pressing enter at start of block (#6521) 7df5396
Ash fix(sanity): do not order by _updatedAt when relevance ordering is used with Text Search API search strategy (#6537) 0ede4cf
Pedro Bonamin chore(test-studio): bump vercel stega version (#6545) 96f3841
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#6547) ad28225
renovate[bot] fix(deps): update dependency @sanity/client to ^6.16.0 (#6548) 35b19c2
Tommy Petty chore(i18n): fix imports for useTranslation (#6517) 869b698
jordanl17 fix(pte): tools are active only when all blocks use the tool (#6524) 169e5fd
renovate[bot] chore(deps): update dependency @sanity/visual-editing to v1.8.17 (#6551) 24f97ab
Binoy Patel chore: package build (#6394) 5a889fc
Rico Kahler fix: remove unconditional external from vite build (#6554) f1e9546
Cody Olsen fix: inline swr, date-fns-tz and @vvo/tzdb to restore embedded studios (#6553) 9a50252
renovate[bot] chore(deps): update dependency @sanity/pkg-utils to v6.8.10 (#6549) f8f1b47
renovate[bot] chore(deps): update dependency @vercel/stega to v0.1.2 (#6546) 6a2cdda
Bjørge Næss fix(deps): replace hashlru with quicklru (#6557) d634727
Espen Hovlandsdal chore(deps): update dependency @sanity/client to v6.17.1 (#6561) 7dd2d84
Cody Olsen fix: remove cleanStegaUnicode helper (#6564) 2e224d4
renovate[bot] fix(deps): update dependency @sanity/client to ^6.17.2 (#6567) 154d90b
shur feat: add cliInitializedAt field to project metadata (#6538) 15486f7
Pedro Bonamin fix(schedule-publishing): update flag used to check scheduledPublishing (#6543) 57fcbac
renovate[bot] chore(deps): update dependency @sanity/tsdoc to v1.0.47 (#6550) 25cbd4e
renovate[bot] chore(deps): update dependency @sanity/pkg-utils to v6.8.11 (#6573) b31a151
renovate[bot] chore(deps): update dependency @sanity/visual-editing to v1.8.18 (#6574) 77654c1
Herman Wikner fix(core): collapsed range decorations (#6568) 70ab283
Pedro Bonamin chore(scheduled-publishing): update schedule tool upsell layout (#6572) 295ea72
Pedro Bonamin fix(tasks): update tasks panel z index (#6571) 3b3125c
Pedro Bonamin feat(pte): create new text blocks if needed (#6560) cadd496
RitaDias refactor(@sanity): remove warning for when child within PTE has no key (#6565) e1fc2a0
Binoy Patel test(core): add test that only one listener is open when navigating list (#6569) 161b926
renovate[bot] fix(deps): update dependency get-it to ^8.4.28 (#6576) 47ef785
Pedro Bonamin fix(tasks): close the form only after the task is created (#6450) e089eb7
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.1.6 (#6575) 48321e6
Fred Carlsen feat(form/inputs): add support for image drop+paste in PTE input (#6534) e964b1e
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.14.0 (#6577) 0812390
renovate[bot] chore(deps): update dependency vite to ^4.5.3 (#6583) ed5aca8
Carolina Gonzalez fix: use discard when doc is not published (#6535) 9c86166
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.15.0 (#6591) 1d88df6
renovate[bot] chore(deps): update dependency esbuild to ^0.21.0 (#6589) fada62f
Pedro Bonamin fix(pte): insert empty text block after removing void block (#6552) 379510f
Binoy Patel test(core, desk): add tests for keyvalue storage (#6587) ab94bea

Don't miss a new cli release

NewReleases is sending notifications on new releases.