Skip to content
Compare
Choose a tag to compare
@msangel msangel released this 07 Apr 23:13
· 28 commits to master since this release

A lot of changes since last release, so new major version.

Changes:

  • "Strict mode" the same behavior as in ruby's
  • evaluating improvements:
  • made comparisons in expressions to behave more like ruby's ones:
    • Fix number comparisons when applying filters, BigDecimal handling
    • Fix dates comparisons
    • fix null and non-nullable object comparing
  • code cleanup and maintenance:
    • Flavor.filters vs ParserSettings.filters differentiation, make more use of new Filters class(immutable)
    • ProtectionSettings removed and its settings are now are optional on TemplateParser class, making single place for all configurations for the template/library
    • jacoco-maven-plugin added. now we see the test coverage.
    • get rid of static context in Filter (now the filters are always parameters with some pre-defaults)
    • a lot of deprecated methods removed (main reason of new major version)
    • LiquidParser: Fix antlr warning about matching an empty string
  • TemplateContext: provide access to Filters, Insertions, parent context
  • Update antlr4 dependency version to 4.13.0
  • updating readme to reflect latest library state

Many thanks to @kohlschuetter and @msangel