Skip to content

Commit 560963d

Browse files
committed
update release notes
1 parent e461e36 commit 560963d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

app/views/pages/release-notes/unreleased.liquid

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,17 @@ metadata:
1717
* **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:
1818
* Before: `Couldn't find Customization with 'id'=123`
1919
* 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)
22+
* **Bracket notation**: {% raw %}`{% assign foo["bar"] = "baz" %}`{% endraw %}
23+
* **Dot notation**: {% raw %}`{% assign foo.bar = "baz" %}`{% endraw %}
24+
* **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 %}
2032

2133
<!-- <h4 class="release-note release-note__fixed">FIXED</h4> -->

0 commit comments

Comments
 (0)