Home

>

Tools

>

Strapi

>

Releases

>

5.6.0

Strapi Release: 5.6.0

Tag Name: v5.6.0

Release Date: 12/18/2024

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 v5.6.0 introduces content preview functionality, syntax highlighting for code blocks in the Blocks field, and a database repair manager. This release also fixes several UI issues, improves locale handling, and addresses security vulnerabilities by updating dependencies. The update enhances the content management experience with better visual editing tools and more reliable data handling.

Highlight of the Release

    • Content Preview feature is now fully available (removed from future flags)
    • Syntax highlighting for code blocks in the Blocks field editor
    • New database repair manager with component deletion fix
    • Fixed locale handling to prevent multiple unnecessary requests
    • Improved UI for blocks and component management

Migration Guide

No specific migration steps are required for this update. The release primarily adds new features and fixes existing functionality without introducing breaking changes.

If you were previously using the content preview feature behind a future flag, note that it's now fully available without requiring any special configuration.

Upgrade Recommendations

This release is recommended for all Strapi users, especially those who:

  • Work with multilingual content and have experienced locale-related issues
  • Use code blocks within the Blocks field editor and would benefit from syntax highlighting
  • Need to preview content before publishing
  • Have encountered UI issues with components or blocks
  • Have experienced date shift problems

The update includes important security patches, so upgrading is advised even if you don't need the new features.

Bug Fixes

Preview Navigation

  • Fixed back button behavior in the preview mode to ensure proper navigation

Locale Handling

  • Resolved issues with multiple unnecessary locale requests being sent
  • Fixed locale handling in bulk publishing operations
  • Improved localization population and validation fields

UI Improvements

  • Fixed styling issues with the "Add Component" button
  • Addressed various UI issues in the Blocks editor for a more consistent experience

Date Handling

  • Fixed a bug that caused date shifts due to double conversion in date fields

New Features

Content Preview

The content preview feature has been fully released, removing its previous status as a future flag feature. This allows content editors to preview their content before publishing, improving the content creation workflow.

Syntax Highlighting in Code Blocks

Code blocks within the Blocks field now support syntax highlighting using Prism.js. This enhancement improves readability and editing experience when working with code snippets in your content.

Database Repair Manager

A new repair manager has been added to the database module, specifically addressing component deletion issues. This tool helps maintain database integrity when components are removed from your content types.

Security Updates

Dependency Updates

  • Updated nanoid from version 3.3.7 to 3.3.8 in both the documentation and the main application's yarn.lock file to address potential security vulnerabilities

Performance Improvements

Locale Request Optimization

The update optimizes how locale data is requested and loaded, reducing unnecessary API calls and improving performance when working with multilingual content.

Component Selection

Improved component selection logic to avoid selecting document IDs on components, which streamlines data retrieval and improves overall performance when working with complex content structures.

Impact Summary

Strapi v5.6.0 significantly enhances the content editing experience with the full release of the content preview feature and syntax highlighting for code blocks. The update also improves system stability through better locale handling, UI fixes, and the introduction of a database repair manager.

For content editors, the workflow becomes more visual and intuitive with improved preview capabilities and better code representation. Developers will appreciate the more reliable data handling, especially for localized content and components.

The security updates to dependencies ensure your Strapi installation remains protected against potential vulnerabilities. Overall, this release focuses on quality-of-life improvements that make the platform more robust and user-friendly.

Full Release Notes

5.6.0 (2024-12-18)

🚀 New feature

  • add content preview (remove future flag) (81b62a508e)
  • content-manager: add syntax highlighting in the code block type in the Blocks field original solution (#22332)

🔥 Bug fix

  • preview back button behavior (#22432)
  • multiple requests locale (#22273)
  • add component button style (#22425)
  • remove double conversion that causes date shift (#22410)
  • blocks: various ui issues (#22423)

⚙️ Chore

  • fix tests (59cb734ff4)
  • deps: bump nanoid from 3.3.7 to 3.3.8 in /docs (#22389)

💅 Enhancement

  • update purchase page links (#22419)
  • database: add repair manager with component deletion fix (#22267)

🚨 Security

  • deps: bump nanoid to 3.3.8 in yarn.lock (#22397)

❤️ Thank You

Statistics:

File Changed92
Line Additions1,791
Line Deletions701
Line Changes2,492
Total Commits20

User Affected:

  • Can now preview content before publishing
  • Benefit from syntax highlighting in code blocks for better readability
  • Experience improved UI for adding components and working with blocks
  • Will see fixed back button behavior in preview mode

Contributors:

remidejinnerdvationssimotae14Convlydependabot[bot]McastresMarc-RoiglucasboillyalexandrebodinbutcherZ