v3.0.0-beta.106 (2024-09-15)
🐛 Bug Fixes
🤝 Contributors
- James Mikrut (@jmikrut)
Pre Release
Tag Name: v3.0.0-beta.106
Release Date: 9/15/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.106 fixes a critical bug related to document duplication with localized nested arrays and blocks. This update resolves crashes caused by foreign key constraints and unique ID issues in Postgres and SQLite databases when duplicating documents with complex nested structures inside localized fields. The fix ensures proper hook execution order across all locales and addresses additional issues with localized groups and named tabs containing arrays or blocks.
No migration is required for this release. The fix is implemented in a way that maintains backward compatibility with existing data structures and configurations.
If you were previously using custom workarounds to handle duplication of localized nested arrays or blocks, you can now remove those workarounds as the core functionality has been fixed.
This upgrade is strongly recommended for all PayloadCMS users who:
The fix resolves a critical issue that could cause application crashes during document duplication operations with complex localized content structures.
Since this is a bug fix release with no breaking changes, upgrading should be straightforward and low-risk.
This release fixes a critical issue where duplicating documents in Postgres or SQLite databases would crash due to foreign key constraints and unique ID conflicts. The problem specifically occurred when documents contained nested arrays or blocks within localized arrays or blocks.
The fix implements a revised hook execution order where beforeDuplicate hooks now run against all locales prior to the beforeValidate and beforeChange hooks. This ensures proper ID generation and constraint handling across all localized content.
Additional fixes address problems in Postgres and SQLite databases when working with:
These structures now properly maintain their relationships during duplication operations without triggering database constraints.
No new features were introduced in this release. This is a bug fix release focused on resolving issues with document duplication in localized nested content structures.
No security fixes were included in this release.
No specific performance improvements were mentioned in this release. The focus was on fixing functionality related to document duplication with localized nested content.
This release addresses a significant pain point for PayloadCMS users working with localized content in Postgres and SQLite databases. The fix prevents crashes during document duplication when dealing with nested arrays and blocks within localized fields, which was a critical issue affecting content management workflows.
The impact is particularly important for multilingual sites and applications that rely on complex content structures with localization. By fixing the foreign key constraint and unique ID issues, this release ensures that content editors can reliably duplicate documents without encountering database errors.
The improved hook execution order (beforeDuplicate running against all locales before beforeValidate and beforeChange) provides a more robust foundation for handling complex document operations across localized content.
Additionally, the fixes for localized groups and named tabs containing arrays or blocks resolve edge cases that were causing problems in real-world content management scenarios.