Home

>

Tools

>

Strapi

>

Releases

>

4.13.2

Strapi Release: 4.13.2

Tag Name: v4.13.2

Release Date: 9/4/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.2 is a maintenance release that addresses several critical bugs in the content manager, upload functionality, and GraphQL plugin. Key fixes include resolving JSON parsing issues on PostgreSQL, improving custom field handling, fixing UI elements in dynamic zones, and addressing asset URL problems. This release also includes security updates through dependency bumps.

Highlight of the Release

    • Fixed JSON parsing on PostgreSQL databases and bulk publish JSON validations
    • Resolved issues with custom field sizes in edit layouts
    • Fixed UI elements in dynamic zone components
    • Addressed asset URL appending problems in the upload plugin
    • Fixed GraphQL schema validation after upgrading from previous versions
    • Improved handling of entries with no creator users
    • Security updates through dependency bumps

Migration Guide

No specific migration steps are required for this patch release. This is a drop-in replacement that fixes bugs and updates dependencies.

To update to Strapi v4.13.2:

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

After updating, restart your Strapi application to apply the changes.

For more detailed information:

  • General update guide: https://docs.strapi.io/developer-docs/latest/update-migration-guides/update-version.html
  • Migration guides: https://docs.strapi.io/developer-docs/latest/update-migration-guides/migration-guides.html

Upgrade Recommendations

This is a recommended upgrade for all users running Strapi v4.13.1, especially for:

  • Users experiencing JSON parsing issues with PostgreSQL databases
  • Users encountering problems with custom field sizes in edit layouts
  • Users facing GraphQL validation errors after upgrading to v4.13.1
  • Users having issues with asset URL handling in the upload plugin
  • Users experiencing UI issues with dynamic zone components

The update is a patch release with no breaking changes, making it a safe upgrade that addresses several important bugs and security updates. We recommend applying this update at your earliest convenience to benefit from the fixes and security improvements.

Bug Fixes

Content Manager Fixes

  • Fixed JSON parsing on PostgreSQL databases to prevent automatic parsing of JSONB fields
  • Improved handling of custom field sizes when restarting Strapi to correctly calculate edit layouts
  • Removed unnecessary chevron-down icons on context menus of dynamic-zone components
  • Fixed handling of entries with no creator users to prevent errors
  • Added proper JSON validation for bulk publish operations

Upload Plugin Fixes

  • Fixed asset URL appending issues that could cause incorrect URL formation

GraphQL Plugin Fixes

  • Resolved issue with missing schema in validateQuery after upgrading to v4.13.1, which was causing GraphQL operations to fail

TypeScript Improvements

  • Added missing models key to SubscriberMap type definition
  • Made actions optional in TypeScript definitions to improve type accuracy

New Features

No new features were introduced in this maintenance release. This version focuses on bug fixes and dependency updates to improve stability and security.

Security Updates

This release includes security improvements through dependency updates:

  • Bumped @adobe/css-tools from 4.0.1 to 4.3.1
  • Updated apollo-server-core from 3.12.0 to 3.12.1
  • Updated cropperjs from 1.5.12 to 1.6.0
  • Updated various storybook dependencies to newer versions
  • Bumped msw from 1.2.1 to 1.3.0

These updates address potential security vulnerabilities in the dependencies and improve the overall security posture of the application.

Performance Improvements

This release includes minor performance improvements through dependency updates and bug fixes:

  • Fixed JSON parsing on PostgreSQL which could improve database interaction efficiency
  • Optimized handling of custom field sizes in edit layouts
  • Improved asset URL handling in the upload plugin
  • Updated dependencies that may include performance optimizations, particularly apollo-server-core from 3.12.0 to 3.12.1

Impact Summary

Strapi v4.13.2 is a maintenance release that addresses several important bugs and includes security updates through dependency bumps. The release fixes critical issues in the content manager, including JSON parsing on PostgreSQL databases, custom field size handling, and UI elements in dynamic zone components. It also resolves problems with the upload plugin's asset URL handling and fixes GraphQL schema validation issues.

The impact is primarily positive, providing more stable functionality for PostgreSQL users, improved handling of custom fields, better UI experience with dynamic zones, and more reliable GraphQL operations. The security updates through dependency bumps also enhance the overall security posture of Strapi installations.

This release is particularly important for users who experienced issues after upgrading to v4.13.1, especially those using PostgreSQL databases or the GraphQL plugin. The patch contains no breaking changes and is a recommended upgrade for all Strapi users.

Full Release Notes

🔥 Bug fix

  • [core:content-manager] Fix JSON parse on Postgres & Bulk Publish JSON validations (#17636) @Feranchz
  • [core:content-manager] Use custom field's sizes when restarting strapi to calculate edit layout (#17687) @Feranchz
  • [core:content-manager] fix(cm): remove chevron-down on context menus of dynamic-zone components (#17864) @gu-stav
  • [core:content-manager] [Fix] handle entries with no creator users (#17897) @Feranchz
  • [core:upload] fix: asset url appending (#17751) @Jahorse
  • [plugin:graphql] Fix #17875 - Missing schema in validateQuery after upgrading to v4.13.1 (#17895) @diacu
  • [typescript] Added missing models key to SubscriberMap and made actions optional. (#17847) @Demonstrandum

⚙️ Chore

  • [dependencies] chore(deps): bump @adobe/css-tools from 4.0.1 to 4.3.1 (#17855) @dependabot
  • [dependencies] chore(deps): bump apollo-server-core from 3.12.0 to 3.12.1 (#17873) @dependabot
  • [dependencies] chore(deps-dev): bump the storybook group with 7 updates (#17907) @dependabot
  • [dependencies] chore(deps-dev): bump msw from 1.2.1 to 1.3.0 (#17909) @dependabot

📚 Update and Migration Guides

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

Statistics:

File Changed91
Line Additions1,208
Line Deletions838
Line Changes2,046
Total Commits33

User Affected:

  • Fixed JSON parsing issues on PostgreSQL databases
  • Resolved GraphQL schema validation problems that appeared after upgrading to v4.13.1
  • Improved handling of custom field sizes in edit layouts
  • Fixed TypeScript definitions with added missing `models` key to `SubscriberMap` and made actions optional

Contributors:

Feranchzdependabot[bot]JahorsediacumarkkaylorBassel17derrickmehaffyConvlyMarc-Roig