A lot of changes since last release, so new major version.
Changes:
- "Strict mode" the same behavior as in ruby's
- evaluating improvements:
- apply incorrect expression evaluating (to follow but in source library Shopify/liquid#1102 )
- out tag aware lex vs strict (still Shopify/liquid#1102)
- New flavour
LIQP
added. Made it default. It has no that bug (Shopify/liquid#1102)
- 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 onTemplateParser
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