1.5.4 (2023-01-06)
Features
- allows init to accept a pre-built config (84e00bf)
Tag Name: v1.5.4
Release Date: 1/6/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.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.
init functionNo 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.
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.
No bug fixes were included in this release.
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:
initinitThis 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.
No security fixes were included in this release.
No specific performance improvements were included in this release.
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:
This enhancement aligns with Payload's philosophy of providing flexible, developer-friendly APIs while maintaining backward compatibility.