Skip to content

fix(deps): update dependency mustache/mustache to v3#5

Open
renovate-fastnorth[bot] wants to merge 1 commit into
masterfrom
renovate/mustache-mustache-3.x
Open

fix(deps): update dependency mustache/mustache to v3#5
renovate-fastnorth[bot] wants to merge 1 commit into
masterfrom
renovate/mustache-mustache-3.x

Conversation

@renovate-fastnorth
Copy link
Copy Markdown

@renovate-fastnorth renovate-fastnorth Bot commented Mar 30, 2026

This PR contains the following updates:

Package Change Age Confidence
mustache/mustache ~2.0~3.0 age confidence

Release Notes

bobthecow/mustache.php (mustache/mustache)

v3.1.0: Mustache.php v3.1.0

Compare Source

Mustache.php v3.1.0 is primarily a performance release:

Rendering performance is significantly improved since v3.0.0; render throughput is improved by 1.66x on average. Template inheritance and deep context lookup workloads see gains of up to 2.7x. Memory usage in general is fairly flat, but for more extreme cases, peak memory usage is reduced by up to 46%.

In addition to performance, this release includes:
  • Template compilation itself is also faster: lambda compilation is ~30% faster and uses ~25% less memory on extremely complex templates.
  • Improved spec compliance for inheritance whitespace, specifically cases where parent-template indentation was incorrectly compounded onto inherited blocks rendered through nested partials.
  • The template_class_prefix engine option validates at configuration time, rejecting invalid class-name prefixes that would lead to broken compilation.
Heads up:
  • Lambdas now correctly honor the enclosing section's delimiters when re-parsing their return value. Previously, lambda return values were always re-parsed with the default {{ }} delimiters, regardless of the surrounding section. Templates that use lambdas inside custom-delimiter sections may produce different output than under v3.0.0.

v3.0.0: Mustache.php v3.0.0

Compare Source

Mustache.php v3.x drops support for PHP 5.2–5.5, but is otherwise backwards compatible with v2.x.

To ease the transition, previous behavior can be preserved via configuration:

  • The strict_callables config option now defaults to true. Lambda sections should use closures or callable objects. To continue supporting array-style callables for lambda sections (e.g. [$this, 'foo']), set strict_callables to false.
  • A context shadowing bug from v2.x has been fixed, but if you depend on the previous buggy behavior you can preserve it via the buggy_property_shadowing config option.
  • By default the return value of higher-order sections that are rendered via the lambda helper will no longer be double-rendered. To preserve the previous behavior, set double_render_lambdas to true. This is not recommended.

[!NOTE]
In order to maintain a wide PHP version support range, there are minor changes to a few interfaces, which you might need to handle if you extend Mustache (see c0453be).

New

  • \Mustache_Engine and other prefixed classnames are all available as \Mustache\Engine, etc. You can keep using the old style for now, if you feel nostalgic for 2008, but you'll want to update eventually.
  • Adds support for the Mustache dynamic tag names spec for partials and interpolation.

Improved

  • The {{% BLOCKS }} pragma is now part of the Mustache spec, and is enabled by default.
  • Optional Mustache specs (lambdas, inheritance, and dynamic_names) can now be disabled via config options.
  • No more warnings or errors in PHP 8.x (thanks @​reedy, @​swissspidy, and everyone else who helped with this!).
  • Improved resolution of complicated combinations of filters, dotted name lookups, and lambdas.
  • Remove autoloader implementation. Just use Composer.

Configuration

📅 Schedule: (in timezone America/Toronto)

  • Branch creation
    • "on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants