Normalized lazy functional component BudNodes (via node.resolve()), JSX props (className/htmlFor), and fragments before calling nativeBinding.diffVdom(), matching the WebAssembly buildWasmTree() semantics and fixing hooks.test.mjs under the native N-API addon.
[1.4.2] - 2026-12-01
Fixed
macOS Apple SDK Build (src/cx_lsp_test.c):
Defined _DARWIN_C_SOURCE alongside _POSIX_C_SOURCE 200809L so Apple's <unistd.h> exposes mkdtemp().
[1.4.1] - 2026-12-01
Fixed
Windows / MinGW64 Build (Makefile):
Excluded POSIX-only cx-lsp and cx_lsp_test (<poll.h>/fork/pipe) when cross=MinGW64, keeping libbud, cx, and all portable tests building cleanly on Windows (winget).
[1.4.0] - 2026-12-01
Added
Mobile Static Libraries (android-lib + ios-lib) (.github/workflows/ci.yml):
Enabled Android (arm64-v8a, x86_64) and iOS (arm64 device/simulator + libbud.xcframework.zip) static library packaging and publishing (d58e421, 95aacc7).
Shipped linkable libbud-wasm.a (WASM_LIB_SRCS) via libstele's mk auto wasm-lib hook and exposed datadir, wasm_lib, and cap_js variables in bud.pc (05ce6e9, 4154444).
Extracted npm/dist/node.js, added npm/examples/jsx-app/ + npm/examples/{demo.mjs,index.html}, and added 7 test and benchmark suites (jsx-runtime.test.mjs, hooks.test.mjs, events.test.mjs, reconciler.test.mjs, dom-stub.mjs, bench-vs-react.mjs, bench-browser.mjs).
Changed
Layer-0 libstele Decoupling & Portable Make Modernization (Makefile, wasm-allowed-exports.lst, Doxyfile):
Owned WASM_GLOBAL_BASE and wasm-allowed-exports.lst directly in libbud (0d38d2c).
Migrated to include ttypt/include.mk via Make search paths, dropped legacy ../mk fallback and redundant LDLIBS-alpine override, and eliminated duplicate $(shell)/!= forks (8f56362, 61e8c7c, 84d3465, f62196c, 57499f0, 4cb046f).
Migrated JSON Parsing from jsmn to <ttypt/iso_json.h> (src/bud_json.c, src/cx-lsp.c, include/bud/bud.h, Doxyfile, .github/workflows/ci.yml):
Replaced vendored src/jsmn.h with libstele's header-only <ttypt/iso_json.h> across bud_json and cx-lsp, and cleared stale json-c/jsmn references (d6c556c, 1ffd1cc, 55dd4c6).
Removed deleted legacy htdocs/bud-hydrate.js and npm/dist/bud-hydrate.js, consolidating browser hydration and DOM host capabilities into htdocs/bud-cap.js and npm/dist/bud-cap.js.
Fixed
Recursive DOM Fallback Dispatch & Default localStorage Seeding (htdocs/bud-cap.js):
Guarded against recursive DOM fallback event dispatch and seeded default localStorage settings.
Updated attribute patch replay (op: "attr", name === "value") to synchronize the live DOM .value property on <input> elements when document.activeElement !== el, ensuring programmatic state updates and resets reflect immediately in the UI without clobbering active user typing focus.
[1.3.2] - 2026-11-16
Fixed
Windows DLL Exports (src/libbud.c): Guarded __attribute__((weak)) under #ifndef _WIN32 on bud_patch_attr, bud_patch_text, and bud_app_set_state so MinGW-w64 PE/COFF exports them into libbud.dll.a for downstream consumers (libhyle-bud).
[1.3.1] - 2026-11-16
Packaging
Upgraded @tty-pt/stelepeerDependencies (>=1.7.0) and devDependencies (^1.7.0), and rebuilt bud.wasm against the single-allocator --wrap shim.
[1.3.0] - 2026-11-13
Packaging
Requires @tty-pt/stele >=1.6.2 (^1.6.2).
The npm tarball is built once by CI, with a self-contained native addon per platform next to bud.wasm, and published as verified.
Implemented full client-side HTML hydration runtime with fine-grained DOM attachment and Web HAL capability registration (bud-cap.js).
Enhanced include/bud/bud_state.h state management and serialization helpers.
Batched capability bridge remounting via microtask scheduling (queueMicrotask / setTimeout) across patch replay boundaries to prevent bridge thrashing.
Changed
Refactored src/libbud.c VDOM diffing and tree traversal operations.
[1.2.2] - 2026-11-03
Decoupled Pure UI Tree & VDOM Diff Engine:
Restored external/libbud to a pure, framework-neutral UI tree builder and VDOM differ without runtime slot management, browser execution assumptions, or host patch emissions.
Removed src/bud_wasm_app.c from the library build (libbud.so, Makefile, and objects-set.mk).
Added pure C implementations of bud_patch_attr, bud_patch_text, and bud_patch_innerhtml directly in libbud.c.
Standalone @tty-pt/bud Package & Pure WebAssembly Differ:
Published @tty-pt/bud on npm with zero external dependencies and strict peerDependencies (@tty-pt/stele: ">=1.5.0").
Bundled standalone bud.wasm compiled directly from src/libbud.c and wasm/bud_wasm.c.
Migrated build to centralized make wasm rule in external/mk/include.mk with -ffreestanding -flto -O3 and post-link wasm-opt -O3 optimization (reducing binary size from 167 KB to 138 KB).
Uses @tty-pt/stele's unified memory substrate for string marshalling and patch emissions.
[1.1.0]
Namespaced WASM Imports & Capability Boundary:
Standardized namespaced bud.* host imports for DOM patching, runtime invalidation, and state synchronization.
Introduced BUD_SLOT_DEFINE and BUD_SLOT_CONTRIBUTE macros for multi-tenant and decoupled UI slot registration across SSR and WASM.
Added declarative BUD_DEFINE_STATE schema generator and bud_state_hydrate() for zero-copy binary state synchronization and DOM reattachment.
Centralized global slot registry in libbud.c.
Web HAL Continuous Frame Loop Contract (wasm_tick):
Exported wasm_tick(float dt, int width, int height) in src/bud_wasm_app.c enabling 60fps hardware-accelerated rendering loops without DOM thrashing.
[1.0.0]
First stable release โ a small C DOM scaffold for building isomorphic user interfaces: renders HTML on the server (SSR) and, through a WASM bridge, hydrates and enhances the same DOM in the browser from the same C source. One renderer, both sides.
Node tree: fragments, elements, text, and raw HTML, with attribute storage, class-name helpers, and child/attribute/listener accessors.
HTML templates: bud_tpl(fmt, ...) / bud_vtpl(fmt, ap) parse an HTML fragment string into a node tree (tags, attributes, void elements, comments, whitespace-collapsed text) โ lx_tpl wraps it in JSX; bud_raw_set_text swaps raw HTML on an existing node.
SSR serialization: bud_render_html, plus bud_render_hydrated_html with hydration markers for DOM reattachment.
Patch stream: bud_render_patch_ops, bud_render_ops, bud_vdom_diff, bud_hydrate for browser-side DOM apply over the WASM bridge.
Runtime: bud_runtime_new/_free/_root/_set_invalidate/_mark_dirty/_is_dirty/_flush/_mount/_update/_unmount/_dispatch, with lifecycle hooks (on-mount/on-update/on-unmount) and event dispatch โ bubbling with stop-propagation and a universal action dispatcher.
Components: light render-function registry โ bud_component/bud_component_fn/bud_component_render โ so sibling nodes share a single instance/update path.
JSON field extraction: vendored jsmn.h, no json-c โ bud_json_str/_int/_data/_array_for_each.
Table-driven UI state: pure 5-field binder bud_field_desc_t (key, offset, size, is_int, kind) via bud_state_apply(_len/_stride/_stride_len) โ zero database or storage concepts.
WASM host bridge (bud_app.h): bud_app_render, BUD_APP_ROUTE, bud_host_emit_patch, bud_patch_attr/bud_patch_text, bud_app_set_state, wasm_get_runtime, plus bud_host_* function pointers in bud.h.
Zero dependencies: links libc only โ the only vendored code is jsmn.h.