v3.0.0-beta.77 (2024-08-08)
Bug Fixes
Contributors
- Elliot DeNolf (@denolfe)
- Jessica Chowdhury (@JessChowdhury)
Pre Release
Tag Name: v3.0.0-beta.77
Release Date: 8/8/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.
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.
No migration is required for this release as it only contains a bug fix and a minor chore update.
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]
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.
No new features were added in this release.
No security fixes were included in this release.
No specific performance improvements were included in this release.
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.