Packages

@graphql-hive/signal

2.1.0 · 23 Oct 2026MIT12.2M / weekRepositorynpmAtom feed

Your version

2.1.0

Latest23 Oct 2026Where it was published

In short

1 new

Release note

The section about @graphql-hive/signal of a note shared by several packages.

@graphql-hive/signal@2.1.0

Minor Changes

  • New utility abortSignalAll

    We have introduced a new utility function abortSignalAll that allows you to combine multiple AbortSignal instances into a single signal. This is particularly useful in scenarios where you want to abort an operation if all of the individual signals are aborted.

    import { abortSignalAll } from '@graphql-hive/signal';
    const ctrl1 = new AbortController();
    const ctrl2 = new AbortController();
    
    const combinedSignal = abortSignalAll([ctrl1.signal, ctrl2.signal]);
    
    // Aborting both individual signals will abort the combined signal
    ctrl1.abort();
    
    console.assert(!combinedSignal.aborted); // still not aborted
    
    ctrl2.abort();
    console.assert(combinedSignal.aborted); // now aborted

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.