- 🐛 Fixed error when a theme does not have a
"config"object in it's package.json - Kevin Ansfield
View the changelogs for full details:
- Ghost - v4.20.2...v4.20.3
- Admin - TryGhost/Admin@v4.20.2...v4.20.3
Tag Name: v4.20.3
Release Date: 10/25/2021
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
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.
config object in package.jsongscan dependency with improved guard checks for theme configurationNo 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.
This update is recommended for all users, especially those who:
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.
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:
gscan dependency to safely extract custom theme settings from config.customThis fix ensures that Ghost can properly handle a wider variety of theme configurations without throwing errors.
No new features were introduced in this release. This is a bug fix release focused on improving theme handling stability.
No security fixes were included in this release.
No specific performance improvements were included in this release. The focus was on fixing a bug related to theme configuration handling.
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.
"config" object in it's package.json - Kevin AnsfieldView the changelogs for full details: