Skip to content

liquid-ml 0.1.4

Latest

Choose a tag to compare

@benfaerber benfaerber released this 07 Jun 23:05
· 1 commit to master since this release
7c7fad5

This release focuses on Liquid spec correctness — whitespace control, the {% liquid %} tag, operators, and loop/scoping behavior — along with a much larger test suite built around real-world Shopify templates.

New

  • Whitespace control — {%- -%} and {{- -}} trim markers are now supported (#11)
  • Time in the date filter — format_string now handles time components, not just dates (thanks @girvo, #7)

Fixes

  • Fixed interpreter hang when using forloop.index for array indexing (#8)
  • Fixed {% liquid %} tags emitting excessive newlines/whitespace (#16)
  • Fixed {%liquid not parsing with a space after the % (#9)
  • Fixed the and/or operators with bare values, and echo of string literals (#14)
  • Fixed variable-based ranges, for limit, if/for scoping, append coercion, and string delimiter handling (#18)

Internal

  • Switched code coverage to the bisect_ppx backend
  • Added extensive tests: complex Shopify templates (cart, product, theme, minicart, variants), whitespace-control cases, and new suites for bug fixes, for-loops, and helper filters

Thanks

Big thanks to @Merlin04 for reporting issues #8, #9, #11, #14, and #16, and to @girvo for the date filter contribution.

Install (once it lands in opam-repository):

opam install liquid_ml.0.1.4

opam-repository PR: ocaml/opam-repository#30004

Full changelog: 0.1.3...0.1.4