Home

>

Tools

>

Strapi

>

Releases

>

4.0.3

Strapi Release: 4.0.3

Tag Name: v4.0.3

Release Date: 1/5/2022

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.3 is a maintenance release that focuses on bug fixes and enhancements across various parts of the CMS. It addresses issues with the admin interface, content manager, email plugin, upload functionality, and GraphQL plugin. Key improvements include fixing decimal number display, markdown editor styling, drag-and-drop in Firefox, and GraphQL enum generation. The release also enhances the build process, updates dependencies, and improves the UI for required fields.

Highlight of the Release

    • Fixed decimal number display in content manager to show all decimals for float/decimal types
    • Fixed italic style rendering in markdown editor preview mode
    • Fixed GraphQL enum generation to properly generate enum types instead of strings
    • Improved UI for required fields across the admin interface
    • Fixed Firefox drag and drop functionality
    • Added confirmation alert when closing upload modal with unsaved changes

Migration Guide

No specific migration steps are required for this release as it primarily contains bug fixes and enhancements. The changes are backward compatible with v4.0.2.

If you're upgrading from an earlier version than v4.0.2, please refer to the official Strapi migration guides for detailed instructions.

Upgrade Recommendations

This is a recommended upgrade for all Strapi v4.0.2 users as it contains multiple bug fixes and enhancements that improve the overall stability and user experience of the CMS.

To upgrade:

  1. Update your Strapi dependencies in your package.json file:

    npm upgrade [email protected] --save
    

    or

    yarn upgrade [email protected]
    
  2. Clean your node_modules and reinstall dependencies:

    rm -rf node_modules
    npm install
    

    or

    rm -rf node_modules
    yarn
    
  3. Rebuild your admin panel:

    npm run build
    

    or

    yarn build
    
  4. Start your Strapi application:

    npm run develop
    

    or

    yarn develop
    

Bug Fixes

Admin Interface

  • Fixed issue #12045 related to the admin interface
  • Added lowercase validation to email for registering admin users
  • Fixed logout functionality on Safari browser

Content Manager

  • Fixed decimal number display to show correct number of decimals for float/decimal types
  • Fixed italic style rendering in markdown editor preview mode
  • Fixed drag and drop functionality in Firefox

Upload Plugin

  • Fixed upload file info form issues
  • Added confirmation alert when closing upload modal with unsaved changes

Email Plugin

  • Fixed wrong axios instance usage in the email plugin

GraphQL Plugin

  • Fixed component attribute updates for users in GraphQL
  • Fixed GraphQL playground configuration to properly respect the playgroundAlways option
  • Fixed GraphQL enum generation that was incorrectly generating String types instead of proper enum types

New Features

No major new features were introduced in this release as it primarily focuses on bug fixes and enhancements to existing functionality. However, some notable enhancements include:

  • Added confirmation alert when closing the upload modal with unsaved changes
  • Improved UI for required fields in profiles, user creation/edition, API tokens, and webhooks
  • Updated default README template for new projects

Security Updates

No specific security fixes were mentioned in this release.

Performance Improvements

Build Process Improvements

  • Always remove the build and cache folders when running the build command for cleaner builds
  • Removed the build directory from the watched files list to prevent unnecessary rebuilds
  • Upgraded webpack configuration and related dependencies for better build performance

These improvements help reduce build times and prevent unnecessary processing during development and production builds.

Impact Summary

Strapi v4.0.3 is a maintenance release that addresses several important bugs and introduces quality-of-life improvements across the platform. The fixes for decimal number display, markdown editor styling, and GraphQL enum generation will improve the content editing experience and developer workflow.

The enhancements to the build process, including proper cache clearing and excluding the build directory from watched files, will lead to more efficient development cycles. UI improvements for required fields provide better visual feedback for users.

This release doesn't introduce breaking changes, making it a safe upgrade for all users on v4.0.2. The fixes for browser-specific issues (Firefox drag-and-drop, Safari logout) will ensure a more consistent experience across different environments.

Overall, this release focuses on stability and usability improvements rather than introducing new features, making it an important update for maintaining a smooth Strapi experience.

Full Release Notes

🐛 Bug fix

  • [core:admin] Fixes #12045 (#12050) @soupette
  • [core:admin] Add lowercase validation to email for registering admin user. (#12091) @soupette
  • [core:content-manager] Fix: show correct number of decimals in content manager (#11890) @oscarsandberg
  • [core:content-manager] Fix issue that italic style is ignored in preview mode on markdown editor (#12025) @iicdii
  • [core:content-manager] Fix firefox drag n drop (#12061) @HichamELBSI
  • [core:email] Fix wrong axios instance in email plugin (#12036) @soupette
  • [core:upload] Fix upload file info form (#11989) @HichamELBSI
  • [plugin:graphql] Fix Update user does not update component attribute (#11871) @iicdii
  • [plugin:graphql] Take the playgroundAlways option into account for the graphql playground (#11999) @Convly
  • [plugin:graphql] Fix GraphQL enums are genereated as String type (#12005) @iicdii

💅 Enhancement


📚 Migration guides can be found here 📚

Statistics:

File Changed101
Line Additions5,934
Line Deletions4,665
Line Changes10,599
Total Commits69

User Affected:

  • Fixed GraphQL enum generation that was incorrectly generating String types
  • Fixed component attribute updates for users in GraphQL
  • Improved GraphQL playground configuration with proper handling of playgroundAlways option
  • Updated webpack configuration and related dependencies
  • Fixed build process to properly clear build and cache folders

Contributors:

oscarsandbergnemo0ConvlyiicdiisoupetteHichamELBSIajitzeroderrickmehaffysmoothdvdvincentbproalexandrebodinronronscelestesMcastres