Home

>

Tools

>

Strapi

>

Releases

>

4.13.3

Strapi Release: 4.13.3

Tag Name: v4.13.3

Release Date: 9/6/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.13.3 is a bug fix release that addresses critical issues with the strapi import command, TypeScript type definitions, and filter objects. It fixes asset metadata corruption during imports, improves TypeScript type definitions for subscribers, and adds missing ID property to filter objects. This release is important for developers who use data import/export functionality or rely on TypeScript for development.

Highlight of the Release

    • Fixed strapi import command failure caused by corrupted asset metadata
    • Added missing models key to SubscriberMap TypeScript definition
    • Made action keys optional in SubscriberMap TypeScript definition
    • Added ID property to filter objects for improved TypeScript support

Migration Guide

No specific migration steps are required for this release as it contains bug fixes and type definition improvements that don't require changes to existing code.

For general update guidance:

Upgrade Recommendations

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

  • Use the strapi import command for data migration
  • Rely on TypeScript for development
  • Work with filter objects in their code

The upgrade should be straightforward as this is a patch release with bug fixes only. Update your Strapi version using your package manager:

npm install @strapi/[email protected]

or

yarn upgrade @strapi/[email protected]

Bug Fixes

Fixed strapi import Command

Fixed an issue where the strapi import command would fail due to commas being inserted into asset metadata at 1024 byte intervals. This corruption in the metadata was preventing successful imports and data migrations.

TypeScript Definition Improvements

  • Added the missing models key to the SubscriberMap type definition, which was previously documented in the Strapi docs but missing from the actual type definition.
  • Made the Action keys optional in the SubscriberMap type, as not all of the 18 individual actions need to be specified when creating a SubscriberMap.
  • Added the ID property to filter objects, ensuring more complete and accurate TypeScript definitions.

Other Fixes

  • Fixed peer dependency issues.
  • Enabled NPS (Net Promoter Score) feature by default.
  • Made linting improvements, using semicolons instead of commas in maps.

New Features

No new features were introduced in this release. This is primarily a bug fix release focusing on improving stability and TypeScript type definitions.

Security Updates

No security fixes were mentioned in this release. The changes were primarily focused on bug fixes and TypeScript type definition improvements.

Performance Improvements

No specific performance improvements were mentioned in this release. The changes were primarily focused on bug fixes and TypeScript type definition improvements.

Impact Summary

This release focuses on fixing critical bugs and improving TypeScript definitions. The most significant fix addresses the strapi import command failure caused by corrupted asset metadata, which is crucial for users who rely on data migration functionality.

TypeScript users will benefit from more accurate type definitions with the addition of the missing models key to SubscriberMap and making action keys optional, which aligns with the documented behavior. The addition of the ID property to filter objects further improves type safety.

While this is a minor patch release, it resolves important issues that could impact development workflows and data migration processes. The changes are non-breaking and should provide a smoother experience for Strapi developers.

Full Release Notes

🔥 Bug fix

  • [core:data-transfer] Fix strapi import failure caused by corrupted asset metadata (#17831) @felthy
  • [typescript] Added missing models key to SubscriberMap and made actions optional. (#17847) @Demonstrandum
  • [typescript] Add the ID property to the filter objects (#17937) @Convly

📚 Update and Migration Guides

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

Statistics:

File Changed48
Line Additions325
Line Deletions295
Line Changes620
Total Commits12

User Affected:

  • Fixed import failures when working with asset metadata
  • Improved TypeScript type definitions for better development experience
  • Enhanced filter objects with ID property for more complete typing

Contributors:

felthyDemonstrandumremidejinnerdvationsMarc-RoigConvly