Home

>

Tools

>

Strapi

>

Releases

>

4.5.1

Strapi Release: 4.5.1

Tag Name: v4.5.1

Release Date: 11/16/2022

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.5.1 is a maintenance release that enhances the DynamicZone component by extending FriendlyName with MainValue, adds more Swedish translations, fixes issues with API token creation, and addresses several bugs related to database operations and user validation. The update also includes numerous dependency updates and testing library improvements.

Highlight of the Release

    • Enhanced DynamicZone component now displays main field values for better content identification
    • Fixed issues with 30-day and 90-day API token creation
    • Added more Swedish translations and improved existing translations
    • Fixed database operations with knex withSchema.raw error
    • Improved validation on user updates in the users-permissions plugin

Migration Guide

No specific migration steps are required for this release. This is a maintenance release that includes bug fixes and enhancements that don't require migration actions.

For general update guidance, refer to the official Strapi update guide.

Upgrade Recommendations

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

  1. Use DynamicZone components extensively in their content types
  2. Create API tokens with 30-day or 90-day durations
  3. Use PostgreSQL with database schemas
  4. Need improved Swedish translations
  5. Experience issues with user validation in the users-permissions plugin

The upgrade process should be straightforward with minimal risk as this is primarily a bug fix and enhancement release. Follow the standard Strapi update procedure:

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

Bug Fixes

API Token Creation Fix

Fixed an issue with the creation of 30-day and 90-day API tokens. This ensures that tokens with these specific durations are properly created and function as expected.

Database Operations Fix

Resolved an issue with knex withSchema.raw error that was affecting database operations. This fix ensures proper handling of raw SQL queries when using database schemas.

User Validation Fix

Fixed validation on user updates in the users-permissions plugin, ensuring that user data is properly validated before being saved to the database.

TypeScript Definition Fix

Corrected the spelling of "SchemaProvider" (previously misspelled as "SchemaProvideer") in TypeScript definitions, ensuring proper type checking and autocompletion in TypeScript projects.

New Features

Enhanced DynamicZone Component

The DynamicZone component has been improved to extend FriendlyName with MainValue. This enhancement allows content editors to better identify the content within dynamic zones by displaying the main field values alongside the component name. This makes it easier to navigate and manage complex content structures.

Expanded Internationalization Support

More Swedish translations have been added to improve the experience for Swedish-speaking users. Additionally, updates to Portuguese (Brazil) and English translations have been made to ensure more accurate and complete localization.

Security Updates

No significant security fixes were included in this release.

Performance Improvements

Testing Performance Improvements

Several changes were made to improve the performance of tests:

  • Reduced use of getByRole to improve marketplace test performance
  • Updated testing libraries to newer versions with performance improvements
  • Removed unused tests that were slowing down the test suite

Component Cleanup

Removed unused icon components from the Content Manager, which helps reduce bundle size and improve loading performance.

Impact Summary

Strapi v4.5.1 is a maintenance release that focuses on bug fixes, enhancements, and dependency updates. The most notable improvements include an enhanced DynamicZone component that now displays main field values for better content identification, fixed API token creation for 30-day and 90-day durations, and resolved database operation issues with knex withSchema.raw.

Content editors will benefit from the improved DynamicZone component, which makes it easier to identify and manage content within dynamic zones. Developers will appreciate the fixes for API token creation and database operations, as well as the improved validation for user updates.

International users, particularly those using Swedish and Portuguese (Brazil) languages, will benefit from the expanded and improved translations.

This release also includes numerous dependency updates and testing library improvements that enhance the overall stability and performance of the Strapi CMS. The removal of unused components and tests contributes to a leaner and more efficient codebase.

Full Release Notes

💅 Enhancement

  • [core:content-manager] DynamicZone - extend FriendlyName with MainValue (#12500) @godzzo
  • [plugin:i18n] Add even more swedish translations :) (#14742) @alvesvaren

⚙️ Chore

🔥 Bug fix


📚 Update and Migration Guides

  • General update guide can be found here
  • Migration guides can be found here 📚

Statistics:

File Changed162
Line Additions6,769
Line Deletions5,396
Line Changes12,165
Total Commits125

User Affected:

  • Fixed issues with 30-day and 90-day API token creation
  • Fixed knex withSchema.raw error for database operations
  • Improved DynamicZone component with MainValue display
  • Better validation on user updates in users-permissions plugin

Contributors:

oiorainjhoward1994dependabot[bot]alvesvarendmoKrusochristiancp100cooperwfloydmarkkayloralexandrebodinpetersg83innerdvationsjoshuaellissimotae14godzzoronronscelestescallum-ganderConvly