Packages

@tanstack/react-query

5.108.0 · 17 Nov 2026MIT91.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @tanstack/react-query From 4.44.0 to 5.107.1

348 releases in betweennotes for 82

Other targets from 4.44.0Latest5.108.0
5.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 4.44.0yours
  2. 5.0.0major
  3. 320 releases
  4. 5.102.0breaking
  5. 25 releases
  6. 5.107.1target
  7. 30 pre
1+
change to make
0
advisories fixed
4+
new
25+
fixes

Counted from 82 of 348 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking5.102.0

Release by release

  1. 5.105.3 – 5.107.15 releases, nothing new or fixed in the notes

  2. 5.105.2

    2 Nov 20262 fixes
    • Fixed

      Update the observer options before subscribing so revealing an <Activity> tree whose query key changed while hidden no longer fetches the previous key.

    • Fixed

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

  3. 5.105.1

    1 Nov 20262 fixes
    • Fixed

      {react,preact,angular,solid,vue}-query/infiniteQueryOptions: Correct the overload selected for a possibly-undefined 'initialData'

    • Fixed

      Exclude fetchStatus from the filters accepted by QueryClient.isFetching, useIsFetching, and injectIsFetching. These APIs always count queries with fetchStatus: 'fetching'.

  4. 5.105.0nothing new or fixed in the note

  5. 5.104.5

    19 Oct 20261 fix
    • Fixed

      Recompute useMutationState and useIsMutating results when their filters, selector, or query client change, without waiting for a mutation cache update.

  6. 5.104.4

    17 Oct 20261 new · 1 fix
    • New

      Allow queries with falsy errors to retry on mount when throwOnError returns false.

    • Fixed

      react-query:* Declare '@types/react' as an optional peer dependency

  7. 5.104.1 – 5.104.33 releases, nothing new or fixed in the notes

  8. 5.104.0

    26 Sep 20261 new
    • New

      Build projects with Vite 8

1 other line we could not sort, mostly version bumps
  • Remove NoInfer from useQuery return types

    5.102.0

104 internal lines (docs, tests, tooling) left out.

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.