0.6.2 (2021-04-19)
Features
- modifies relationship field to react to changing relationTo (ddf25fb)
Tag Name: v0.6.2
Release Date: 4/19/2021
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.
What's new: The relationship field now dynamically reacts to changes in the relationTo property, allowing for more flexible and responsive relationship configurations.
Why it matters: This enhancement improves the developer experience by eliminating the need to manually reset or rebuild relationship fields when their target collections change.
Who should care: Developers building Payload CMS applications that utilize relationship fields, especially those with dynamic or changing data models.
relationTo propertyNo migration is required for this release. The enhancement to relationship fields is backward compatible and should work automatically when upgrading from v0.6.1 to v0.6.2.
Existing relationship fields will gain the new reactive behavior without any code changes required.
This is a minor feature release that enhances relationship field functionality. We recommend upgrading to v0.6.2 if you:
The upgrade should be straightforward with no breaking changes:
npm install [email protected]
# or
yarn add [email protected]
No specific bug fixes were included in this release. The primary focus was on enhancing the relationship field's reactivity to changing relationTo properties.
The relationship field component has been modified to properly react when the relationTo property changes. This means:
This enhancement provides greater flexibility when building dynamic interfaces and forms where relationship targets might change based on user input or other conditions.
No security fixes were included in this release.
No specific performance improvements were highlighted in this release. The changes were focused on functionality rather than performance optimization.
This release makes a targeted improvement to relationship fields by enhancing their reactivity to changes in the relationTo property. While this is a relatively small change (35 additions, 16 deletions across 5 files), it significantly improves the developer experience when working with dynamic relationship configurations.
The update allows relationship fields to properly respond when their target collections change, eliminating potential issues or manual intervention that might have been required previously. This is particularly valuable for developers building complex forms or interfaces where relationship targets might change based on user input or application state.
Overall, this is a quality-of-life improvement that makes Payload's relationship fields more flexible and robust without introducing any breaking changes or requiring migrations.