# What changed in sanity

> 35 changes in sanity 6 from its official release notes, upgrade guides and advisories: 1 breaking, 10 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/sanity/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## sanity 6

### Breaking changes

- Adds configuration of variant conditions under types; empty variant conditions are treated as an error. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)

### New APIs and options

- Adds studio.components.provider and preloads lazy default plugin components. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Canvas can now open inside Workbench. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Studio can tell dashboard hosts and Workbench hosts apart. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Document favorites are now supported in Workbench. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Document history can now be recorded through the SDK. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Adds an option to keep recent tools mounted. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Adds a first-class API for configuring singleton documents in Sanity Studio. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Adds support for list pane widths. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Adds opt-in live document count badges to document type list items. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Adds a badge for singleton documents. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)

### Behavior and default changes

- A stable attribute is available for hiding the document toolbar. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- The open document is now reported to Workbench. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Page performance metrics are skipped in Workbench. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Schema error messages now include workspace and source context. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Studio navigation is synchronized with Workbench. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Studio now follows the Workbench color scheme. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Workbench now owns sign-in. (6.18.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.18.0)
- Long arrays can be collapsed behind a show all items toggle. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)

### Fixes and other changes

- Aligns list pane items whether or not the list scrolls. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Manifest validation during compilation now accounts for built-in parent types. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Removes the global context registry so two versions of sanity can render on one page. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Keeps location links targeting presentation after opening in structure. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Prevents the studio layout from remounting when feature checks settle. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Prevents the studio layout from remounting when scheduled publishing checks settle. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Derives the upload target card tone from the current read-only state. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Exports VideoDefinition, the definition accepted by defineVideoField. (6.19.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.19.0)
- Shows the draft indicator for draft-only documents. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Navbar tools collapse into the overflow menu when the Studio is narrower than the viewport. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Keeps pane widths when releasing a resize divider. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Keeps a grown portable text editor from scrolling to the top when focused. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Allows a container block config to add portable text toolbar actions. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Enables preview mode when opening a preview. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Detects scheduled draft edits when deleting a schedule. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
- Reads every selected variant from the perspective. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/releases/tag/v6.17.0)
