Home

>

Tools

>

Payload CMS

>

Releases

>

Release 1.5.1

Payload CMS Release: Release 1.5.1

Tag Name: v1.5.1

Release Date: 1/4/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.1 is a hotfix release that reverts the components directory back to TypeScript from JavaScript. This change ensures compatibility for users who rely on TypeScript imports from the components directory, fixing an issue introduced in the previous release.

Highlight of the Release

    • Reverted components directory from JavaScript back to TypeScript
    • Fixed TypeScript import issues for components
    • Improved development experience for TypeScript users

Migration Guide

No migration steps are required for this release. The fix is backward compatible and should resolve issues automatically after updating.

If you implemented any workarounds to deal with the JavaScript components in v1.5.0, you can safely remove those workarounds after upgrading to v1.5.1.

Upgrade Recommendations

It is highly recommended to upgrade to v1.5.1 if you're currently using v1.5.0, especially if you:

  • Use TypeScript in your project
  • Import components from Payload's components directory
  • Experienced any type-related issues after upgrading to v1.5.0

This is a small bugfix release with minimal changes, making it a low-risk upgrade that resolves a potentially disruptive issue.

Bug Fixes

Components Directory TypeScript Reversion

The components directory was mistakenly converted from TypeScript to JavaScript in a previous release, causing issues for users who rely on TypeScript imports from these files. This release reverts the components directory back to TypeScript, ensuring proper type definitions and import compatibility.

This fix resolves potential build errors and type-checking issues that may have occurred when importing from the components directory.

New Features

No new features were added in this release. This is a bugfix release that focuses on reverting a problematic change from the previous version.

Security Updates

No security fixes were included in this release.

Performance Improvements

No specific performance improvements were included in this release. The focus was on fixing the TypeScript compatibility issue with the components directory.

Impact Summary

This release fixes a regression where the components directory was incorrectly converted to JavaScript instead of remaining in TypeScript. The impact is primarily on developers using TypeScript who import from Payload's components directory.

The fix ensures that proper TypeScript definitions are available for components, preventing type errors and improving the development experience. This change maintains backward compatibility while restoring the expected behavior for TypeScript users.

No new features, performance improvements, or security fixes are included in this release, as it's focused solely on addressing this specific issue.

Full Release Notes

1.5.1 (2023-01-04)

Bug Fixes

  • reverts components directory back to ts (1bbf099)

Statistics:

File Changed19
Line Additions79
Line Deletions77
Line Changes156
Total Commits6

User Affected:

  • Can now properly import TypeScript components from the Payload components directory
  • No longer need to create workarounds for JavaScript imports from what should be TypeScript files
  • Will have more reliable type checking when using Payload components

Contributors:

jmikrutjacobsfletch