|
1 | 1 | # Liquid Change Log |
2 | 2 |
|
| 3 | +## 6.0.0 |
| 4 | + |
| 5 | +### Architectural changes |
| 6 | + |
| 7 | +### Features |
| 8 | +* (TODO) Add support for boolean expressions everywhere |
| 9 | + * As variable output `{{ a or b }}` |
| 10 | + * As filter argument `{{ collection | where: 'prop', a or b }}` |
| 11 | + * As tag argument `{% render 'snip', enabled: a or b %}` |
| 12 | + * As conditional tag argument `{% if cond %}` (extending previous behaviour) |
| 13 | +* (TODO) Add support for subexpression prioritization and associativity |
| 14 | + * In ascending order of priority: |
| 15 | + * Logical: `and`, `or` (right to left) |
| 16 | + * Equality: `==`, `!=`, `<>` (left to right) |
| 17 | + * Comparison: `>`, `>=`, `<`, `<=`, `contains` (left to right) |
| 18 | + - For example, this is now supported |
| 19 | + * `{{ a > b == c < d or e == f }}` which is equivalent to |
| 20 | + * `{{ ((a > b) == (c < d)) or (e == f) }}` |
| 21 | +- (TODO) Add support for parenthesized expressions |
| 22 | + * e.g. `(a or b) and c` |
| 23 | + |
| 24 | +### Breaking changes |
| 25 | +* We are removing the Environment's `error_mode` option. |
| 26 | + * `:warn` is no longer supported |
| 27 | + * `:lax` and `lax_parse` is no longer supported |
| 28 | + * `:strict` and `strict_parse` is no longer supported |
| 29 | + * `strict2_parse` is renamed to `parse_markup` |
| 30 | + |
| 31 | +### Migrating from `^5.11.0` |
| 32 | +- In custom tags that include `ParserSwitching`, rename `strict2_parse` to `parse_markup` |
| 33 | +- Remove code depending on `:error_mode` |
| 34 | + |
3 | 35 | ## 5.11.0 |
4 | 36 | * Revert the Inline Snippets tag (#2001), treat its inclusion in the latest Liquid release as a bug, and allow for feedback on RFC#1916 to better support Liquid developers [Guilherme Carreiro] |
5 | 37 | * Rename the `:rigid` error mode to `:strict2` and display a warning when users attempt to use the `:rigid` mode [Guilherme Carreiro] |
|
0 commit comments