Home

>

Tools

>

Payload CMS

>

Releases

>

Release 1.5.4

Payload CMS Release: Release 1.5.4

Tag Name: v1.5.4

Release Date: 1/6/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.5.4 introduces a new feature that allows the init function to accept a pre-built configuration object. This enhancement provides developers with more flexibility when initializing Payload, enabling advanced configuration patterns and dynamic configuration generation. This is a minor feature update that improves developer experience without breaking existing functionality.

Highlight of the Release

    • Added support for passing pre-built configuration objects to the init function
    • Enhanced flexibility in Payload initialization patterns
    • Enables more dynamic configuration generation workflows

Migration Guide

No migration is required for this release. The new feature is additive and doesn't break existing functionality.

If you're currently using init with a configuration path or standard configuration object, your code will continue to work as before. The new functionality simply provides an additional option for those who want to use pre-built configurations.

Upgrade Recommendations

This is a minor feature release that adds functionality without breaking changes. It's safe to upgrade from v1.5.3 to v1.5.4 without concerns about backward compatibility.

To upgrade:

npm install [email protected]
# or
yarn add [email protected]

After upgrading, you can continue using Payload as before, or take advantage of the new ability to pass pre-built configurations to the init function if it benefits your workflow.

Bug Fixes

No bug fixes were included in this release.

New Features

Pre-built Configuration Support

The init function now accepts pre-built configuration objects directly. Previously, developers were required to pass a configuration path or object that followed specific initialization patterns. With this update, you can now:

  • Pass a fully constructed configuration object to init
  • Generate configurations dynamically before initialization
  • Modify configurations programmatically before passing them to init

This feature enables more advanced patterns for configuration management and generation, particularly useful for complex applications or when building plugins that need to modify the configuration.

Security Updates

No security fixes were included in this release.

Performance Improvements

No specific performance improvements were included in this release.

Impact Summary

This release has a low impact on existing codebases as it only adds a new capability without changing existing behavior. The primary impact is providing developers with more flexibility in how they initialize Payload.

The ability to pass pre-built configurations to init opens up new patterns for configuration management, particularly beneficial for:

  • Applications with dynamic configuration needs
  • Plugin authors who want to modify configurations
  • Development workflows that generate configurations programmatically
  • Testing scenarios where different configurations need to be used

This enhancement aligns with Payload's philosophy of providing flexible, developer-friendly APIs while maintaining backward compatibility.

Full Release Notes

1.5.4 (2023-01-06)

Features

  • allows init to accept a pre-built config (84e00bf)

Statistics:

File Changed4
Line Additions26
Line Deletions2
Line Changes28
Total Commits3

User Affected:

  • Can now pass pre-built configuration objects directly to the `init` function
  • Have more flexibility in how they structure and generate Payload configurations
  • Can implement more dynamic configuration patterns

Contributors:

jmikrut