Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TanStack/query
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.51.1
Choose a base ref
...
head repository: TanStack/query
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.51.3
Choose a head ref
  • 14 commits
  • 121 files changed
  • 10 contributors

Commits on Jul 11, 2024

  1. ci(pnpm): Add .pnpmfile.cjs to remove indirect dependencies (#7667)

    * ci(pnpm): Add .pnpmfile.cjs to remove unused dependencies
    
    * Fix build
    lachlancollins authored Jul 11, 2024
    Copy the full SHA
    5c9efe8 View commit details
  2. docs(query-client): broken hydration link (#7718)

    chamathpali authored Jul 11, 2024
    Copy the full SHA
    8ecf0f7 View commit details
  3. fix(solid-query): export InitialDataOptions types (#7707)

    Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
    Brendonovich and lachlancollins authored Jul 11, 2024
    Copy the full SHA
    1846abe View commit details
  4. ci: simplify publish script (#7719)

    lachlancollins authored Jul 11, 2024
    Copy the full SHA
    45a21d4 View commit details
  5. release: v5.51.2

    tannerlinsley committed Jul 11, 2024
    Copy the full SHA
    4355843 View commit details
  6. docs: Update comparison.md (#7703)

    alessbell authored Jul 11, 2024
    Copy the full SHA
    79e5202 View commit details

Commits on Jul 15, 2024

  1. docs: access latest data for useMutationState (#7738)

    srph authored Jul 15, 2024
    Copy the full SHA
    369d826 View commit details
  2. chore: prettier

    TkDodo committed Jul 15, 2024
    Copy the full SHA
    4635954 View commit details
  3. chore(*): vitest v2 (#7735)

    * chore(*): vitest v2
    
    * chore: update
    
    * chore: update
    
    * chore: update
    
    * chore: update
    
    ---------
    
    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    manudeli and TkDodo authored Jul 15, 2024
    Copy the full SHA
    d10a456 View commit details

Commits on Jul 16, 2024

  1. chore(deps): Update dev and example dependencies (#7742)

    * chore(deps): Update dev and example dependencies
    
    * Undo changes to esbuild
    
    * Fix @types/eslint version
    lachlancollins authored Jul 16, 2024
    Copy the full SHA
    28af03f View commit details
  2. test(svelte-query): Check query states (#7741)

    * chore(svelte-query-persist-client): Use store subscribe shortcut
    
    * Use statesStore logic in svelte-query
    
    * Use toHaveLength
    
    * Stricter types
    lachlancollins authored Jul 16, 2024
    Copy the full SHA
    38e5c4b View commit details
  3. chore: update knip schema to v5 (#7740)

    SEOKKAMONI authored Jul 16, 2024
    Copy the full SHA
    23b9a19 View commit details
  4. fix(vue-query): export InitialQueryOptions types (#7720)

    andylizi authored Jul 16, 2024
    Copy the full SHA
    a3f5a0a View commit details
  5. release: v5.51.3

    tannerlinsley committed Jul 16, 2024
    Copy the full SHA
    eb21d1e View commit details
Showing with 2,159 additions and 5,289 deletions.
  1. +42 −0 .pnpmfile.cjs
  2. +4 −4 docs/framework/react/comparison.md
  3. +28 −0 docs/framework/react/reference/useMutationState.md
  4. +1 −1 docs/reference/QueryClient.md
  5. +2 −2 examples/angular/basic/package.json
  6. +2 −2 examples/angular/infinite-query-with-max-pages/package.json
  7. +2 −2 examples/angular/router/package.json
  8. +2 −2 examples/angular/simple/package.json
  9. +4 −4 examples/react/algolia/package.json
  10. +2 −2 examples/react/auto-refetching/package.json
  11. +4 −4 examples/react/basic-graphql-request/package.json
  12. +6 −6 examples/react/basic/package.json
  13. +4 −4 examples/react/default-query-function/package.json
  14. +2 −2 examples/react/infinite-query-with-max-pages/package.json
  15. +2 −2 examples/react/load-more-infinite-scroll/package.json
  16. +2 −2 examples/react/nextjs-app-prefetching/package.json
  17. +3 −3 examples/react/nextjs-suspense-streaming/package.json
  18. +2 −2 examples/react/nextjs/package.json
  19. +6 −6 examples/react/offline/package.json
  20. +2 −2 examples/react/optimistic-updates-cache/package.json
  21. +2 −2 examples/react/optimistic-updates-ui/package.json
  22. +2 −2 examples/react/pagination/package.json
  23. +4 −4 examples/react/playground/package.json
  24. +2 −2 examples/react/prefetching/package.json
  25. +2 −2 examples/react/react-native/package.json
  26. +4 −4 examples/react/react-router/package.json
  27. +4 −4 examples/react/rick-morty/package.json
  28. +4 −4 examples/react/shadow-dom/package.json
  29. +4 −4 examples/react/simple/package.json
  30. +4 −4 examples/react/star-wars/package.json
  31. +4 −4 examples/react/suspense/package.json
  32. +3 −3 examples/solid/astro/package.json
  33. +3 −3 examples/solid/basic-graphql-request/package.json
  34. +3 −3 examples/solid/basic/package.json
  35. +3 −3 examples/solid/default-query-function/package.json
  36. +3 −3 examples/solid/simple/package.json
  37. +2 −2 examples/solid/solid-start-streaming/package.json
  38. +7 −7 examples/svelte/auto-refetching/package.json
  39. +7 −7 examples/svelte/basic/package.json
  40. +7 −7 examples/svelte/load-more-infinite-scroll/package.json
  41. +7 −7 examples/svelte/optimistic-updates-typescript/package.json
  42. +7 −7 examples/svelte/playground/package.json
  43. +5 −5 examples/svelte/simple/package.json
  44. +7 −7 examples/svelte/ssr/package.json
  45. +7 −7 examples/svelte/star-wars/package.json
  46. +1 −1 examples/vue/2.6-basic/package.json
  47. +1 −1 examples/vue/2.7-basic/package.json
  48. +3 −3 examples/vue/basic/package.json
  49. +2 −2 examples/vue/dependent-queries/package.json
  50. +1 −1 examples/vue/nuxt3/package.json
  51. +5 −5 examples/vue/persister/package.json
  52. +3 −3 examples/vue/simple/package.json
  53. +1 −1 integrations/react-cra4/package.json
  54. +1 −1 integrations/react-cra5/package.json
  55. +2 −2 integrations/react-vite/package.json
  56. +1 −1 integrations/solid-vite/package.json
  57. +2 −2 integrations/svelte-vite/package.json
  58. +2 −2 integrations/vue-vite/package.json
  59. +2 −1 knip.json
  60. +14 −13 package.json
  61. +2 −2 packages/angular-query-devtools-experimental/package.json
  62. +2 −2 packages/angular-query-experimental/package.json
  63. +1 −1 packages/angular-query-experimental/src/__tests__/util/lazy-init/lazy-init.test.ts
  64. +1 −1 ...lar-query-experimental/src/__tests__/util/lazy-signal-initializer/lazy-signal-initializer.test.ts
  65. +1 −1 packages/query-async-storage-persister/package.json
  66. +1 −1 packages/query-broadcast-client-experimental/package.json
  67. +1 −1 packages/query-core/package.json
  68. +4 −2 packages/query-core/src/__tests__/hydration.test.tsx
  69. +6 −2 packages/query-core/src/__tests__/infiniteQueryObserver.test.tsx
  70. +15 −11 packages/query-core/src/__tests__/query.test.tsx
  71. +96 −32 packages/query-core/src/__tests__/queryClient.test.tsx
  72. +24 −8 packages/query-core/src/__tests__/queryObserver.test.tsx
  73. +2 −2 packages/query-core/src/__tests__/utils.ts
  74. +1 −1 packages/query-persist-client-core/package.json
  75. +1 −1 packages/query-sync-storage-persister/package.json
  76. +2 −2 packages/react-query-devtools/package.json
  77. +2 −2 packages/react-query-next-experimental/package.json
  78. +2 −2 packages/react-query-persist-client/package.json
  79. +2 −2 packages/react-query/package.json
  80. +7 −5 packages/react-query/src/__tests__/prefetch.test.tsx
  81. +2 −8 packages/react-query/src/__tests__/ssr-hydration.test.tsx
  82. +1 −1 packages/react-query/src/__tests__/suspense.test.tsx
  83. +6 −8 packages/react-query/src/__tests__/useInfiniteQuery.test.tsx
  84. +1 −1 packages/react-query/src/__tests__/useMutation.test.tsx
  85. +19 −12 packages/react-query/src/__tests__/useQuery.test.tsx
  86. +2 −2 packages/react-query/src/__tests__/utils.tsx
  87. +1 −1 packages/solid-query-devtools/package.json
  88. +1 −1 packages/solid-query-persist-client/package.json
  89. +1 −1 packages/solid-query/package.json
  90. +6 −8 packages/solid-query/src/__tests__/createInfiniteQuery.test.tsx
  91. +1 −1 packages/solid-query/src/__tests__/createMutation.test.tsx
  92. +19 −12 packages/solid-query/src/__tests__/createQuery.test.tsx
  93. +2 −2 packages/solid-query/src/__tests__/suspense.test.tsx
  94. +3 −3 packages/solid-query/src/__tests__/utils.tsx
  95. +2 −2 packages/solid-query/src/createQuery.ts
  96. +4 −0 packages/solid-query/src/index.ts
  97. +4 −4 packages/svelte-query-devtools/package.json
  98. +4 −4 packages/svelte-query-persist-client/package.json
  99. +2 −10 packages/svelte-query-persist-client/tests/AwaitOnSuccess/AwaitOnSuccess.svelte
  100. +3 −13 packages/svelte-query-persist-client/tests/FreshData/FreshData.svelte
  101. +3 −13 packages/svelte-query-persist-client/tests/InitialData/InitialData.svelte
  102. +2 −10 packages/svelte-query-persist-client/tests/OnSuccess/OnSuccess.svelte
  103. +38 −35 packages/svelte-query-persist-client/tests/PersistQueryClientProvider.test.ts
  104. +2 −10 packages/svelte-query-persist-client/tests/RemoveCache/RemoveCache.svelte
  105. +3 −13 packages/svelte-query-persist-client/tests/RestoreCache/RestoreCache.svelte
  106. +3 −13 packages/svelte-query-persist-client/tests/UseQueries/UseQueries.svelte
  107. +4 −4 packages/svelte-query/package.json
  108. +4 −4 packages/svelte-query/tests/createQueries/BaseExample.svelte
  109. +11 −10 packages/svelte-query/tests/createQuery/BaseExample.svelte
  110. +30 −0 packages/svelte-query/tests/createQuery/PlaceholderData.svelte
  111. +226 −41 packages/svelte-query/tests/createQuery/createQuery.test.ts
  112. +4 −4 packages/vue-query-devtools/package.json
  113. +2 −2 packages/vue-query/package.json
  114. +2 −1 packages/vue-query/src/__mocks__/useBaseQuery.ts
  115. +1 −1 packages/vue-query/src/__mocks__/useQueryClient.ts
  116. +1 −1 packages/vue-query/src/__tests__/vueQueryPlugin.test.ts
  117. +2 −0 packages/vue-query/src/index.ts
  118. +1,182 −4,617 pnpm-lock.yaml
  119. +0 −124 scripts/config.js
  120. +112 −4 scripts/publish.js
  121. +0 −9 scripts/types.d.ts
42 changes: 42 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
function readPackage(pkg, context) {
// react-scripts@4.0.3
if (pkg.name === 'react-scripts' && pkg.version === '4.0.3') {
delete pkg.dependencies['@typescript-eslint/eslint-plugin']
delete pkg.dependencies['@typescript-eslint/parser']
delete pkg.dependencies['babel-eslint']
delete pkg.dependencies['babel-jest']
delete pkg.dependencies['eslint']
delete pkg.dependencies['eslint-config-react-app']
delete pkg.dependencies['eslint-plugin-flowtype']
delete pkg.dependencies['eslint-plugin-import']
delete pkg.dependencies['eslint-plugin-jest']
delete pkg.dependencies['eslint-plugin-jsx-a11y']
delete pkg.dependencies['eslint-plugin-react']
delete pkg.dependencies['eslint-plugin-react-hooks']
delete pkg.dependencies['eslint-plugin-testing-library']
delete pkg.dependencies['jest']
delete pkg.dependencies['jest-circus']
delete pkg.dependencies['jest-resolve']
delete pkg.dependencies['jest-watch-typeahead']
context.log('Removed unused dependencies from react-scripts@4.0.3')
}

// react-scripts@5.0.1
if (pkg.name === 'react-scripts' && pkg.version === '5.0.1') {
delete pkg.dependencies['babel-jest']
delete pkg.dependencies['eslint']
delete pkg.dependencies['eslint-config-react-app']
delete pkg.dependencies['jest']
delete pkg.dependencies['jest-resolve']
delete pkg.dependencies['jest-watch-typeahead']
context.log('Removed unused dependencies from react-scripts@5.0.1')
}

return pkg
}

module.exports = {
hooks: {
readPackage,
},
}
8 changes: 4 additions & 4 deletions docs/framework/react/comparison.md
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ Feature/Capability Key:
| Infinite Queries |||| 🛑 | 🛑 |
| Bi-directional Infinite Queries || 🔶 | 🔶 | 🛑 | 🛑 |
| Infinite Query Refetching ||| 🛑 | 🛑 | 🛑 |
| Lagged Query Data<sup>1</sup> ||| 🛑 |||
| Lagged Query Data<sup>1</sup> ||| |||
| Selectors || 🛑 ||| N/A |
| Initial Data ||||||
| Scroll Recovery ||||||
@@ -48,15 +48,15 @@ Feature/Capability Key:
| Offline Mutation Support || 🛑 | 🟡 | 🛑 | 🛑 |
| Prefetching APIs ||||||
| Query Cancellation || 🛑 | 🛑 | 🛑 ||
| Partial Query Matching<sup>3</sup> || 🔶 | 🛑 || N/A |
| Partial Query Matching<sup>3</sup> || 🔶 | || N/A |
| Stale While Revalidate ||||| 🛑 |
| Stale Time Configuration || 🛑<sup>7</sup> | 🛑 || 🛑 |
| Pre-usage Query/Mutation Configuration<sup>4</sup> || 🛑 | 🛑 |||
| Pre-usage Query/Mutation Configuration<sup>4</sup> || 🛑 | |||
| Window Focus Refetching ||| 🛑 || 🛑 |
| Network Status Refetching ||||| 🛑 |
| General Cache Dehydration/Rehydration || 🛑 ||||
| Offline Caching || 🛑 || 🔶 | 🛑 |
| React Suspense ||| 🛑 | 🛑 ||
| React Suspense ||| | 🛑 ||
| Abstracted/Agnostic Core || 🛑 ||| 🛑 |
| Automatic Refetch after Mutation<sup>5</sup> | 🔶 | 🔶 ||||
| Normalized Caching<sup>6</sup> | 🛑 | 🛑 || 🛑 | 🛑 |
28 changes: 28 additions & 0 deletions docs/framework/react/reference/useMutationState.md
Original file line number Diff line number Diff line change
@@ -38,6 +38,34 @@ const data = useMutationState({
})
```

**Example 3: Access the latest mutation data via the `mutationKey`**
Each invocation of `mutate` adds a new entry to the mutation cache for `gcTime` milliseconds.

To access the latest invocation, you can check for the last item that `useMutationState` returns.

```tsx
import { useMutation, useMutationState } from '@tanstack/react-query'

const mutationKey = ['posts']

// Some mutation that we want to get the state for
const mutation = useMutation({
mutationKey,
mutationFn: (newPost) => {
return axios.post('/posts', newPost)
},
})

const data = useMutationState({
// this mutation key needs to match the mutation key of the given mutation (see above)
filters: { mutationKey },
select: (mutation) => mutation.state.data,
})

// Latest mutation data
const latest = data[data.length - 1]
```

**Options**

- `options`
2 changes: 1 addition & 1 deletion docs/reference/QueryClient.md
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ Its available methods are:
- `defaultOptions?: DefaultOptions`
- Optional
- Define defaults for all queries and mutations using this queryClient.
- You can also define defaults to be used for [hydration](../../framework/react/reference/hydration.md)
- You can also define defaults to be used for [hydration](../../framework/react/reference/hydration)

## `queryClient.fetchQuery`

4 changes: 2 additions & 2 deletions examples/angular/basic/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@angular/core": "^17.3.10",
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.51.1",
"@tanstack/angular-query-experimental": "^5.51.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -23,7 +23,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.51.1",
"@tanstack/angular-query-devtools-experimental": "^5.51.3",
"typescript": "5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/angular/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@angular/core": "^17.3.10",
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.51.1",
"@tanstack/angular-query-experimental": "^5.51.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -23,7 +23,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.51.1",
"@tanstack/angular-query-devtools-experimental": "^5.51.3",
"typescript": "5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/angular/router/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@angular/router": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.51.1",
"@tanstack/angular-query-experimental": "^5.51.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -24,7 +24,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.51.1",
"@tanstack/angular-query-devtools-experimental": "^5.51.3",
"typescript": "5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/angular/simple/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@angular/router": "^17.3.10",
"@tanstack/angular-query-experimental": "^5.51.1",
"@tanstack/angular-query-experimental": "^5.51.3",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.6"
@@ -24,7 +24,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.10",
"@tanstack/angular-query-devtools-experimental": "^5.51.1",
"@tanstack/angular-query-devtools-experimental": "^5.51.3",
"typescript": "5.3.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/algolia/package.json
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@
"dependencies": {
"@algolia/client-search": "4.23.3",
"@algolia/transporter": "4.23.3",
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"algoliasearch": "4.23.3",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
@@ -21,8 +21,8 @@
"@tanstack/eslint-plugin-query": "^5.51.1",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/auto-refetching/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
8 changes: 4 additions & 4 deletions examples/react/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
@@ -8,15 +8,15 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"graphql": "^16.8.1",
"graphql-request": "^7.0.1",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.2.1",
"vite": "^5.2.11"
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.3"
}
}
12 changes: 6 additions & 6 deletions examples/react/basic/package.json
Original file line number Diff line number Diff line change
@@ -9,20 +9,20 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/query-sync-storage-persister": "^5.51.1",
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query-persist-client": "^5.51.1",
"@tanstack/query-sync-storage-persister": "^5.51.3",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"@tanstack/react-query-persist-client": "^5.51.3",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.51.1",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"typescript": "5.3.3",
"vite": "^5.2.11"
"vite": "^5.3.3"
}
}
8 changes: 4 additions & 4 deletions examples/react/default-query-function/package.json
Original file line number Diff line number Diff line change
@@ -8,14 +8,14 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
4 changes: 2 additions & 2 deletions examples/react/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
4 changes: 2 additions & 2 deletions examples/react/nextjs-app-prefetching/package.json
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"next": "^15.0.0-rc.0",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522"
6 changes: 3 additions & 3 deletions examples/react/nextjs-suspense-streaming/package.json
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query-next-experimental": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"@tanstack/react-query-next-experimental": "^5.51.3",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
4 changes: 2 additions & 2 deletions examples/react/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
12 changes: 6 additions & 6 deletions examples/react/offline/package.json
Original file line number Diff line number Diff line change
@@ -8,20 +8,20 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/query-sync-storage-persister": "^5.51.1",
"@tanstack/query-sync-storage-persister": "^5.51.3",
"@tanstack/react-location": "^3.7.4",
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query-persist-client": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"@tanstack/react-query-persist-client": "^5.51.3",
"msw": "^2.3.0",
"react": "19.0.0-rc-4c2e457c7c-20240522",
"react-dom": "19.0.0-rc-4c2e457c7c-20240522",
"react-hot-toast": "^2.4.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "5.3.3",
"vite": "^5.2.11"
"vite": "^5.3.3"
},
"msw": {
"workerDirectory": [
4 changes: 2 additions & 2 deletions examples/react/optimistic-updates-cache/package.json
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
4 changes: 2 additions & 2 deletions examples/react/optimistic-updates-ui/package.json
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.51.1",
"@tanstack/react-query-devtools": "^5.51.1",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-query-devtools": "^5.51.3",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Loading