Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.7.10

Payload CMS Release: Release 0.7.10

Tag Name: v0.7.10

Release Date: 7/27/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

Payload CMS v0.7.10 brings significant improvements to conditional field logic with better performance and edge case handling, along with fixes for skipValidation logic and testing infrastructure. This release focuses on enhancing the reliability and efficiency of conditional fields, which are core to building dynamic forms and content structures.

Highlight of the Release

    • Significant performance improvements for conditional field logic
    • Better handling of edge cases in conditional fields
    • Fixed skipValidation logic for more reliable form validation
    • Improved testing infrastructure for contributors

Migration Guide

No migration is required for this release. The improvements to conditional logic and bug fixes are backward compatible with existing Payload applications.

Upgrade Recommendations

This release is recommended for all users, especially those who make heavy use of conditional fields in their content models. The performance improvements and bug fixes provide a better experience without requiring any changes to your existing code.

To upgrade:

npm install [email protected]
# or
yarn add [email protected]

Bug Fixes

  • skipValidation Logic: Fixed issues with the skipValidation functionality that could cause validation to run when it shouldn't or be skipped when it should run
  • Jest Debug Testing: Resolved issues with Jest debug testing that were causing problems for contributors
  • macOS Development: Fixed configuration issues that were preventing tests from running properly on macOS environments

New Features

Improved Conditional Logic

The conditional field logic system has been significantly enhanced in this release:

  • Performance Optimization: Conditional fields now evaluate more efficiently, reducing unnecessary re-renders and improving overall form responsiveness
  • Edge Case Handling: Fixed various edge cases where conditional logic might not behave as expected, particularly in complex nested field scenarios
  • More Reliable Field Visibility: Conditional show/hide behavior is now more consistent across different field configurations

Security Updates

No security fixes were included in this release.

Performance Improvements

  • Conditional Field Evaluation: Optimized the way conditional fields are evaluated, reducing unnecessary processing and improving form responsiveness
  • Reduced Re-renders: The conditional logic system now minimizes component re-renders when field conditions change, resulting in smoother UI interactions especially in forms with many conditional fields

Impact Summary

This release focuses on improving the reliability and performance of conditional fields, which are a core feature of Payload CMS. The enhancements to conditional logic will be particularly beneficial for projects with complex forms and interdependent fields.

The fixes to skipValidation logic ensure that form validation behaves consistently, which is important for maintaining data integrity while providing flexibility in how validation is applied.

While this is a minor release, the performance improvements may be noticeable in admin UI responsiveness for sites with complex conditional field relationships.

Full Release Notes

0.7.10 (2021-07-27)

Bug Fixes

Features

  • improves conditional logic performance and edge cases (d43390f)

Statistics:

File Changed40
Line Additions124
Line Deletions109
Line Changes233
Total Commits7

User Affected:

  • Benefit from improved conditional field logic performance when building complex forms
  • Experience more reliable behavior with conditional fields in edge cases
  • Fixed skipValidation logic ensures validation behaves as expected

Contributors:

jmikrut