Home

>

Tools

>

Payload CMS

>

Releases

>

Release 1.10.2

Payload CMS Release: Release 1.10.2

Tag Name: v1.10.2

Release Date: 6/26/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

PayloadCMS v1.10.2 is a maintenance release that addresses several critical bugs affecting exports, autosave functionality for localized fields, media document updates, bulk operations, and TypeScript compilation. This release improves stability without introducing new features, focusing on fixing issues that could impact day-to-day operations for developers using PayloadCMS.

Highlight of the Release

    • Fixed broken export of entityToJSONSchema function
    • Improved autosave functionality for localized fields
    • Added safer handling of tempFilePath when updating media documents
    • Fixed data variable scoping in bulk update operations
    • Optimized SWC loader configuration to only exclude non-TypeScript files

Migration Guide

No migration steps are required for this release. This is a patch release that fixes bugs without introducing breaking changes or requiring configuration updates.

Upgrade Recommendations

It is highly recommended to upgrade to v1.10.2 if you are currently using v1.10.1 or earlier versions, especially if you:

  • Use localized fields with autosave functionality
  • Work with media uploads and updates
  • Perform bulk update operations
  • Use the entityToJSONSchema export
  • Have a TypeScript-based project

This is a patch release with no breaking changes, so upgrading should be straightforward:

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

Bug Fixes

  • Fixed broken export of entityToJSONSchema (#2894) - Resolved an issue where the entityToJSONSchema function was not being properly exported, which could cause problems for developers using this utility to generate JSON schemas from Payload entities.

  • Safer media document updates (#2899) - Added proper checks for tempFilePath when updating media documents, preventing potential errors when handling file uploads and updates.

  • Fixed autosave on localized fields (#2903) - Resolved an issue where autosave functionality wasn't working correctly with localized fields, which could potentially lead to content loss. Added tests to ensure this functionality works properly.

  • Improved bulk update operations (#2904) - Fixed an issue where the data variable wasn't properly scoped within bulk update operations, which could lead to unexpected behavior when performing bulk updates.

  • Optimized TypeScript compilation (#2907) - Adjusted the SWC loader configuration to only exclude non-TypeScript files (non ts/tsx), improving compilation performance and fixing issues related to TypeScript processing.

New Features

This release does not introduce any new features as it is focused on bug fixes and stability improvements.

Security Updates

This release does not contain any specific security fixes.

Performance Improvements

  • Optimized TypeScript compilation - The adjustment to the SWC loader configuration (PR #2907) to only exclude non-TypeScript files results in more efficient compilation processes, potentially improving build times for PayloadCMS projects.

  • More efficient bulk operations - The fix for data variable scoping in bulk update operations (PR #2904) not only fixes a bug but also ensures that bulk operations run more efficiently without unnecessary data processing.

Impact Summary

PayloadCMS v1.10.2 is a maintenance release that addresses five important bugs affecting core functionality. The fixes improve stability for JSON Schema exports, autosave functionality for localized content, media document handling, bulk update operations, and TypeScript compilation.

The most significant impacts are:

  1. Improved content editing reliability - Fixed autosave for localized fields prevents potential content loss for editors working with multilingual content.

  2. More stable media handling - Safer checks for tempFilePath when updating media documents reduces the likelihood of errors during file operations.

  3. Better developer experience - Fixed entityToJSONSchema export and optimized TypeScript compilation improve the development workflow.

  4. More reliable bulk operations - Properly scoped data variables in bulk updates ensure consistent behavior when performing operations on multiple records.

This release contains no breaking changes and requires no migration steps, making it a safe and recommended upgrade for all PayloadCMS users.

Full Release Notes

1.10.2 (2023-06-26)

Bug Fixes

  • adjusts swc loader to only exclude non ts/tsx files - #2888 (#2907) (a2d9ef3)
  • autosave on localized fields, adds test (6893231)
  • broken export of entityToJSONSchema (#2894) (837dccc)
  • correctly scopes data variable within bulk update - #2901 (#2904) (f627277)
  • safely check for tempFilePath when updating media document (#2899) (8206c0f)

Statistics:

File Changed9
Line Additions64
Line Deletions14
Line Changes78
Total Commits8

User Affected:

  • Fixed JSON Schema export functionality that was previously broken
  • Improved TypeScript compilation with better SWC loader configuration
  • More reliable bulk update operations with properly scoped data variables

Contributors:

teunmooijdenolfejessrynkarJarrodMFleschjmikrut