Home

>

Tools

>

Ghost

>

Releases

>

4.20.3

Ghost Release: 4.20.3

Tag Name: v4.20.3

Release Date: 10/25/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 v4.20.3 brings a critical bug fix for theme handling

This minor release fixes an error that occurred when a theme doesn't have a "config" object in its package.json file. The update includes a guard check in the gscan dependency to safely extract custom theme settings from config.custom, preventing potential errors during theme installation or activation.

Highlight of the Release

    • Fixed error handling for themes without a config object in package.json
    • Updated gscan dependency with improved guard checks for theme configuration
    • Enhanced stability for theme installation and activation

Migration Guide

No migration steps are required for this update. This is a drop-in replacement that improves theme handling without requiring any changes to existing configurations or themes.

Upgrade Recommendations

This update is recommended for all users, especially those who:

  • Work with multiple themes
  • Develop custom themes
  • Have experienced errors related to theme configuration

The update is a minor bug fix release that improves stability without introducing breaking changes. You can upgrade safely following the standard Ghost update process.

Bug Fixes

Theme Configuration Error Fix

This release addresses an issue where Ghost would encounter an error when processing themes that don't have a "config" object in their package.json file.

The fix includes:

  • Added a guard check in the gscan dependency to safely extract custom theme settings from config.custom
  • Prevents errors when processing themes with non-standard configuration structures
  • Improves overall stability of theme installation and activation processes

This fix ensures that Ghost can properly handle a wider variety of theme configurations without throwing errors.

New Features

No new features were introduced in this release. This is a bug fix release focused on improving theme handling stability.

Security Updates

No security fixes were included in this release.

Performance Improvements

No specific performance improvements were included in this release. The focus was on fixing a bug related to theme configuration handling.

Impact Summary

This release has a low to moderate impact, primarily affecting theme handling functionality. It resolves an error that could occur when processing themes without a "config" object in their package.json file, which improves the overall stability of Ghost's theme system.

The fix is particularly important for theme developers who may create themes with varying configuration structures, and for site administrators who install and manage multiple themes. By adding proper guard checks in the gscan dependency, Ghost now more gracefully handles different theme configurations without throwing errors.

While this is a minor bug fix release, it addresses an issue that could potentially disrupt theme installation or activation workflows, making it a worthwhile update for all Ghost installations.

Full Release Notes

Statistics:

File Changed3
Line Additions13
Line Deletions23
Line Changes36
Total Commits3

User Affected:

  • Can now create themes without a `config` object in package.json without causing errors
  • More resilient theme handling for various package.json configurations

Contributors:

kevinansfielddaniellockyer