1.1.4 (2022-09-24)
Bug Fixes
Features
- supports root endpoints (52cd3b4)
Tag Name: v1.1.4
Release Date: 9/24/2022
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.
Payload CMS v1.1.4 introduces support for root endpoints, improves field-level access control for nested fields, and refines type generation for relationships. This release enhances developer flexibility with custom API endpoints while fixing important permission and TypeScript typing issues.
No migration steps are required for this release. The changes are backward compatible and should work with existing Payload applications without modification.
This release is recommended for all Payload users, especially those who:
The upgrade should be straightforward with no breaking changes:
npm install [email protected]
# or
yarn add [email protected]
Fixed an issue where field-level access control wasn't being properly applied to nested fields. Previously, permission checks might not have been correctly enforced for fields nested within arrays, blocks, or other complex field types. This fix ensures that access control is consistently applied at all levels of your content structure.
Improved TypeScript type generation for relationship fields. The generated types now more accurately reflect the structure of related documents, providing better type safety and developer experience when working with relationships in TypeScript projects.
Payload now supports creating custom API endpoints at the root level of your API. This feature allows developers to define custom routes that aren't tied to a specific collection or global, providing more flexibility for implementing custom functionality.
Example usage:
// In your Payload config
export default buildConfig({
// ...other config
endpoints: [
{
path: '/custom-endpoint',
method: 'get',
handler: (req, res) => {
res.json({ message: 'This is a custom root endpoint' });
},
},
],
});
This enhancement gives developers more freedom to extend Payload's API with custom functionality that doesn't necessarily map to collections or globals.
No specific security fixes were mentioned in this release, although the fix for field-level access control for nested fields does improve the security posture by ensuring permissions are correctly enforced throughout the content structure.
No specific performance improvements were highlighted in this release.
Payload CMS v1.1.4 is a minor release that brings important improvements to the developer experience and permission handling. The addition of root endpoints expands the API customization capabilities, allowing for more flexible application architectures. The bug fixes for field-level access in nested fields and improved TypeScript type generation for relationships enhance both security and developer productivity.
The documentation improvements, including better examples for cell components and webpack configuration tips, further support developers in implementing and maintaining Payload-based applications. Overall, this release represents incremental but valuable improvements to the Payload ecosystem.