Home

>

Tools

>

Strapi

>

Releases

>

3.0.0-alpha.26.2

Strapi Release: 3.0.0-alpha.26.2

Tag Name: v3.0.0-alpha.26.2

Release Date: 5/2/2019

Strapi LogoStrapi

Open-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.

TL;DR

Strapi v3.0.0-alpha.26.2 focuses on fixing critical data handling issues in the framework. This release addresses problems with timestamp attribute filtering, array handling in MongoDB queries, and value casting. These fixes improve data integrity and query reliability, particularly for MongoDB users and applications with timestamp-based filtering requirements.

Highlight of the Release

    • Fixed filtering functionality for timestamp attributes
    • Improved MongoDB query construction with proper $and operators for array values
    • Enhanced value casting to handle non-null values correctly

Migration Guide

No specific migration steps are required for this release. The version number has been updated in the migration guide to reflect the latest release.

Upgrade Recommendations

It is recommended to upgrade to v3.0.0-alpha.26.2 if you are using timestamp attributes for filtering data, working with MongoDB as your database, or experiencing issues with value casting in your application. This release provides important fixes that improve data handling reliability without introducing breaking changes.

Bug Fixes

Framework Bug Fixes

  • Fixed timestamp attribute filtering: Resolved an issue where filters on timestamp attributes were not working correctly. This fix ensures that date and time-based queries now return the expected results. (#3209)

  • Improved MongoDB query handling: Fixed how arrays are cast and how MongoDB where clauses are constructed with a proper $and operator. This ensures that queries with array values are properly processed and return accurate results. (#3190)

  • Enhanced value casting: Modified the casting logic to properly handle non-nil values instead of only truthy ones. This provides more consistent behavior when processing data with various value types, including falsy but non-null values. (#3172)

New Features

No new features were introduced in this release. This is a bug fix release focused on improving the stability and reliability of the existing functionality.

Security Updates

No security fixes were included in this release.

Performance Improvements

While this release doesn't include explicit performance improvements, the bug fixes related to MongoDB query construction and value casting may result in more efficient query execution, particularly for complex queries involving arrays or timestamp attributes.

Impact Summary

This release addresses three important bug fixes in the Strapi framework that improve data handling and query reliability:

  1. The fix for timestamp attribute filtering ensures that date/time-based queries work correctly, which is essential for applications that rely on temporal data filtering.

  2. The improvements to MongoDB query construction with proper $and operators for array values ensure that complex queries return accurate results, particularly important for MongoDB users.

  3. The enhanced value casting logic now properly handles non-nil values (not just truthy ones), providing more consistent behavior when processing various data types.

These fixes collectively improve the stability and reliability of the Strapi framework, particularly for applications with complex data querying requirements.

Full Release Notes

Statistics:

File Changed42
Line Additions97
Line Deletions87
Line Changes184
Total Commits10

User Affected:

  • Improved reliability when filtering data with timestamp attributes
  • Better handling of array values in MongoDB queries
  • More consistent data casting behavior for non-null values

Contributors:

lauriejimalexandrebodin