Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.15.2

Payload CMS Release: Release 0.15.2

Tag Name: v0.15.2

Release Date: 4/4/2022

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 v0.15.2 is a minor release that fixes an important query issue where version numbers were incorrectly being appended to ID queries. This release also includes significant test infrastructure improvements with migration of test files to TypeScript. This update ensures more reliable querying behavior when working with document IDs.

Highlight of the Release

    • Fixed a bug where version numbers were incorrectly appended to ID queries (#495)
    • Migrated test files to TypeScript for improved type safety and developer experience
    • Fixed TypeScript errors in test files

Migration Guide

No migration steps are required for this release. The bug fix for ID queries is backward compatible and should work automatically after updating.

Upgrade Recommendations

This update is recommended for all users, especially those who rely on querying documents by ID. The fix addresses a potential source of unexpected behavior in query results.

To upgrade:

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

Bug Fixes

ID Query Bug Fix

Fixed issue #495 where version numbers were incorrectly being appended to ID queries. This could cause unexpected behavior when trying to query documents by their ID, as the version parameter was being added unnecessarily. The fix ensures that when you query by ID, the version parameter is not appended, resulting in more reliable and predictable query results.

New Features

No new features were added in this release. This update focuses on bug fixes and test infrastructure improvements.

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 a query-related bug and improving the test infrastructure.

Impact Summary

This release primarily impacts query behavior when using document IDs. Before this fix, version numbers were incorrectly being appended to ID queries, which could lead to unexpected results when trying to retrieve documents by their ID.

The release also includes significant improvements to the test infrastructure with the migration of test files to TypeScript, which doesn't directly impact end users but improves the development experience and code quality for contributors.

Overall, this is a maintenance release that fixes a specific bug without introducing breaking changes or requiring migration steps.

Full Release Notes

0.15.2 (2022-04-04)

Bug Fixes

  • #495, avoids appending version to id queries (a703e05)

Statistics:

File Changed24
Line Additions325
Line Deletions218
Line Changes543
Total Commits5

User Affected:

  • Fixed issue with ID queries that were incorrectly having version numbers appended
  • More reliable behavior when querying documents by ID
  • Improved test infrastructure with TypeScript migration

Contributors:

denolfejmikrut