Change8

v5.6.0

📦 sanityView on GitHub →
5 features🐛 19 fixes🔧 14 symbols

Summary

Sanity Studio v5.6.0 is a maintenance release focused heavily on dependency updates and numerous bug fixes across core functionality, authentication, and the Portable Text Editor (PTE). New features include improved schema utilities and better handling for private assets.

Migration Steps

  1. Run `npm install sanity@latest` to upgrade to this version.

✨ New Features

  • Added type utilities for generated types in codegen.
  • Added "Open in Source" functionality for assets.
  • Added `renderMembers` function to objects and fieldsets for schema customization.
  • Exported `DEFAULT_ANNOTATIONS` and `DEFAULT_DECORATORS` from `@sanity/schema`.
  • Added private asset indicator and improved access policy error handling.

🐛 Bug Fixes

  • Fixed dependency updates for portabletext, babel monorepo, CodeMirror, xstate, and motion.
  • Fixed dependency updates for @sanity/image-url and @sanity/client.
  • Fixed infinite redirects when trying to log in via SSO (though this was reverted in a subsequent commit).
  • Fixed handling of null token in the auth store (though this was reverted in a subsequent commit).
  • Fixed showing the timezone button when `allowTimeZoneSwitch` is true.
  • Fixed allowing setting timezone to dates arrays.
  • Fixed storing fragment selection when a user opens the comment input popover.
  • Fixed overlap between deprecated label and validation icons.
  • Fixed CLI to normalize path separators for cross-platform compatibility.
  • Fixed handling of emoji characters in workspace icon generation.
  • Fixed preventing published from being treated as a release.
  • Widened annotation popover default width in PTE.
  • Fixed ensuring PTE custom toolbar icons use the correct color token.
  • Allowed custom object types as portable text annotations.
  • Fixed splitting creation event from mutation when editing drafts.
  • Resolved private asset CORS issues and skipped access policy checks for unsupported auth modes.
  • Fixed omitting system bundles from versions in the reference banner.
  • Removed dependency on PTE-exported Sanity types.
  • Fixed issue with loading ESM CLI bin.

Affected Symbols