npm / @sanity/types
@sanity/types
What changed in @sanity/types 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
4 new APIs and options1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@sanity/types 65 changes
New APIs and options 4
Document variants are read from _system.variants, with a legacy fallback.
Validation now supports capability-aware results.
An opt-in comments API plugin was added for developers who want to enable comments.
Validation now supports cancellation.
Behavior and default changes 1
Long arrays are collapsed behind a show all items toggle.