Skip to content

Commit 9b26c86

Browse files
committed
Update History.md
1 parent bb60905 commit 9b26c86

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

History.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33
## 6.0.0
44

55
### Features
6-
* (TODO) Add support for boolean expressions everywhere
6+
* Add support for boolean expressions everywhere
77
* As variable output `{{ a or b }}`
88
* As filter argument `{{ collection | where: 'prop', a or b }}`
99
* As tag argument `{% render 'snip', enabled: a or b %}`
1010
* As conditional tag argument `{% if cond %}` (extending previous behaviour)
11-
* (TODO) Add support for subexpression prioritization and associativity
11+
* Add support for subexpression prioritization and associativity
1212
* In ascending order of priority:
1313
* Logical: `and`, `or` (right to left)
1414
* Equality: `==`, `!=`, `<>` (left to right)
1515
* Comparison: `>`, `>=`, `<`, `<=`, `contains` (left to right)
16+
* Groupings: `( expr )`
1617
- For example, this is now supported
1718
* `{{ a > b == c < d or e == f }}` which is equivalent to
1819
* `{{ ((a > b) == (c < d)) or (e == f) }}`
19-
- (TODO) Add support for parenthesized expressions
20-
* e.g. `(a or b) and c`
20+
- Add support for parenthesized expressions
21+
* e.g. `(a or b) == c`
2122

2223
### Architectural changes
2324
* `parse_expression` and `safe_parse_expression` have been removed from `Tag` and `ParseContext`
@@ -32,10 +33,17 @@
3233
* `:lax` and `lax_parse` is no longer supported
3334
* `:strict` and `strict_parse` is no longer supported
3435
* `strict2_parse` is renamed to `parse_markup`
35-
* The `warnings` system has been removed.
36-
* `Parser#expression` is renamed to `Parser#expression_string`
37-
* `safe_parse_expression` methods are replaced by `Parser#expression`
38-
* `parse_expression` methods are replaced by `Parser#unsafe_parse_expression`
36+
* Expressions
37+
* The `warnings` system has been removed.
38+
* `Parser#expression` is renamed to `Parser#expression_string`
39+
* `safe_parse_expression` methods are replaced by `Parser#expression`
40+
* `parse_expression` methods are replaced by `Parser#unsafe_parse_expression`
41+
* `Condition`
42+
* `new(expr)` no longer accepts an `op` or `right`. Logic moved to BinaryExpression.
43+
* `Condition#or` and `Condition#and` were replaced by `BinaryExpression`.
44+
* `Condition#child_relation` replaced by `BinaryExpression`.
45+
* `Condition.operations` was removed.
46+
* `Condtion::MethodLiteral` was moved to the `Liquid` namespace
3947

4048
### Migrating from `^5.11.0`
4149
- In custom tags that include `ParserSwitching`, rename `strict2_parse` to `parse_markup`

0 commit comments

Comments
 (0)