v3.76.0
📦 sanityView on GitHub →
✨ 4 features🐛 14 fixes🔧 10 symbols
Summary
This release focuses heavily on enhancing security and usability within Content Releases by enforcing granular user permissions across various actions. It also introduces new Markdown shortcuts in the Portable Text Editor and includes numerous performance and stability fixes.
Migration Steps
- If updating from a version earlier than 3.37.0, check the article at https://www.sanity.io/help/upgrade-packages to ensure dependencies are up to date.
- The first run after upgrading may produce different results for generated types due to previous sorting inconsistencies introduced by TypeGen improvements.
✨ New Features
- Added Markdown shortcuts for bold (`**text**` or `__text__`) and italic (`*text*` or `_text_`) in the Portable Text Editor.
- TypeGen now implements consistent file sorting for generated types and removes unnecessary trailing whitespaces.
- Added granular release error icons to the global switcher.
- CLI initialization now prompts to select an organization and adds it to `sanity.cli.ts`.
🐛 Bug Fixes
- Fixed multiple permission-related issues in Content Releases, ensuring document actions (discard version, unpublish), action menus, release title/description editing, document search, and archive/unarchive/delete operations respect user permissions.
- Fixed document template initialization bug preventing initial value parameters from persisting between document navigations.
- Resolved performance issues and crashes when rendering document lists with deeply nested schemas.
- Fixed error in the release activity panel when retrieving edit events.
- Fixed an issue where initial value template parameters persisted between documents.
- Fixed spreading of `key` into props in structure components, passing it explicitly.
- Replaced usage of `previewDrafts` with `drafts` in documentation context.
- Fixed bolding of start and end markers in entity field previews (efps).
- Fixed release action dialog issues and improved release overview styling.
- Fixed release action permission handling when creating releases while at the project's release limit.
- Fixed release edit events error when calculating differences.
- Simplified the 'Pin release' button appearance on the release detail screen.
- Fixed resolveLiveEdit name resolution.
- Fixed intent parameter links.
🔧 Affected Symbols
Portable Text EditorTypeGendocument actions (discard version, unpublish)release action menus/buttonsdocument search within releasesarchive/unarchive/delete operationsstructure componentsderiveSearchWeightsFromType2024usePerspectiveuseProjectSubscriptions