Payload CMS Release: Release 0.15.8
Tag Name: v0.15.8
Release Date: 4/20/2022
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.
TL;DR
PayloadCMS v0.15.8 is a maintenance release that fixes critical issues with rich text editor input height and upload field validation. It also includes important dependency updates, including a migration to React 18, and improves TypeScript compatibility. This release focuses on stability and developer experience improvements rather than introducing new features.
Highlight of the Release
- Fixed rich text editor input height issues for better editing experience
- Added validation to ensure relationTo is valid in upload fields
- Migrated to React 18
- Improved TypeScript dependency compatibility
Migration Guide
Migrating to React 18
This release includes a migration to React 18. If you have custom components that interact with PayloadCMS, you may need to review them for compatibility with React 18's changes.
Key considerations:
- React 18 introduces automatic batching of state updates
- If you're using
ReactDOM.render()in your custom code, you'll need to update toReactDOM.createRoot() - Review any usage of deprecated lifecycle methods
For most users, this upgrade should be transparent, but if you encounter any React-related issues after upgrading, consult the React 18 upgrade guide for more information.
Upgrade Recommendations
This is a recommended upgrade for all PayloadCMS users, especially those experiencing issues with the rich text editor or upload fields. The bug fixes address important usability concerns, and the dependency updates ensure better compatibility with modern development environments.
To upgrade:
npm install [email protected]
# or
yarn add [email protected]
After upgrading, test your rich text editors and upload fields to ensure they function as expected with the fixes included in this release.
Bug Fixes
Rich Text Editor Input Height
Fixed an issue where the rich text editor input height was not being properly calculated or maintained, causing UI inconsistencies and potential usability problems during content editing. This fix ensures a more consistent and reliable editing experience.
Upload Field Validation
Added validation to ensure that the relationTo property is valid in upload fields. This prevents configuration errors and improves error handling with more descriptive messages when invalid configurations are detected. The validation occurs during the sanitization process, ensuring problems are caught early.
New Features
No significant new features were introduced in this release. This update primarily focuses on bug fixes and maintenance improvements.
Security Updates
No specific security fixes were mentioned in this release.
Performance Improvements
The migration to React 18 may provide performance improvements through automatic batching of state updates and other internal optimizations. While not explicitly mentioned in the release notes, React 18's improvements to rendering and concurrent features could benefit the overall application performance.
Impact Summary
PayloadCMS v0.15.8 is primarily a maintenance release that addresses specific UI and validation issues while updating core dependencies. The impact is focused on improving developer and content editor experiences rather than changing functionality.
The rich text editor fix resolves height calculation issues that affected the editing experience, while the upload field validation prevents potential errors in field configuration. The migration to React 18 modernizes the framework foundation but should be largely transparent to most users.
For development teams, the TypeScript dependency compatibility improvements ensure better type safety and development experience. The GitHub Actions workflow improvements for demo type generation will benefit contributors to the PayloadCMS project itself.
Full Release Notes
Statistics:
User Affected:
- Fixed issues with rich text editor height that previously caused UI inconsistencies
- Improved error handling for upload fields with invalid relationTo configurations
- Upgraded to React 18 which may affect custom components
- Enhanced TypeScript dependency compatibility for better type safety
