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.23
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.24
Choose a head ref
  • 10 commits
  • 142 files changed
  • 9 contributors

Commits on Aug 9, 2024

  1. ci: rename integration projects for consistency (#7875)

    * ci: rename integration projects for consistency
    
    * Fix lockfile
    lachlancollins authored Aug 9, 2024
    Copy the full SHA
    73fbf00 View commit details
  2. docs: Update vue community projects (#7655)

    * Update community-projects.md
    
    Model: Unified Data Source
    
    * Update community-projects.md
    
    Add docs link for more info about model based on tanstack query
    
    ---------
    
    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    zhennann and TkDodo authored Aug 9, 2024
    Copy the full SHA
    5c4f88d View commit details
  3. doc: Issue template: Point to latest examples (#7878)

    * Issue template: Point to latest examples
    
    * Update a couple of example versions
    IanVS authored Aug 9, 2024
    Copy the full SHA
    59a6d3d View commit details

Commits on Aug 19, 2024

  1. Copy the full SHA
    3292791 View commit details
  2. Copy the full SHA
    b565098 View commit details
  3. Copy the full SHA
    04c977b View commit details
  4. Copy the full SHA
    49a8dc4 View commit details
  5. ci(*): official @vitest/eslint-plugin (#7896)

    Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
    manudeli and TkDodo authored Aug 19, 2024
    Copy the full SHA
    ab1a353 View commit details
  6. Copy the full SHA
    6500c98 View commit details
  7. release: v5.51.24

    tannerlinsley committed Aug 19, 2024
    Copy the full SHA
    eee3948 View commit details
Showing with 547 additions and 384 deletions.
  1. +3 −3 .github/ISSUE_TEMPLATE/bug_report.yml
  2. +0 −2 README.md
  3. +15 −3 docs/eslint/eslint-plugin-query.md
  4. +15 −3 docs/framework/angular/devtools.md
  5. +15 −3 docs/framework/angular/installation.md
  6. +15 −3 docs/framework/react/devtools.md
  7. +2 −2 docs/framework/react/guides/request-waterfalls.md
  8. +30 −6 docs/framework/react/installation.md
  9. +15 −3 docs/framework/solid/devtools.md
  10. +15 −3 docs/framework/solid/installation.md
  11. +15 −3 docs/framework/svelte/installation.md
  12. +7 −0 docs/framework/vue/community/community-projects.md
  13. +15 −3 docs/framework/vue/devtools.md
  14. +15 −3 docs/framework/vue/installation.md
  15. +10 −0 eslint.config.js
  16. +2 −2 examples/angular/basic/package.json
  17. +0 −1 examples/angular/basic/tsconfig.app.json
  18. +0 −1 examples/angular/basic/tsconfig.json
  19. +2 −2 examples/angular/infinite-query-with-max-pages/package.json
  20. +0 −1 examples/angular/infinite-query-with-max-pages/tsconfig.app.json
  21. +0 −1 examples/angular/infinite-query-with-max-pages/tsconfig.json
  22. +2 −2 examples/angular/router/package.json
  23. +0 −1 examples/angular/router/tsconfig.app.json
  24. +0 −1 examples/angular/router/tsconfig.json
  25. +2 −2 examples/angular/simple/package.json
  26. +0 −1 examples/angular/simple/tsconfig.app.json
  27. +0 −1 examples/angular/simple/tsconfig.json
  28. +2 −2 examples/react/algolia/package.json
  29. +2 −2 examples/react/auto-refetching/package.json
  30. +2 −2 examples/react/basic-graphql-request/package.json
  31. +4 −4 examples/react/basic/package.json
  32. +2 −2 examples/react/default-query-function/package.json
  33. +2 −2 examples/react/infinite-query-with-max-pages/package.json
  34. +2 −2 examples/react/load-more-infinite-scroll/package.json
  35. +2 −2 examples/react/nextjs-app-prefetching/package.json
  36. +3 −3 examples/react/nextjs-suspense-streaming/package.json
  37. +2 −2 examples/react/nextjs/package.json
  38. +4 −4 examples/react/offline/package.json
  39. +2 −2 examples/react/optimistic-updates-cache/package.json
  40. +2 −2 examples/react/optimistic-updates-ui/package.json
  41. +2 −2 examples/react/pagination/package.json
  42. +2 −2 examples/react/playground/package.json
  43. +2 −2 examples/react/prefetching/package.json
  44. +2 −2 examples/react/react-native/package.json
  45. +2 −2 examples/react/react-router/package.json
  46. +2 −2 examples/react/rick-morty/package.json
  47. +2 −2 examples/react/shadow-dom/package.json
  48. +2 −2 examples/react/simple/package.json
  49. +2 −2 examples/react/star-wars/package.json
  50. +2 −2 examples/react/suspense/package.json
  51. +2 −2 examples/solid/astro/package.json
  52. +2 −2 examples/solid/basic-graphql-request/package.json
  53. +2 −2 examples/solid/basic/package.json
  54. +2 −2 examples/solid/default-query-function/package.json
  55. +2 −2 examples/solid/simple/package.json
  56. +2 −2 examples/solid/solid-start-streaming/package.json
  57. +2 −2 examples/svelte/auto-refetching/package.json
  58. +4 −4 examples/svelte/basic/package.json
  59. +2 −2 examples/svelte/load-more-infinite-scroll/package.json
  60. +2 −2 examples/svelte/optimistic-updates/package.json
  61. +2 −2 examples/svelte/playground/package.json
  62. +2 −2 examples/svelte/simple/package.json
  63. +2 −2 examples/svelte/ssr/package.json
  64. +2 −2 examples/svelte/star-wars/package.json
  65. +1 −1 examples/vue/2.6-basic/package.json
  66. +1 −1 examples/vue/2.7-basic/package.json
  67. +2 −2 examples/vue/basic/package.json
  68. +1 −1 examples/vue/dependent-queries/package.json
  69. +1 −1 examples/vue/nuxt3/package.json
  70. +4 −4 examples/vue/persister/package.json
  71. +2 −2 examples/vue/simple/package.json
  72. 0 integrations/{angular-cli-standalone-17 → angular-cli-17}/.gitignore
  73. +1 −1 integrations/{angular-cli-standalone-17 → angular-cli-17}/README.md
  74. +5 −5 integrations/{angular-cli-standalone-17 → angular-cli-17}/angular.json
  75. +1 −1 integrations/{angular-cli-standalone-17 → angular-cli-17}/package.json
  76. 0 integrations/{angular-cli-standalone-17 → angular-cli-17}/src/app/app.component.ts
  77. 0 integrations/{angular-cli-standalone-17 → angular-cli-17}/src/app/app.config.ts
  78. 0 integrations/{angular-cli-standalone-17 → angular-cli-17}/src/assets/.gitkeep
  79. BIN integrations/{angular-cli-standalone-17 → angular-cli-17}/src/favicon.ico
  80. +1 −1 integrations/{angular-cli-standalone-17 → angular-cli-17}/src/index.html
  81. 0 integrations/{angular-cli-standalone-17 → angular-cli-17}/src/main.ts
  82. 0 integrations/{angular-cli-standalone-17 → angular-cli-17}/src/styles.css
  83. +0 −1 integrations/{angular-cli-standalone-17 → angular-cli-17}/tsconfig.app.json
  84. +0 −1 integrations/{angular-cli-standalone-17 → angular-cli-17}/tsconfig.json
  85. 0 integrations/{react-next → react-next-14}/.eslintrc.cjs
  86. 0 integrations/{react-next → react-next-14}/.gitignore
  87. 0 integrations/{react-next → react-next-14}/README.md
  88. 0 integrations/{react-next → react-next-14}/app/client-component.tsx
  89. BIN integrations/{react-next → react-next-14}/app/favicon.ico
  90. 0 integrations/{react-next → react-next-14}/app/layout.tsx
  91. 0 integrations/{react-next → react-next-14}/app/page.tsx
  92. 0 integrations/{react-next → react-next-14}/app/providers.tsx
  93. 0 integrations/{react-next → react-next-14}/next.config.js
  94. +1 −1 integrations/{react-next → react-next-14}/package.json
  95. 0 integrations/{react-next → react-next-14}/tsconfig.json
  96. +1 −0 package.json
  97. +1 −1 packages/angular-query-devtools-experimental/package.json
  98. +15 −3 packages/angular-query-experimental/README.md
  99. +1 −1 packages/angular-query-experimental/package.json
  100. +2 −2 packages/angular-query-experimental/src/__tests__/inject-mutation-state.test.ts
  101. +1 −1 packages/angular-query-experimental/src/util/assert-injector/assert-injector.test.ts
  102. +1 −1 packages/angular-query-experimental/src/util/create-injection-token/create-injection-token.test.ts
  103. +1 −1 packages/query-async-storage-persister/package.json
  104. +1 −1 packages/query-broadcast-client-experimental/package.json
  105. +1 −1 packages/query-core/package.json
  106. +12 −12 packages/query-core/src/__tests__/OmitKeyof.test-d.ts
  107. +2 −2 packages/query-core/src/__tests__/mutations.test.tsx
  108. +4 −4 packages/query-core/src/__tests__/queryClient.test.tsx
  109. +2 −2 packages/query-core/src/__tests__/queryObserver.test.tsx
  110. +2 −5 packages/query-core/src/subscribable.ts
  111. +1 −1 packages/query-persist-client-core/package.json
  112. +1 −1 packages/query-sync-storage-persister/package.json
  113. +1 −1 packages/query-sync-storage-persister/src/__tests__/storageIsFull.test.ts
  114. +1 −1 packages/react-query-devtools/package.json
  115. +1 −1 packages/react-query-next-experimental/package.json
  116. +1 −1 packages/react-query-persist-client/package.json
  117. +1 −1 packages/react-query/package.json
  118. +1 −1 packages/react-query/src/__tests__/useInfiniteQuery.test.tsx
  119. +1 −1 packages/react-query/src/__tests__/useQueries.test-d.tsx
  120. +2 −1 packages/react-query/src/__tests__/useQueries.test.tsx
  121. +1 −1 packages/react-query/src/__tests__/useQuery.test-d.tsx
  122. +2 −2 packages/react-query/src/__tests__/useQuery.test.tsx
  123. +1 −1 packages/react-query/src/__tests__/useSuspenseQueries.test-d.tsx
  124. +1 −1 packages/solid-query-devtools/package.json
  125. +1 −1 packages/solid-query-persist-client/package.json
  126. +1 −1 packages/solid-query/package.json
  127. +9 −3 packages/solid-query/src/__tests__/createInfiniteQuery.test.tsx
  128. +1 −0 packages/solid-query/src/__tests__/createQueries.test.tsx
  129. +4 −4 packages/solid-query/src/__tests__/createQuery.test.tsx
  130. +15 −42 packages/solid-query/src/__tests__/infiniteQueryOptions.test-d.tsx
  131. +6 −8 packages/solid-query/src/__tests__/queryOptions.test-d.tsx
  132. +1 −1 packages/svelte-query-devtools/package.json
  133. +1 −1 packages/svelte-query-persist-client/package.json
  134. +1 −1 packages/svelte-query/package.json
  135. +1 −1 packages/vue-query-devtools/package.json
  136. +15 −3 packages/vue-query/README.md
  137. +1 −1 packages/vue-query/package.json
  138. +2 −2 packages/vue-query/src/__tests__/useIsMutating.test.ts
  139. +1 −1 packages/vue-query/src/__tests__/useMutation.test.ts
  140. +1 −1 packages/vue-query/src/__tests__/useQueries.test-d.ts
  141. +1 −1 packages/vue-query/src/__tests__/useQuery.test-d.ts
  142. +125 −100 pnpm-lock.yaml
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ body:
- To create a shareable code example for web, you can use CodeSandbox (https://codesandbox.io/s/new) or Stackblitz (https://stackblitz.com/).
- Please make sure the example is complete and runnable - e.g. avoid localhost URLs.
- To stub out real api requests - Promise.resolve and Promise.reject are good options for easy reproduction
- Feel free to fork any of the official CodeSandbox examples to reproduce your issue: https://tanstack.com/query/v4/docs/examples/react/simple
- Feel free to fork any of the official examples to reproduce your issue: https://tanstack.com/query/latest/docs/framework/react/examples/simple
- For React Native, you can use: https://snack.expo.dev/
- For TypeScript related issues only, a TypeScript Playground link might be sufficient: https://www.typescriptlang.org/play
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
@@ -115,7 +115,7 @@ body:
description: |
Please let us know the exact version of TanStack Query you were using when the issue occurred. Please don't just put in "latest", as this is subject to change.
placeholder: |
e.g. v3.30.1
e.g. v5.51.9
validations:
required: true
- type: input
@@ -125,7 +125,7 @@ body:
description: |
If you are using TypeScript, please let us know the exact version of TypeScript you were using when the issue occurred.
placeholder: |
e.g. v4.5.4
e.g. v5.5.4
- type: textarea
id: additional
attributes:
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -8,8 +8,6 @@ Hooks for fetching, caching and updating asynchronous data in React, Solid, Svel
<img alt="#TanStack" src="https://img.shields.io/twitter/url?color=%2308a0e9&label=%23TanStack&style=social&url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fbutton_hashtag%3DTanStack">
</a><a href="https://discord.com/invite/WrRKjPJ" target="\_parent">
<img alt="" src="https://img.shields.io/badge/Discord-TanStack-%235865F2" />
</a><a href="https://github.com/TanStack/query/actions?query=workflow%3A%22react-query+tests%22">
<img src="https://github.com/TanStack/query/workflows/react-query%20tests/badge.svg" />
</a><a href="https://www.npmjs.com/package/@tanstack/query-core" target="\_parent">
<img alt="" src="https://img.shields.io/npm/dm/@tanstack/query-core.svg" />
</a><a href="https://bundlejs.com/?q=%40tanstack%2Freact-query&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
18 changes: 15 additions & 3 deletions docs/eslint/eslint-plugin-query.md
Original file line number Diff line number Diff line change
@@ -11,11 +11,23 @@ The plugin is a separate package that you need to install:

```bash
$ npm i -D @tanstack/eslint-plugin-query
# or
```

or

```bash
$ pnpm add -D @tanstack/eslint-plugin-query
# or
```

or

```bash
$ yarn add -D @tanstack/eslint-plugin-query
# or
```

or

```bash
$ bun add -D @tanstack/eslint-plugin-query
```

18 changes: 15 additions & 3 deletions docs/framework/angular/devtools.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,23 @@ The devtools are a separate package that you need to install:

```bash
$ npm i @tanstack/angular-query-devtools-experimental
# or
```

or

```bash
$ pnpm add @tanstack/angular-query-devtools-experimental
# or
```

or

```bash
$ yarn add @tanstack/angular-query-devtools-experimental
# or
```

or

```bash
$ bun add @tanstack/angular-query-devtools-experimental
```

18 changes: 15 additions & 3 deletions docs/framework/angular/installation.md
Original file line number Diff line number Diff line change
@@ -11,11 +11,23 @@ _Angular Query is compatible with Angular v16 and higher_

```bash
npm i @tanstack/angular-query-experimental
# or
```

or

```bash
pnpm add @tanstack/angular-query-experimental
# or
```

or

```bash
yarn add @tanstack/angular-query-experimental
# or
```

or

```bash
bun add @tanstack/angular-query-experimental
```

18 changes: 15 additions & 3 deletions docs/framework/react/devtools.md
Original file line number Diff line number Diff line change
@@ -21,11 +21,23 @@ The devtools are a separate package that you need to install:

```bash
$ npm i @tanstack/react-query-devtools
# or
```

or

```bash
$ pnpm add @tanstack/react-query-devtools
# or
```

or

```bash
$ yarn add @tanstack/react-query-devtools
# or
```

or

```bash
$ bun add @tanstack/react-query-devtools
```

4 changes: 2 additions & 2 deletions docs/framework/react/guides/request-waterfalls.md
Original file line number Diff line number Diff line change
@@ -118,8 +118,8 @@ const [usersQuery, teamsQuery, projectsQuery] = useSuspenseQueries({
{ queryKey: ['users'], queryFn: fetchUsers },
{ queryKey: ['teams'], queryFn: fetchTeams },
{ queryKey: ['projects'], queryFn: fetchProjects },
]
}
],
})
```

### Nested Component Waterfalls
36 changes: 30 additions & 6 deletions docs/framework/react/installation.md
Original file line number Diff line number Diff line change
@@ -11,11 +11,23 @@ or a good ol' `<script>` via

```bash
npm i @tanstack/react-query
# or
```

or

```bash
pnpm add @tanstack/react-query
# or
```

or

```bash
yarn add @tanstack/react-query
# or
```

or

```bash
bun add @tanstack/react-query
```

@@ -58,10 +70,22 @@ It is recommended to also use our [ESLint Plugin Query](../../../eslint/eslint-p

```bash
npm i -D @tanstack/eslint-plugin-query
# or
```

or

```bash
pnpm add -D @tanstack/eslint-plugin-query
# or
```

or

```bash
yarn add -D @tanstack/eslint-plugin-query
# or
```

or

```bash
bun add -D @tanstack/eslint-plugin-query
```
18 changes: 15 additions & 3 deletions docs/framework/solid/devtools.md
Original file line number Diff line number Diff line change
@@ -13,11 +13,23 @@ The devtools are a separate package that you need to install:

```bash
$ npm i @tanstack/solid-query-devtools
# or
```

or

```bash
$ pnpm add @tanstack/solid-query-devtools
# or
```

or

```bash
$ yarn add @tanstack/solid-query-devtools
# or
```

or

```bash
$ bun add @tanstack/solid-query-devtools
```

18 changes: 15 additions & 3 deletions docs/framework/solid/installation.md
Original file line number Diff line number Diff line change
@@ -11,11 +11,23 @@ or a good ol' `<script>` via

```bash
npm i @tanstack/solid-query
# or
```

or

```bash
pnpm add @tanstack/solid-query
# or
```

or

```bash
yarn add @tanstack/solid-query
# or
```

or

```bash
bun add @tanstack/solid-query
```

18 changes: 15 additions & 3 deletions docs/framework/svelte/installation.md
Original file line number Diff line number Diff line change
@@ -11,11 +11,23 @@ You can install Svelte Query via [NPM](https://npmjs.com).

```bash
npm i @tanstack/svelte-query
# or
```

or

```bash
pnpm add @tanstack/svelte-query
# or
```

or

```bash
yarn add @tanstack/svelte-query
# or
```

or

```bash
bun add @tanstack/svelte-query
```

7 changes: 7 additions & 0 deletions docs/framework/vue/community/community-projects.md
Original file line number Diff line number Diff line change
@@ -13,6 +13,13 @@ A library for creating typesafe standardized query keys, useful for cache manage

Link: https://github.com/lukemorales/query-key-factory

## Model: Unified Data Source

Zova provides the Model mechanism based on Vue Query in the MVC architecture, encapsulating unified data sources through Model, thereby standardizing the use of data, simplifying the code structure, and improving the maintainability of the code

Link: https://github.com/cabloy/zova
Docs: https://zova.js.org/guide/techniques/model/introduction.html

## Query Rewind

Time travel and visualize state during development
18 changes: 15 additions & 3 deletions docs/framework/vue/devtools.md
Original file line number Diff line number Diff line change
@@ -16,11 +16,23 @@ The devtools component is a separate package that you need to install:

```bash
$ npm i @tanstack/vue-query-devtools
# or
```

or

```bash
$ pnpm add @tanstack/vue-query-devtools
# or
```

or

```bash
$ yarn add @tanstack/vue-query-devtools
# or
```

or

```bash
$ bun add @tanstack/vue-query-devtools
```

18 changes: 15 additions & 3 deletions docs/framework/vue/installation.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,23 @@ You can install Vue Query via [NPM](https://npmjs.com).

```bash
npm i @tanstack/vue-query
# or
```

or

```bash
pnpm add @tanstack/vue-query
# or
```

or

```bash
yarn add @tanstack/vue-query
# or
```

or

```bash
bun add @tanstack/vue-query
```

10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
// @ts-ignore Needed due to moduleResolution Node vs Bundler
import { tanstackConfig } from '@tanstack/config/eslint'
import pluginCspell from '@cspell/eslint-plugin'
import vitest from '@vitest/eslint-plugin'

export default [
...tanstackConfig,
@@ -40,4 +41,13 @@ export default [
'no-case-declarations': 'off',
},
},
{
files: ['**/*.spec.ts*', '**/*.test.ts*', '**/*.test-d.ts*'],
plugins: { vitest },
rules: {
...vitest.configs.recommended.rules,
'vitest/expect-expect': 'warn',
},
settings: { vitest: { typecheck: true } },
},
]
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.12",
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@tanstack/angular-query-experimental": "^5.51.22",
"@tanstack/angular-query-experimental": "^5.51.24",
"rxjs": "^7.8.1",
"tslib": "^2.6.3",
"zone.js": "^0.14.8"
@@ -23,7 +23,7 @@
"@angular-devkit/build-angular": "^17.3.8",
"@angular/cli": "^17.3.8",
"@angular/compiler-cli": "^17.3.12",
"@tanstack/angular-query-devtools-experimental": "^5.51.22",
"@tanstack/angular-query-devtools-experimental": "^5.51.24",
"typescript": "5.3.3"
}
}
Loading