TL;DR
Strapi 5.8.0: Enhanced UI, Database Improvements, and Bug Fixes
This release brings several UI enhancements including syntax highlighting for code blocks, improved color picker functionality, and fixes for various visual elements. Database operations have been optimized with better SQLite support and index handling. Multiple bug fixes address issues with number fields, nested components, and the content manager interface. The update also includes documentation improvements and dependency updates for better security and performance.
Highlight of the Release
- Added syntax highlighting for code blocks in the content editor
- Fixed number field handling to properly send null instead of undefined when cleared
- Optimized database operations for SQLite support with appropriate batch sizes
- Improved handling of nested component images in history
- Enhanced Apollo landing page configuration
Migration Guide
No significant migration steps are required for this release. The update primarily consists of enhancements and bug fixes that should work seamlessly with your existing Strapi implementation.
If you're using SQLite as your database, you may notice improved performance due to the optimized batch size settings.
For developers who have customized the Content Manager or are working with code blocks, the new syntax highlighting feature will be automatically available after updating.
Upgrade Recommendations
This release contains valuable UI improvements, bug fixes, and performance enhancements that benefit all Strapi users. We recommend upgrading to version 5.8.0 at your earliest convenience, especially if you:
- Work with code blocks in your content
- Use SQLite as your database
- Have experienced issues with number fields or nested components
- Want to benefit from the improved Apollo landing page configuration
The update is considered low-risk as it primarily consists of enhancements and bug fixes without introducing breaking changes.
Bug Fixes
UI and Interaction Fixes
- Fixed number field handling to properly send
null instead of undefined when cleared, ensuring proper data persistence
- Added missing
name attribute to ColorPickerInput component for better form handling
- Fixed missing hover pointer in the bottom of Content Type Builder menu when adding fields
- Corrected active state background color for better visual feedback
- Added missing borders to widgets for improved visual consistency
- Fixed version number in scripts-front
Database and Component Handling
- Improved database index handling to only drop indexes that exist and avoid unnecessary operations during creation
- Enhanced handling of nested component images in the history feature
- Optimized batch size to 500 for better SQLite support
- Fixed issues with multiple locale requests and proper loading of localizations
New Features
Syntax Highlighting for Code Blocks
The Content Manager now features syntax highlighting for code blocks, making it easier to read and edit code snippets within your content. This enhancement uses Prism.js to provide proper syntax coloring and formatting, significantly improving the editing experience when working with code in your content.
Apollo Landing Page Configuration
This release introduces enhanced configuration options for the Apollo landing page, providing more flexibility and customization capabilities for your API documentation interface.
Security Updates
Dependency Updates
- Updated
nanoid from 3.3.7 to 3.3.8 to address security concerns
- Updated
path-to-regexp from 8.1.0 to 8.2.0 for improved security and performance
Performance Improvements
Database Optimizations
- Reduced batch size to 500 to better support SQLite databases, improving performance for users with this database type
- Optimized index handling in database operations to avoid unnecessary drops and creations
- Improved relations ordering for better query performance
Content Manager Enhancements
- Enhanced code block rendering with optimized syntax highlighting implementation
- Improved handling of nested components and relations for better overall performance
Impact Summary
Strapi 5.8.0 delivers a more polished and efficient content management experience with its focus on UI improvements and bug fixes. Content editors will appreciate the syntax highlighting for code blocks and more reliable form interactions. Developers benefit from database optimizations, particularly for SQLite users, and improved handling of nested components.
The release addresses several visual inconsistencies in the admin interface, enhancing the overall user experience. Security has been improved through dependency updates, and documentation has been expanded to better support developers working with the Strapi codebase.
While this isn't a major feature release, the cumulative effect of these improvements results in a more stable, efficient, and user-friendly Strapi experience. The enhancements to the Apollo landing page configuration also provide more flexibility for API documentation.
Full Release Notes
5.8.0 (2025-01-15)
🔥 Bug fix
- handle clearing of number field to send null instead of undefined (#22537)
- add missing
name to ColorPickerInput (#21976)
- missing hover pointer in bottom of ctb menu add another field to this collection type (#22393)
- changed active state background color (#22545)
- add missing borders to widgets (#22612)
- scripts-front version number (d7f6a8b2b6)
- database: only drop indexes that exist; do not drop on create (#22633)
- history: handle nested component images (#22278)
⚙️ Chore
- fix version numbers (27928ae50a)
- deps: bump path-to-regexp in the npm_and_yarn group (affd279425)
- docs: document traverseEntity util (#22573)
- tests: enable and update relations ordering test (#22574)
💅 Enhancement
- apollo landing page config (#22285)
❤️ Thank You