Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.15.7

Payload CMS Release: Release 0.15.7

Tag Name: v0.15.7

Release Date: 4/12/2022

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.15.7 brings important fixes and updates

This minor release focuses on improving documentation, fixing UI issues with checkbox validation errors, and updating key dependencies to newer versions. The update to React 18 represents a significant modernization of the framework's foundation, while documentation improvements make it easier for developers to customize and extend PayloadCMS.

Highlight of the Release

    • Fixed positioning of validation error messages for checkbox fields
    • Updated to React 18 and related dependencies
    • Improved documentation with fixed anchor links and better CSS customization guides
    • Enhanced form validation for required checkbox fields

Migration Guide

React 18 Update

This release updates PayloadCMS to React 18. If you have custom components that integrate with the admin panel, you may need to review them for compatibility with React 18.

Key changes in React 18 that might affect custom components:

  • New automatic batching behavior for state updates
  • New root API with createRoot instead of render
  • Changes to Suspense behavior

For most users, this update should be transparent and require no changes to your code.

Upgrade Recommendations

This is a minor release with bug fixes and dependency updates. It's recommended to upgrade to benefit from the improved checkbox validation positioning and documentation improvements.

If you have extensive custom components in the admin UI, test them thoroughly after upgrading due to the React 18 update.

To upgrade:

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

Bug Fixes

UI and Validation Fixes

  • Fixed positioning of validation error messages for checkbox fields, ensuring they appear in the correct location relative to the checkbox
  • Fixed destructuring of args inside the exampleFieldHook function in documentation

Documentation Fixes

  • Updated anchor links throughout the documentation
  • Added missing information about required dependencies (sass-loader & node-sass) for customizing CSS variables in the admin panel

New Features

Enhanced Form Validation

  • Added sanitization of defaultValue to false when a checkbox field is required, improving form validation behavior and preventing confusing states

Documentation Improvements

  • Fixed anchor links throughout the documentation for better navigation
  • Added documentation for the Field component anchor links
  • Enhanced documentation for customizing CSS in the admin panel, including required dependencies

Security Updates

No security fixes were mentioned in this release.

Performance Improvements

No specific performance improvements were mentioned in this release.

Impact Summary

This release has a low to moderate impact, primarily affecting the admin UI experience and developer documentation. The most significant change is the update to React 18, which modernizes the framework but may require testing of custom admin components.

The checkbox validation error positioning fix improves the user experience for content editors working with forms containing checkbox fields. The documentation improvements make it easier for developers to customize the admin UI and understand how to use field hooks correctly.

No database changes or API modifications are included in this release, making it a safe upgrade for most users. The changes are focused on the admin panel UI and developer experience rather than core functionality.

Full Release Notes

0.15.7 (2022-04-12)

Bug Fixes

  • checkbox validation error positioning (9af89b6)

Features

  • sanitize defaultValue to false when field is required (6f84c0a)

Statistics:

File Changed36
Line Additions115
Line Deletions68
Line Changes183
Total Commits8

User Affected:

  • Benefit from improved documentation with fixed anchor links
  • Can now properly follow guides for customizing CSS with added information about required dependencies
  • Need to be aware of the React 18 update which may affect custom components

Contributors:

wbjohnDanRibbensoutdatedx