Skip to content

Bolt v2.4.4 Released

Compare
Choose a tag to compare
@sghoweri sghoweri released this 05 Jun 17:43
· 6238 commits to release/2.x since this release

Summary

This is a small hotfix release to address two integration issues identified:

  1. Fixed an issue with a renamed Twig template in the @bolt/components-action-blocks package #1198
  2. 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.

Details

  1. 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.

  2. Refactored the recently added gcd custom Twig function to now work in PHP environments where the gmp PHP extension isn't installed. Additionally, this update also updated the BoltCore Class in the core-php package to now correctly include the new gmp 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 Bolt
  • BoltExtras 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.