Home

>

Tools

>

Strapi

>

Releases

>

4.25.15

Strapi Release: 4.25.15

Tag Name: v4.25.15

Release Date: 10/30/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 v4.25.15 brings important bug fixes and a new OpenAPI documentation feature. This release addresses issues with API state not being cleared on logout and relation type existence checks, while also adding a new /openapi.json route to improve API documentation capabilities. These changes enhance security, stability, and developer experience for Strapi users.

Highlight of the Release

    • New /openapi.json route for standardized API documentation
    • Fixed API state not being cleared on logout, improving security
    • Improved relation type existence checks for better stability

Migration Guide

No specific migration steps are required for this release. The changes are backward compatible and should not affect existing functionality. Simply update your Strapi installation to version 4.25.15 to benefit from the bug fixes and new features.

Upgrade Recommendations

This release is recommended for all Strapi users, especially those concerned about security and API documentation. The bug fixes address important issues related to session management and data relationships, while the new OpenAPI documentation feature provides significant value for API-focused projects.

To upgrade:

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

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

Bug Fixes

API State Clearing on Logout

Fixed an issue where API state was not properly cleared when users logged out (#21947). This bug could potentially lead to security concerns and unexpected behavior when switching between user accounts. The fix ensures that all API state is properly reset upon logout, improving security and user session management.

Relation Type Existence Checks

Resolved a bug related to checking for relation type existence (#20167). This fix prevents potential errors when working with relations where the type might not be properly defined, improving the stability and reliability of the content management system when handling complex data relationships.

New Features

OpenAPI Documentation Support

Strapi now provides a dedicated /openapi.json route that generates OpenAPI documentation for your API. This feature allows developers to:

  • Access standardized documentation of all API endpoints
  • Integrate with OpenAPI-compatible tools and services
  • Improve API discoverability and usability
  • Generate client libraries and SDKs automatically

This addition significantly enhances the developer experience by providing clear, structured documentation of the API surface.

Security Updates

The fix for API state not being cleared on logout (#21947) addresses a potential security concern. By ensuring that API state is properly cleared when users log out, this update helps prevent potential data leakage or unauthorized access that could occur if state from a previous session remained active.

Performance Improvements

No specific performance improvements were highlighted in this release. The changes focus primarily on bug fixes and feature enhancements rather than performance optimizations.

Impact Summary

Strapi v4.25.15 delivers important improvements to security, stability, and developer experience. The fix for API state clearing on logout addresses a potential security vulnerability, ensuring proper session management. The relation type existence check fix improves system stability when working with complex data relationships.

The addition of the /openapi.json route represents a significant enhancement for API documentation, making Strapi more developer-friendly and interoperable with the broader API ecosystem. This feature aligns with industry standards for API documentation and enables better integration with third-party tools.

Overall, this release demonstrates Strapi's commitment to security, stability, and developer experience, with contributions from both the core team and the community, including first-time contributors.

Full Release Notes

Statistics:

File Changed53
Line Additions453
Line Deletions396
Line Changes849
Total Commits5

User Affected:

  • Access to OpenAPI documentation via the new `/openapi.json` route
  • More reliable relation type handling with fixed existence checks
  • Improved security with proper API state clearing on logout

Contributors:

remidejMarc-Roigfaessleraleksandrjet