Changes
- Fix unique validation on publish
Pre Release
Tag Name: v4.0.0-beta.22
Release Date: 11/29/2021
StrapiOpen-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.
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.
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.
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.
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.
No new features were added in this beta release. This update focuses on bug fixes and documentation updates.
No security fixes were included in this beta release.
No specific performance improvements were included in this beta release.
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.