TL;DR
Payload CMS v1.4.0 introduces significant improvements to the rich text editor, document drawers, and relationship fields. This release includes a breaking change to API Key authentication headers, now using collection slugs instead of labels. It also adds Czech language support, fixes numerous bugs related to drafts, autosave, and file uploads, and upgrades GraphQL to version 16. The update enhances the user experience with better document permissions visibility and improved rich text editing capabilities, particularly for nested lists.
Migration Guide
API Key Authentication Header Format Change
The format for API Key authentication headers has changed from using collection labels to using collection slugs:
Previous format:
${collection.labels.singular} API-Key ${apiKey}
New format:
${collection.slug} API-Key ${apiKey}
Migration Steps:
- Identify all places in your code where you're using API Key authentication headers
- Update the header format to use collection slugs instead of labels
- Test your API requests to ensure they're working with the new header format
GraphQL 16 Upgrade
This release upgrades GraphQL from version 15 to 16. While this should be mostly transparent to users, if you're using custom GraphQL code or plugins, you may need to review the GraphQL 16 release notes for any breaking changes that might affect your implementation.
Impact Summary
Payload CMS v1.4.0 delivers significant improvements to the editing experience while introducing one important breaking change to API Key authentication.
The most notable impact is on developers who use API Key authentication, as they'll need to update their code to use collection slugs instead of labels in authentication headers. This change makes the authentication system more consistent but requires immediate attention during upgrade.
Content editors will benefit substantially from this release with numerous improvements to the rich text editor, including better nested list support, enhanced relationship field search, and a new drawer UI for managing uploads and relationships within rich text. The fixes to autosave, draft versions, and file uploads also address several pain points in the content editing workflow.
Administrators gain improved visibility with document permissions now visible in the account view, making it easier to manage user access.
The GraphQL 16 upgrade provides a foundation for future improvements and access to newer GraphQL features, though most users won't notice immediate differences unless they're using custom GraphQL implementations.
Overall, this release balances new features with important bug fixes, making it a worthwhile upgrade despite the breaking change to API Key authentication.