Home

>

Tools

>

Payload CMS

>

Releases

>

Release 1.0.24

Payload CMS Release: Release 1.0.24

Tag Name: v1.0.24

Release Date: 8/16/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 v1.0.24 brings important fixes for database indexing in nested fields and improvements to GraphQL localization support. This release focuses on enhancing query performance and fixing issues with localized content, particularly when working with block fields. The update ensures more reliable database operations and better handling of localized content in complex data structures.

Highlight of the Release

    • Fixed creation of indexes in nested fields for better database performance
    • Improved GraphQL localization support with proper formatting of locale inputs
    • Enhanced querying capabilities for block fields with and without locale specification
    • Simplified index creation process for better maintainability

Migration Guide

No migration steps are required for this release. The fixes and improvements are backward compatible and should work automatically after updating to v1.0.24.

Upgrade Recommendations

This release is recommended for all Payload CMS users, especially those who:

  • Use nested fields with database indexing
  • Work with localized content through GraphQL
  • Utilize block fields with localization

The update addresses several important bugs related to database indexing and localization support, which can improve application performance and reliability. Since there are no breaking changes, upgrading should be straightforward with minimal risk.

To upgrade:

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

Bug Fixes

Database Indexing Fixes

  • Nested Field Indexes: Fixed issues with creating indexes in nested fields, ensuring proper database optimization for complex data structures
  • Point Index Fix: Resolved a specific issue with point indexes, improving geospatial query capabilities
  • Nested Schema Indexes: Corrected problems with index creation in nested schemas

GraphQL Localization Improvements

  • Fixed formatting of GraphQL localization input types
  • Resolved an issue where locale was missing from GraphQL mutation arguments
  • Improved handling of locales for GraphQL operations

Other Fixes

  • Fixed issue #939 related to database operations
  • Simplified the index creation process for better reliability and maintainability

New Features

Enhanced Block Field Querying with Localization Support

The release adds the ability to query block fields with or without specifying a locale parameter. This improvement provides more flexibility when working with localized content in block-based structures, allowing developers to:

  • Query block fields without explicitly specifying a locale (will use the default locale)
  • Query block fields with a specific locale parameter
  • Build more intuitive and flexible queries for localized content

This enhancement makes working with internationalized content in block fields more consistent and predictable.

Security Updates

No specific security fixes were included in this release.

Performance Improvements

Database Query Performance

The fixes to database indexing in this release contribute to improved query performance, particularly:

  • Better performance for queries involving nested fields due to proper index creation
  • More efficient querying of block fields with localization parameters
  • Optimized database operations through simplified and more reliable index creation

These improvements should result in faster query execution, especially for complex data structures with nested fields and localized content.

Impact Summary

Payload CMS v1.0.24 focuses on improving database indexing and localization support, particularly for nested fields and block content. The release fixes several issues related to index creation in complex data structures and enhances GraphQL localization handling.

The most significant impact is on applications with complex data models that utilize nested fields with indexes and localized content. These applications will benefit from more reliable database operations and improved query performance. The ability to query block fields with or without specifying locale parameters also provides greater flexibility when working with internationalized content.

While this is a minor release with no breaking changes, it addresses important underlying issues that could affect database performance and content localization behavior. The simplified index creation process also improves the maintainability of the codebase.

Full Release Notes

1.0.24 (2022-08-16)

Bug Fixes

Features

  • ensures you can query on blocks via specifying locale or not specifying locale (078e8dc)

Statistics:

File Changed20
Line Additions288
Line Deletions132
Line Changes420
Total Commits14

User Affected:

  • Benefit from more reliable database indexing for nested fields
  • Can now properly query block fields with or without specifying locale
  • Experience improved GraphQL localization support

Contributors:

DanRibbensjmikrut