Skip to content

Commit 1f74575

Browse files
authored
docs: examples to beta (#5772)
* docs: mention beta * docs: make example use beta.0 * docs: examples to beta
1 parent 015abed commit 1f74575

File tree

44 files changed

+227
-179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+227
-179
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Hooks for fetching, caching and updating asynchronous data in React, Solid, Svel
1212
<img src="https://github.com/TanStack/query/workflows/react-query%20tests/badge.svg" />
1313
</a><a href="https://www.npmjs.com/package/@tanstack/query-core" target="\_parent">
1414
<img alt="" src="https://img.shields.io/npm/dm/@tanstack/query-core.svg" />
15-
</a><a href="https://bundlejs.com/?q=%40tanstack%2Freact-query%40alpha&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
16-
<img alt="" src="https://deno.bundlejs.com/?q=@tanstack/react-query@alpha&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" />
15+
</a><a href="https://bundlejs.com/?q=%40tanstack%2Freact-query%40beta&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
16+
<img alt="" src="https://deno.bundlejs.com/?q=@tanstack/react-query@beta&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" />
1717
</a><a href="#badge">
1818
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
1919
</a><a href="https://github.com/TanStack/query/discussions">

docs/react/installation.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ You can install React Query via [NPM](https://npmjs.com/),
77
or a good ol' `<script>` via
88
[ESM.sh](https://esm.sh/).
99

10-
> v5 is currently in alpha.
10+
> v5 is currently in beta. We don't anticipate any major API changes from here on out, but we do expect some minor changes and fixes. We encourage you to try it out and report any issues you find.
1111
1212
### NPM
1313

1414
```bash
15-
$ npm i @tanstack/react-query@alpha
15+
$ npm i @tanstack/react-query@beta
1616
# or
17-
$ pnpm add @tanstack/react-query@alpha
17+
$ pnpm add @tanstack/react-query@beta
1818
# or
19-
$ yarn add @tanstack/react-query@alpha
19+
$ yarn add @tanstack/react-query@beta
2020
```
2121

2222
React Query is compatible with React v18+ and works with ReactDOM and React Native.
@@ -31,7 +31,7 @@ If you're not using a module bundler or package manager, you can also use this l
3131
<script type="module">
3232
import React from 'https://esm.sh/react@18.2.0'
3333
import ReactDOM from 'https://esm.sh/react-dom@18.2.0'
34-
import { QueryClient } from 'https://esm.sh/@tanstack/react-query@alpha'
34+
import { QueryClient } from 'https://esm.sh/@tanstack/react-query@beta'
3535
</script>
3636
```
3737

@@ -57,9 +57,9 @@ opera >= 77
5757
It is recommended to also use our [ESLint Plugin Query](./eslint/eslint-plugin-query) to help you catch bugs and inconsistencies while you code. You can install it via:
5858

5959
```bash
60-
$ npm i -D @tanstack/eslint-plugin-query@alpha
60+
$ npm i -D @tanstack/eslint-plugin-query@beta
6161
# or
62-
$ pnpm add -D @tanstack/eslint-plugin-query@alpha
62+
$ pnpm add -D @tanstack/eslint-plugin-query@beta
6363
# or
64-
$ yarn add -D @tanstack/eslint-plugin-query@alpha
64+
$ yarn add -D @tanstack/eslint-plugin-query@beta
6565
```

docs/svelte/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ title: Installation
55

66
You can install Svelte Query via [NPM](https://npmjs.com).
77

8-
> v5 is currently in alpha.
8+
> v5 is currently in beta. We don't anticipate any major API changes from here on out, but we do expect some minor changes and fixes. We encourage you to try it out and report any issues you find.
99
1010
### NPM
1111

1212
```bash
13-
$ npm i @tanstack/svelte-query@alpha
13+
$ npm i @tanstack/svelte-query@beta
1414
# or
15-
$ pnpm add @tanstack/svelte-query@alpha
15+
$ pnpm add @tanstack/svelte-query@beta
1616
# or
17-
$ yarn add @tanstack/svelte-query@alpha
17+
$ yarn add @tanstack/svelte-query@beta
1818
```
1919

2020
> Wanna give it a spin before you download? Try out the [basic](/query/v4/docs/svelte/examples/svelte/basic) example!

docs/vue/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ title: Installation
55

66
You can install Vue Query via [NPM](https://npmjs.com).
77

8-
> v5 is currently in alpha.
8+
> v5 is currently in beta. We don't anticipate any major API changes from here on out, but we do expect some minor changes and fixes. We encourage you to try it out and report any issues you find.
99
1010
### NPM
1111

1212
```bash
13-
$ npm i @tanstack/vue-query@alpha
13+
$ npm i @tanstack/vue-query@beta
1414
# or
15-
$ pnpm add @tanstack/vue-query@alpha
15+
$ pnpm add @tanstack/vue-query@beta
1616
# or
17-
$ yarn add @tanstack/vue-query@alpha
17+
$ yarn add @tanstack/vue-query@beta
1818
```
1919

2020
> Wanna give it a spin before you download? Try out the [basic](../examples/vue/basic) example!

examples/react/algolia/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"dependencies": {
1111
"@algolia/client-search": "4.17.1",
1212
"@algolia/transporter": "4.17.1",
13-
"@tanstack/react-query": "^5.0.0-alpha.81",
14-
"@tanstack/react-query-devtools": "^5.0.0-alpha.81",
13+
"@tanstack/react-query": "^5.0.0-beta.0",
14+
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
1515
"algoliasearch": "4.17.1",
1616
"react": "^18.2.0",
1717
"react-dom": "^18.2.0"
1818
},
1919
"devDependencies": {
20-
"@tanstack/eslint-plugin-query": "^5.0.0-alpha.74",
20+
"@tanstack/eslint-plugin-query": "^5.0.0-beta.0",
2121
"@types/react": "^18.2.4",
2222
"@types/react-dom": "^18.2.4",
2323
"@vitejs/plugin-react": "^4.0.0",

examples/react/auto-refetching/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"main": "index.js",
55
"license": "MIT",
66
"dependencies": {
7-
"@tanstack/react-query": "^5.0.0-alpha.81",
8-
"@tanstack/react-query-devtools": "^5.0.0-alpha.81",
7+
"@tanstack/react-query": "^5.0.0-beta.0",
8+
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
99
"axios": "^1.4.0",
1010
"isomorphic-unfetch": "4.0.2",
1111
"next": "^13.4.4",

examples/react/basic-graphql-request/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"graphql-request": "^6.1.0",
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0",
15-
"@tanstack/react-query": "^5.0.0-alpha.81",
16-
"@tanstack/react-query-devtools": "^5.0.0-alpha.81"
15+
"@tanstack/react-query": "^5.0.0-beta.0",
16+
"@tanstack/react-query-devtools": "^5.0.0-beta.0"
1717
},
1818
"devDependencies": {
1919
"@vitejs/plugin-react": "^4.0.0",

examples/react/basic-typescript/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@tanstack/query-sync-storage-persister": "^5.0.0-alpha.81",
12-
"@tanstack/react-query": "^5.0.0-alpha.81",
13-
"@tanstack/react-query-devtools": "^5.0.0-alpha.81",
14-
"@tanstack/react-query-persist-client": "^5.0.0-alpha.81",
11+
"@tanstack/query-sync-storage-persister": "^5.0.0-beta.0",
12+
"@tanstack/react-query": "^5.0.0-beta.0",
13+
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
14+
"@tanstack/react-query-persist-client": "^5.0.0-beta.0",
1515
"axios": "^1.4.0",
1616
"react": "^18.2.0",
1717
"react-dom": "^18.2.0"
1818
},
1919
"devDependencies": {
20-
"@tanstack/eslint-plugin-query": "^5.0.0-alpha.74",
20+
"@tanstack/eslint-plugin-query": "^5.0.0-beta.0",
2121
"@types/react": "^18.2.4",
2222
"@types/react-dom": "^18.2.4",
2323
"@vitejs/plugin-react": "^4.0.0",

examples/react/basic/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@tanstack/react-query": "^5.0.0-alpha.81",
12-
"@tanstack/react-query-devtools": "^5.0.0-alpha.81",
11+
"@tanstack/react-query": "^5.0.0-beta.0",
12+
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
1313
"axios": "^1.4.0",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
1616
},
1717
"devDependencies": {
18-
"@tanstack/eslint-plugin-query": "^5.0.0-alpha.74",
18+
"@tanstack/eslint-plugin-query": "^5.0.0-beta.0",
1919
"@vitejs/plugin-react": "^4.0.0",
2020
"vite": "^4.4.4"
2121
},

examples/react/default-query-function/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@tanstack/react-query": "^5.0.0-alpha.81",
12-
"@tanstack/react-query-devtools": "^5.0.0-alpha.81",
11+
"@tanstack/react-query": "^5.0.0-beta.0",
12+
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
1313
"axios": "^1.4.0",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"

0 commit comments

Comments
 (0)