Repository navigation
Version 0.16.1
Pre-release
Pre-release
What's Changed
Bugfixes
- Stores used to expose a
State<number>for the.sizeproperty. This was a mistake as mutating size from outside would have unpredictable consequences. It should have been a read-only computed signal instead. But then again, array-like Stores need a.lengthproperty anyway to be recognized as array-like by JavaScript functions. As accessing.lengthin array-like stores establishes a reactive subscription as well,.sizewould become a mere duplicate of the same feature with a more complicated API. So we decided to drop.sizealtogether and expose.lengthas a read-only property for record-like stores as well. - Methods, symbol properties on all signals and the
lengthproperty on stores non-configurable and non-enumerable, aligning with default behavior of objects and arrays in JavaScript.
Full Changelog: v0.16.0...v0.16.1