💅 Enhancement
- [Framework] Remove strapi build on new (#3442) @alexandrebodin
🐛 Bug fix
- [Plugin] Fix beforeInitialize middlewares can modify order or middlewares (#3436) @alexandrebodin
Tag Name: v3.0.0-beta.5
Release Date: 6/13/2019
StrapiOpen-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.
strapi new command for faster project creationThis beta release streamlines the project creation process and addresses a critical middleware ordering bug that could affect plugin behavior. These improvements enhance developer experience and system stability as Strapi moves closer to a stable v3.0.0 release.
Developers working with Strapi beta versions, especially those creating new projects or implementing custom middleware solutions.
strapi new command for faster project creationNo migration steps are required for this beta release.
If you're upgrading from v3.0.0-beta.4 to v3.0.0-beta.5:
Update your Strapi version in your package.json:
"dependencies": {
"strapi": "3.0.0-beta.5",
"strapi-admin": "3.0.0-beta.5",
"strapi-utils": "3.0.0-beta.5",
"strapi-plugin-content-manager": "3.0.0-beta.5",
"strapi-plugin-content-type-builder": "3.0.0-beta.5",
"strapi-plugin-users-permissions": "3.0.0-beta.5",
"strapi-plugin-email": "3.0.0-beta.5",
"strapi-plugin-upload": "3.0.0-beta.5"
}
Run npm install or yarn to update dependencies
If you were relying on the automatic build during project creation, note that you'll now need to run strapi build manually after creating a new project.
This is a beta release that includes performance improvements and bug fixes. It's recommended for:
As this is still a beta release, it's not recommended for production environments unless you're already using the beta series and need these specific fixes.
To upgrade from v3.0.0-beta.4:
npm install [email protected] --save
# or
yarn add [email protected]
Remember to update all related Strapi packages to the same version.
beforeInitialize middlewares could incorrectly modify the order of other middlewares. This fix ensures:
strapi new command: The project creation process has been streamlined by removing the automatic build step when creating a new Strapi project. This results in:
This change allows developers to run the build process manually when needed, giving more control over the project setup process.
No specific security fixes were included in this release.
strapi new command: By removing the automatic build step during project creation, the initialization process is now significantly faster. This improvement:
This change is particularly beneficial for developers who frequently create new Strapi projects or work in CI/CD environments.
This release focuses on improving developer experience and fixing middleware-related issues. The removal of the build step in the strapi new command significantly speeds up project creation, which is particularly valuable during development and testing phases.
The fix for middleware ordering in beforeInitialize hooks addresses a subtle but important issue that could cause unexpected behavior in plugins and custom middleware implementations. This improvement ensures more predictable application behavior and prevents potential hard-to-debug issues.
While this is a relatively small release in terms of changes (220 changes across 40 files), it represents important progress toward a stable v3.0.0 release by addressing specific developer pain points and improving overall system reliability.