TL;DR
PayloadCMS v3.0.0-beta.92 introduces several key improvements including a new info command for system diagnostics, more lenient URL validation in the Lexical rich text editor, and dependency checks for Next.js and React versions. This release also fixes multiple bugs related to live preview functionality, template issues, and plugin dependencies. The update enhances developer experience with better error handling and improved compatibility.
Highlight of the Release
- New
info command for system diagnostics similar to Next.js
- More lenient URL validation in Lexical rich text editor with automatic URL encoding
- Next.js and React version compatibility checks
- Multiple bug fixes for website templates and live preview functionality
Migration Guide
No migration steps are required for this beta release. The changes are primarily additive features and bug fixes that don't require modifications to existing code.
If you're using the SEO plugin and were previously importing from the payload/next package, note that this dependency has been removed, which might require adjusting your imports if you were relying on this structure.
Upgrade Recommendations
This beta release (v3.0.0-beta.92) is recommended for developers who:
- Need the new diagnostic
info command
- Were experiencing issues with URL validation in the Lexical rich text editor
- Want improved dependency checking for Next.js and React
- Were affected by any of the fixed bugs, particularly with website templates or live preview
As this is a beta release, it's advisable to test thoroughly in a non-production environment before upgrading production systems. The changes are primarily additive and bug fixes, so the upgrade should be straightforward with minimal risk.
Bug Fixes
Template Fixes
- Fixed website template issues with slug generation
- Improved form builder functionality
- Added support for
strictNullChecks: true in TypeScript
- Resolved live preview and code block issues in website templates
Plugin and Integration Fixes
- Removed dependency on imports from the payload/next package in the SEO plugin
- Fixed error that occurred when closing the live preview popup window
- Properly sanitized
modifyResponseHeaders from client configuration
Export Fixes
- Exported
useSlatePlugin from richtext-slate package, making it available for external use
New Features
New info Command
The release introduces a new info command similar to Next.js that provides detailed system diagnostics. Running pnpm payload info outputs comprehensive information about:
- Node.js, npm, Yarn, and pnpm versions
- Installed Payload packages and their versions
- Next.js and React versions
- Operating system details including platform, architecture, kernel version
- Available system resources (memory and CPU cores)
This feature helps developers quickly gather system information for debugging and support purposes.
Enhanced URL Validation in Lexical Rich Text Editor
The Lexical rich text editor now features more lenient URL validation that only errors on spaces. This improvement:
- Simplifies the validation process
- Automatically URL-encodes invalid URLs during the save process
- Fixes issues reported in #7477
Dependency Version Checks
Added checks for Next.js and React versions in the dependency checker, helping developers ensure compatibility between Payload and these critical dependencies.
Security Updates
No specific security fixes were mentioned in this release.
Performance Improvements
No specific performance improvements were highlighted in this release. The changes were primarily focused on new features, bug fixes, and compatibility improvements.
Impact Summary
This beta release brings quality-of-life improvements for both developers and content editors. The new info command provides valuable system diagnostics, while the more lenient URL validation in the Lexical rich text editor improves the content editing experience by automatically handling invalid URLs.
The dependency checks for Next.js and React versions help prevent compatibility issues early in the development process. Multiple bug fixes address issues in website templates, live preview functionality, and plugin dependencies, enhancing overall stability.
For template users, the fixes to slug generation, form builder functionality, and support for strictNullChecks: true in TypeScript improve the development experience and code quality. The SEO plugin's reduced dependencies make it more modular and easier to maintain.
Overall, this release focuses on developer experience, content editing improvements, and fixing specific pain points reported by the community.
Full Release Notes
🚀 Features
- implement info command (#7882) (ea48cfb)
- add nextjs and react version checks to dependency checker (#7868) (dfb4c8e)
- richtext-lexical: more lenient url validation, URL-encode invalid urls on save (#7870) (ad7a387)
🐛 Bug Fixes
- templates: website live preview and code block (#7881) (1aeb912)
- plugin-seo: remove dependency on import from payload/next package (#7879) (ce2cb35)
- error when closing the live preview popup window (#7878) (d3ec68a)
- templates: website bug fixes for slug generation and form builder and adds support for strictNullChecks: true (#7877) (05bf52a)
- sanitizes modifyResponseHeaders from client config (#7876) (fed7f2f)
- exports richtext-slate useSlatePlugin (#7875) (686b086)
Contributors