Home

>

Tools

>

Strapi

>

Releases

>

4.20.1

Strapi Release: 4.20.1

Tag Name: v4.20.1

Release Date: 2/14/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.1 is a maintenance release that introduces several bug fixes and enhancements to the Content Releases feature, improves the Blocks editor with support for relative links, and addresses various issues with input validation, type generation, and the i18n plugin. This release focuses on improving stability and user experience while adding new functionality to the Content Releases system, including scheduling capabilities and timezone support.

Highlight of the Release

    • Added support for relative links in the Blocks editor
    • Fixed UI issues in Content Releases by replacing Popover with Menu component
    • Added scheduling service for Content Releases with timezone support
    • Restricted model and attribute names that could break Strapi
    • Fixed input payload validation and TypeScript type generation

Migration Guide

No specific migration steps are required for this patch release. As always, follow the standard update procedure:

  1. Make a backup of your project before updating
  2. Update your package.json to use the new version (v4.20.1)
  3. Run npm install or yarn install to update dependencies
  4. Restart your Strapi application

For detailed instructions, refer to the general update guide.

Upgrade Recommendations

This is a patch release (v4.20.1) that fixes several bugs and adds enhancements to the Content Releases feature. It's recommended for all users running v4.20.0 to upgrade to this version to benefit from the bug fixes and improvements.

The update is particularly important if you:

  • Use the Content Releases feature
  • Work with the Blocks editor and need relative link support
  • Have experienced issues with the i18n plugin
  • Use TypeScript and have encountered problems with min/max default values

As this is a patch release, the upgrade should be straightforward with minimal risk of breaking changes.

Bug Fixes

  • Content Releases UI: Replaced Popover with Menu component in the Details page to avoid weird behavior on click
  • Content Type Builder: Restricted model and attribute names that could potentially break Strapi functionality
  • Input Validation: Fixed issues with input payload validation
  • TypeScript Type Generation: Modified type checking for min/max defaults to ensure proper validation
  • i18n Plugin: Fixed issue with extracting relatedEntityId from the query
  • Content Releases Radio Buttons: Added disabled state to action radio buttons and improved their behavior and UI
  • French Translations: Fixed French translations for null/not null filters

New Features

Content Releases Enhancements

  • New Scheduling Service: Added a comprehensive scheduling service for content releases that allows for planning and automating content publication
  • Purchase Content Releases Page: Added a dedicated page for purchasing the Content Releases feature
  • Timezone Support: Content releases now support timezone configuration, allowing for more accurate scheduling across different regions
  • Scheduled Release Management: Added ability to sync all scheduled releases on bootstrap and cancel them on destroy
  • scheduledAt Field: Added scheduledAt field to releases content type and requests for better scheduling control
  • Cron Scheduling Updates: The system now updates cron scheduling when a release's scheduledAt value changes

Security Updates

No security fixes were explicitly mentioned in this release.

Performance Improvements

No specific performance improvements were mentioned in this release. The focus appears to be on bug fixes, feature enhancements, and UI improvements rather than performance optimizations.

Impact Summary

Strapi v4.20.1 brings significant improvements to the Content Releases feature, including a new scheduling service with timezone support, which enhances content planning capabilities. Content editors will benefit from the ability to use relative links in the Blocks editor, making internal linking more convenient.

Several important bug fixes address issues with UI components, input validation, and TypeScript type generation. The fix for the i18n plugin's relatedEntityId extraction resolves potential internationalization issues.

The release also includes documentation improvements for the Content Releases feature and end-to-end tests to ensure stability. The changes to model and attribute name restrictions help prevent configuration issues that could break Strapi functionality.

Overall, this release improves stability, enhances user experience, and adds valuable features to the Content Releases system while fixing several important bugs that affected different aspects of the CMS.

Full Release Notes

💅 Enhancement

  • [core:admin] enhancement: allow relative links in the Blocks editor (#19197) @Ben-Zahler

🔥 Bug fix

  • [core:content-releases] fix(content-releases): replace Popover with Menu component in the Details page (#19408) @simotae14
  • [core:content-type-builder] fix: restrict model and attribute names that break Strapi (#19345) @innerdvations
  • [core:strapi] Fix input payload validation (#19467) @Convly
  • [plugin:i18n] fix(i18n): extract relatedEntityId from the query (#19510) @jhoward1994
  • [typescript] Fix Type Generation Checks for Min/Max Default Values (#19490) @Convly

⚙️ Chore

📖 Documentation

  • [core:content-releases] docs(content-releases): add frontend docs (#19391) @simotae14

🚀 New feature

  • [core:content-releases] feat(content-releases): added a purchase content releases page (#19455) @simotae14

📚 Update and Migration Guides

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

Statistics:

File Changed142
Line Additions4,454
Line Deletions878
Line Changes5,332
Total Commits21

User Affected:

  • Can now use relative links in the Blocks editor
  • Benefit from improved UI in Content Releases with better menu components
  • Have access to scheduling capabilities for content releases with timezone support

Contributors:

Feranchzmarkkaylorsimotae14Marc-RoigBen-ZahlerConvlyinnerdvationsMcastresjhoward1994