Home

>

Tools

>

Payload CMS

>

Releases

>

3.0.0-beta.52

Payload CMS Release: 3.0.0-beta.52

Pre Release

Tag Name: v3.0.0-beta.52

Release Date: 6/18/2024

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 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.

Highlight of the Release

    • Added runtime dependency checks for Payload and Lexical rich text editor
    • Fixed generated TypeScript types issues from recent prebundling
    • Updated minimum Node.js version in templates to v20.9.0 LTS

Migration Guide

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.

Upgrade Recommendations

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]

Bug Fixes

Generated Types Issues Fixed

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.

Correct Minimum Node Version in Templates

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.

New Features

Runtime Dependency Checks

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.

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 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.

Full Release Notes

Statistics:

File Changed41
Line Additions706
Line Deletions408
Line Changes1,114
Total Commits4

User Affected:

  • Fixed generated types issues that were broken by recent prebundling and exports consolidation
  • Improved type safety and developer experience when working with Payload's TypeScript interfaces

Contributors:

AlessioGrjmikrutdenolfe