Skip to content

Commit 3697c59

Browse files
committed
Fixed zig version to properly build the wasm release
1 parent 4d0c54d commit 3697c59

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ concurrency:
44
cancel-in-progress: true
55

66
on:
7+
workflow_call:
78
workflow_dispatch:
89
push:
910
tags:
@@ -46,7 +47,7 @@ jobs:
4647
- uses: actions/checkout@v4
4748
- uses: mlugg/setup-zig@v1
4849
with:
49-
version: master
50+
version: 0.14.0
5051
- name: Install dependencies
5152
run: |
5253
python3 -m pip install meson ninja

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## v0.4.7
22

33
Introduced tree-rewrite capabilities with `s:for` via the additional attributes `src-children` and `dst-children`.
4-
Basically the same for cycle is applied recursively inside the relative path described by `src-children` and applied inside `dst-children`.
4+
Basically the same for cycle is matched recursively inside the relative path described by `src-children` and applied inside `dst-children`.
55
The actual behaviour of `dst-children` has not been fully implemented yet, as it requires access to children in reverse order, making it incompatible with the rest of the codebase.
66
As such, some custom implementation is needed. For now one can only specify the direct name of the tag embedding children, without nesting as it should be in its final form.
77
The nested behaviour of `s:for` is going to change a bit in `v0.4.9` once `dst-children` is fully fixed.

dist/wasm-demo/src/routes/+page.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
template: "./examples/advanced/html/templ.xml",
5252
data: "./examples/advanced/html/data.0.xml",
5353
},
54-
],
55-
items: [
5654
{
5755
value: "Tree-rewrite",
5856
template: "./examples/advanced/tree-rewrite/templ.xml",

docs/releases/v0.4.7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Introduced tree-rewrite capabilities with `s:for` via the additional attributes `src-children` and `dst-children`.
2-
Basically the same for cycle is applied recursively inside the relative path described by `src-children` and applied inside `dst-children`.
2+
Basically the same for cycle is matched recursively inside the relative path described by `src-children` and applied inside `dst-children`.
33
The actual behaviour of `dst-children` has not been fully implemented yet, as it requires access to children in reverse order, making it incompatible with the rest of the codebase.
44
As such, some custom implementation is needed. For now one can only specify the direct name of the tag embedding children, without nesting as it should be in its final form.
55
The nested behaviour of `s:for` is going to change a bit in `v0.4.9` once `dst-children` is fully fixed.

examples/advanced/tree-rewrite/templ.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<doc>
2-
<s:for in="$" sort-by="~field-a" order-by=".desc" src-children="$" dst-children="item">
2+
<s:for in="{$}/root" sort-by="~field-a" order-by=".desc" src-children="$" dst-children="item">
33
<s:item>
44
<item s:prop.0="~field-a|~!txt"/>
55
</s:item>

0 commit comments

Comments
 (0)