v0.3.8
What's Changed
Added
-
Automatic cache-busting on iframe entry assets.
render-cell.twig
now appends?v=<filemtime>toiframe.css,iframe.js, and each
iframe.fonts[]URL via a new|cachebustTwig filter. Removes the
failure mode where a Vite rebuild produced fresh bundle hashes but the
consumer's browser kept fetching the previousscript.jsfrom HTTP
cache (longCache-Control: max-age=…on a hash-less entry file),
which then dynamically imported stale-hashed bundles → 404 → broken
iframe scripts (e.g. lightbox failing in a gallery component).The filter walks up from
static_pathlooking for an ancestor whose
URL-rooted lookup resolves to a real file on disk. Handles WordPress
(wp-content/themes/<theme>/static), Drupal
(web/themes/custom/<theme>/static), and standalone (static/IS
the docroot) without per-project configuration. URLs that don't
resolve to a local file (externalhttps://,data:,mailto:,
#anchor, missing files) pass through unchanged.Zero consumer action required —
composer update parisek/styleguide
delivers the fix.
Full Changelog: v0.3.7...v0.3.8