Home

>

Tools

>

Ghost

>

Releases

>

4.0.1

Ghost Release: 4.0.1

Tag Name: v4.0.1

Release Date: 3/16/2021

Ghost LogoGhost

Open-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.

TL;DR

Ghost 4.0.1 is a patch release that fixes a critical issue where the maintenance page was excluded from the npm build. This quick follow-up to the major 4.0.0 release ensures that when your Ghost site needs to enter maintenance mode, it will properly display the maintenance page to visitors rather than showing an error.

Highlight of the Release

    • Fixed critical bug where maintenance page was excluded from npm build
    • Ensures proper display of maintenance page during site updates or maintenance mode

Migration Guide

This is a patch release that fixes a bug with the maintenance page. No migration steps are required if you're already on Ghost 4.0.0.

If you're upgrading from a version prior to 4.0.0, please refer to the breaking changes guide for important migration information related to the 4.0.0 release.

Upgrade Recommendations

This patch release fixes an important issue with the maintenance page display. If you're running Ghost 4.0.0, we recommend upgrading to 4.0.1 as soon as possible to ensure your site properly displays the maintenance page when needed.

Remember that Ghost 4.0.0 requires Ghost-CLI version 1.16.0 or higher, so make sure your CLI is updated before attempting to upgrade.

To upgrade, run:

ghost update

Bug Fixes

Fixed maintenance page exclusion

This patch release fixes a critical bug where the maintenance page was excluded from the npm build. When Ghost enters maintenance mode (during updates, migrations, or manual maintenance), it should display a user-friendly maintenance page. Due to this bug, the maintenance page wasn't being included in the package, potentially causing visitors to see errors instead of the intended maintenance message.

New Features

Ghost 4.0.1 is primarily a bug fix release that addresses an issue with the maintenance page. The major features were introduced in Ghost 4.0.0, which included:

  • Members and Portal enabled by default
  • Support for 113 new currencies
  • Native lazy loading for content images
  • Paywall card to mark end of free content preview
  • Ability to make image cards into links
  • Accent color CSS variable added to {{ghost_head}}
  • New boot process
  • New members stats endpoints
  • Theme preview mode
  • YAML file support for redirects

Security Updates

No specific security fixes were mentioned in this patch release.

Performance Improvements

No specific performance improvements were included in this patch release. The main performance enhancements were part of the Ghost 4.0.0 release, which included structural improvements like:

  • Flattened members subscriptions data in API
  • Dropped unused apps-related tables
  • Removed labs from settings
  • Enabled foreign key checks on SQLite3
  • Resolved orphaned webhooks
  • Renamed the private mode cookie

Impact Summary

Ghost 4.0.1 is a minor patch release that fixes a critical issue where the maintenance page was excluded from the npm build. This ensures that when your Ghost site enters maintenance mode (during updates or manual maintenance), visitors will see the proper maintenance page instead of potential errors.

This release doesn't introduce any new features or breaking changes beyond what was already included in Ghost 4.0.0. It's a straightforward bug fix that improves the reliability of the maintenance mode functionality.

For site administrators, this update is important as it ensures a better user experience during site maintenance periods. The fix is particularly valuable for sites with high traffic where maintenance mode might be encountered by visitors.

Full Release Notes

➡️ For an overview of changes see the 4.0 Changelog
⚠️ Before updating please read the breaking changes guide


  • ✨ Members and Portal are enabled by default
  • ✨ Added support for 113 new currencies (TryGhost/Admin#1853) - Fabien 'egg' O'Carroll
  • ✨ Added native lazy loading behaviour to content images - Kevin Ansfield
  • ✨ Added paywall card to mark end of free content preview (#12663) - Kevin Ansfield
  • ✨ Added ability to make image cards links - Kevin Ansfield
  • ✨ Added accent color CSS variable to {{ghost_head}} (#12717) - Kevin Ansfield
  • ✨ Added new boot process - Hannah Wolfe
  • ✨ Added new members stats endpoints - Rishabh Garg
  • ✨ Added theme preview mode - Hannah Wolfe
  • ✨ Added YAML file support for redirects - Kukhyeon Heo
  • 🏗 Flattened members subscriptions data in API - Rishabh Garg
  • 🏗 Dropped apps related tables - Naz G
  • 🏗 Removed labs from settings - Naz G
  • 💡 Enabled foreign key checks on sqlite3 - Thibaut Patel
  • 💡 Removed main script that no longer exists - Hannah Wolfe
  • 💡 Resolved orphaned webhooks - Thibaut Patel
  • 💡 Renamed the private mode cookie - Thibaut Patel
  • 🐛 Fixed maintenance page being excluded from npm build - Austin Burdine
  • ⚙️ Bumped required Ghost-CLI version to 1.16.0 - Daniel Lockyer
  • 🎨 Comes with Casper 4.0

View the changelogs for full details:

Statistics:

File Changed3
Line Additions3
Line Deletions2
Line Changes5
Total Commits3

User Affected:

  • Can now properly display maintenance page when their site enters maintenance mode
  • No longer need to worry about visitors seeing errors during maintenance

Contributors:

acburdinedaniellockyer