@tanstack/query-core
5.108.2 · 20 Nov 2026MIT101.3M / weekRepositoryHomepagenpmAtom feed
5.108.2 is the newest release of 5.x.
In short
1 breaking7 fixed
- Breaking
Exclude
statusfrom the filters accepted byQueryClient.isMutating,useIsMutating, andinjectIsMutating. These APIs always count mutations withstatus: 'pending'.
Release note
Patch Changes
Fix infinite queries to respect a reduced
maxPageslimit when fetching in either direction.Exclude
statusfrom the filters accepted byQueryClient.isMutating,useIsMutating, andinjectIsMutating. These APIs always count mutations withstatus: 'pending'.Handle the rejection of a paused refetch started by
refetchQuerieswiththrowOnError, so cancelling it later no longer causes an unhandledCancelledError.Use
() => voidinstead of the DOM-onlyVoidFunctiontype inaddConsumeAwareSignal, so the published declarations type-check without the DOM lib.Fix
shallowEqualObjectsto compare own property keys and values and ignore inherited properties. Objects with different own keys now compare as unequal, including when the differing values areundefined.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
isPausedon a mutation that can start once itsonMutateresolves, 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.