Packages

@preact/signals-core

1.14.5 · 27 Oct 2026MIT17.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.11.0

29 Jun 2025Where it was published

1.14.5 is the newest release of 1.x.

In short

1 new

Release note

Minor Changes

  • Support disposing effect() with resource management

    This allows effect()'s to be disposed with the new using keyword from the explicit resource management proposal.

    Whenever an effect goes out of scope the Symbol.dispose function is called automatically.

    const count = signal(0);
    
    function doSomething() {
        // The `using` keyword calls dispose at the end of
        // this function scope
        using _ = effect(() => {
            console.log(count.value);
            return () => console.log("disposed");
        });
    
        console.log("hey");
    }
    
    doSomething();
    // Logs:
    //  0
    //  hey
    //  disposed

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.