1.6.12 (2023-02-17)
Bug Fixes
- ensures only valid fields can be queried on (1930bc2)
Tag Name: v1.6.12
Release Date: 2/17/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.
This release focuses on improving developer experience by adding several new examples for authentication and virtual fields, while also fixing a query validation issue. The separation of admin root component from DOM rendering logic provides greater flexibility for customizing the admin UI. These changes primarily benefit developers building with PayloadCMS by providing clearer implementation patterns and more customization options.
No migration steps are required for this release. The changes are primarily additive (new examples) or internal architectural improvements that don't break existing functionality.
For developers who have created custom implementations that directly interact with the admin UI rendering logic, you may want to review the changes to the admin root component separation to ensure your customizations remain compatible.
This is a minor release with new examples and a bug fix. It's recommended to upgrade to benefit from:
The upgrade should be straightforward with minimal risk as there are no breaking changes. Simply update your PayloadCMS dependency to version 1.6.12:
npm install [email protected]
# or
yarn add [email protected]
While not explicitly labeled as a security fix, the bug fix ensuring "only valid fields can be queried on" has security implications. This change prevents potential data exposure by validating query fields against the schema, ensuring users can only access fields they should have permission to query.
No specific performance improvements were highlighted in this release. The changes are primarily focused on developer experience, examples, and security fixes rather than performance optimizations.
PayloadCMS v1.6.12 is primarily a developer-focused release that enhances the platform's documentation and customization capabilities through new examples and architectural improvements.
The addition of authentication examples for both standard and GraphQL implementations provides valuable reference material for developers implementing auth in their PayloadCMS projects. Similarly, the virtual fields example offers guidance on implementing computed fields.
The separation of the admin root component from DOM rendering logic represents an important architectural improvement that enables more flexible customization of the admin UI. This change will be particularly valuable for developers building custom admin interfaces.
The bug fix ensuring only valid fields can be queried improves the security posture of PayloadCMS applications by preventing potential data exposure through invalid queries.
Overall, while this release doesn't introduce major new features, it strengthens the developer experience through better examples, improved customization options, and enhanced security.