TL;DR
PayloadCMS v3.0.0-beta.94 brings important bug fixes and UI improvements. This release addresses race conditions with locale switching and autosave, fixes infinite relationship population in rich text HTML converters, and enhances upload field styling. It also adds a new slug component to the website templates. These changes improve stability and user experience for content editors working with multilingual content and file uploads.
Highlight of the Release
- Fixed race condition between locale selector and autosave functionality
- Resolved infinite relationship population issue in rich text HTML converters
- Enhanced upload field UI with improved styling and functionality
- Added new slug component to website templates
Migration Guide
No migration steps are required for this beta release. The changes are primarily bug fixes and enhancements that don't require any specific migration actions from users upgrading from v3.0.0-beta.93.
Upgrade Recommendations
This upgrade is recommended for all users of PayloadCMS v3.0.0-beta.93, especially those who:
- Work with multilingual content and use the autosave feature
- Use rich text fields with HTML content containing relationships
- Work extensively with upload fields
- Are building websites using PayloadCMS templates
The bug fixes in this release address important stability issues that could affect content integrity and user experience.
Bug Fixes
Locale Selector and Autosave Race Condition
Fixed a race condition where switching locales could trigger autosave with data from the previous locale. This was resolved by adding a key property to the Document component, ensuring that the entire document is unmounted and remounted between locale switches, preventing stale data from being saved.
Rich Text HTML Converters Infinite Relationship Population
Addressed an issue where HTML converters in the Lexical rich text editor could populate relationships infinitely, causing performance problems and potential crashes. This fix prevents the recursive relationship population, improving stability and performance when working with complex rich text content that includes relationships.
Upload Field UI and Functionality
Implemented various fixes and style improvements for the upload field component:
- Enhanced visual styling for better clarity and usability
- Fixed issues with handling multiple uploads
- Improved overall user experience when working with file uploads
This addresses the reported issue #7819.
New Features
New Slug Component for Website Templates
A new slug component has been added to the website templates, providing improved URL management capabilities. This component enhances the way URLs can be structured and managed within PayloadCMS websites, offering more flexibility and control over content addressing.
The slug component is part of ongoing improvements to the template system, making it easier for developers to create well-structured, SEO-friendly websites with PayloadCMS.
Security Updates
No specific security fixes were included in this release.
Performance Improvements
Rich Text Performance Improvements
The fix for infinite relationship population in HTML converters significantly improves performance when working with rich text fields that contain relationships. By preventing recursive relationship population, the system avoids unnecessary processing and potential memory issues, resulting in better overall performance and stability when working with complex content structures.
Impact Summary
This beta release focuses on improving stability and user experience in PayloadCMS. The fixes for the locale selector race condition and rich text relationship handling address potential data integrity issues that could affect content editors working with multilingual content or complex rich text fields.
The enhanced upload field UI improves the content management experience, making it more intuitive to work with file uploads. These improvements collectively enhance the reliability and usability of PayloadCMS for both developers and content editors.
The addition of the new slug component to website templates provides developers with more tools for building well-structured websites with PayloadCMS.
As a beta release, these changes continue to refine the v3.0.0 feature set before the final stable release.
Full Release Notes
🚀 Features
- templates: add new slug component to the website (#7895) (5d97d57)
🐛 Bug Fixes
- upload has many field updates (#7894) (a76be81)
- richtext-lexical: html converters can populate relationships infinitely (#7890) (de7ff1f)
- locale selector + autosave race condition (#7891) (3d714d3)
Contributors