Home

>

Tools

>

Payload CMS

>

Releases

>

Release 1.6.32

Payload CMS Release: Release 1.6.32

Tag Name: v1.6.32

Release Date: 4/5/2023

Payload CMS LogoPayload CMS

Payload 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.

TL;DR

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.

Highlight of the Release

    • Sharp image processing library is now only loaded when actually needed
    • Reduced memory footprint for applications not using image processing
    • Faster startup times for applications not using image processing

Migration Guide

No migration is required for this release. The optimization is applied automatically without any configuration changes needed.

Upgrade Recommendations

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]

Bug Fixes

No bug fixes were included in this release.

New Features

Conditional Sharp Loading

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:

  • Reduces the memory footprint of applications not using image processing
  • Improves startup time for applications not using image processing
  • Is particularly beneficial for serverless deployments where cold starts and memory usage directly impact costs

This change is automatic and requires no configuration changes from users.

Security Updates

No security fixes were included in this release.

Performance Improvements

Memory Usage Optimization

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:

  • Applications that don't use image processing features will use less memory
  • Startup time is improved for applications not using image processing
  • Cold start times in serverless environments are reduced
  • Overall resource utilization is more efficient

This is particularly beneficial for:

  • Serverless deployments where memory usage affects pricing
  • Applications with limited resources
  • Environments where startup time is critical

Impact Summary

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:

  • Serverless deployments where memory usage directly impacts costs
  • Applications with limited resources
  • Environments where cold start times are critical

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.

Full Release Notes

1.6.32 (2023-04-05)

Features

  • only uses sharp if required (f9f6ec4)

Statistics:

File Changed3
Line Additions17
Line Deletions10
Line Changes27
Total Commits3

User Affected:

  • Reduced memory footprint when not using image processing features
  • Faster application startup times when Sharp is not needed
  • No code changes required to benefit from this optimization

Contributors:

jmikrut