Home

>

Tools

>

Strapi

>

Releases

>

4.0.0-beta.22

Strapi Release: 4.0.0-beta.22

Pre Release

Tag Name: v4.0.0-beta.22

Release Date: 11/29/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.22 fixes a critical issue with unique validation during content publishing and removes the Academy link from the README. This release ensures that unique field validation works correctly when publishing content, preventing potential data integrity issues.

Highlight of the Release

    • Fixed unique field validation when publishing content
    • Removed Academy link from README documentation

Migration Guide

No migration is required for this beta release. The fixes are backward compatible and will work automatically after updating to v4.0.0-beta.22.

Upgrade Recommendations

If you're using Strapi v4.0.0-beta.21, it's recommended to upgrade to v4.0.0-beta.22, especially if you're working with content types that have unique fields and rely on the publishing workflow. This update ensures proper validation of unique fields during content publishing.

To upgrade:

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

After upgrading, restart your Strapi application.

Bug Fixes

Fixed unique validation on publish

This release addresses an important bug where unique field validation wasn't working correctly during content publishing. The fix passes the entity down to the validateCreation function for publish operations and properly handles undefined values. This ensures that when content with unique fields is published, the validation correctly checks for uniqueness against existing published content.

This fix prevents potential data integrity issues where duplicate values could be published for fields marked as unique.

New Features

No new features were added in this beta release. This update focuses on bug fixes and documentation updates.

Security Updates

No security fixes were included in this beta release.

Performance Improvements

No specific performance improvements were included in this beta release.

Impact Summary

This beta release primarily impacts content editors who work with unique fields in their content types. The fix ensures that unique validation works correctly during the publishing process, preventing potential data integrity issues where duplicate values could be published for fields marked as unique.

The removal of the Academy link from the README is a minor documentation change that doesn't affect functionality but updates the reference materials available to users.

Overall, this is a targeted bug fix release that improves the reliability of the content publishing workflow when working with unique fields.

Full Release Notes

Changes

  • Fix unique validation on publish

Statistics:

File Changed3
Line Additions7
Line Deletions3
Line Changes10
Total Commits4

User Affected:

  • Can now successfully publish content with unique fields without validation errors
  • Will experience more reliable content publishing workflow

Contributors:

derrickmehaffyalexandrebodin