Packages

@tanstack/query-core

5.108.2 · 20 Nov 2026MIT101.3M / weekRepositoryHomepagenpmAtom feed

Your version

5.105.2

2 Nov 2026Where it was published

5.108.2 is the newest release of 5.x.

In short

1 breaking7 fixed

  • Breaking

    Exclude status from the filters accepted by QueryClient.isMutating, useIsMutating, and injectIsMutating. These APIs always count mutations with status: 'pending'.

Release note

Patch Changes

  • Fix infinite queries to respect a reduced maxPages limit when fetching in either direction.

  • Exclude status from the filters accepted by QueryClient.isMutating, useIsMutating, and injectIsMutating. These APIs always count mutations with status: 'pending'.

  • Handle the rejection of a paused refetch started by refetchQueries with throwOnError, so cancelling it later no longer causes an unhandled CancelledError.

  • Use () => void instead of the DOM-only VoidFunction type in addConsumeAwareSignal, so the published declarations type-check without the DOM lib.

  • Fix shallowEqualObjects to compare own property keys and values and ignore inherited properties. Objects with different own keys now compare as unequal, including when the differing values are undefined.

  • Keep all callers of an in-flight query waiting for the replacement fetch when invalidation cancels it, including after repeated invalidations.

  • Prevent cancelled streamed queries from writing to the cache or starting a delayed stream, even when the stream does not consume the abort signal.

  • Clear isPaused on a mutation that can start once its onMutate resolves, so it is no longer dehydrated and resumed a second time while its request is in flight.

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.