Home

>

Tools

>

Strapi

>

Releases

>

5.0.0-rc.8

Strapi Release: 5.0.0-rc.8

Pre Release

Tag Name: v5.0.0-rc.8

Release Date: 7/31/2024

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 v5.0.0-rc.8 brings important improvements to the upcoming v5 release, focusing on bug fixes and feature enhancements. This release candidate introduces validation for unique fields within dynamic zones, adds bulk content release capabilities, and resolves several critical issues with JSON fields, review workflows, and internal plugin resolution. These changes improve stability and functionality as Strapi approaches its final v5 release.

Highlight of the Release

    • Validation of unique fields within dynamic zones
    • Bulk add functionality for content releases
    • Fixed JSON field parsing and validation
    • Resolved review workflows cache issues
    • Fixed internal plugin resolution from the Strapi package

Migration Guide

No specific migration steps are required for this release candidate. As this is part of the v5.0.0 release candidate series, users should follow the general v5 migration guide when upgrading from v4.

For developers who have been working with previous release candidates (v5.0.0-rc.7 or earlier), this update should be a straightforward upgrade with no breaking changes.

Upgrade Recommendations

If you're already using Strapi v5.0.0-rc.7, upgrading to rc.8 is recommended as it includes important bug fixes and feature enhancements that improve stability.

For production environments, it's still advisable to wait for the final v5.0.0 release unless you're actively testing the release candidate for your specific use case.

To upgrade:

npm install @strapi/[email protected]

or

yarn upgrade @strapi/[email protected]

Bug Fixes

JSON Field Fixes

  • Fixed an issue where JSON fields were not parsed properly, causing validation problems
  • Resolved admin validation that was broken when JSON was still an object

Review Workflows Improvements

  • Fixed cache issues in review workflows that were causing stale data
  • Invalidated document queries when stage and assignee changes are made
  • Fixed revalidation in the edit view when workflow changes occur
  • Resolved warning issues when reassigning content type workflows

Other Fixes

  • Fixed the left offset of the cloud image in the UI
  • Resolved internal plugins resolution from the Strapi package
  • Fixed flaky frontend tests by mocking usefolderstructure in upload functionality

New Features

Validation of Unique Fields Within Dynamic Zones

This release introduces validation for unique fields within dynamic zones, a significant enhancement to Strapi's content modeling capabilities. The implementation uses the database query layer to efficiently find conflicting components, ensuring data integrity across your content types. This feature helps prevent duplicate entries in dynamic zones where uniqueness is required.

Bulk Add to Content Releases

Content editors can now add multiple entries to a release at once with the new bulk add functionality for content releases. This feature streamlines the content publishing workflow, making it easier to manage large content updates.

Security Updates

No specific security fixes were mentioned in this release.

Performance Improvements

Review Workflows Cache Optimization

The fixes to review workflows cache issues improve the performance of the review workflows feature by ensuring that data is properly invalidated and refreshed when changes occur. This prevents stale data from being displayed and reduces unnecessary API calls.

Query Optimization for Dynamic Zones

The implementation of unique field validation within dynamic zones includes optimizations to the database query layer, ensuring that validation checks are performed efficiently even with complex content structures.

Impact Summary

This release candidate brings Strapi v5 closer to a stable release by addressing several important bugs and adding key features. The validation of unique fields within dynamic zones enhances data integrity, while the bulk add functionality for content releases improves workflow efficiency for content editors.

The fixes for JSON field parsing and validation, review workflows cache issues, and internal plugin resolution address pain points that users might have encountered in previous release candidates. These improvements collectively enhance the stability and usability of Strapi v5.

For developers and administrators, the release provides a more reliable platform for building and managing content, with fewer edge cases and improved validation. The changes to the review workflows feature, in particular, should result in a more consistent experience when managing content through different stages of review.

Full Release Notes

What's Changed

Full Changelog: v5.0.0-rc.6...v5.0.0-rc.8

Statistics:

File Changed101
Line Additions2,129
Line Deletions1,384
Line Changes3,513
Total Commits10

User Affected:

  • Benefit from bulk add functionality for content releases
  • Experience more reliable review workflows with fixed cache issues
  • Improved validation for unique fields within dynamic zones

Contributors:

Marc-Roigjhoward1994alexandrebodinFeranchzremidejinnerdvations