Bolt v2.4.4 Released
Summary
This is a small hotfix release to address two integration issues identified:
- Fixed an issue with a renamed Twig template in the
@bolt/components-action-blocks
package #1198 - Fixed an issue with the recently added
gcd
Twig function. #1196
No API or code changes from this update should be required other than using the latest packages updated with this release.
@bolt/[email protected]
@bolt/[email protected]
@bolt/[email protected]
@bolt/[email protected]
@bolt/[email protected]
Details
-
This update temporarily re-adds a
action-block.twig
template to the action blocks package in order to fix a broken template path to an internally used Twig template recently renamed. -
Refactored the recently added
gcd
custom Twig function to now work in PHP environments where thegmp
PHP extension isn't installed. Additionally, this update also updated theBoltCore
Class in thecore-php
package to now correctly include the newgmp
Twig function that was needed.
This fix also updates the BoltExtra
Class and splits the code up into two sets of custom Twig extensions:
BoltCoreCompat
which adds Drupal-specific Twig extensions and support to BoltBoltExtras
which adds custom Twig extensions used internally on the docs site
With this update, the Twig environment used by our Jest tests even more closely resemble Drupal to help catch issues like this from reoccurring.