github preactjs/signals @preact/signals-core@1.2.0
@preact/signals-core 1.2.0

latest releases: @preact/signals-react@2.2.0, @preact/signals-core@1.8.0, @preact/signals-react-transform@0.4.0...
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.

Don't miss a new signals release

NewReleases is sending notifications on new releases.