What's Changed
- Use a script instead of a bootstrap function for example data by @alexandrebodin in #21282
Full Changelog: v5.0.0-rc.24...v5.0.0-rc.25
Pre Release
Tag Name: v5.0.0-rc.25
Release Date: 9/16/2024
StrapiOpen-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.
What's New: Strapi has replaced the bootstrap function with a dedicated script for seeding example data in applications.
Why it Matters: This change improves the developer experience by providing a more structured and maintainable approach to data seeding, making it easier to understand and modify example data.
Who Should Care: Developers building Strapi applications, especially those who work with example data for development or demonstration purposes.
If you've been using the bootstrap function to seed example data in your Strapi applications, you should consider migrating to the new script-based approach:
scripts/seed-data.js)This change aligns with best practices for application initialization and makes your seed data management more maintainable.
This is a release candidate (RC) version leading up to Strapi v5.0.0. If you're already using v5.0.0-rc.24, upgrading to v5.0.0-rc.25 is recommended, especially if you work with example data seeding.
For production environments, it's generally advised to wait for the final v5.0.0 release unless you specifically need this enhancement.
When upgrading:
No specific bug fixes were included in this release.
The bootstrap function previously used for seeding example data has been replaced with a dedicated script. This change provides several benefits:
This enhancement is part of PR #21282 and represents a step toward more structured application initialization patterns in Strapi v5.
No security fixes were included in this release.
No specific performance improvements were documented in this release.
This release represents a targeted enhancement to Strapi's example data seeding mechanism, moving from a bootstrap function to a dedicated script approach. While this change is relatively focused, it reflects Strapi's ongoing efforts to improve developer experience and code maintainability.
The impact is primarily on developers who work with example data in their Strapi applications. The new script-based approach provides better separation of concerns and makes seed data easier to manage and update.
This release candidate continues the refinement of Strapi v5, focusing on developer experience improvements rather than introducing major new features. It's part of the preparation for the final v5.0.0 release, ensuring that all aspects of the platform follow best practices for code organization and maintainability.
Full Changelog: v5.0.0-rc.24...v5.0.0-rc.25