1.6.31 (2023-04-04)
Bug Fixes
- ensures select hasMany does not get mutated on patch operations (3a6acf3)
Features
- improves required type accuracy (a9cd23a)
Tag Name: v1.6.31
Release Date: 4/4/2023
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.
PayloadCMS v1.6.31 brings improved TypeScript type accuracy for required fields and fixes a critical bug where select fields with hasMany option were being mutated during PATCH operations. This release enhances developer experience with better type safety while ensuring data integrity during updates.
No migration is required for this release. The improvements to TypeScript type accuracy and the fix for select fields with hasMany option are backward compatible and should not break existing implementations.
We recommend all PayloadCMS users upgrade to v1.6.31, especially if you:
hasMany option enabledThis is a minor release with no breaking changes, making it a safe upgrade that improves both developer experience and data integrity.
This release resolves an issue where select fields with the hasMany option were being unintentionally mutated during PATCH operations. This fix:
This release enhances the TypeScript type definitions for required fields in PayloadCMS. The improved type accuracy helps developers by:
No specific security fixes were mentioned in this release.
While not explicitly mentioned in the commit messages, the fix for select fields with hasMany option likely improves performance in scenarios involving PATCH operations by:
PayloadCMS v1.6.31 is a quality-focused release that improves developer experience through better TypeScript type definitions and fixes a data integrity issue with select fields during PATCH operations. The improved type accuracy for required fields will help catch potential errors earlier in the development process, while the fix for select fields with hasMany option ensures that your data remains consistent when performing partial updates. These changes particularly benefit developers working with TypeScript and content editors who work with multi-select fields in the CMS.