Skip to content

Releases: sanity-io/sanity

v3.70.0

14 Jan 15:37
Compare
Choose a tag to compare

✨ Highlights

Improvements to Visual Editing

This release includes several changes across the @sanity/astro and @sanity/visual-editing packages, resulting in a more stable Visual Editing experience with Astro and a smoother initial setup:

  • A React 19 peer dependency issue was fixed in @sanity/astro version 3.1.9 that caused errors in new projects setup using Astro’s CLI tool.
  • Added support for libraries publishing pre-compiled code with the React Compiler to the Astro codebase.
  • Previously, Visual Editing overlays would lose their titles/preview information after a change had been made when working with an Astro project. This is now fixed.

Other features

  • The sanity package now exports an experimental EditPortal component, which allows users to create Dialog or Popover components that include Presence and scroll virtualization out of the box, like so:
import React, {useRef, useState} from 'react'
+import {EditPortal} from 'sanity'

 export const CustomFormDialog: React.FC<Props> = ({parentProps, paths, onClose}) => {
   return (
-     <Dialog header="Edit Link" id="edit-link" animate width={600} onClose={onClose} zOffset={1000}>
+     <EditPortal header="Edit Link" id="edit-link" animate width={600} onClose={onClose} zOffset={1000}>
       ...rest
-      </Dialog>
+     </EditPortal>

🐛 Notable bugfixes

  • Fixes a case where the commands schema extract, manifest extract, graphql deploy, documents validate or schema validate would never complete.
  • Fixes an issue in Vision where the cursor would sometimes jump to the beginning of the editor.

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.

📓 Full changelog

Author Message Commit
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.20.2 (#8219) 5ddfe63
renovate[bot] chore(deps): update typescript-tooling (#8210) fb1cf5b
renovate[bot] fix(deps): update dependency get-it to ^8.6.6 (#8221) 17e10ca
renovate[bot] fix(deps): update dependency @sanity/insert-menu to v1.0.19 (#8222) 07651a5
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.20.3 (#8223) a363bba
renovate[bot] fix(deps): update dependency @sanity/client to ^6.24.3 (#8213) 47577ea
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.21.0 (#8227) 5c28f4f
Rostislav Melkumyan feat(cli): skip directories without .env.example when bootstrapping remote template (#8216) 86c6ab1
Snorre Eskeland Brekke fix: ensures singleworkspace falls back to the name 'default' as expected in all contexts (#8228) fe708e8
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.21.1 (#8234) 26b64c7
Pedro Bonamin chore(core): export EditPortal from sanity (#8229) ab31417
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.21.1 (#8230) 9e624fa
Bjørge Næss fix(ci): pin ubuntu version for e2e component tests to 22.04 (#8245) b3cce81
Pedro Bonamin fix(core): support serverDocumentActions flag in plugins (#8247) 78318f3
Rostislav Melkumyan feat(cli): slim down remote test template (#8224) 41580c4
ecospark[bot] fix(deps): update React Compiler dependencies 🤖 ✨ (#8244) 256ffac
renovate[bot] fix(deps): update dependency react-rx to ^4.1.14 (#8246) 2664f0f
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.11.2 (#8248) f3151c3
Magnus Holm fix(cli): explicitly exit workers when they're done (#8226) 104b74c
Christian Grøngaard fix(block-tools): "soft" deprecate in favour of @portabletext/block-tools (#8254) 885cfe0
Pedro Bonamin chore(core): add <AvatarSkeleton /> component (#8249) 0ab9c5b
Pedro Bonamin fix(vision): debounce type setState to fix cursor jump (#8238) 15cba9a
Ash feat(sanity): include _id field in groq2024 searches (#8237) e0a2b6d
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.21.2 (#8253) 39f8900
renovate[bot] fix(deps): update dependency react-rx to ^4.1.15 (#8259) 9d362e1
renovate[bot] chore(deps): update dev-non-major (#8240) 8299462
Christian Grøngaard test: fix @portabletext/block-tools alias (#8262) 7c2a68b
ecospark[bot] chore(prettier): fix unformatted files 🤖 ✨ (#8263) 5505240
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.21.3 (#8265) df392a4
Christian Grøngaard fix(deps): update dependency @portabletext/editor to ^1.21.5 (#8264) 1938999
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#8266) c453b1f
Rostislav Melkumyan chore(cli): bump @sanity/template-validator to latest (2.3.2) (#8220) 9266e11
Pedro Bonamin fix(core): export EditPortal as beta (#8270) c65b13c

v3.69.0

08 Jan 11:46
Compare
Choose a tag to compare

Markdown behaviors for the Portable Text Editor

The Portable Text Editor (PTE) now ships with markdown keyboard shortcuts for headings, block quotes and lists.

This change extends the core behaviors of the PTE with default markdown behaviors for a more intuitive writing experience. This allows you to:

  1. Use # characters to create headings.
  2. Use > to create a blockquote.
  3. Use Backspace at the beginning of a block to clear its style.
  4. Use -, *, _ or 1. to initiate a list.

This is part of the effort that brings features from the new standalone Portable Text Editor back into the Studio.

TypeGen: add support for astro

You can now generate types from queries in .astro files. Learn more in the TypeGen docs.

🐛 Notable bugfixes

  • Fixes schema extraction with nested union references.
  • Header when creating new documents is now translated.
  • Fixes WebSocket is closed before the connection is established warning.
  • Fixes a regression introduced in v3.68.0 that could in rare cases cause a crash when opening a document in the Studio.
  • unset() inside custom datetime input components will now show that the value has been unset in the Studio UI.

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.

📓 Full changelog

Author Message Commit
Cody Olsen fix: WebSocket is closed before the connection is established warning (#8042) 57150e7
renovate[bot] fix(deps): Update dev-non-major (#8100) 9897dbc
renovate[bot] chore(deps): update dependency turbo to ^2.3.3 (#8099) 1f1f061
Sindre Gulseth feat(typegen): add support for astro (#8098) 92dfc9f
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.5 (#8106) 93ea8af
renovate[bot] chore(deps): update typescript-tooling (#8104) d35bf4e
renovate[bot] chore(deps): update dependency @sanity/tsdoc to v1.0.153 (#8107) 9115c4f
renovate[bot] fix(deps): update dependency react-rx to ^4.1.10 (#8109) 87f783d
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.12 (#8108) a20bcf7
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.5 (#8105) 9b7ee0b
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.18.1 (#8088) 1d23092
Rostislav Melkumyan chore(cli): bump template validator (#8115) e39c5b2
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.18.2 (#8113) d3d1540
Bjørge Næss fix(core): re-subscribes to shared pair listener opens a new connection (#8120) 8f61ce3
Cody Olsen fix: preload documents on hover (#8110) 303841d
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.18.3 (#8117) cd989d1
Bjørge Næss fix(core): merge in listenerEvents in _keepalive stream (#8122) babdfe4
renovate[bot] fix(deps): update dependency @sanity/export to ^3.42.0 (#8111) d6aa711
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.18.5 (#8124) 8c61a7e
renovate[bot] chore(deps): update dev-non-major (#8125) ef8cb12
renovate[bot] fix(deps): update dependency @sanity/insert-menu to v1.0.17 (#8126) 4935373
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.14 (#8127) ac2be36
renovate[bot] chore(deps): update dev-non-major (#8128) ddb65fa
renovate[bot] fix(deps): update dependency @sanity/insert-menu to v1.0.18 (#8132) 30f3945
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.18.6 (#8136) 42b4320
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.6 (#8129) 797a381
ecospark[bot] fix(deps): update React Compiler dependencies 🤖 ✨ (#8134) 994598c
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.16 (#8133) 6d18640
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.18.7 (#8148) 59b143e
renovate[bot] chore(deps): update typescript-tooling (#8149) d350ef9
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.14 (#8150) 751a5f5
renovate[bot] fix(deps): update dependency react-rx to ^4.1.11 (#8151) 1546ea7
renovate[bot] fix(deps): update dependency @sanity/export to ^3.42.1 (#8153) 9722e5f
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.7 (#8155) e113dff
renovate[bot] chore(deps): update dependency @testing-library/react to v16 (#8158) cfefb7d
Eoin Falconer fix: make header new and error text customisable (#8162) 30cd307
Jordan Lawrence chore(tasks): fixing typo in empty state title (#8143) 4f08c3d
Rostislav Melkumyan chore(cli): bump @sanity/template-validator to v2.0.0 (#8156) be79fe8
Bjørge Næss fix(sanity): throw a better error if onChange called during initial render (#8165) 3285312
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#8164) 466c6fa
Cody Olsen chore: add github problem matcher for PR linting (#8161) 323d1b1
Cody Olsen fix: remove react-hooks linter suppression (#8051) 1d25b3c
Pedro Bonamin chore(core): replace 'sanity' imports for relative paths in core (#8160) 32ae6ec
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.15 (#8172) 5010c37
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.19.0 (#8167) 6c6fc0c
renovate[bot] chore(deps): update dependency @sanity/tsdoc to v1.0.158 (#8169) b5dce86
renovate[bot] fix(deps): Update dev-non-major (#8174) 60cede8
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.16 (#8175) 3a972e9
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.17 (#8177) 9d68dad
Christian Grøngaard feat(core): add default markdown behaviors to PTE (#8168) 17aa32c
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.18 (#8185) d9c959a
ecospark[bot] fix(deps): update React Compiler dependencies 🤖 ✨ (#8187) fd30cb3
Cody Olsen chore: temporarily downgrade compiler runtime (#8188) 7bf6104
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.11.0 (#8190) 5211c0d
renovate[bot] fix(deps): update dependency react-rx to ^4.1.12 (#8189) 107435b
renovate[bot] chore(deps): update dependency styled-components to ^6.1.14 (#8182) 001dda7
renovate[bot] chore(deps): update typescript-tooling (#8186) 5542235
renovate[bot] fix(deps): update dependency @sanity/export to ^3.42.2 (#8179) 4e60fe9
Rostislav Melkumyan feat(cli): copy additions for remote project bootstrapper (#8141) f453cbc
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.17 (#8195) c44e5b0
Rostislav Melkumyan feat(cli): allow credentials when adding CORS entry (#8191) b57cb26
Cody Olsen chore: upgrade test studios to react 19, remove next studios (#8178) 9ed1ff7
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#8197) f0ece85
renovate[bot] fix(deps): Update dev-non-major (#8183) 504337e
renovate[bot] chore(deps): update dependency @vitejs/plugin-react to ^4.3.4 (#8198) 9c12eca
renovate[bot] chore(deps): update vitest monorepo to ^2.1.8 (#8200) c9d7b62
Bjørge Næss fix(structure): set patchRef in an insertion effect instead of regular useEffect (#8194) facd3fb
renovate[bot] chore(deps): update react monorepo (#8199) e3e3ad1
Robin Neatherway fix: fixes schema extraction with nested union refs (#8096) ac62487
Cody Olsen fix: React 19 typings (finally) (#8171) 68f244b
Eoin Falconer fix: unset should unset readOnly date field from custom input component (#8192) e4f7164
renovate[bot] chore(deps): update typescript-tooling (#8207) d3a71a4
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.11.1 (#8203) e98cf47
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.20.1 (#8206) a354c03
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.20.0 (#8208) 1e12bc9
Bjørge Næss fix(sanity): fix race condition introduced by #8120 (#8211) 27feda0

v3.68.3

20 Dec 17:20
Compare
Choose a tag to compare

🐛 Notable bugfixes

  • Improves React 19 compatibility for TypeScript users by changing @types/react from a direct dependency to a peer dependency in @sanity/types.

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.

📓 Full changelog

Author Message Commit
Cody Olsen fix: support react 19 type definitions (#8121) ac26a4f

v3.68.2

20 Dec 10:21
Compare
Choose a tag to compare

🐛 Notable bugfixes

  • Removes reliance on third party dependency due to license incompatibility

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.

📓 Full changelog

Author Message Commit
Magnus Holm feat(cli): remove patching of tsconfig.json and thus silver-fleece dependency (#8114) d2f2254

v3.68.1

18 Dec 22:02
Compare
Choose a tag to compare

🐛 Notable bugfixes

  • Fixes issue with presentation tool crashing.

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.

📓 Full changelog

Author Message Commit
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.13 (#8102) cfaa69b

v3.68.0

18 Dec 16:40
Compare
Choose a tag to compare

🐛 Notable bugfixes

  • Improves performance of the presence menu.
  • Improves scrolling performance of document list pane views.
  • Improves rendering performance when hovering over fields.
  • Keeps tab focus inside popover dialogs for the Portable Text Editor when editing links and similar.
  • Fixes a bug that could cause relative timestamps, such as those shown in the document history inspector, to incorrectly appear to be in the future.
  • Fixes an issue where WebKit was unable to tab into a form field's action menu.
  • Large Portable Text fields are now streamed into the editor.
  • Fixes an issue that could sometimes leave the hotspot and crop icons greyed out after uploading an image.
  • Unsafe access of current on React refs fixed, allowing React Compiler to auto-memoize more components, and increasing general stability and concurrent mode safety.
  • Relative time stamps are optimized by React Compiler, reducing memory usage and allowing faster rerenders.
  • Replaced React.createElement calls in internals with the JSX runtime, unlocking the React 19 performance improvements to JSX, as well as the ability to use ref as a prop instead of React.forwardRef wrappers.
  • Refactored SanityDefaultPreview to be auto memoized by React Compiler, improving performance on document list previews, and reference selectors.

Other features

  • Exports useReferringDocuments() hook.

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.

📓 Full changelog

Author Message Commit
James Garbutt feat(cli): remove is-builtin-module (#6579) 2982082
Rostislav Melkumyan feat(cli): misc copy changes (#8003) a61c4ee
Per-Kristian Nordnes test(playwright-ct): fix issues and flake (#8016) 6bf4d2a
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#8023) 2b38345
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.9 (#8009) bb8ae86
Snorre Eskeland Brekke fix: delays rendering the Start in Create banner until document is ready (#8020) fa403da
Per-Kristian Nordnes test(e2e): refer to correct env variable for Playwright version (#8026) cefd55a
Per-Kristian Nordnes fix(core): fix issue with different Webkit tab order in forms (#8022) b1307d9
Ash fix(sanity): relative dates incorrectly appearing to be in the future (#8034) 3869ede
Rostislav Melkumyan feat(cli): use @sanity/template-validator package (#8014) 27fa7e5
Christian Grøngaard fix(core): make PTE read-only until it's 'ready' (#8033) 07d80a7
Rostislav Melkumyan fix(cli): outputters should respect %s (#8037) 85de530
Rostislav Melkumyan feat(cli): remove .github dirs when initializing with a remote template (#8036) 2222e9e
Rostislav Melkumyan feat(cli): add cors entry automatically for template package (#8035) 637d345
Rostislav Melkumyan revert(cli): use default ora options in spinner method (#8038) a54f8ef
Per-Kristian Nordnes fix(core): fix issues with PT-Input PopoverModal (#8021) ded659e
Espen Hovlandsdal fix(deps): drop react-copy-to-clipboard dependency (#8041) 37b3065
Espen Hovlandsdal fix(deps): align arrify versions, drop types package (#8019) fc55e3e
Espen Hovlandsdal chore(deps): upgrade vitest to v2.1.8 (#8018) 27b0e84
Espen Hovlandsdal fix(deps): upgrade react-json-inspector (#8017) cf7afaf
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.10 (#8065) 27958af
renovate[bot] chore(lockfile): update dependency react-focus-lock to v2.13.5 (#8067) ea8bf4a
Christian Grøngaard test(pte): properly wait for PTE to be editable (#8068) 1dfcff8
Cody Olsen chore: add dev:million-lint command (#8032) 23d9dbe
ecospark[bot] fix(deps): update React Compiler dependencies 🤖 ✨ (#8069) e4009f1
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#8070) 4eff6de
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.3 (#8071) 2886839
Cody Olsen fix: speed up hovered field provider (#8044) e177ace
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.11 (#8073) 1819bc8
renovate[bot] chore(deps): update dev-non-major (#8066) 6c953c6
Josh feat(manifest): add icons, tools & projectId (#7980) 8d5fb58
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.10 (#8074) d280578
renovate[bot] fix(deps): update dependency react-rx to ^4.1.9 (#8075) 6f16545
Cody Olsen chore: add follow up comments on million lint (#8072) 9f4875f
Espen Hovlandsdal fix(vision): upgrade react-split-pane to v1.0.0 (#8061) 8996689
Christian Grøngaard test(core): remove RangeDecoration tests (#8079) 4a6eb2a
Cody Olsen fix: improve command list performance (#8046) 80965bf
Cody Olsen fix: improve color scheme store perf (#8059) ed3551b
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.12 (#8082) a5a217a
Cody Olsen fix: improve presence menu performance (#8039) 43f1b52
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.11 (#8083) 9dc200e
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.16.3 (#8031) cb1647b
Espen Hovlandsdal fix(deps): upgrade @tanstack/react-virtual to v3.11.2 (#8062) 04303f7
renovate[bot] chore(deps): lock file maintenance (#8086) e389ad9
Jon Eide Johnsen chore: update social links in readme (#8085) 8ae33c3
Snorre Eskeland Brekke fix: fixes unknown event handler error in CommentsOnboardingPopover (#8087) 1fa5db6
Bjørge Næss fix(preview): fix issue sometimes causing hotspot menu to stay a gray box after uploading (#8076) 3d5f1d3
Eoin Falconer fix: search modal stays open with metaKey (#8090) f95a3d1
Bjørge Næss feat(sanity): export useReferringDocuments and mark as beta (#8091) e5cf80a
Espen Hovlandsdal test: fix missing await on assertions for resolveInitialValue() (#8080) f56c61f
Espen Hovlandsdal fix(deps): upgrade dependency react-focus-lock to v2.13.5 (#8081) 04d5aa2
renovate[bot] chore(deps): update dependency framer-motion to v11.15.0 (#8084) 260faec
Cody Olsen fix: don't read/write ref during render (#8077) b1f183d
Cody Olsen fix: allow useRelativeTime to be auto-memoized (#8089) e2a9fff
Cody Olsen fix: replace React.createElement with jsx runtime (#8043) 3ef8280
Cody Olsen fix: replace unsafe useMemo with useState (#8047) 05c9e74
Cody Olsen fix: replace useMemo with useState (#8095) 399a7be
Eoin Falconer fix: tooltip position in announcements popup (#8092) 21c9fab
Cody Olsen fix: improve SanityDefaultPreview memoization (#8049) a6d5320
Christian Grøngaard refactor(core): replace PortableTextEditor with EditorProvider (#8040) 5d1ed22
Cody Olsen fix: use consistent framer-motion semver range (#8094) 78529d6

v3.67.1

11 Dec 11:57
Compare
Choose a tag to compare

🐛 Notable bugfixes

  • Fixes a regression introduced in v3.65.0 that could crash the tasks UI when clicking the detail view (see #7976 for details about the issue)

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.

📓 Full changelog

Author Message Commit
Pedro Bonamin fix(core): tasks UpdatedTimeAgo should be a hook (#8011) 789f3b2
renovate[bot] chore(deps): update dependency @sanity/pkg-utils to v6.12.0 (#8010) a773485
Bjørge Næss chore(deps): bump minimum requirement of @sanity/import and @sanity/export (#8012) c7ec5f9

v3.67.0

10 Dec 15:09
Compare
Choose a tag to compare

✨ Highlights

Start in Create enabled by default
image

The option to start drafting new documents in Sanity Create is now enabled by default. Depending on your hosting setup you might see a fully functional Start in Create-button appearing close to your default document actions, or a button that is temporarily disabled and awaiting some minor configuration. To learn how to fully enable the feature for both your development and production environments, or disable it entirely, check out the docs!

🐛 Notable bugfixes

  • Fixes a few deprecation warnings when installing dependencies for a studio.
  • Adds the missing disableArrayWarning option to the SlugOptions type (thank you @stilyan!).
  • Upgrades to ESLint 9 for new studios
  • Fixes a problem that could make rendering document lists crash the studio for complex schema types (thank you @nikaspran!)

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.

📓 Full changelog

Author Message Commit
RitaDias test(sanity): update timeout to avoid slow test from being flaky (#7969) d6dde60
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.15.0 (#7971) 6eacd33
Espen Hovlandsdal chore(deps): update dependency glob to ^11.0.0 (#7949) ccee1f4
Espen Hovlandsdal fix(i18n): allow weeks to start on Saturday (#7965) 59deb00
Espen Hovlandsdal fix(deps): deprecation warnings due to glob dependency (#7977) 5e3b8c1
Stilyan feat: add disableArrayWarning option to SlugOptions (#7174) 1b5fd00
Bjørge Næss test(cli): remove v2 fixtures and bump timeouts (#7974) 583bb6f
Cody Olsen chore: add markdown plugin back (#7475) a7ed9be
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.1 (#7975) d23b3f0
Cody Olsen chore: add back the @sanity/color-input plugin to test studio (#7502) 960186d
Bjørge Næss test(e2e): add missing plugins to e2e studio (#7981) e078ebc
ecospark[bot] fix(deps): update React Compiler dependencies 🤖 ✨ (#7982) bf67535
renovate[bot] fix(deps): update dependency react-rx to ^4.1.8 (#7983) 197fc3d
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#7987) 23a47f3
renovate[bot] fix(deps): update dependency groq-js to ^1.14.2 (#7985) 5d5bac0
Ash fix(sanity): do not perform incremental search for exact tokens (#7972) 9fba9b7
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.3 (#7986) 22c9708
Snorre Eskeland Brekke feat: enable start in Create banner for new documents and include development mode information (#7955) 656d4c8
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.1 (#7989) 30d18d6
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.8 (#7984) ba996b7
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.2 (#7991) 1b6117f
Cody Olsen fix(deps): upgrade vite to v5 (#5285) 6817f2e
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.4 (#7993) 9d3343c
renovate[bot] chore(deps): update typescript-tooling (#7988) 6a9c59e
renovate[bot] fix(deps): Update dev-non-major (#7997) 305a143
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.15.3 (#7979) ae98a1d
Ash refactor(sanity): extract common search token functions 3aa1e03
Ash refactor(sanity): skip unnecessary deduplication step e8bad21
Ash feat(sanity): do not fade out global search results while fetching more a303002
Ash feat: add groq2024 search strategy 13f2e48
Ash feat(test-studio): enable groq2024 search strategy 8c4e248
Nikas Praninskas fix(sanity): optimise getLeafWeights to not stack overflow (#7999) ac2ab18
Espen Hovlandsdal feat: use eslint 9 for new studios (#7978) 30d8f7e
Robin Pyon feat: switch create integration to opt-out flow (#8002) 6b322cb
Rostislav Melkumyan feat(cli): use @vercel/frameworks in bootstrapRemoteTemplate (#8001) 60537c8
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.7 (#7998) eb5739b
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.10.7 (#8005) 2f135f6
Cody Olsen chore: reduce renovate double PR noise 0528bee
ecospark[bot] chore(prettier): fix unformatted files 🤖 ✨ (#8006) da526ea

v3.66.1

06 Dec 12:11
Compare
Choose a tag to compare

🐛 Notable bugfixes

  • Fixes an issue causing the Studio to crash in an environment that doesn't provide a global process variable

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.

📓 Full changelog

Author Message Commit
renovate[bot] fix(deps): allow react v19 as peer dependency (#7962) 9722cd6
Ash fix(sanity): reset search cursor state when any parameter changes (#7889) 4d7ae8d
Bjørge Næss fix(core): guard against missing process variable (#7967) bab0e19
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.7 (#7966) c82d44c

v3.66.0

05 Dec 18:25
Compare
Choose a tag to compare

✨ Highlights

React Compiler for auto-updating studios

Studios that have opted in to the auto-updating feature will now use code optimized by the React Compiler. In many cases, this results in a faster user interface.

Other features

Configurable slug field weight

It's now possible to configure search weights for slug fields using the options.search.weight field option:

defineField({
  name: 'slug',
  type: 'slug',
+ options: {
+   search: {
+     weight: 50,
+   },
+ },
}),

The slug field's weight will now be respected when using global search with "Best match" sorting selected, and when using reference search. Learn more about search weights in the Studio Search Configuration documentation.

Crop/hotspot vector format warning

When using vector formats (like SVG), any crop/hotspot defined for the image will only be applied if the image is delivered in a raster format. To make this clear, a warning is now displayed when setting a crop/hotspot on vector images.

Document links in Vision

When using the @sanity/vision plugin, if query results contain either _id or _ref attributes, a link icon is displayed next to the value making it easier to find and edit the document.

Note: This is currently only displayed if the queried dataset matches the dataset of the active workspace.

Sanity v2 CLI commands removed

v2 has been end-of-life since April 2024 and the CLI commands for v2 will no longer display a removed error.

You can still use @sanity/cli@^2 should you need to run CLI commands against the an old studio project. See the guide for more details on migrating from v2 to v3.

🐛 Notable bugfixes

  • Annotations in the Portable Text Editor will now autofocus on the first input when being created.
  • Fixed a regression in v3.65.0 that caused the document editor panel header to look slightly misaligned with presentation tool's URL bar, and the Tasks panel header.
  • Fixes an issue where editing an annotation in the Portable Text Editor could result in multiple editing dialogs being opened.

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.

📓 Full changelog

Author Message Commit
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.12.0 (#7883) 1dc2a68
renovate[bot] chore(deps): update typescript-tooling (#7882) aebe3ce
Ash refactor(sanity): clarify variable name fcff773
Ash chore(sanity): remove duplicate test ee3f331
Ash feat: support search weight configuration for slug fields 022c910
renovate[bot] fix(deps): Update dev-non-major (#7893) 3f7892e
renovate[bot] chore(lockfile): update dependency @sanity/react-loader to v1.10.22 (#7896) b13265d
renovate[bot] chore(deps): update dependency @sanity/code-input to v5 (#7901) a323ddd
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.2 (#7899) e432e37
renovate[bot] fix(deps): Update dev-non-major (#7902) 56ed6cb
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.0 (#7900) 1ed427e
Pedro Bonamin fix(core): portable text annotations slow to show (#7588) ef50844
renovate[bot] fix(deps): update dependency groq-js to ^1.14.1 (#7910) 037a2f4
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.12.2 (#7909) b2f1ff2
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.8.26 (#7906) 5b58ced
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.3 (#7914) e609391
renovate[bot] fix(deps): update dependency @sanity/insert-menu to v1.0.15 (#7913) d91efd9
Cody Olsen fix: vertically center pane header when no tabs (#7912) 481febd
Marius Lundgård fix(sanity): support future UI tones (#7916) f5e85ae
renovate[bot] fix(deps): Update dev-non-major (#7905) b4c157c
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.9.0 (#7918) d3a4a1f
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.9.0 (#7919) b28b160
Rostislav Melkumyan feat(cli): add test-template for testing --template flag (#7877) 52ab8b2
renovate[bot] fix(deps): update dependency @sanity/client to ^6.23.0 (#7931) 90f884d
renovate[bot] chore(deps): update typescript-tooling (#7928) 755cd44
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.4 (#7930) ee5f3b6
renovate[bot] fix(deps): Update dev-non-major (#7920) 5b25212
Cody Olsen fix: support react compiler for auto updating studios (#7897) e40d5b6
Rostislav Melkumyan feat(cli): remove v2 init messaging (#7887) 2333027
RitaDias test(e2e): add unpublish e2e test (#7927) 079824e
Rostislav Melkumyan feat(cli): add support for remote templates with --template (#7867) 1f59825
ecospark[bot] chore(deps): dedupe pnpm-lock.yaml (#7933) 4fff528
renovate[bot] fix(deps): update dependency @sanity/icons to ^3.5.0 (#7929) 8ee3384
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.12.3 (#7921) 1e6a839
renovate[bot] fix(deps): update dependency @sanity/client to ^6.24.0 (#7935) 5bce66e
Yang Yu fix(deps): bump sentry/react to 8.33 (#7932) e855a41
Bjørge Næss fix(vision): add a warning about unsupported perspective when pasting (#7937) bd2b3cf
renovate[bot] fix(deps): update dependency @sanity/client to ^6.24.1 (#7938) 4bc55d6
Rostislav Melkumyan feat: add CI specific token label (#7934) 4b64fbb
renovate[bot] fix(deps): update dependency @portabletext/editor to ^1.13.0 (#7939) ad43939
Bjørge Næss chore(vision): revert accidental file rename (#7945) b4df341
renovate[bot] fix(deps): update dependency @sanity/insert-menu to v1.0.16 (#7942) 2aac70c
renovate[bot] fix(deps): Update dev-non-major (#7946) 59ebd9b
Bjørge Næss fix: add svg hotspot+crop warning to image tool dialog (#7917) 3bd79af
RitaDias test(e2e): restore last e2e tests (#7926) b74b50e
Pedro Bonamin fix(core): disable scheduledPublishing and tasks if /features returns error (#7517) a20fb8f
Sindre Gulseth feat(vision): link to edit documents on _id, _ref attributes (#6124) 2379f2b
renovate[bot] fix(deps): update dependency @sanity/ui to ^2.9.1 (#7948) 561e7fc
renovate[bot] fix(deps): update dependency @sanity/mutate to ^0.11.1 (#7903) 08d3686
Rostislav Melkumyan feat(cli): generate read token conditionally for remote template (#7953) ff90128
Bjørge Næss fix(cli): remove v2 commands (#5750) d98873c
Christian Grøngaard fix(core): only open one annotation object edit modal at a time (#7898) fbecbc8
renovate[bot] fix(deps): update dependency @sanity/presentation to v1.19.5 (#7957) 7c5a231
Bjørge Næss fix(core): add telemetry debug/noop logger (#7958) 4767ac7
renovate[bot] fix(deps): Update dev-non-major (#7959) c06deef
Espen Hovlandsdal fix: reword warning about vector images not support crop/hotspot (#7960) eecd0c5