Home

>

Tools

>

Strapi

>

Releases

>

4.2.3

Strapi Release: 4.2.3

Tag Name: v4.2.3

Release Date: 7/13/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.2.3 is a maintenance release focused on bug fixes and enhancements. It addresses several critical issues including unique fields with empty string values, drag & drop functionality in media uploads, and permission-related bugs. The release also adds new language translations (Gujarati, Kurdish) and improves developer tooling with updated dependencies and better testing infrastructure.

Highlight of the Release

    • Fixed unique fields with empty string value issue
    • Resolved drag & drop functionality in media uploads
    • Fixed relation fields display when users lack read permissions
    • Added support for Gujarati and Kurdish languages
    • Improved table styles in the WYSIWYG editor
    • Fixed users-permissions default permissions

Migration Guide

No specific migration steps are required for this release as it primarily contains bug fixes and enhancements.

However, if you've been experiencing any of the fixed issues, particularly with:

  1. Unique fields with empty string values
  2. Knex transaction errors with PostgreSQL migrations
  3. Media library drag & drop functionality
  4. Users-permissions default permissions

You should update to this version to resolve these issues.

For a complete list of migration guides for Strapi, please refer to the official documentation.

Upgrade Recommendations

This release contains important bug fixes and enhancements that improve stability and user experience. It's recommended for all users to upgrade, especially if you're experiencing any of the issues addressed in this release.

Who should prioritize upgrading:

  • Users experiencing issues with unique fields and empty string values
  • PostgreSQL users encountering knex transaction errors with migrations
  • Users having problems with media library drag & drop functionality
  • Anyone experiencing issues with relation fields display when users have limited permissions
  • Projects using the i18n plugin with pagination issues after locale changes
  • Installations with users-permissions default permission problems

How to upgrade:

npm install [email protected]
# or
yarn upgrade [email protected]

After upgrading, restart your Strapi application to apply the changes.

Bug Fixes

Core Admin Fixes

  • Unique Fields: Fixed an issue where unique fields were incorrectly handling empty string values, causing validation problems.
  • Content Type Builder: Fixed the search button tooltip in the content-types builder for better usability.

Content Manager Fixes

  • Content Type Configuration: The updateContentTypeConfiguration endpoint now correctly returns full data including content type and components.
  • Relations Display: Fixed an issue where relation fields would not display correctly if a user did not have read permissions.
  • WYSIWYG Editor: Improved and fixed styles for tables in the preview mode of the WYSIWYG editor.

Upload Plugin Fixes

  • Media Library Input: Fixed drag & drop events in the Media Library Input component.
  • From Computer Form: Fixed drag & drop functionality in the upload from computer form.

Database Fixes

  • Knex Transaction Error: Resolved an issue with knex transaction errors when adding migrations in the migration folder for PostgreSQL.
  • Warning Message: Fixed a typo in the root level operations warning message.

Plugin Fixes

  • i18n Plugin: The LocalePicker component now correctly resets to page 1 after updating a locale, preventing pagination issues.
  • Users-Permissions Plugin: Fixed default permissions in the users-permissions plugin.

New Features

Language Support Additions

  • Gujarati Translation: Added complete Gujarati language support to enhance accessibility for Gujarati-speaking users.
  • Kurdish Languages: Added support for two new Kurdish language variants, expanding the multilingual capabilities of Strapi.
  • Sanskrit Translation: Added Sanskrit language support (though not explicitly mentioned in the highlights).

Security Updates

No specific security fixes were mentioned in this release.

Performance Improvements

Development Tooling Improvements

  • Webpack Dependencies: Upgraded and unpinned webpack dependencies for better build performance.
  • Jest Update: Updated Jest, Jest-circus, and Jest-cli to version 28, improving test execution speed and reliability.
  • Lerna Upgrade: Upgraded to Lerna 5 to speed up build processes (mentioned in commit messages).

Runtime Performance

  • Fixed various issues that could impact application performance, particularly around database operations and content type handling.

Impact Summary

Strapi v4.2.3 is a maintenance release that focuses on bug fixes and quality-of-life improvements. The most significant impact comes from fixing several critical issues:

  1. Data Integrity: The fix for unique fields with empty string values prevents potential data validation issues and improves database integrity.

  2. User Experience: Multiple fixes to the drag & drop functionality in the media library enhance the content editing experience, making it more reliable and intuitive.

  3. Developer Experience: The resolution of the knex transaction error with PostgreSQL migrations and improvements to the content type configuration endpoint make development workflows smoother.

  4. Accessibility: The addition of Gujarati and Kurdish language support expands Strapi's accessibility to more users worldwide.

  5. Permission Handling: Fixes to the users-permissions default permissions and relation fields display with limited permissions improve the security model and user access control.

Overall, this release enhances stability, fixes several pain points reported by the community, and continues to improve the multilingual capabilities of the platform. While not introducing major new features, it solidifies the foundation for future development.

Full Release Notes

🔥 Bug fix

  • [core:admin] [Fix] Unique fields with empty string value (#13313) @ronronscelestes
  • [core:content-manager] Make updateContentTypeConfiguration endpoint return full data (#13676) @benderillo
  • [core:content-manager] CellContent: Fix relations, if a user does not have read permissions (#13705) @gu-stav
  • [core:content-manager] PreviewWysiwyg: Fix and improve styles for tables (#13746) @gu-stav
  • [core:content-type-builder] fix: content-types builder search button tooltip (#13533) @yangfei4913438
  • [core:database] fix: knex transaction error on adding the migrations in migration folder (#13637) @meherchandan
  • [core:database] fix: typo in root level ops warning message (#13751) @Le-Bit
  • [core:upload] MediaLibraryInput: Fix drag & drop events (#13696) @gu-stav
  • [core:upload] FromComputerForm: Fix drag & drop events (#13700) @gu-stav
  • [plugin:i18n] LocalePicker: Always set page to 1 after updating a locale (#13707) @gu-stav
  • [plugin:users-permissions] Fix users-permissions default permissions (#13672) @alexandrebodin

💅 Enhancement

⚙️ Chore


📚 Migration guides can be found here 📚

Statistics:

File Changed87
Line Additions5,376
Line Deletions2,966
Line Changes8,342
Total Commits130

User Affected:

  • Fixed issue with unique fields accepting empty string values
  • Resolved knex transaction error when adding migrations in the migration folder
  • Fixed typo in root level operations warning message
  • Improved content type builder with better tab labels and search button tooltip
  • Updated various dependencies for better stability

Contributors:

ronronscelestesanjalirathor622kiranrathor30697poonamdhangarSarkarKurdishmeherchandanyangfei4913438dependabot[bot]alexandrebodinbenderillonvh95remidejLe-Bitpetersg83