Home

>

Tools

>

Payload CMS

>

Releases

>

3.0.0-beta.77

Payload CMS Release: 3.0.0-beta.77

Pre Release

Tag Name: v3.0.0-beta.77

Release Date: 8/8/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

Payload CMS v3.0.0-beta.77 Release

This release fixes a bug where error messages were displaying empty paths due to the query path being overwritten in the getLocalizedPaths() function. This improves error reporting by ensuring that when an invalid path error is thrown, it contains the proper path information. The release also includes a minor chore update removing an unused Drizzle import.

Highlight of the Release

    • Fixed bug where error messages displayed empty paths
    • Improved error reporting for invalid paths
    • Removed unused Drizzle import for cleaner codebase

Migration Guide

No migration is required for this release as it only contains a bug fix and a minor chore update.

Upgrade Recommendations

This release is recommended for all users working with Payload CMS beta versions, especially those who may be encountering issues with localization paths or unclear error messages. The upgrade is low-risk as it only contains a bug fix and a minor code cleanup.

To upgrade:

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

Bug Fixes

Fixed Empty Path in Error Messages

This release addresses issue #7524 where error messages were displaying empty paths. The bug occurred in the getLocalizedPaths() function where the query path was being overwritten as an empty string. As a result, when the system needed to throw an invalid path error, it no longer had access to the original path information.

The fix ensures that path information is properly preserved throughout the localization process, resulting in more informative error messages that include the actual path that caused the issue.

New Features

No new features were added in this release.

Security Updates

No security fixes were included in this release.

Performance Improvements

No specific performance improvements were included in this release.

Impact Summary

This release has a low impact on existing functionality. It improves developer experience by fixing a bug related to error reporting in the localization system. When invalid paths were encountered, the error messages were displaying empty paths instead of the actual problematic path, making debugging more difficult. This release ensures that error messages contain the proper path information, which helps developers identify and fix issues more quickly. The removal of an unused Drizzle import is a minor code cleanup that has no functional impact on the system.

Full Release Notes

Statistics:

File Changed34
Line Additions34
Line Deletions38
Line Changes72
Total Commits3

User Affected:

  • Will receive more informative error messages when dealing with invalid paths
  • Can more easily debug issues related to localization paths
  • Will have a cleaner codebase with the removal of unused imports

Contributors:

jessrynkardenolfe