You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/views/pages/release-notes/unreleased.liquid
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,5 +17,17 @@ metadata:
17
17
* **Clearer error messages for `record_update` and `record_destroy`**: When a record with the provided ID cannot be found, the error message now clearly specifies which table was being searched. For example:
18
18
* Before: `Couldn't find Customization with 'id'=123`
19
19
* After: `Can't find Boats with id=123`
20
+
* **`assign` tag now supports hash/array operations directly**: The `assign` tag has been extended with capabilities previously only available through `hash_assign` (which is now deprecated). You can now use a single, unified syntax for all variable assignments, including initializing hash and array:
21
+
* **Empty hash/array literals**: {% raw %}`{% assign foo = {} %}`, `{% assign bar = [] %}`{% endraw %} (no need to do {% raw %}`'{}' | parse_json`{% endraw %} anymore)
* **Mixed notation** (combining dots and brackets): {% raw %}`{% assign foo.bar["baz"] = "qux" %}`{% endraw %}
25
+
* **Array append with `<<`**: {% raw %}`{% assign foo << 'bar' %}`{% endraw %} (no need to use `array_add` filter)
26
+
* **Nested operations**: Full support for deeply nested hash and array assignments, e.g., {% raw %}`{% assign foo["bar"]["baz"]["qux"] = [] %}{% assign foo["bar"]["baz"]["qux"] << "first" %}`{% endraw %}
27
+
* **Performance**: Key lookups are pre-computed at parse time for faster rendering
28
+
* **`function` tag now supports the same hash/array syntax**: Bracket notation, dot notation, mixed notation, and array append with `<<` now work with `function` too:
29
+
* {% raw %}`{% function foo["bar"] = 'partials/compute', input: 'baz' %}`{% endraw %}
30
+
* {% raw %}`{% function foo.bar["baz"] = 'partials/get_name', id: 123 %}`{% endraw %}
31
+
* {% raw %}`{% function foo << 'partials/fetch_item', id: 1 %}`{% endraw %}
0 commit comments