Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo authored Feb 28, 2024
2 parents 7fae5ef + 18c2cae commit 26eb0ee
Show file tree
Hide file tree
Showing 117 changed files with 1,277 additions and 1,402 deletions.
2 changes: 2 additions & 0 deletions docs/eslint/eslint-plugin-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ npm i -D @tanstack/eslint-plugin-query
$ pnpm add -D @tanstack/eslint-plugin-query
# or
$ yarn add -D @tanstack/eslint-plugin-query
# or
$ bun add -D @tanstack/eslint-plugin-query
```

## Usage
Expand Down
2 changes: 2 additions & 0 deletions docs/framework/angular/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ $ npm i @tanstack/angular-query-devtools-experimental
$ pnpm add @tanstack/angular-query-devtools-experimental
# or
$ yarn add @tanstack/angular-query-devtools-experimental
# or
$ bun add @tanstack/angular-query-devtools-experimental
```

You can import the devtools like this:
Expand Down
2 changes: 2 additions & 0 deletions docs/framework/angular/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ npm i @tanstack/angular-query-experimental
$ pnpm add @tanstack/angular-query-experimental
# or
$ yarn add @tanstack/angular-query-experimental
# or
$ bun add @tanstack/angular-query-experimental
```

> Wanna give it a spin before you download? Try out the [simple](./examples/simple) or [basic](./examples/basic) examples!
2 changes: 2 additions & 0 deletions docs/framework/react/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $ npm i @tanstack/react-query-devtools
$ pnpm add @tanstack/react-query-devtools
# or
$ yarn add @tanstack/react-query-devtools
# or
$ bun add @tanstack/react-query-devtools
```

For Next 13+ App Dir you must install it as a dev dependency for it to work.
Expand Down
4 changes: 4 additions & 0 deletions docs/framework/react/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ npm i @tanstack/react-query
$ pnpm add @tanstack/react-query
# or
$ yarn add @tanstack/react-query
# or
$ bun add @tanstack/react-query
```

React Query is compatible with React v18+ and works with ReactDOM and React Native.
Expand Down Expand Up @@ -60,4 +62,6 @@ $ npm i -D @tanstack/eslint-plugin-query
$ pnpm add -D @tanstack/eslint-plugin-query
# or
$ yarn add -D @tanstack/eslint-plugin-query
# or
$ bun add -D @tanstack/eslint-plugin-query
```
6 changes: 6 additions & 0 deletions docs/framework/react/plugins/createAsyncStoragePersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ or
yarn add @tanstack/query-async-storage-persister @tanstack/react-query-persist-client
```

or

```bash
bun add @tanstack/query-async-storage-persister @tanstack/react-query-persist-client
```

## Usage

- Import the `createAsyncStoragePersister` function
Expand Down
6 changes: 6 additions & 0 deletions docs/framework/react/plugins/createPersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ or
yarn add @tanstack/query-persist-client-core
```

or

```bash
bun add @tanstack/query-persist-client-core
```

> Note: This util is also included in the `@tanstack/react-query-persist-client` package, so you do not need to install it separately if you are using that package.
## Usage
Expand Down
6 changes: 6 additions & 0 deletions docs/framework/react/plugins/createSyncStoragePersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ or
yarn add @tanstack/query-sync-storage-persister @tanstack/react-query-persist-client
```

or

```bash
bun add @tanstack/query-sync-storage-persister @tanstack/react-query-persist-client
```

## Usage

- Import the `createSyncStoragePersister` function
Expand Down
2 changes: 2 additions & 0 deletions docs/framework/solid/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ $ npm i @tanstack/solid-query-devtools
$ pnpm add @tanstack/solid-query-devtools
# or
$ yarn add @tanstack/solid-query-devtools
# or
$ bun add @tanstack/solid-query-devtools
```

You can import the devtools like this:
Expand Down
2 changes: 2 additions & 0 deletions docs/framework/svelte/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ npm i @tanstack/svelte-query
$ pnpm add @tanstack/svelte-query
# or
$ yarn add @tanstack/svelte-query
# or
$ bun add @tanstack/svelte-query
```

> Wanna give it a spin before you download? Try out the [basic](./examples/basic) example!
2 changes: 2 additions & 0 deletions docs/framework/vue/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ $ npm i @tanstack/vue-query-devtools
$ pnpm add @tanstack/vue-query-devtools
# or
$ yarn add @tanstack/vue-query-devtools
# or
$ bun add @tanstack/vue-query-devtools
```

By default, Vue Query Devtools are only included in bundles when `process.env.NODE_ENV === 'development'`, so you don't need to worry about excluding them during a production build.
Expand Down
2 changes: 2 additions & 0 deletions docs/framework/vue/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ npm i @tanstack/vue-query
$ pnpm add @tanstack/vue-query
# or
$ yarn add @tanstack/vue-query
# or
$ bun add @tanstack/vue-query
```

> Wanna give it a spin before you download? Try out the [basic](./examples/basic) example!
Expand Down
4 changes: 2 additions & 2 deletions examples/angular/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

To run this example:

- `npm install` or `yarn` or `pnpm i`
- `npm run start` or `yarn start` or `pnpm start`
- `npm install` or `yarn` or `pnpm i` or `bun i`
- `npm run start` or `yarn start` or `pnpm start` or `bun start`
5 changes: 4 additions & 1 deletion examples/angular/basic/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": 1,
"cli": {
"packageManager": "pnpm",
"analytics": false
"analytics": false,
"cache": {
"enabled": false
}
},
"newProjectRoot": "projects",
"projects": {
Expand Down
4 changes: 2 additions & 2 deletions examples/angular/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@angular/platform-browser": "^17.1.3",
"@angular/platform-browser-dynamic": "^17.1.3",
"@angular/router": "^17.1.3",
"@tanstack/angular-query-experimental": "^5.22.2",
"@tanstack/angular-query-experimental": "^5.24.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.3"
Expand All @@ -26,7 +26,7 @@
"@angular-devkit/build-angular": "^17.1.3",
"@angular/cli": "^17.1.3",
"@angular/compiler-cli": "^17.1.3",
"@tanstack/angular-query-devtools-experimental": "^5.24.0",
"@tanstack/angular-query-devtools-experimental": "^5.24.1",
"typescript": "5.2.2"
},
"overrides": {
Expand Down
4 changes: 2 additions & 2 deletions examples/angular/infinite-query-with-max-pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

To run this example:

- `npm install` or `yarn` or `pnpm i`
- `npm run start` or `yarn start` or `pnpm start`
- `npm install` or `yarn` or `pnpm i` or `bun i`
- `npm run start` or `yarn start` or `pnpm start` or `bun start`
5 changes: 4 additions & 1 deletion examples/angular/infinite-query-with-max-pages/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": 1,
"cli": {
"packageManager": "pnpm",
"analytics": false
"analytics": false,
"cache": {
"enabled": false
}
},
"newProjectRoot": "projects",
"projects": {
Expand Down
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
Expand Up @@ -17,7 +17,7 @@
"@angular/platform-browser": "^17.1.3",
"@angular/platform-browser-dynamic": "^17.1.3",
"@angular/router": "^17.1.3",
"@tanstack/angular-query-experimental": "^5.22.2",
"@tanstack/angular-query-experimental": "^5.24.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.3"
Expand All @@ -26,7 +26,7 @@
"@angular-devkit/build-angular": "^17.1.3",
"@angular/cli": "^17.1.3",
"@angular/compiler-cli": "^17.1.3",
"@tanstack/angular-query-devtools-experimental": "^5.24.0",
"@tanstack/angular-query-devtools-experimental": "^5.24.1",
"typescript": "5.2.2"
},
"overrides": {
Expand Down
4 changes: 2 additions & 2 deletions examples/angular/router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

To run this example:

- `npm install` or `yarn` or `pnpm i`
- `npm run start` or `yarn start` or `pnpm start`
- `npm install` or `yarn` or `pnpm i` or `bun i`
- `npm run start` or `yarn start` or `pnpm start` or `bun start`
5 changes: 4 additions & 1 deletion examples/angular/router/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": 1,
"cli": {
"packageManager": "pnpm",
"analytics": false
"analytics": false,
"cache": {
"enabled": false
}
},
"newProjectRoot": "projects",
"projects": {
Expand Down
4 changes: 2 additions & 2 deletions examples/angular/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@angular/platform-browser": "^17.1.3",
"@angular/platform-browser-dynamic": "^17.1.3",
"@angular/router": "^17.1.3",
"@tanstack/angular-query-experimental": "^5.22.2",
"@tanstack/angular-query-experimental": "^5.24.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.3"
Expand All @@ -26,7 +26,7 @@
"@angular-devkit/build-angular": "^17.1.3",
"@angular/cli": "^17.1.3",
"@angular/compiler-cli": "^17.1.3",
"@tanstack/angular-query-devtools-experimental": "^5.24.0",
"@tanstack/angular-query-devtools-experimental": "^5.24.1",
"typescript": "5.2.2"
},
"overrides": {
Expand Down
4 changes: 2 additions & 2 deletions examples/angular/simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

To run this example:

- `npm install` or `yarn` or `pnpm i`
- `npm run start` or `yarn start` or `pnpm start`
- `npm install` or `yarn` or `pnpm i` or `bun i`
- `npm run start` or `yarn start` or `pnpm start` or `bun start`
5 changes: 4 additions & 1 deletion examples/angular/simple/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": 1,
"cli": {
"packageManager": "pnpm",
"analytics": false
"analytics": false,
"cache": {
"enabled": false
}
},
"newProjectRoot": "projects",
"projects": {
Expand Down
4 changes: 2 additions & 2 deletions examples/angular/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@angular/platform-browser": "^17.1.3",
"@angular/platform-browser-dynamic": "^17.1.3",
"@angular/router": "^17.1.3",
"@tanstack/angular-query-experimental": "^5.22.2",
"@tanstack/angular-query-experimental": "^5.24.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.2",
"zone.js": "^0.14.3"
Expand All @@ -26,7 +26,7 @@
"@angular-devkit/build-angular": "^17.1.3",
"@angular/cli": "^17.1.3",
"@angular/compiler-cli": "^17.1.3",
"@tanstack/angular-query-devtools-experimental": "^5.24.0",
"@tanstack/angular-query-devtools-experimental": "^5.24.1",
"typescript": "5.2.2"
},
"overrides": {
Expand Down
4 changes: 2 additions & 2 deletions examples/react/algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dependencies": {
"@algolia/client-search": "4.22.1",
"@algolia/transporter": "4.22.1",
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"algoliasearch": "4.22.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/react/auto-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"axios": "^1.6.7",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/react/basic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/query-sync-storage-persister": "^5.22.2",
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query-persist-client": "^5.22.2",
"@tanstack/query-sync-storage-persister": "^5.24.1",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"@tanstack/react-query-persist-client": "^5.24.1",
"axios": "^1.6.7",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"axios": "^1.6.7",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/react/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"axios": "^1.6.7",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
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
Expand Up @@ -7,8 +7,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"axios": "^1.6.7",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"axios": "^1.6.7",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/react/nextjs-suspense-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query-next-experimental": "^5.22.2",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"@tanstack/react-query-next-experimental": "^5.24.1",
"next": "^14.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"ky": "^1.2.0",
"next": "^14.0.0",
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 26eb0ee

Please sign in to comment.