Change8

v5.17.0

📦 sanityView on GitHub →
15 features🐛 10 fixes🔧 9 symbols

Summary

Sanity Studio v5.17.0 introduces significant features around divergence reporting and resolution for version control, alongside various bug fixes and dependency updates. Key improvements include new type guards and properties exposed on field members.

Migration Steps

  1. If you rely on specific versioning of `@sanity/types`, note that the workspace version constraint was loosened.
  2. If you use divergence features, be aware that divergence metadata is now moved to the `_systemDivergences` field.

✨ New Features

  • Added CSS anchor names to inputs.
  • Exported `emptyValuesByType` and moved it.
  • Added `isArrayOfStringsSchemaType` type guard.
  • Added `path`, `readOnly`, and `schemaType` properties to field members.
  • Included document ID in divergence resolution marker.
  • Moved divergence metadata to `_systemDivergences` field.
  • Exported divergence types.
  • Omitted divergences in unkeyed objects.
  • Added patch creators for acting on divergences.
  • Added support for `undefined` IDs when collating divergences, and added `upstreamId` to the result.
  • Added exports for collated divergences.
  • Added functions for navigating divergences in the context of a schema type.
  • Implemented divergence reporting, inspection, and resolution UI.
  • Enabled Advanced Version Control in the test studio.
  • Added ability to control undefined/null sorting in schema.

🐛 Bug Fixes

  • Fixed excessive recomputing based on `formState`.
  • Stopped emitting divergence navigator context if it is not switched on.
  • Made tags input wider, fixing a crop issue in Firefox.
  • Fixed flaky validation test clicks in Firefox.
  • Filtered asset sources by upload capability in file upload target.
  • Exposed object path segment directly.
  • Fixed checking whether an inserted array item is present in the subject version.
  • Loosened `@sanity/types` workspace version constraint.
  • Removed `@sanity/types` workspace override.
  • Fixed an issue with Calendar when typing.

Affected Symbols