Skip to content

Releases: jg-rp/liquidscript

Version 2.0.1

Choose a tag to compare

@jg-rp jg-rp released this 03 Jun 10:07

Fix package.json.

Version 2.0.0

Choose a tag to compare

@jg-rp jg-rp released this 03 Jun 09:55

LiquidScript has had a complete rewrite for version 2. The result is improved performance, better compatibility with Shopify/liquid, and several breaking API changes.

Other than a few corner cases where we now follow Shopify/liquid more closely, there are no significant changes to template rendering behavior.

Breaking API changes

Features

Version 1.8.2

Choose a tag to compare

@jg-rp jg-rp released this 11 Feb 09:28

Fixes

  • Fixed comparison of strings in logical expressions. Previously we only supported comparing strings for equality with == and !=, now we support <, >, <= and >= too.
  • Fixed handling of superfluous expressions in {% else %} tags. We now silently ignore anything between else and %}, matching the behavior of Shopify/Liquid.
  • Fixed handling of extra {% else %} and {% elsif %} blocks after the first {% else %} block. We now silently ignore extraneous blocks, matching the behavior of Shopify/Liquid.

Version 1.8.1

Choose a tag to compare

@jg-rp jg-rp released this 21 Dec 08:29

Fixes

  • Fixed the split filter. Previously, when the split filter's argument string was equal to its input string, we returned an array with empty strings. Now we return an empty array.

Version 1.8.0

Choose a tag to compare

@jg-rp jg-rp released this 09 Aug 07:29

Fixes

  • Fixed comparison of simple arrays with {% if %}, {% unless %} and {% case %} tags. Previously, two simple arrays with the same elements would not be considered equal.
  • Fixed the standard map filters handling of nested input arrays. We now automatically flatten nested input arrays and coerce non-iterable inputs to a single element array, just like Ruby Liquid.
  • Fixed the {% liquid %} tag's handling of some corner cases involving nested liquid tags.

Features

  • Added the standard sum filter, which returns the sum of any numeric values in its input array (docs, source).
  • Added optional {% extends %} and {% block %} tags that add template inheritance features to Liquid templates (docs, source).
  • Added filter and tag properties to the result of Template.analyze(), containing the locations of filters and tags found during static analysis (docs).

Version 1.7.0

Choose a tag to compare

@jg-rp jg-rp released this 13 Feb 17:24

Version 1.6.0

Choose a tag to compare

@jg-rp jg-rp released this 16 Jan 08:01

Version 1.5.0

Choose a tag to compare

@jg-rp jg-rp released this 06 Dec 07:34