Skip to content

Version 0.16.1

Pre-release
Pre-release

Choose a tag to compare

@estherbrunner estherbrunner released this 03 Dec 15:00
· 294 commits to main since this release
fd47c5d

What's Changed

Bugfixes

  • Stores used to expose a State<number> for the .size property. 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 .length property anyway to be recognized as array-like by JavaScript functions. As accessing .length in array-like stores establishes a reactive subscription as well, .size would become a mere duplicate of the same feature with a more complicated API. So we decided to drop .size altogether and expose .length as a read-only property for record-like stores as well.
  • Methods, symbol properties on all signals and the length property 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