v3.0.0-beta.52 (2024-06-18)
Features
Bug Fixes
- payload: generated types issues (#6840) (cf50eab)
- templates: set correct minimum node version in package.json engines (#6835) (223d726)
Contributors
- James Mikrut (@jmikrut)
- Alessio Gravili (@AlessioGr)
Pre Release
Tag Name: v3.0.0-beta.52
Release Date: 6/18/2024
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.
PayloadCMS v3.0.0-beta.52 introduces runtime dependency checks for Payload and Lexical rich text editor, fixes generated types issues from recent prebundling, and updates the minimum Node.js version in template package.json files. This release improves developer experience with better error handling for missing dependencies and resolves type generation problems that affected TypeScript users.
No migration is required for this release. The changes are primarily bug fixes and developer experience improvements that don't require any action from users upgrading from the previous beta version.
This is a recommended upgrade for all users of Payload v3.0.0-beta.51, especially for TypeScript developers who may have been affected by the generated types issues. The release contains important bug fixes and developer experience improvements with no breaking changes.
To upgrade:
npm install [email protected]
# or
yarn add [email protected]
# or
pnpm add [email protected]
Fixed issues with TypeScript generated types that were broken by recent prebundling and exports consolidation changes. This ensures that TypeScript developers can properly leverage Payload's type system without encountering unexpected errors or type mismatches.
Updated the package.json templates to correctly specify Node.js v20.9.0 as the minimum version in the engines field. This ensures that new projects created with Payload templates will have the correct Node.js version requirements, as v20.9.0 is the earliest version of the Node.js v20 LTS release.
Added runtime dependency checks for Payload and the Lexical rich text editor. This feature improves developer experience by providing clearer error messages when required dependencies are missing. The system now validates that all necessary packages are properly installed before attempting to use them, preventing cryptic errors that might occur later in the application lifecycle.
This is particularly helpful for plugin developers and when working with optional dependencies like the rich text editor components.
No security fixes were mentioned in this release.
No specific performance improvements were mentioned in this release.
This release focuses on improving developer experience and fixing issues that affected TypeScript users. The runtime dependency checks provide clearer error messages when dependencies are missing, which is particularly valuable for plugin developers and those working with the rich text editor.
The fix for generated types resolves issues introduced by recent prebundling and export consolidation changes, ensuring that TypeScript developers can properly leverage Payload's type system.
The update to the minimum Node.js version in templates ensures that new projects start with the correct Node.js requirements, aligning with the Node.js LTS release schedule.
Overall, this is a quality-of-life improvement release that enhances stability and developer experience without introducing breaking changes.