View the changelogs for full details:
- Ghost - 4.0.0-alpha.0...4.0.0-alpha.1
- Ghost-Admin - TryGhost/Admin@4.0.0-alpha.0...4.0.0-alpha.1
Pre Release
Tag Name: 4.0.0-alpha.1
Release Date: 2/9/2021
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
Ghost 4.0.0-alpha.1 introduces significant architectural changes to prepare for future decoupling of Ghost components. This alpha release includes a new linear boot process, database schema changes, and improved social media metadata handling. It also removes legacy apps-related tables and code, changes post/page slug constraints, and adds member subscription event tracking. This is an early prerelease intended for testing migrations and tooling.
Key changes include database schema improvements, enhanced social media metadata handling, and foundational work for the API v3 as the new default. While this is an alpha release with ongoing development, it represents important groundwork for Ghost's future architecture.
If you're a theme developer using custom templates named content.hbs with the {{content}} helper inside them, be aware that the helper now uses content-cta.hbs for its CTA template to avoid infinite loops. Update your theme accordingly if you've customized this aspect.
The default API version has been migrated from v2 to v3. If you have integrations or custom code that relies on the default API version, ensure they're compatible with v3.
If you have custom code that interacts directly with Ghost's database schema:
apps_*) have been droppedslug+type instead of just slugmembers_subscribe_events table has been addedFor developers working with Ghost's boot process, note that there's a new ghost.js file that allows switching between boot modes with node index or node index old. The old boot process will be removed in future releases.
As this is an alpha release (4.0.0-alpha.1), it is not recommended for production environments. This release is specifically intended for testing migrations and tooling.
If you're a developer or contributor to Ghost, you should test this release in a development environment to help identify any issues with the new boot process, database schema changes, or API version migration.
For theme developers, testing your themes with this release would be valuable to ensure compatibility with the updated social media metadata handling and content helper changes.
Wait for the stable 4.0.0 release before upgrading production sites.
Fixed an issue where the Member model was incorrectly removing labels when they were unset. The bookshelf-relations plugin was removing all relations when set to an empty array, but leaving them alone when undefined. The fix ensures that label handling is skipped when no labels are set.
When saving Stripe keys with stripeDirect: true config, validation errors now correctly distinguish between publishable and secret keys, showing the appropriate error message for each.
A completely redesigned boot process has been introduced to simplify Ghost's startup sequence. This new approach is more linear and easier to follow, making it possible to decouple Ghost into smaller components in the future. The process includes a standalone database migration utility and clearer separation of concerns.
Added a new members_subscribe_events table and corresponding model to track member subscription events. This feature allows for better analytics on when members subscribe and unsubscribe, including historical data through backfilling.
Improved Twitter/OG structured data rules with a clearer fallback hierarchy:
Changed the unique constraint in the posts table from just slug to slug+type, allowing posts and pages to have the same slug. This constraint will be enforced at the application layer for API v4 while planning for API v5.
No specific security fixes were mentioned in this release.
@@UNIQUE_CONSTRAINTS@@ to create constraints over multiple database fieldscreateTable migration utility to remove unnecessary lodash dependency and simplify the codeMultiple dependency updates to improve performance and security:
Ghost 4.0.0-alpha.1 represents a significant architectural shift with its new linear boot process, laying the groundwork for future decoupling of Ghost components. This will eventually lead to a more modular and maintainable codebase.
The database schema changes, particularly the new unique constraint on slug+type rather than just slug, provide more flexibility for content creators who want to use the same slug for both posts and pages.
The improved social media metadata handling ensures better representation of content when shared on platforms like Twitter and Facebook, with a more logical fallback system.
Member subscription event tracking adds valuable analytics capabilities, allowing site owners to better understand subscriber behavior over time.
While this alpha release introduces breaking changes, they're part of a deliberate evolution toward a more robust and flexible platform. The migration to API v3 as the default continues Ghost's pattern of progressive enhancement while maintaining backward compatibility through explicit versioning.
View the changelogs for full details: