-
1.11.0
StableAll checks were successfulUnit Tests / Check Unit Tests (push) Successful in 45sreleased this
2026-07-03 01:31:48 +02:00 | 0 commits to main since this release- feat: add keyed() helper for DOM node reconciliation by stable key
const state = { items: [ { id: "1", label: "item 1" }, { id: "2", label: "item 2" }, { id: "3", label: "item 3" }, ], } app(container, state, (s) => [DIV, keyed([UL, { class: "todos" }, ...s.items.map(it => [LI, { key: it.id }, it.label]), ]), ]); - feat: add
reconciledto Props which allows you to set a callback when DOM nodes are assinged (reconciled)[DIV, { reconciled: (state, newVode, oldVode) => { const currentNode = newVode[$NODE]; const previousNode = oldVode?.[$NODE]; // previousNode will be undefined in first render // if children inside the parent are swapped/removed -> currentNode != previousNode } }] - refactor!: internal Vode properties encapsulate behind exported Symbols
- refactor!: expose rendering stats on the state object via state[$STATS] (also still on appNode[$VODE].stats)
- feat: add missing HTML and MathML tags
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- feat: add keyed() helper for DOM node reconciliation by stable key