Home

>

Tools

>

Strapi

>

Releases

>

4.15.5-alpha.4

Strapi Release: 4.15.5-alpha.4

Pre Release

Tag Name: v4.15.5-alpha.4

Release Date: 11/15/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.15.5-alpha.4: TypeScript Build Improvements

This alpha release focuses on fixing TypeScript build cleaning and type generation issues in Strapi. The update includes improvements to the build process, better handling of TypeScript configuration, and enhanced build timing metrics. These changes primarily affect developers working with TypeScript in Strapi projects, providing a more reliable development experience.

Highlight of the Release

    • Fixed TypeScript build cleaning and type generation issues
    • Added timer for Strapi load to improve debugging of startup performance
    • Improved TypeScript project configuration detection
    • Enhanced build process for webpack watcher

Migration Guide

No migration steps are required for this alpha release. The changes are focused on internal build processes and TypeScript handling, which should work transparently for developers.

If you're actively developing with TypeScript in Strapi, you may notice improved reliability in the type generation process after updating to this version.

Upgrade Recommendations

Recommended for TypeScript Users

This alpha release is primarily recommended for developers who:

  • Are actively using TypeScript with Strapi
  • Have experienced issues with TypeScript type generation
  • Want to help test improvements to the build process

As this is an alpha release (v4.15.5-alpha.4), it's not recommended for production environments unless you're specifically testing these TypeScript-related improvements.

To upgrade:

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

Bug Fixes

TypeScript Build Improvements

  • Fixed issues with TypeScript build cleaning and type generation
  • Improved handling of TypeScript configuration by checking tsconfig instead of distdir
  • Fixed use of tsconfig.config for TypeScript project checks
  • Removed incorrect dependencies that were causing build problems
  • Fixed build order to ensure webpack watcher is built before loading Strapi instance
  • Cleaned up build process to remove diagnostic output when not needed
  • Fixed issues with external dependencies packaging

These fixes collectively address problems developers were experiencing with TypeScript integration, particularly around type generation and build processes.

New Features

Added Timer for Strapi Load

A new timing feature has been added to measure how long it takes for Strapi to load. This enhancement helps developers identify potential performance bottlenecks during the startup process, making it easier to diagnose and address slow initialization issues.

The timer works alongside the existing spinner UI, with matching text to provide a consistent user experience.

Security Updates

No security fixes were included in this release.

Performance Improvements

Build Process Enhancements

  • Added timing metrics for Strapi load process to help identify performance bottlenecks
  • Improved build sequence to ensure components are built in the correct order
  • Optimized TypeScript configuration detection to avoid unnecessary rebuilds
  • Streamlined dependency handling to improve build reliability

These improvements help make the development process more efficient, particularly for projects using TypeScript.

Impact Summary

This alpha release focuses on improving the developer experience for Strapi users working with TypeScript. The primary impact is on the reliability of the TypeScript build process, type generation, and configuration handling.

The changes address several pain points reported by developers, including issues with build cleaning, type generation, and configuration detection. The addition of timing metrics for Strapi loading also helps developers identify performance bottlenecks during startup.

While these changes are primarily under-the-hood improvements, they significantly enhance the development workflow for TypeScript users by reducing build errors and providing more consistent behavior. The fixes are particularly important for plugin developers who rely on accurate type generation.

As an alpha release, these improvements are being made available for testing before wider release, allowing the Strapi team to gather feedback on the TypeScript build process enhancements.

Full Release Notes

Statistics:

File Changed49
Line Additions502
Line Deletions437
Line Changes939
Total Commits18

User Affected:

  • Improved TypeScript build process with more reliable type generation
  • Better handling of TypeScript configuration files
  • Enhanced build timing metrics for debugging performance issues
  • More consistent build cleaning process

Contributors:

innerdvationsalexandrebodin