Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.10.5

Payload CMS Release: Release 0.10.5

Tag Name: v0.10.5

Release Date: 9/28/2021

Payload CMS LogoPayload CMS

Payload 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.

TL;DR

PayloadCMS v0.10.5 Release

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.

Highlight of the Release

    • New rich text editor upload functionality allows embedding media directly in content
    • Upload Gallery component for managing media within the rich text editor
    • Fixed pagination performance with optimized estimatedCount queries
    • Corrected index creation for localized fields
    • Improved validation logic for fields within non-required groups

Migration Guide

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.

Upgrade Recommendations

This release is recommended for all Payload CMS users, especially those who:

  1. Use the rich text editor extensively for content creation
  2. Work with multilingual content using localized fields
  3. Have experienced issues with pagination performance
  4. Use form validation with nested group fields

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]

Bug Fixes

This release addresses three important bugs:

  1. 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.

  2. 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.

  3. 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.

New Features

Rich Text Editor Upload Element

The most significant addition in this release is the new rich text editor upload functionality. Content editors can now:

  • Upload media files directly from within the rich text editor
  • Browse and select from existing media using the new UploadGallery component
  • Embed images and other media seamlessly into content
  • Manage uploaded content without leaving the editor interface

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.

Security Updates

No specific security fixes were mentioned in this release.

Performance Improvements

While not explicitly labeled as performance improvements, two of the bug fixes in this release directly enhance system performance:

  1. 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.

  2. 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.

Impact Summary

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.

Full Release Notes

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)

Features

  • adds rich text editor upload element (aa76950)
  • adds UploadGallery to rich text upload (6f3edf9)
  • progress to rich text upload (85c6c30)
  • updates slate, finishes rte upload (08db431)

Statistics:

File Changed38
Line Additions870
Line Deletions350
Line Changes1,220
Total Commits13

User Affected:

  • Can now upload and embed media directly within the rich text editor
  • Will experience improved workflow with the new rich text upload gallery
  • Will benefit from more accurate form validation in non-required groups

Contributors:

jmikrutDanRibbens