Version 0.18.3
Pre-release
Pre-release
What's Changed
Added
- Slot signal (
createSlot,isSlot): A stable reactive source that delegates reads and writes to a swappable backing signal. Designed for integration layers (e.g. custom element systems) where a property position must switch its backing signal — from a local writableStateto a parent-controlledMemo— without breaking existing subscribers. The slot object doubles as a property descriptor forObject.defineProperty().replace(nextSignal)swaps the backing signal and invalidates downstream subscribers;current()returns the currently delegated signal. Options mirror State: optionalguardandequals.
Fixed
match()now preserves tuple types: Theokhandler correctly receives per-position types (e.g.,[number, string]) instead of a widened union (e.g.,(number | string)[]). Thesignalsparameter andMatchHandlerstype now usereadonly [...T]to preserve tuple inference.
Full Changelog: v0.18.2...v0.18.3