Home

>

Tools

>

Strapi

>

Releases

>

4.2.0-beta.2

Strapi Release: 4.2.0-beta.2

Pre Release

Tag Name: v4.2.0-beta.2

Release Date: 5/2/2022

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.2.0-beta.2 enhances TypeScript support by fixing CLI commands to work properly in TypeScript projects. This beta release ensures that essential commands like strapi start, strapi config:dump, and strapi config:restore now function correctly in TypeScript environments, making development with TypeScript more seamless. The release also includes improvements to plugin generation with TypeScript support, various bug fixes, and several translation enhancements.

Highlight of the Release

    • Fixed Strapi CLI commands to work properly in TypeScript projects
    • Added support for .jsx extensions in TypeScript projects
    • Enhanced plugin generation with TypeScript support options
    • Fixed JPEG image upload errors (VipsJpegError)
    • Improved Catalan and Russian translations in the Admin UI

Migration Guide

No specific migration steps are required for this beta release. However, if you're using TypeScript with Strapi, you should be aware of the following improvements:

  1. CLI commands now work properly in TypeScript projects
  2. You can now use .jsx extensions in your TypeScript projects
  3. You can generate TypeScript plugins using strapi generate even in JavaScript projects

If you were experiencing issues with commands like strapi start, strapi config:dump, or strapi config:restore in TypeScript projects, these should now work correctly after updating to this version.

Upgrade Recommendations

If you're using Strapi with TypeScript, upgrading to v4.2.0-beta.2 is highly recommended as it fixes critical CLI command functionality in TypeScript projects.

For users experiencing JPEG upload errors or issues with the ADMIN_JWT_SECRET generation, this update also addresses those problems.

As this is a beta release, it's recommended to test thoroughly in a non-production environment before deploying to production. The TypeScript support is still in beta, so some edge cases might still exist.

Bug Fixes

CLI and Configuration Fixes

  • Fixed strapi start command to work correctly in TypeScript projects
  • Fixed strapi config:dump command in TypeScript projects
  • Fixed strapi config:restore command in TypeScript projects
  • Fixed default tsconfig file configuration

Upload and Security Fixes

  • Fixed upload error: VipsJpegError: Invalid SOS parameters for sequential JPEG
  • Fixed ADMIN_JWT_SECRET being generated with an unwanted space
  • Fixed roadmap links in the README

Other Fixes

  • Added marketplace media CSP settings to provider documentation

New Features

TypeScript Improvements

  • Enhanced CLI Support: Refactored Strapi commands to work properly in TypeScript projects
  • TypeScript Plugin Generation: Added ability to generate TypeScript plugins even in JavaScript projects
  • JSX Support: Enabled .jsx extension support for TypeScript projects

Translation Enhancements

  • Added and improved Catalan translations for the Admin UI
  • Added new Russian translations for admin content

Security Updates

  • Upgraded nodemailer package to address security concerns
  • Added documentation for Content Security Policy (CSP) settings for marketplace media providers

Performance Improvements

No specific performance improvements were mentioned in this release. The focus was primarily on fixing TypeScript compatibility issues with CLI commands and addressing various bugs.

Impact Summary

This beta release significantly improves the TypeScript development experience in Strapi by fixing CLI command compatibility issues. Previously, commands like strapi start, strapi config:dump, and strapi config:restore didn't work properly in TypeScript projects, creating friction for developers adopting TypeScript.

The release also enhances plugin development by allowing TypeScript plugin generation even in JavaScript projects and adding support for .jsx extensions. These changes make Strapi more flexible for developers using modern JavaScript frameworks and TypeScript.

Additionally, the fixes for JPEG image uploads and the ADMIN_JWT_SECRET generation address important operational issues that could affect production environments. The security update to nodemailer and improved documentation for CSP settings further enhance the platform's security posture.

For international users, the improved Catalan and Russian translations make the admin interface more accessible to non-English speakers.

Full Release Notes

This third TypeScript support beta release fixes the CLI commands support.

🔥 Bug fix

  • [core:strapi] Fix the Strapi CLI commands so that they work properly in a TypeScript project

Statistics:

File Changed60
Line Additions7,610
Line Deletions2,180
Line Changes9,790
Total Commits47

User Affected:

  • Can now use all Strapi CLI commands in TypeScript projects
  • Can generate TypeScript plugins even in JavaScript projects
  • Benefit from fixed configuration commands (`config:dump` and `config:restore`)
  • Can use `.jsx` extensions in their TypeScript projects

Contributors:

davefvalekzonderElliot67dependabot[bot]derrickmehaffyConvlysoupetteBassel17ronronscelestesMaksZhukovalexandrebodinvincentbpro