This repository was archived by the owner on Feb 18, 2026. It is now read-only.
Version 0.7.2
Pre-release
Pre-release
What's Changed
- v0.7.2 by @estherbrunner in #10
- Cause & Effect now features a glitch-free
derive()option with memoization for expensive work in computed signals or if the count of execution times matters - Even faster Cause & Effect
- Added tests for async signals and error handling
Non-Core Features
- New methods for auto-effects on
ui()references:ref.text(stateKey)to sync thetextContentof an element while preserving HTML comments with a given string stateref.prop(key, stateKey)to sync a property of the element with a given stateref.attr(name, stateKey)to sync an attribute of the element with a given string stateref.bool(name, stateKey)to sync a boolean attribute of the element with a given boolean stateref.class(token, stateKey)to sync a class token on the element with a given boolean stateref.style(prop, stateKey)to sync a style property of the element with a given string state
- New methods for event binding / unbinding on
ui()references:ref.on(event, handler)to add an event listenerref.off(event, handler)to remove an event listener
- New
asJSON()attribute parser - New
debug-component.tsto parallelcomponent.jswithDebugElementinstead ofUIElement;debug-element.tsanddebug-component.tsare available in TypeScript only insrc/lib/, not as generated JavaScript
Breaking Changes since 0.7.1 to Non-Core Features
- Renamed
uiRef()toui() - Renamed
uiComponent()tocomponent()and it is no longer the default export fromcomponent.js; instead UIElement is default export as in core library - Removed auto-effects using attributes; use
ui(host).<first|all>(selector).<text|prop|attr|bool|class|style>(...args)in JavaScript instead - Removed
highlightTargets()for now; you can implement your own target highlighting usingel.targets(stateKey)and methods onui(element)references.
Full Changelog: v0.7.1...v0.7.2