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

latest release: @preact/signals-react@2.2.0
one month ago

Minor Changes

  • #587 cd9efbb Thanks @JoviDeCroock! - Adjust the ReadOnlySignal type to not inherit from Signal
    this way the type can't be widened without noticing, i.e. when
    we'd have

    const sig: Signal = useComputed(() => x);

    We would have widened the type to be mutable again, which for
    a computed is not allowed. We want to provide the tools to our
    users to avoid these footguns hence we are correcting this type
    in a minor version.

Don't miss a new signals release

NewReleases is sending notifications on new releases.