1.6.32 (2023-04-05)
Features
- only uses sharp if required (f9f6ec4)
Tag Name: v1.6.32
Release Date: 4/5/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.
Payload CMS v1.6.32 introduces a performance optimization that only loads the Sharp image processing library when it's actually needed. This reduces memory usage and improves startup time for applications that don't process images, making Payload more efficient in various deployment scenarios.
No migration is required for this release. The optimization is applied automatically without any configuration changes needed.
This release contains a performance optimization with no breaking changes. It's recommended for all users to upgrade, especially those running Payload in resource-constrained environments or serverless deployments where memory usage and startup time are important factors.
To upgrade:
npm install @payloadcms/[email protected]
# or
yarn add @payloadcms/[email protected]
No bug fixes were included in this release.
Payload now only loads the Sharp image processing library when it's actually required by your application. Previously, Sharp was always loaded regardless of whether your application used image processing features.
This optimization:
This change is automatic and requires no configuration changes from users.
No security fixes were included in this release.
The primary performance improvement in this release is the conditional loading of the Sharp image processing library. Sharp is a relatively large dependency that consumes memory when loaded. By only loading it when needed:
This is particularly beneficial for:
This release focuses on performance optimization by conditionally loading the Sharp image processing library only when needed. While this change is relatively small in scope, it can have a significant positive impact on memory usage and startup time for applications that don't use image processing features.
The optimization is particularly valuable for:
No functionality has been changed or removed, and no configuration changes are required to benefit from this optimization. All existing image processing capabilities continue to work as before, but now with better resource efficiency when those features aren't being used.