Home

>

Tools

>

Strapi

>

Releases

>

4.20.2

Strapi Release: 4.20.2

Tag Name: v4.20.2

Release Date: 2/21/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 v4.20.2: Bug Fixes for Dynamic Zones and French Translations

This minor release addresses critical bugs in the Content Manager, specifically fixing issues with Dynamic Zones component positioning and unique ID generation. It also improves French translations for null/not null filters and enhances the Content Releases feature by properly cleaning up scheduled release cron jobs when deleted. This update is recommended for all users experiencing these specific issues.

Highlight of the Release

    • Fixed issues with Dynamic Zones component positioning and unique ID generation
    • Improved French translations for null/not null filters in the admin interface
    • Enhanced Content Releases feature to properly clean up cron jobs when scheduled releases are deleted

Migration Guide

No specific migration steps are required for this patch release. Simply update your Strapi version to v4.20.2.

For general update guidance, refer to the official update guide.

Upgrade Recommendations

This patch release (v4.20.2) is recommended for all Strapi users, especially those who:

  • Work with Dynamic Zones in the Content Manager
  • Use French language in the admin interface
  • Utilize the Content Releases feature with scheduled releases

The update addresses specific bugs without introducing breaking changes, making it a safe upgrade for all v4.20.x installations.

Bug Fixes

Content Manager Fixes

  • Dynamic Zones Component Positioning: Fixed strange behaviors that occurred when changing the position of components within Dynamic Zones. The editor reference is now properly checked before creating a new one during drag operations.

  • Unique ID Generation: Resolved issues with non-unique IDs in Dynamic Zones that could cause unexpected behavior and conflicts.

  • CodeMirror Editor Cleanup: Improved the cleanup process for CodeMirror editor instances on re-rendering, preventing memory leaks and improving performance.

  • Component Selection: Changed the approach for selecting temporary key values to ensure more reliable operation.

Admin Interface Fixes

  • French Translations: Fixed French translations for null/not null filters in the admin interface, improving the experience for French-speaking users.

New Features

Content Releases Enhancement

  • Improved Scheduled Release Management: The Content Releases feature now properly removes cron jobs when scheduled releases are deleted, preventing potential resource leaks and improving system stability.

Security Updates

No security fixes were included in this release.

Performance Improvements

Editor Performance

  • CodeMirror Optimization: Improved the way CodeMirror editor instances are handled during re-rendering, which should result in better performance when working with Dynamic Zones and content that uses the code editor.

Impact Summary

This patch release focuses on fixing several important bugs that affect the day-to-day usage of Strapi, particularly for content editors working with Dynamic Zones. The fixes address issues that could cause confusion and frustration when rearranging components within Dynamic Zones, as well as potential problems caused by non-unique IDs.

For French-speaking users, the improved translations for null/not null filters enhance the usability of the admin interface. Additionally, the enhancement to the Content Releases feature ensures better resource management by properly cleaning up cron jobs when scheduled releases are deleted.

Overall, this release improves stability and user experience without introducing any breaking changes or requiring migration steps. It's a straightforward update that resolves specific issues reported by the community.

Full Release Notes

🔥 Bug fix

  • [core:content-manager] fix(content-manager): fix strange behaviours when you change position on Dynamic Zones and solve issue with ids not unique (#19480) @simotae14

📚 Update and Migration Guides

  • General update guide can be found here
  • Migration guides can be found here 📚

Statistics:

File Changed55
Line Additions583
Line Deletions447
Line Changes1,030
Total Commits7

User Affected:

  • Fixed issues with Dynamic Zones component positioning that previously caused strange behaviors when rearranging components
  • Resolved problems with non-unique IDs in Dynamic Zones that could lead to unexpected behavior
  • Improved experience when working with CodeMirror editor within Dynamic Zones

Contributors:

t-fritschConvlyMcastresFeranchzsimotae14markkaylor