unstale

npm / sanity

sanity

What changed in sanity 4 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

6 breaking2 security3 deprecations48 new APIs and options2 performance41 behavior and defaults1 tooling99 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

sanity 6197 changes

Breaking changes 5

  • Variant creation is gated on the content variants feature.

    6.23.0release notes

  • Validation now checks reference target types.

    6.23.0release notes

  • Removes trimming from nested text.

    6.22.0release notes

  • Adds configuration of variant conditions under types; empty variant conditions are treated as an error.

    6.17.0release notes

  • Users are redirected to login after claiming a project.

    6.10.0release notes

Security 2

  • Auth secrets are kept out of the URL when the studio fails to boot.

    6.22.0release notes

  • Deleting a variant definition is gated on permission, and server refusals are explained.

    6.13.0release notes

Deprecations 3

  • The deprecated tag was added to createAuthStore, indicating that developers should avoid using this API.

    6.16.0release notes

  • Versions 6.9.2 through 6.14.0 are deprecated because they contain a data-loss bug.

    6.14.1release notes

  • The release entry says release is deprecated for publishedEvents.

    6.12.0release notes

New APIs and options 46

  • Version creation steps are unified, and creating a version from the inventory allows specifying the base version.

    6.23.0release notes

  • Document group inventory now includes served version status.

    6.23.0release notes

  • Document list rows now show a compact versions popover.

    6.23.0release notes

  • Validation now supports workspace internationalization configurations.

    6.23.0release notes

  • Adds document panel navigation with a variants menu.

    6.22.0release notes

  • Adds a dropdown to the scheduled drafts form.

    6.22.0release notes

  • A document group inventory inspector is available in the document inspector.

    6.21.0release notes

  • Document inspector resolvers can access the resolved beta config.

    6.21.0release notes

  • A version management action is available in the document panel header.

    6.21.0release notes

  • Document validation completeness is exposed for consumers that need to determine whether validation is complete.

    6.21.0release notes

  • An imperative API for DocumentGroupInventory is available to control it programmatically.

    6.21.0release notes

  • Release forms support configurable metadata fields.

    6.21.0release notes

  • The schema can be downloaded from the diagnostics dialog.

    6.21.0release notes

  • Batch validation is available through validateDocuments.

    6.21.0release notes

  • Adds a federated Media Library asset source from workbench-brokered views.

    6.20.0release notes

  • Exports ServiceBus from sanity/dashboard for use by developers.

    6.20.0release notes

  • Adds an immediate validation option; a validation subscriber can switch a document's shared validation to immediate.

    6.20.0release notes

  • Adds an opt-in redesigned Vision experience behind beta.redesign.

    6.20.0release notes

  • Adds studio.components.provider and preloads lazy default plugin components.

    6.19.0release notes

  • Canvas can now open inside Workbench.

    6.18.0release notes

  • Studio can tell dashboard hosts and Workbench hosts apart.

    6.18.0release notes

  • Document favorites are now supported in Workbench.

    6.18.0release notes

  • Document history can now be recorded through the SDK.

    6.18.0release notes

  • Adds an option to keep recent tools mounted.

    6.17.0release notes

  • Adds a first-class API for configuring singleton documents in Sanity Studio.

    6.17.0release notes

  • Adds support for list pane widths.

    6.17.0release notes

  • Adds opt-in live document count badges to document type list items.

    6.17.0release notes

  • Adds a badge for singleton documents.

    6.17.0release notes

  • Adds the ability to pause editing for scheduled drafts.

    6.15.0release notes

  • An opt-in comments API plugin is added.

    6.13.0release notes

  • Query result types are registered on a global SanityQueries interface.

    6.13.0release notes

  • Validation gains cancellation support.

    6.13.0release notes

  • The CLI now exposes the asset source view definition.

    6.12.0release notes

  • The translate component now supports componentProps.

    6.12.0release notes

  • A package for headless document validation was added.

    6.12.0release notes

  • The CLI now exposes typed view and web worker helpers.

    6.12.0release notes

  • A workspace compatibility overload was added for validation.

    6.12.0release notes

  • Structure panes support custom component widths.

    6.11.0release notes

  • Sanity Studio adds a diagnostics panel.

    6.11.0release notes

  • The path argument is optional when using useFormValue.

    6.11.0release notes

  • Adds a renderAction slot to access-ui.

    6.10.0release notes

  • Provides SDKStudioContext to enable zero-config SDK usage.

    6.10.0release notes

  • Adds a note in the access-ui submit callback.

    6.10.0release notes

  • Adds an export for embedded form rendering.

    6.10.0release notes

  • Exports AssetSource types from sanity/workbench for use by developers.

    6.9.0release notes

  • Adds unclaimed project claim intake and a nudge.

    6.9.0release notes

Performance 2

  • Document validation performance was improved, reducing the cost of validating documents.

    6.21.0release notes

  • Document actions no longer trigger re-render fan-out on every keystroke.

    6.13.1release notes

Behavior and default changes 41

  • Shared access cards now render advisory states for access requests.

    6.23.0release notes

  • ID matching now expands to segments in path-like query strings.

    6.23.0release notes

  • Changed state is exposed to Portable Text Editor previews and annotations.

    6.23.0release notes

  • Media library previews now show video thumbnails.

    6.23.0release notes

  • Vision sends oversized queries in a POST body and can load pasted curl commands.

    6.23.0release notes

  • Studio warns when an asset does not match its field's accept option.

    6.22.0release notes

  • Schema descriptors are uploaded in encoded form.

    6.22.0release notes

  • The studio is named as the parent of federated asset sources.

    6.22.0release notes

  • Opens the document right away while intent links resolve.

    6.22.0release notes

  • Accepts intent links without parameters.

    6.22.0release notes

  • Custom first actions are promoted as the primary action for live-edit documents.

    6.22.0release notes

  • Renders relative-only URL fields as text inputs.

    6.22.0release notes

  • Release documents can reference documents in the same release.

    6.22.0release notes

  • Release dropdown menu items include a link to release details.

    6.22.0release notes

  • Opens intent links without resolving the whole structure.

    6.22.0release notes

  • Searches the structure without waiting for the document type.

    6.22.0release notes

  • The variants menu supports creating from the menu.

    6.22.0release notes

  • Selecting the document title focuses the title field.

    6.21.0release notes

  • The document inspector includes a document group inventory layout.

    6.21.0release notes

  • The federated Media Library asset source view is now used by default.

    6.21.0release notes

  • Vision's JSON editor prefills query parameters from referenced $names.

    6.21.0release notes

  • Workspaces can be switched without reloading the page, and workspace switches are synced with the dashboard.

    6.20.0release notes

  • A stable attribute is available for hiding the document toolbar.

    6.18.0release notes

  • The open document is now reported to Workbench.

    6.18.0release notes

  • Page performance metrics are skipped in Workbench.

    6.18.0release notes

  • Schema error messages now include workspace and source context.

    6.18.0release notes

  • Studio navigation is synchronized with Workbench.

    6.18.0release notes

  • Studio now follows the Workbench color scheme.

    6.18.0release notes

  • Workbench now owns sign-in.

    6.18.0release notes

  • Long arrays can be collapsed behind a show all items toggle.

    6.17.0release notes

  • Schema-less Portable Text values receive a visible affordance.

    6.16.0release notes

  • Document variants are read from _system.variants, with a legacy fallback.

    6.16.0release notes

  • The document color-scheme is pinned to the resolved Studio appearance.

    6.14.1release notes

  • Task comments are opted into the Comments API.

    6.14.0release notes

  • Custom spinners are stabilized in Safari.

    6.13.2release notes

  • Validation results now account for capabilities.

    6.13.0release notes

  • Variants gain support for live edit.

    6.13.0release notes

  • SAML enforcement is surfaced before the request form.

    6.13.0release notes

  • Validation markers now have stable codes.

    6.12.0release notes

  • The document inventory button is renamed to “manage versions.”

    6.9.2release notes

  • Documents in the selected variant are queried alongside the perspective stack.

    6.9.0release notes

Tooling 1

  • Migrates profiling minify options from esbuild to Vite.

    6.9.0release notes

Fixes and other changes 97

  • The auth store whose session was rejected is now logged out.

    6.23.0release notes

  • The schema no longer lists date as a future reserved type.

    6.23.0release notes

  • Release descriptions rendered as Portable Text no longer appear blank.

    6.23.0release notes

  • Releases with descriptions that are not strings now render.

    6.23.0release notes

  • Refines the document group inventory and fixes overflow when it has a scrolling ancestor.

    6.22.0release notes

  • Presence stops reconnecting after an authorization rejection.

    6.22.0release notes

  • Cancels abandoned reference batches.

    6.22.0release notes

  • Applies the workspace release limit wherever a release can be created and while releases load or a dialog is submitted.

    6.22.0release notes

  • Leftover drafts of live-edit document types can now be published.

    6.21.0release notes

  • Studio search now respects fields excluded by partial indexes.

    6.21.0release notes

  • Review changes are cleared after discarding a draft.

    6.21.0release notes

  • Built-in validators are preserved when schemas are serialized.

    6.21.0release notes

  • Favoriting in the workbench has been restored.

    6.21.0release notes

  • Prevents autocommit from cancelling a pending publish.

    6.20.0release notes

  • Store now emits initial value updates when document existence changes.

    6.20.0release notes

  • Clicking publish now triggers immediate validation.

    6.20.0release notes

  • Adds currentUser to ValidationContext so validation code can access the current user.

    6.20.0release notes

  • Preserves weak references in releases.

    6.20.0release notes

  • Aligns list pane items whether or not the list scrolls.

    6.19.0release notes

  • Manifest validation during compilation now accounts for built-in parent types.

    6.19.0release notes

  • Removes the global context registry so two versions of sanity can render on one page.

    6.19.0release notes

  • Keeps location links targeting presentation after opening in structure.

    6.19.0release notes

  • Prevents the studio layout from remounting when feature checks settle.

    6.19.0release notes

  • Prevents the studio layout from remounting when scheduled publishing checks settle.

    6.19.0release notes

  • Derives the upload target card tone from the current read-only state.

    6.19.0release notes

  • Exports VideoDefinition, the definition accepted by defineVideoField.

    6.19.0release notes

  • Shows the draft indicator for draft-only documents.

    6.17.0release notes

  • Navbar tools collapse into the overflow menu when the Studio is narrower than the viewport.

    6.17.0release notes

  • Keeps pane widths when releasing a resize divider.

    6.17.0release notes

  • Keeps a grown portable text editor from scrolling to the top when focused.

    6.17.0release notes

  • Allows a container block config to add portable text toolbar actions.

    6.17.0release notes

  • Enables preview mode when opening a preview.

    6.17.0release notes

  • Detects scheduled draft edits when deleting a schedule.

    6.17.0release notes

  • Reads every selected variant from the perspective.

    6.17.0release notes

  • Sticky perspective is reset for archived releases.

    6.16.0release notes

  • Stored comments with unparseable field paths are tolerated.

    6.16.0release notes

  • Persisted inline comment ranges are rematched after edits.

    6.16.0release notes

  • The field presence avatar stays in place when field actions appear on hover.

    6.16.0release notes

  • Presence is displayed inline and in the Portable Text field.

    6.16.0release notes

  • Portable Text values whose types have left the schema are rendered.

    6.16.0release notes

  • Validation now accepts allowed object array selections.

    6.15.0release notes

  • Removing a Portable Text block no longer rewrites the change as an unset of the whole field, preventing unintended data loss.

    6.14.1release notes

  • Only shows the annotation toolbar popover for collapsed selections.

    6.14.0release notes

  • Fixes the choose-document-destination banner incorrectly superseding deleted-document banners.

    6.14.0release notes

  • Keeps popovers inside the pane when they are opened from dialogs.

    6.14.0release notes

  • Uses an intent link for the variants duplicate message.

    6.14.0release notes

  • This version has a potential data-loss bug when working with Portable Text fields; the issue is resolved in 6.14.1.

    6.14.0release notes

  • Fixes an unexpected blink in reference input autocomplete.

    6.14.0release notes

  • The auto-update bundle CSS preserves light-dark.

    6.13.2release notes

  • Custom slug uniqueness is honored on type aliases.

    6.13.2release notes

  • The form field gutter tolerates a missing path.

    6.13.2release notes

  • Inherited rules and runtime context are kept consistent during validation.

    6.13.2release notes

  • Every document's revert target is resolved before a release is reverted.

    6.13.2release notes

  • The document listener now terminates on a 401 response.

    6.13.1release notes

  • Memo caches that capture clients are now keyed by credential.

    6.13.1release notes

  • Styled-component style props are transient so they do not leak to the DOM.

    6.13.1release notes

  • The workspace menu project name now renders without a layout shift.

    6.13.1release notes

  • Creating from a nested pane now keeps panes.

    6.13.0release notes

  • Creating a draft variant now falls back to the published document.

    6.12.0release notes

  • Patch paths that cannot apply to the local document are now dropped.

    6.12.0release notes

  • Validation now honors concurrency options.

    6.12.0release notes

  • Document action filters are honored in version and release menus.

    6.11.0release notes

  • Portable Text styles and lists accept i18nTitleKey, and defaults are exported.

    6.11.0release notes

  • useClient is deprecated only when called without options.

    6.11.0release notes

  • The correct package version is now baked into CDN module bundles.

    6.10.1release notes

  • Client v8 timeout errors are classified in the request-error channel.

    6.10.1release notes

  • Duplicate variant documents are now copied into the same variant.

    6.10.1release notes

  • The published badge is shown for live edit documents.

    6.10.0release notes

  • Manage versions remains available when a document has no actions.

    6.10.0release notes

  • Connection errors are surfaced when the preview iframe never finishes loading.

    6.10.0release notes

  • Paste events outside Vision are no longer swallowed.

    6.10.0release notes

  • The claimed project banner is retained across refreshes.

    6.9.2release notes

  • The click-outside handler is enabled when a comment popover is open.

    6.9.2release notes

  • Delete dialog copy now accounts for the number of items being deleted.

    6.9.2release notes

  • The preview now works for documents unpublished by a published release.

    6.9.2release notes

  • Hidden workspace URLs now redirect to the first visible workspace.

    6.9.2release notes

  • The mention menu stays sized appropriately in oneLine Portable Text fields.

    6.9.2release notes

  • An open object dialog stays open when focus lands on the item itself.

    6.9.2release notes

  • This version has a potential data-loss bug when working with Portable Text fields; the issue is resolved in 6.14.1.

    6.9.2release notesrelease notesrelease notesrelease notesrelease notesrelease notesrelease notesrelease notes

  • The popover can now flip above its button.

    6.9.2release notes

  • The intended publish date is retained when scheduling a release.

    6.9.2release notes

  • Resolves context-aware validation rules in inputs.

    6.9.1release notes

  • Clears the blur guard when the mouse is pressed inside the editor.

    6.9.1release notes

  • Drops the teardown mutation of a reset editor instance.

    6.9.1release notes

  • Opts hotspot preview images out of the global img reset.

    6.9.1release notes

  • Uses the project API host for media library video asset queries.

    6.9.1release notes

  • Fixes copying variants to different releases from the context menu.

    6.9.0release notes

  • Allows creating draft variants from a published variant sibling.

    6.9.0release notes

  • Prevents incoming references from referring to themselves.

    6.9.0release notes

  • Keeps inspector crashes inside the inspector panel.

    6.9.0release notes

  • Stops permission loading-flag churn on every document change.

    6.9.0release notes

  • Preserves supplied schema helper properties in types.

    6.9.0release notes

  • Downloading an asset opens it in a new browsing context.

    6.8.0release notes

  • Copying to drafts uses a transaction, preparing the operation for variants.

    6.8.0release notes

  • Variant documents can be created without a base document.

    6.8.0release notes

  • Variant publishing now wires the published variant revision ID.

    6.8.0release notes

  • The clear button is enabled when the perspective is not the default one.

    6.8.0release notes

sanity 45 changes

Breaking changes 1

  • Node 18 is removed and the base Node version is changed to 20.

    4.0.0release notes

New APIs and options 2

Fixes and other changes 2

  • Task form operations no longer leak into the main workspace store.

    4.22.1release notes

  • Ensures global document reference preview configuration is present for serialized sanity.video schema types.

    4.0.0release notes