Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.6.2

Payload CMS Release: Release 0.6.2

Tag Name: v0.6.2

Release Date: 4/19/2021

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

Payload CMS v0.6.2 Release

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.

Highlight of the Release

    • Relationship fields now react dynamically to changes in the relationTo property
    • Improved developer experience with more responsive relationship configurations
    • Small but impactful update focused on relationship field functionality

Migration Guide

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

Upgrade Recommendations

This is a minor feature release that enhances relationship field functionality. We recommend upgrading to v0.6.2 if you:

  • Use relationship fields in your Payload CMS implementation
  • Need relationship fields to react to dynamic changes in their targets
  • Want to ensure you have the latest improvements

The upgrade should be straightforward with no breaking changes:

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

Bug Fixes

No specific bug fixes were included in this release. The primary focus was on enhancing the relationship field's reactivity to changing relationTo properties.

New Features

Enhanced Relationship Field Reactivity

The relationship field component has been modified to properly react when the relationTo property changes. This means:

  • Relationship fields now dynamically update when their target collection changes
  • The field will properly re-render and adjust its behavior based on the new relationship target
  • Developers can programmatically change relationship targets without unexpected behavior

This enhancement provides greater flexibility when building dynamic interfaces and forms where relationship targets might change based on user input or other conditions.

Security Updates

No security fixes were included in this release.

Performance Improvements

No specific performance improvements were highlighted in this release. The changes were focused on functionality rather than performance optimization.

Impact Summary

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.

Full Release Notes

0.6.2 (2021-04-19)

Features

  • modifies relationship field to react to changing relationTo (ddf25fb)

Statistics:

File Changed5
Line Additions35
Line Deletions16
Line Changes51
Total Commits2

User Affected:

  • Can now dynamically change relationship field targets without manual resets
  • Experience improved reactivity when modifying relationship configurations
  • Benefit from more flexible relationship field implementations

Contributors:

jmikrut