Home

>

Tools

>

Strapi

>

Releases

>

4.0.0-beta.7

Strapi Release: 4.0.0-beta.7

Pre Release

Tag Name: v4.0.0-beta.7

Release Date: 10/28/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.7: UI Enhancements, Security Improvements, and Bug Fixes

This beta release focuses on polishing the Strapi v4 experience with numerous UI fixes across the Media Library and Content Type Builder. Security has been enhanced with stricter CSP configurations, and filter functionality has been improved with proper type casting. The release also includes updates to the design system package and icon set, providing a more consistent visual experience.

Highlight of the Release

    • Fixed Media Library filters for better content organization
    • Enhanced Content Type Builder with improved redirections and UI alignments
    • Implemented stricter Content Security Policy (CSP) configurations
    • Added proper type casting for filters to improve query handling
    • Updated design system package naming and refreshed icon set across the application

Migration Guide

As this is a beta release (v4.0.0-beta.7), no specific migration steps are required if you're already using v4.0.0-beta.6. However, if you've customized any of the following areas, you may need to make adjustments:

Design System Package References

If you've directly imported from the design system package in custom code, you'll need to update your imports to use the new package name.

Custom Security Configurations

If you've modified the default CSP settings, you should review the new stricter defaults and ensure your customizations maintain appropriate security levels.

Custom UI Components

If you've created custom UI components that rely on the icon set, you may need to update your references to use the new icon components.

Upgrade Recommendations

This release contains important bug fixes and security improvements, so upgrading from v4.0.0-beta.6 to v4.0.0-beta.7 is recommended for all users currently testing Strapi v4 beta.

To upgrade:

  1. Update your package.json to reference the new version:

    "strapi": "4.0.0-beta.7"
    
  2. Run your package manager's update command:

    npm install
    # or
    yarn
    
  3. Test your application thoroughly after upgrading, especially if you use custom components that might be affected by the design system changes.

As this is still a beta release, it's recommended to test thoroughly in a non-production environment before deploying.

Bug Fixes

Media Library Fixes

  • Fixed filters in the Media Library interface for better content organization and searching.
  • Resolved background overflow issues that were affecting the UI presentation.

Content Type Builder Improvements

  • Fixed redirection issues when creating a new content type.
  • Corrected list alignment problems in the interface.
  • Improved validation for maximum values.

Input and Field Fixes

  • Fixed the boolean null state handling to properly represent and manage null values.
  • Resolved issues with the UID input field functionality.
  • Enhanced user validation for role assignments.

API and Documentation

  • Fixed improper English text in the API Token interface for better clarity.

New Features

Design System Updates

  • Renamed Design System Package: The design system package has been renamed for better consistency and clarity.
  • New Icon Set: Implemented a completely refreshed icon set throughout the application, providing a more modern and consistent visual language.

Security Enhancements

  • Stricter CSP Configuration: Implemented more secure default Content Security Policy settings to better protect against various web vulnerabilities.

Security Updates

Content Security Policy Enhancements

  • Implemented stricter Content Security Policy (CSP) configurations to provide better protection against cross-site scripting (XSS) attacks and other web vulnerabilities.
  • The new CSP settings enforce safer defaults, reducing the potential attack surface of Strapi applications.

Performance Improvements

Filter Optimizations

  • Type Casting for Filters: Implemented proper type casting for filters, which improves query handling and performance when filtering content.
  • Added comprehensive tests to ensure the type casting works correctly across different scenarios.

UI Performance

  • Fixed background overflow issues which could potentially cause rendering performance problems in certain browsers.
  • Optimized component rendering in the Content Type Builder and Media Library interfaces.

Impact Summary

This beta release represents an important step in polishing the Strapi v4 experience before its stable release. The focus has been on fixing UI issues, enhancing security, and improving the developer experience.

The Media Library and Content Type Builder interfaces have received significant attention, with fixes for filters, redirections, and alignment issues. These improvements make content management more intuitive and reliable.

Security has been strengthened with stricter CSP configurations, which is particularly important for applications handling sensitive data or operating in regulated environments.

The filter type casting improvements enhance the reliability of queries, ensuring that data is properly filtered regardless of the input format.

Design system updates, including the package renaming and new icon set, contribute to a more consistent and modern visual experience throughout the application.

Overall, this release addresses several pain points reported by beta testers and moves Strapi v4 closer to production readiness.

Full Release Notes

Changes

  • Media Lib UI fixes
  • Content type builder UI fixes
  • Security middleware enforce safer defaults
  • Filter type casting

Statistics:

File Changed300
Line Additions1,837
Line Deletions1,675
Line Changes3,512
Total Commits28

User Affected:

  • Improved Media Library interface with fixed filters
  • Enhanced Content Type Builder experience with fixed redirections and alignments
  • Better security with stricter CSP configurations

Contributors:

soupettealexandrebodinderrickmehaffy