# What changed in @sanity/types

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

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

## @sanity/types 6

### New APIs and options

- Document variants are read from _system.variants, with a legacy fallback. (6.16.0) — [release notes](https://github.com/sanity-io/sanity/blob/a9944b05746aae5b2dbd0b8c6a41aa4f669320fc/packages/@sanity/types/CHANGELOG.md#6160-2026-09-22)
- Validation now supports capability-aware results. (6.13.0) — [release notes](https://github.com/sanity-io/sanity/blob/a9944b05746aae5b2dbd0b8c6a41aa4f669320fc/packages/@sanity/types/CHANGELOG.md#6130-2026-09-08)
- An opt-in comments API plugin was added for developers who want to enable comments. (6.13.0) — [release notes](https://github.com/sanity-io/sanity/blob/a9944b05746aae5b2dbd0b8c6a41aa4f669320fc/packages/@sanity/types/CHANGELOG.md#6130-2026-09-08)
- Validation now supports cancellation. (6.13.0) — [release notes](https://github.com/sanity-io/sanity/blob/a9944b05746aae5b2dbd0b8c6a41aa4f669320fc/packages/@sanity/types/CHANGELOG.md#6130-2026-09-08)

### Behavior and default changes

- Long arrays are collapsed behind a show all items toggle. (6.17.0) — [release notes](https://github.com/sanity-io/sanity/blob/a9944b05746aae5b2dbd0b8c6a41aa4f669320fc/packages/@sanity/types/CHANGELOG.md#6170-2026-09-29)
