npm / sanity
sanity
What changed in sanity 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
1 breaking10 new APIs and options8 behavior and defaults16 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsanity 635 changes
Breaking changes 1
Adds configuration of variant conditions under types; empty variant conditions are treated as an error.
New APIs and options 10
Adds studio.components.provider and preloads lazy default plugin components.
Canvas can now open inside Workbench.
Studio can tell dashboard hosts and Workbench hosts apart.
Document favorites are now supported in Workbench.
Document history can now be recorded through the SDK.
Adds an option to keep recent tools mounted.
Adds a first-class API for configuring singleton documents in Sanity Studio.
Adds support for list pane widths.
Adds opt-in live document count badges to document type list items.
Adds a badge for singleton documents.
Behavior and default changes 8
A stable attribute is available for hiding the document toolbar.
The open document is now reported to Workbench.
Page performance metrics are skipped in Workbench.
Schema error messages now include workspace and source context.
Studio navigation is synchronized with Workbench.
Studio now follows the Workbench color scheme.
Workbench now owns sign-in.
Long arrays can be collapsed behind a show all items toggle.
Fixes and other changes 16
Aligns list pane items whether or not the list scrolls.
Manifest validation during compilation now accounts for built-in parent types.
Removes the global context registry so two versions of sanity can render on one page.
Keeps location links targeting presentation after opening in structure.
Prevents the studio layout from remounting when feature checks settle.
Prevents the studio layout from remounting when scheduled publishing checks settle.
Derives the upload target card tone from the current read-only state.
Exports VideoDefinition, the definition accepted by defineVideoField.
Shows the draft indicator for draft-only documents.
Navbar tools collapse into the overflow menu when the Studio is narrower than the viewport.
Keeps pane widths when releasing a resize divider.
Keeps a grown portable text editor from scrolling to the top when focused.
Allows a container block config to add portable text toolbar actions.
Enables preview mode when opening a preview.
Detects scheduled draft edits when deleting a schedule.
Reads every selected variant from the perspective.