Home

>

Tools

>

Payload CMS

>

Releases

>

Release 2.0.3

Payload CMS Release: Release 2.0.3

Tag Name: v2.0.3

Release Date: 10/16/2023

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 v2.0.3 Release

This maintenance release addresses several critical bugs in Payload CMS, including fixes for webpack exports, PostgreSQL type generation issues, and relationship field clearing problems. The release also includes documentation improvements for migrations, custom views, and updated Node.js requirements. This update is important for ensuring proper functionality of relationship fields, PostgreSQL database implementations, and webpack builds.

Highlight of the Release

    • Fixed webpack export default issue that was causing build failures
    • Resolved PostgreSQL generated type ID problems
    • Fixed hasMany relationships that couldn't be cleared
    • Improved documentation for migrations, custom views, and Node.js requirements

Migration Guide

No migration steps are required for this release. This is a patch update that fixes bugs without introducing breaking changes.

To update, simply run:

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

Upgrade Recommendations

This update is highly recommended for all Payload CMS users, especially those:

  • Using PostgreSQL as their database
  • Working with relationship fields, particularly hasMany relationships
  • Experiencing webpack build issues

The bug fixes in this release address critical functionality issues that could impact data integrity and system stability. Since this is a patch release (2.0.3), the upgrade should be straightforward with no breaking changes.

Bug Fixes

  • Webpack Export Issue: Fixed a critical issue where webpack export default was not being found, causing build failures (#3494)

  • PostgreSQL Type Generation: Resolved an issue with PostgreSQL generated type IDs that was causing problems with database operations (#3504)

  • Relationship Field Clearing: Fixed a bug where hasMany relationships couldn't be cleared, forcing users to maintain unwanted relationships (#3513)

New Features

No new features were introduced in this release. This is a maintenance release focused on bug fixes and documentation improvements.

Security Updates

No security fixes were mentioned in this release.

Performance Improvements

No specific performance improvements were included in this release. The focus was on bug fixes and documentation enhancements.

Impact Summary

Payload CMS v2.0.3 is a maintenance release that addresses three significant bugs affecting webpack builds, PostgreSQL database implementations, and relationship field functionality. The fixes ensure that webpack exports work correctly, PostgreSQL type generation for IDs functions properly, and hasMany relationships can be cleared as expected.

The release also improves documentation in several areas, including migration processes, the payload script in package.json, Node.js version requirements, and custom views implementation.

While this release doesn't introduce new features or performance improvements, it resolves critical issues that could impact development workflows and content management. The fixes for relationship fields and PostgreSQL type generation are particularly important for ensuring data integrity and proper system functionality.

Full Release Notes

Statistics:

User Affected:

  • Fixed webpack export issues that were causing build failures
  • Resolved PostgreSQL type generation problems for ID fields
  • Can now properly clear hasMany relationships that previously couldn't be emptied
  • Received improved documentation for migrations and custom views

Contributors: