This repository was archived by the owner on Feb 18, 2026. It is now read-only.
Version 0.6.2
Pre-release
Pre-release
What's Changed
Licence changed from BSD 3-Clause to MIT
- v0.5.0 API Stabilisation by @estherbrunner in #4
- v0.6.0 add autoEffects in DOM utils; further simplification by @estherbrunner in #5
- v0.6.1 implement effect scheduling and provide more detailed debug logs by @estherbrunner in #6
- v0.6.2 by @estherbrunner in #7
New Features
- New static function
define(tagName: string, registry = customElements: CustomElementRegistry)to register the custom element - Method
this.set()accepts a third optional parameterupdate = true: booleanto set a default not overwriting the current value if set - New method
this.pass(element: UIElement, states: Record<PropertyKey, PropertyKey | () => any>, registry = customElements: CustomElementsRegistry)that awaits the child element being defined and then sets state signals on it - Effect callback functions get a
queuefunction passed to enqueue fine-grained DOM updates for concurrent view refreshes - Effects now have a
targetsproperty containing a map of targeted DOM elements with enqueued DOM updates - Add ancillary utilities:
/lib/cause-effect.jswith the base signals functionscause(),derive()andeffect()used under the hood byUIElement/lib/debug-element.jsis a baseclass DebugElement extends UIElementto log lifecycle callbacks and changes in the signal chain on elements with propertydebug = true;/lib/dom-utils.jsprovidesDOMUpdaterfunctions to be used in effects:setText(),setProp(),setAttr(),setClass()andsetStyle(); in additionautoEffects(this);will auto-create simple effects from HTML attributes in the DOM subtree:ui-text,ui-prop,ui-attr,ui-class,ui-style/lib/context-controller.jsimplements the Context Community Protocol withContextProviderandContextConsumerwhich communicate viaContextRequestEvents/lib/visibility-observer.jsshowcases composition of shared functionality inUIElementclasses with a simpleIntersectionObserverto set avisiblestate on the element
Breaking Changes since v0.4.0
- Property
attributeMappingis now calledattributeMap
Full Changelog: v0.4.0...v0.6.2