Home

>

Tools

>

Strapi

>

Releases

>

4.0.0-beta.3

Strapi Release: 4.0.0-beta.3

Pre Release

Tag Name: v4.0.0-beta.3

Release Date: 10/11/2021

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.0.0-beta.3 brings significant improvements to the admin UI, middleware handling, and lifecycle management. This release focuses on UI refinements, internal code cleanup, and better API management, making the CMS more consistent and user-friendly. It addresses several migration-related UI issues and improves the overall developer experience.

Highlight of the Release

    • Added destroy lifecycle for users
    • Harmonized policies and middleware for better consistency
    • Fixed UI issues in the admin panel
    • Improved content manager with fixed repeatable component previews
    • Moved GenericInput into helper-plugin for better reusability

Migration Guide

No specific migration steps are required for this beta release. This is an incremental update from v4.0.0-beta.2 to v4.0.0-beta.3 with mostly internal improvements and bug fixes.

If you're using custom middleware configurations, note that middleware handling has been harmonized in this release, which might affect your custom implementations. Review your middleware code if you experience any issues after upgrading.

Upgrade Recommendations

As this is a beta release (v4.0.0-beta.3), it's recommended for testing environments and early adopters who want to provide feedback on Strapi v4.

If you're already using v4.0.0-beta.2, upgrading to this version is recommended to benefit from the UI fixes and internal improvements. The changes are mostly non-breaking and focus on enhancing stability and user experience.

For production environments, it's still advisable to wait for the stable v4.0.0 release unless you specifically need the fixes included in this beta.

Bug Fixes

Admin UI Fixes

  • Fixed preview for repeatable components in the content manager
  • Fixed timepicker step functionality
  • Fixed authentication links styling
  • Fixed application page label color and translations
  • Fixed header button misalignment
  • Removed cancel/reset button in content-type builder, webhook, and edit role pages

Internal Fixes

  • Fixed Sentry being initiated twice
  • Fixed destroyOnSignal implementation
  • Handled nil middlewares with a dumb middleware instead of propagating null values

New Features

User Lifecycle Management

  • Added destroy lifecycle to user in src/index.js
  • Registered rate limit middleware for improved API protection

Admin UI Improvements

  • Moved GenericInput into helper-plugin for better reusability across the application
  • Improved handling of SIGINT and SIGTERM signals

API Management

  • Implemented array checks in API token authentication strategy
  • Filtered actions and routes displayed in users-permissions to show only content-API relevant options

Security Updates

No specific security fixes were mentioned in this release. However, the implementation of rate limiting middleware and improvements to the API token authentication strategy contribute to better overall security posture.

Performance Improvements

Admin API Improvements

  • Moved ML (Media Library) find many to find page for better pagination
  • Ensured results are properly sanitized
  • Harmonized registries and simplified listing commands

Code Optimization

  • Removed legacy getPlugins code
  • Simplified middleware configuration
  • Improved internal code structure with better consistency between policies and middlewares

Impact Summary

This beta release represents an important step in refining Strapi v4 before its stable release. The focus has been on improving the developer and admin user experience through UI fixes, better middleware handling, and internal code cleanup.

The addition of the destroy lifecycle for users provides developers with more control over user management. The harmonization of policies and middlewares makes the codebase more consistent and easier to work with. UI improvements address several migration-related issues, making the admin interface more polished.

For content managers, the fixed preview for repeatable components and improved UI elements enhance the content editing experience. The filtering of actions in the Users & Permissions plugin helps administrators focus on relevant options.

Overall, this release doesn't introduce major new features but instead concentrates on stability, consistency, and usability improvements that will benefit all Strapi users as v4 approaches its stable release.

Full Release Notes

Changes

  • Add destroy lifecycle to user src/index.js
  • Migrate middleware configuration
  • Display only usable actions in users & permissions plugin
  • Fix UI bugs

Statistics:

File Changed151
Line Additions4,544
Line Deletions2,765
Line Changes7,309
Total Commits40

User Affected:

  • Benefit from improved middleware consistency and configuration
  • Can utilize the new destroy lifecycle for users
  • Experience better API token authentication with array checks

Contributors:

soupetteHichamELBSIpetersg83alexandrebodinronronscelestes