Home

>

Tools

>

Payload CMS

>

Releases

>

3.0.0-beta.95

Payload CMS Release: 3.0.0-beta.95

Pre Release

Tag Name: v3.0.0-beta.95

Release Date: 8/28/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.95 brings important bug fixes for localized fields in databases, rich text relationship features, navigation issues, and upload depth handling. This release focuses on improving stability and fixing critical issues in the beta version, particularly around database handling of complex field types and UI components.

Highlight of the Release

    • Fixed database handling of localized blocks and arrays containing relationships, other arrays, or blocks
    • Fixed enabledCollections and disabledCollections props in RelationshipFeature for rich text editor
    • Resolved issue with active navigation items in child routes
    • Fixed depth not being respected by upload hasMany relationships
    • Improved HTML text escaping in rich text lexical converter

Migration Guide

No migration steps are required for this beta release. The changes are primarily bug fixes that should work automatically when upgrading from v3.0.0-beta.94 to v3.0.0-beta.95.

If you're using localized fields with complex structures (arrays, blocks, relationships) in Postgres or SQLite databases, you may notice improved behavior with localization after upgrading, but no manual migration steps are needed.

Upgrade Recommendations

This upgrade is recommended for all users of PayloadCMS v3.0.0-beta.94, especially if you:

  • Use localized fields with complex structures (arrays, blocks, relationships)
  • Use the rich text editor with relationship features
  • Have applications with nested routes and navigation
  • Work with upload fields and hasMany relationships

The release contains important bug fixes that improve stability and functionality without introducing breaking changes. Upgrade by updating your package.json and running:

npm install [email protected]
# or
yarn add [email protected]
# or
pnpm add [email protected]

Bug Fixes

Database Fixes

  • Localized Fields in Postgres/SQLite: Fixed issues with localized blocks or arrays containing other arrays, blocks, or relationship fields not properly storing locales in the database. This addresses step 6 identified in issue #7805.

Rich Text Editor Fixes

  • Relationship Feature Props: Fixed enabledCollections and disabledCollections properties in the RelationshipFeature not being sent to the client, which prevented them from working as expected. These properties are now correctly sent via the clientFeatureProps property. Fixes issue #7379.
  • HTML Converter: Ensured text is properly escaped in the HTML converter for the Lexical rich text editor.

UI Fixes

  • Navigation: Fixed active navigation item being set incorrectly in child routes, improving the user experience when navigating through the admin panel.
  • Admin Dependencies: Fixed issue where admin.dependencies components were not being added to the client configuration.

Upload Fixes

  • Depth Handling: Fixed issue where depth parameter was not being respected by upload hasMany relationships.

Package Management

  • Moved ui and translations from peerDependencies to dependencies for several packages, eliminating the need for users to install these directly unless making customizations.
  • Updated turborepo npm scripts to accommodate a breaking change from vercel/turborepo#8137.

New Features

No significant new features were added in this release as it primarily focuses on bug fixes and stability improvements.

Security Updates

No specific security fixes were included in this release.

Performance Improvements

This release doesn't include specific performance improvements, but the bug fixes for database handling of localized fields and relationship features should result in more reliable and consistent performance, especially for applications with complex data structures and multi-language content.

Impact Summary

This release focuses on bug fixes and stability improvements for PayloadCMS beta users. The most significant impact is on database handling of localized fields with complex structures, which now properly store locale information. This is particularly important for multi-language applications using Postgres or SQLite databases.

The fixes for relationship features in the rich text editor improve content editing capabilities, while navigation and UI fixes enhance the admin experience. The package management changes simplify dependency handling for users.

Overall, this release represents an important step toward stabilizing the v3.0.0 beta series, addressing several critical issues that affected database integrity, UI functionality, and content editing workflows.

Full Release Notes

v3.0.0-beta.95 (2024-08-28)

🐛 Bug Fixes

  • ui: admin.dependencies components not added to client config (#7928) (ef818fd)
  • richtext-lexical: enabledCollections and disabledCollections props in RelationshipFeature (#7926) (0aaf3af)
  • db-postgres, db-sqlite: hasMany text, number, poly relationship, blocks, arrays within localized fields (#7900) (18b0806)
  • richtext-lexical: ensure html converter text is escaped (#7919) (c7e7dc7)
  • active nav item set incorrectly in child routes (#7918) (375671c)
  • depth not being respected by upload has many (#7897) (27d743e)

Contributors

Statistics:

File Changed85
Line Additions2,190
Line Deletions1,047
Line Changes3,237
Total Commits12

User Affected:

  • Fixed issues with localized fields in Postgres and SQLite databases
  • Resolved problems with relationship features in rich text editor
  • Fixed navigation issues in child routes
  • Better handling of upload depth in hasMany relationships

Contributors:

denolfepaulpopusJarrodMFleschAlessioGrjacobsfletchjmikrutGermanJablo