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
Pre Release
Tag Name: v4.2.0-beta.2
Release Date: 5/2/2022
StrapiOpen-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.
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.
.jsx extensions in TypeScript projectsNo 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:
.jsx extensions in your TypeScript projectsstrapi generate even in JavaScript projectsIf 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.
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.
strapi start command to work correctly in TypeScript projectsstrapi config:dump command in TypeScript projectsstrapi config:restore command in TypeScript projectsVipsJpegError: Invalid SOS parameters for sequential JPEGADMIN_JWT_SECRET being generated with an unwanted space.jsx extension support for TypeScript projectsNo specific performance improvements were mentioned in this release. The focus was primarily on fixing TypeScript compatibility issues with CLI commands and addressing various bugs.
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.
This third TypeScript support beta release fixes the CLI commands support.