Home

>

Tools

>

Strapi

>

Releases

>

5.16.0

5.16.0

Tag Name: v5.16.0

Release Date: 6/17/2025

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 5.16.0 introduces regex validation for UID fields, improves the blocks editor with debounced updates, and adds a new event for Content-Type Builder schema updates. This release also fixes several UI issues, improves localization handling, and addresses security vulnerabilities by updating dependencies. The update enhances the overall user experience with better error handling, clearer component constraints, and improved media validation during bulk publishing.

Highlight of the Release

    • Added regex validation support for UID fields
    • Improved blocks editor performance with debounced updates
    • Added new DidUpdateCTBSchema event for Content-Type Builder
    • Fixed multiple UI and design issues across the admin panel
    • Improved localization handling when duplicating documents
    • Enhanced validation for required media during bulk publishing

Migration Guide

No breaking changes have been introduced in this release, so no specific migration steps are required.

If you're using custom plugins that interact with the Content-Type Builder, you might want to review the new DidUpdateCTBSchema event to see if it could enhance your plugin's functionality.

For developers using UID fields, you can now take advantage of the new regex validation feature by updating your content type schemas.

Upgrade Recommendations

This release contains important bug fixes, security updates, and useful new features without introducing breaking changes. We recommend all users upgrade to version 5.16.0 at their earliest convenience.

The security updates to dependencies are particularly important for maintaining a secure environment, and the UI improvements and bug fixes will enhance the overall user experience.

To upgrade:

npm install strapi@5.16.0

or

yarn upgrade strapi@5.16.0

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

Bug Fixes

UI and Design Fixes

  • Fixed word break property for better text wrapping in the interface
  • Corrected the disabled state styling of relation fields in the Content-Type Builder
  • Fixed visual glitches in radio-group components on certain screen sizes
  • Improved asset refresh visuals after replacement
  • Enhanced the display of dynamic zone components on small screens
  • Fixed draggable element styling in the upload plugin

Content Management Fixes

  • Fixed missing documentId from fields for view and filters in the Content Manager
  • Resolved an issue where duplicating a document with a non-default locale wasn't serving the correct document
  • Fixed the display name of the upload plugin in roles settings
  • Improved clarity of min/max value indicators for components
  • Fixed validation of required media when bulk publishing multiple locales

New Features

Added regex validation for UID fields

Developers can now define regex patterns for UID fields, allowing for more precise validation and formatting requirements. This feature enables better control over the structure and format of unique identifiers in your content types.

New DidUpdateCTBSchema event

The Content-Type Builder now emits a DidUpdateCTBSchema event when schema changes occur. This event provides plugin developers with a hook to respond to schema updates, enabling better integration and extension capabilities.

Improved blocks editor with debounced updates

The blocks editor now implements debounced updates, which reduces unnecessary renders and improves performance when editing content. This enhancement prevents errors that could occur when making rapid changes and provides a smoother editing experience.

Security Updates

Dependency Updates

  • Updated Docusaurus to address security vulnerabilities
  • Upgraded Formidable to version 3.5.4 to patch security issues

These updates address potential security vulnerabilities in third-party dependencies, ensuring that your Strapi installation remains secure against known threats.

Performance Improvements

Blocks Editor Performance

The blocks editor now uses debounced updates to reduce the frequency of state updates and re-renders. This optimization significantly improves performance when editing content blocks, especially for complex content structures or when making rapid changes.

Error Handling Improvements

Fixed an issue where Slate (the underlying rich text editor) would throw errors when discarding changes. This improvement enhances stability during content editing sessions and prevents potential data loss scenarios.

Impact Summary

Strapi 5.16.0 brings valuable improvements to both developers and content editors. The addition of regex validation for UID fields gives developers more control over data formats, while the new Content-Type Builder event enhances plugin development capabilities.

Content editors will benefit from a smoother experience with the blocks editor thanks to debounced updates, and administrators will appreciate the numerous UI fixes and improved handling of localized content.

The release also addresses several important bugs related to content management, particularly around localization, component constraints, and media validation during bulk operations. These fixes will improve content workflow efficiency and reduce potential frustration points.

Security updates to dependencies ensure that your Strapi installation remains protected against known vulnerabilities, making this update important from a security standpoint as well.

Overall, this is a well-rounded release that improves the platform's stability, security, and user experience without introducing breaking changes or requiring migration efforts.

Full Release Notes

5.16.0 (2025-06-17)

🚀 New feature

  • uid: add regex attribute (#23141)

🔥 Bug fix

  • updated word break property for word wrap around (#23265, #23430)
  • design issues (#23719)
  • serve the correct document when we duplicate a document with a locale different than the default one (#23709)
  • display name of upload plugin in roles settings (#23739)
  • min/max value for components not clear (#23741)
  • bulk publish mutliple locales does not validate required media (#23750)
  • content-manager: documentId missing from fields for the view and… (#23604)
  • upload: draggable element style (#22098)

⚙️ Chore

  • content-type-builder: add DidUpdateCTBSchema event (#23651)
  • upgrade formidable to 3.5.4 (#23722)
  • strapi DS v2.0.0-rc.26 bump (#23752)

💅 Enhancement

  • debounce blocks editor update (#23681)

🚨 Security

❤️ Thank You

Statistics:

File Changed109
Line Additions2,959
Line Deletions1,884
Line Changes4,843
Total Commits17

User Affected:

  • Can now use regex patterns to validate UID fields
  • Have access to a new DidUpdateCTBSchema event for better plugin integration
  • Will benefit from security updates in dependencies
  • Experience improved performance with debounced blocks editor updates

Contributors:

noreillerAdzouzremidejjhoward1994innerdvationsmarkkaylorankit7201ar53nsimotae14