0.10.5 (2021-09-28)
Bug Fixes
- ensures that fields within non-required groups are correctly not required (1597055)
- index creation on localized field parent (23e8197)
- pagination estimatedCount limited to near query (73bd698)
Tag Name: v0.10.5
Release Date: 9/28/2021
Payload CMSPayload CMS is a modern, self-hosted headless content management system built with TypeScript, Node.js, and MongoDB. It's designed specifically for developers who want full control over their content management system while maintaining a powerful admin interface for content editors.
This release introduces a significant enhancement to the rich text editor with the ability to upload and embed media directly within the editor. It also addresses several critical bugs related to pagination, index creation for localized fields, and field validation within non-required groups.
The rich text upload feature streamlines content creation by allowing users to manage media without leaving the editor, while the bug fixes improve database performance and form validation accuracy.
No migration steps are required for this release. The improvements and bug fixes are backward compatible with existing Payload applications.
For developers who want to implement the new rich text upload functionality, refer to the updated documentation on rich text elements.
This release is recommended for all Payload CMS users, especially those who:
The upgrade process should be straightforward with no breaking changes reported. Update your dependency using npm or yarn:
npm install @payloadcms/[email protected]
# or
yarn add @payloadcms/[email protected]
This release addresses three important bugs:
Pagination Query Optimization: Fixed an issue with estimatedCount in pagination that was causing performance problems with near queries. The pagination system now correctly limits the estimated count to improve query efficiency.
Localized Field Indexing: Resolved a problem with MongoDB index creation on localized field parents. This fix ensures that indexes are properly created for localized fields, improving query performance for multilingual content.
Form Validation Logic: Corrected the validation behavior for fields within non-required groups. Previously, fields inside non-required groups could be incorrectly marked as required. This fix ensures that validation logic properly respects the parent group's required status.
The most significant addition in this release is the new rich text editor upload functionality. Content editors can now:
This feature streamlines the content creation workflow by eliminating the need to switch between different interfaces when adding media to content.
The implementation includes updates to the underlying Slate.js editor framework, ensuring a smooth and reliable editing experience.
No specific security fixes were mentioned in this release.
While not explicitly labeled as performance improvements, two of the bug fixes in this release directly enhance system performance:
The pagination estimatedCount fix optimizes database queries by limiting count operations to what's necessary for the near query. This results in faster pagination, especially for collections with large numbers of documents.
The corrected index creation for localized fields improves query performance for multilingual content by ensuring that MongoDB can efficiently use indexes when querying localized data.
This release significantly enhances the content editing experience in Payload CMS by introducing direct media upload capabilities within the rich text editor. Content creators will benefit from a more streamlined workflow, no longer needing to switch contexts when embedding media in their content.
The bug fixes address important issues related to database performance and form validation. The pagination optimization improves the efficiency of list views, particularly for large collections. The fix for localized field indexing ensures better performance for multilingual content. The correction to validation logic for fields within non-required groups provides a more intuitive and accurate form experience.
Overall, v0.10.5 delivers quality-of-life improvements for content editors while addressing performance and correctness issues that benefit developers and database administrators.