Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.15.11

Payload CMS Release: Release 0.15.11

Tag Name: v0.15.11

Release Date: 4/24/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.11 fixes a critical typing issue in the access control system. This patch ensures proper TypeScript typing for access control functions, improving type safety and developer experience when working with Payload's permission system.

Highlight of the Release

    • Fixed TypeScript typing issues in the access control system
    • Improved type safety for permission-related functionality
    • Small but important maintenance update for TypeScript users

Migration Guide

No migration steps are required for this update. The fix addresses TypeScript typing issues which should not affect runtime behavior of existing applications.

Simply update your Payload CMS dependency to version 0.15.11:

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

Upgrade Recommendations

This is a recommended upgrade for all Payload CMS users, especially those using TypeScript. The update is minimal and focused on fixing type definitions, so it presents very low risk of introducing new issues.

The upgrade process is straightforward:

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

No additional configuration changes or code modifications are required after updating.

Bug Fixes

Improved TypeScript Typing for Access Control

This release fixes an issue where access control functions were improperly typed in TypeScript. The fix ensures that TypeScript correctly understands and validates the types used in access control implementations, reducing the potential for type-related errors when defining permissions in Payload CMS.

The fix addresses potential inconsistencies between the expected types and the actual implementation, providing a more reliable development experience when working with Payload's permission system.

New Features

This release does not introduce any new features as it's focused on fixing a typing issue in the existing access control system.

Security Updates

While this release primarily addresses TypeScript typing issues, the improved type safety in access control functions could indirectly enhance security by reducing the risk of implementation errors in permission systems. However, this is not a fix for a specific security vulnerability but rather an improvement in the development tooling that helps prevent potential security issues.

Performance Improvements

This release does not contain any specific performance improvements. The changes are focused on TypeScript type definitions rather than runtime performance.

Impact Summary

This release has a low impact on existing applications as it only fixes TypeScript type definitions for access control functions. There are no changes to runtime behavior or API functionality.

The primary benefit is for developers using TypeScript with Payload CMS, who will now have more accurate type checking when implementing access control functions. This improves the development experience and helps catch potential type-related errors earlier in the development process.

The update is small in scope (only 11 changes across 3 files with 9 additions and 2 deletions) but addresses an important aspect of the type system that affects how developers implement permissions in their Payload applications.

Full Release Notes

0.15.11 (2022-04-24)

Bug Fixes

  • improperly typed access control (b99ec06)

Statistics:

File Changed3
Line Additions9
Line Deletions2
Line Changes11
Total Commits2

User Affected:

  • Better TypeScript type safety when implementing access control functions
  • Reduced risk of type-related errors in permission systems
  • Improved developer experience with more accurate type checking

Contributors:

jmikrut