signals

Manage state with style in every framework

MIT License

Downloads
2M
Stars
3.6K
Committers
42

Bot releases are hidden (Show)

signals - @preact/signals-react 1.2.0

Published by marvinhagemeister about 2 years ago

Minor Changes

Patch Changes

signals - @preact/signals-core 1.2.2

Published by marvinhagemeister about 2 years ago

Patch Changes

  • #232 aa4cb7b Thanks @jviide! - Simplify effect change checking (and make effect cycle detection more accurate as a side-effect)

  • #233 3f652a7 Thanks @jviide! - Simplify Node book keeping code

signals - @preact/signals 1.1.2

Published by marvinhagemeister about 2 years ago

Patch Changes

signals - @preact/signals-react 1.1.1

Published by marvinhagemeister about 2 years ago

Patch Changes

signals - @preact/signals-core 1.2.1

Published by marvinhagemeister about 2 years ago

Patch Changes

  • #205 4b73164 Thanks @jviide! - Use the same tracking logic for both effects and computeds. This ensures that effects are only called whenever any of their dependencies changes. If they all stay the same, then the effect will not be invoked.

  • #207 57fd2e7 Thanks @jviide! - Fix effect disposal when cleanup throws

  • #209 49756ae Thanks @jviide! - Optimize dependency value change checks by allowing earlier exists from the loop

signals - @preact/signals 1.1.1

Published by marvinhagemeister about 2 years ago

Patch Changes

signals - @preact/signals-core 1.2.0

Published by marvinhagemeister about 2 years ago

This release improves performance of signals across all measurements. We want to especially highlight @jviide 's work in #161 here as it did outstanding strides on reducing memory usage, improving performance and ending up making signals one (if not the) fastest reactive library at the time of this writing 🎉

Minor Changes

  • #183 79ff1e7 Thanks @jviide! - Add ability to run custom cleanup logic when an effect is disposed.

    effect(() => {
      console.log("This runs whenever a dependency changes");
      return () => {
        console.log("This runs when the effect is disposed");
      });
    });
    
  • #170 3e31aab Thanks @jviide! - Allow disposing a currently running effect

Patch Changes

  • #188 b4611cc Thanks @jviide! - Fix .subscribe() unexpectedly tracking signal access

  • #162 9802da5 Thanks @developit! - Add support for Signal.prototype.valueOf

  • #161 6ac6923 Thanks @jviide! - Remove all usages of Set, Map and other allocation heavy objects in signals-core. This substaintially increases performance across all measurements.

signals - @preact/signals 1.1.0

Published by marvinhagemeister about 2 years ago

Minor Changes

Patch Changes

signals - @preact/signals-react 1.1.0

Published by marvinhagemeister about 2 years ago

Minor Changes

signals - @preact/signals-react 1.0.2

Published by marvinhagemeister about 2 years ago

Patch Changes

signals - @preact/signals 1.0.4

Published by marvinhagemeister about 2 years ago

Patch Changes

signals - @preact/signals-core 1.1.1

Published by marvinhagemeister about 2 years ago

Patch Changes

signals - @preact/[email protected]

Published by marvinhagemeister about 2 years ago

Patch Changes

  • 62439c9: Fixes invalid React peer dependency range for environments with strict peerDeps - #105 @rschristian
signals - @preact/signals-core 1.1.0

Published by marvinhagemeister about 2 years ago

Minor Changes

  • bc0080c: experimental: Add .subscribe()-method to signals to add support for natively using signals with Svelte - #134 @marvinhagemeister

Patch Changes

  • 336bb34: Don't mangle Signal class name - #100 @marvinhagemeister
  • 7228418: Fix incorrectly named variables and address typos in code comments. - #129 @elliotwaite
  • 32abe07: Fix internal API functions being able to unmark non-invalidated signals - #112 @marvinhagemeister
  • 4782b41: Fix conditionally signals (lazy branches) not being re-computed upon activation - #127 @marvinhagemeister
  • bf6af3b: Fix a memory leak when computed signals and effects are removed - #117 @developit