Home

>

Tools

>

Strapi

>

Releases

>

4.8.2

Strapi Release: 4.8.2

Tag Name: v4.8.2

Release Date: 3/16/2023

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.8.2 is a maintenance release that addresses several bugs, enhances error handling, and improves the UI. Key fixes include resolving issues with populate traversal, media type private configuration, and UI elements in the Content Type Builder. The release also includes Chinese (Simplified) translation updates and security-related dependency updates.

Highlight of the Release

    • Fixed broken populate traversal with no fragment, improving query reliability
    • Added proper error handling for timeout in data transfer operations
    • Fixed private configuration on media types in Content Type Builder
    • Updated Chinese (Simplified) translations
    • Security improvements through dependency updates

Migration Guide

This is a patch release with no breaking changes. You can update to v4.8.2 without any specific migration steps.

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

After updating, restart your Strapi application to ensure all changes take effect.

Upgrade Recommendations

This release contains important bug fixes and security updates, so it's recommended for all users to upgrade from previous versions, especially if you're experiencing issues with:

  • Populate queries with dynamic zones
  • Media type configurations
  • Data transfer timeouts
  • UI elements in the Content Type Builder

The security-related dependency updates also make this upgrade advisable for production environments.

Bug Fixes

  • Populate Traversal: Fixed broken populate traversal when no fragment is present, resolving issues with dynamic zone queries.
  • Media Types Configuration: Corrected the Content Type Builder to properly return private configuration on media types.
  • UI Elements:
    • Fixed the disabled property for JSONInput (GenericInput) in the content manager.
    • Corrected the plus icon size in the Content Type Builder navigation.
  • Data Transfer: Implemented proper error handling for timeout in transfer operations, preventing silent failures.

New Features

  • Environment Helper for Union Values: Added oneOf environment helper to support union values, making configuration more flexible.
  • Enhanced API Error Handling: Improved handling of Axios errors in the useAPIErrorHandler hook, providing better error messages and type safety.

Security Updates

  • Dependency Updates:
    • Updated webpack from 5.75.0 to 5.76.0 to address security vulnerabilities.
    • Bumped axios from 1.2.2 to 1.3.4 to incorporate security patches.
    • Updated @sideway/formula from 3.0.0 to 3.0.1 in the documentation dependencies.

Performance Improvements

No specific performance improvements were highlighted in this release. The focus was primarily on bug fixes, UI improvements, and translation updates.

Impact Summary

Strapi v4.8.2 is a maintenance release that focuses on bug fixes, UI improvements, and security updates. The most significant impact is on query reliability with the fix for populate traversal, which resolves issues when working with complex content structures and dynamic zones.

The release also improves the developer experience with better error handling for API requests and data transfers, while enhancing the UI with fixes for the Content Type Builder navigation and JSONInput components.

For Chinese-speaking users, the updated translations provide a more complete localized experience. The security updates to dependencies like webpack and axios help maintain the overall security posture of Strapi installations.

Overall, this release improves stability and user experience without introducing breaking changes, making it a recommended upgrade for all Strapi users.

Full Release Notes

🔥 Bug fix

  • [core:content-manager] Disabled property for JSONInput (GenericInput) (#16033) @alvarolozano
  • [core:content-type-builder] [Fix] CTB return private config on media types (#16060) @Marc-Roig
  • [core:content-type-builder] ContentTypeBuilderNav: Fix plus icon size (#16085) @gu-stav
  • [core:strapi] Fix broken populate traversal with no fragment (#16109) @Convly

💅 Enhancement

  • [core:admin] Update zh-Hans.json to catch up latest en.json (#16036) @smoothdvd
  • [plugin:users-permissions] Update zh-Hans translation to match latest en.json (#16076) @smoothdvd

⚙️ Chore

  • [dependencies] chore(deps): bump webpack from 5.75.0 to 5.76.0 (#16077) @dependabot

📚 Update and Migration Guides

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

Statistics:

File Changed62
Line Additions1,512
Line Deletions1,012
Line Changes2,524
Total Commits40

User Affected:

  • Fixed populate traversal with no fragment, improving query reliability
  • Better error handling for API requests with Axios errors
  • Added oneOf environment helper for union values
  • Fixed timeout error handling in data transfer operations

Contributors:

unrevised6419smoothdvdBassel17christiancp100Marc-Roigdependabot[bot]Convlyalexandrebodinjoshuaellis