This repository was archived by the owner on Sep 13, 2025. It is now read-only.
Releases: clebert/snugjs
Releases · clebert/snugjs
Release list
v3.1.0
v3.0.0
- Disconnection is synchronous instead of asynchronous
- Fix race conditions and rewrite unit test cases
- Detect new text nodes with the same content to avoid unnecessary iterations
- The
createElementReffunction accepts custom element factories for convenience and correct typing
v2.1.0
v2.0.0
v1.1.0
v1.0.0
- Complete redesign and reimplementation
- Is now based on
@snugjs/htmland no longer requires abort signals to enable reactivity
- Is now based on
v0.4.1
v0.4.0
- Major mechanics update
- A component now yields a signal directly instead of a function which produces a signal
- this prevents a signal from being skipped due to the asynchronous nature of the runtime
- The
Subjectclass now also allows thenextSignalto be retrieved already- this is necessary, for example, in the case of the
Childrenclass, where rendering can invalidate the current signal downstream
- this is necessary, for example, in the case of the
- The props of a component may only be primitives (
boolean,number,string) - The
hfunction is implemented more robustly, has full test coverage, and many bugs have been fixed - The
hfunction now uses thekeyattribute to cache both custom elements as well as intrinsic elements - The newly introduced
reffunction can be used to more conveniently create stable element references declaratively
- A component now yields a signal directly instead of a function which produces a signal