v0.1.1
Patch release.
Fixed
-
h()rest-arg API now flattens a single array child, matching React's and Inferno'screateElement. Previously, the single-child fast path innormalizeChildrendid not callArray.isArray, so a call like:h("ul", null, items.map((item) => h("li", { key: item.id }, item.label)))
stored the array itself as a single VNode child instead of flattening it, producing broken output. Users had to spread the array (
...items.map(...)) to work around it. The multi-child path already handled arrays correctly; this brings the length-1 path in line.Fixes the migration story for code coming from React or Inferno's
createElementcall sites. JSX users were unaffected because the JSX automatic runtime (tachys/jsx-runtime) was already array-aware.
Install
pnpm add tachys@0.1.1Full diff: v0.1.0...v0.1.1