Home

>

Tools

>

Payload CMS

>

Releases

>

3.0.0-beta.62

Payload CMS Release: 3.0.0-beta.62

Pre Release

Tag Name: v3.0.0-beta.62

Release Date: 7/12/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.62 brings significant improvements to the admin UI, enhanced type safety for rich text fields, and better field validation. This release focuses on developer experience and UI refinements with improved version status display, better styling and accessibility, and enhanced type support for Lexical rich text editor. It also adds validation for field names to prevent conflicts with reserved system names.

Highlight of the Release

    • Enhanced type safety for Lexical rich text editor with improved TypeScript generics
    • Field name validation to prevent conflicts with reserved system names
    • Improved version status UI with more informative displays
    • Better admin panel styling with improved color contrast and consistent error tooltips
    • Suppressed email adapter warnings during production builds

Migration Guide

No migration is required for this beta release. However, developers should be aware of the following changes:

  1. Field names are now validated against reserved system names (__v, salt, hash, file). Ensure your field names don't conflict with these protected names.

  2. If you're using the Lexical rich text editor with custom types:

    • SerializedBlockNode is no longer included in default node types
    • SerializedLineBreakNode has been added to default node types
    • You can now use generics to type SerializedBlockNode fields for better type safety
  3. The email adapter warning will no longer appear during production builds, as it now evaluates the NEXT_PHASE environment variable.

Upgrade Recommendations

This beta release (v3.0.0-beta.62) is recommended for developers who:

  1. Are already using PayloadCMS v3 beta
  2. Need improved type safety for Lexical rich text fields
  3. Want better admin UI styling and version status displays
  4. Need field name validation to prevent conflicts with system fields

As this is a beta release, it's recommended for testing and development environments rather than production unless you're already running the v3 beta series. The changes in this release are non-breaking and focus on improvements and enhancements.

Bug Fixes

  • Fixed issue where admin.layout: vertical was not being properly applied to radio fields
  • Corrected misaligned modals in the admin interface
  • Addressed inconsistent placement of field error tooltips

New Features

Rich Text Editor Improvements

  • Added support for typing SerializedBlockNode fields via generics, enhancing type safety
  • Added missing SerializedLineBreakNode to default node types
  • Removed SerializedBlockNode from default node types for better type handling

Admin UI Enhancements

  • Improved version status UI in version archive and comparison views for better clarity
  • Enhanced admin panel styling with better color contrast for improved accessibility
  • Adjusted placement of field error tooltips for consistency
  • Fixed misaligned modals
  • Corrected issue where admin.layout: vertical was not being applied to radio fields

Developer Experience

  • Added validation for field names against protected field names (__v, salt, hash, file)
  • Suppressed email adapter warnings during production builds by evaluating NEXT_PHASE environment variable
  • Improved documentation for hooks

Security Updates

No security fixes were mentioned in this release.

Performance Improvements

No specific performance improvements were highlighted in this release. The changes were primarily focused on feature enhancements, UI improvements, and developer experience.

Impact Summary

This release enhances PayloadCMS with improved developer experience and UI refinements. The addition of field name validation helps prevent potential conflicts with system fields, while the rich text editor improvements provide better type safety for developers working with custom content structures.

The admin UI enhancements deliver a more accessible and user-friendly experience with better color contrast, consistent error tooltips, and more informative version status displays. These changes collectively improve both the developer and content editor experience without introducing breaking changes.

For developers already using the v3 beta, this update provides valuable quality-of-life improvements and should be a straightforward upgrade. The improved documentation for hooks also helps developers better understand and implement custom logic within their PayloadCMS applications.

Full Release Notes

v3.0.0-beta.62 (2024-07-12)

Features

  • validate field names for reserved names (#7130) (03d854e)
  • ui: various admin panel styling improvements (#7121) (c359c34)
  • suppress email adapter warning on build (#7129) (b750ebf)
  • ui: updates version status UI to be more informative (#6661) (c019969)
  • richtext-lexical: add missing SerializedLineBreakNode to default node types, remove SerializedBlockNode from default node types (1c8bed5)
  • richtext-lexical: allow SerializedBlockNode fields to be typed via generic (10336ba)

Contributors

Statistics:

File Changed129
Line Additions1,013
Line Deletions637
Line Changes1,650
Total Commits9

User Affected:

  • Better type safety for rich text fields with improved TypeScript generics
  • Field name validation to prevent conflicts with reserved system names
  • Suppressed email adapter warnings during production builds
  • Improved documentation for hooks

Contributors:

AlessioGrjessrynkardenolfejacobsfletchtylandavispaulpopus