Skip to content

Commit

Permalink
docs: get examples to point to rc branch
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Sep 25, 2023
1 parent 45055de commit 05bfd3e
Show file tree
Hide file tree
Showing 41 changed files with 420 additions and 249 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Hooks for fetching, caching and updating asynchronous data in React, Solid, Svel
<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%rc&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
</a><a href="https://bundlejs.com/?q=%40tanstack%2Freact-query%40rc&config=%7B%22esbuild%22%3A%7B%22external%22%3A%5B%22react%22%2C%22react-dom%22%5D%7D%7D&badge=" target="\_parent">
<img alt="" src="https://deno.bundlejs.com/?q=@tanstack/react-query@rc&config={%22esbuild%22:{%22external%22:[%22react%22,%22react-dom%22]}}&badge=detailed" />
</a><a href="#badge">
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
Expand Down
6 changes: 3 additions & 3 deletions examples/react/algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"dependencies": {
"@algolia/client-search": "4.17.1",
"@algolia/transporter": "4.17.1",
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"algoliasearch": "4.17.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.0.0-beta.0",
"@tanstack/eslint-plugin-query": "^5.0.0-rc.1",
"@types/react": "^18.2.4",
"@types/react-dom": "^18.2.4",
"@vitejs/plugin-react": "^4.0.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 @@ -4,8 +4,8 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"isomorphic-unfetch": "4.0.2",
"next": "^13.4.4",
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 @@ -12,8 +12,8 @@
"graphql-request": "^6.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0"
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.0.0",
Expand Down
10 changes: 5 additions & 5 deletions examples/react/basic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/query-sync-storage-persister": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query-persist-client": "^5.0.0-beta.0",
"@tanstack/query-sync-storage-persister": "^5.0.0-rc.1",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"@tanstack/react-query-persist-client": "^5.0.0-rc.1",
"axios": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.0.0-beta.0",
"@tanstack/eslint-plugin-query": "^5.0.0-rc.1",
"@types/react": "^18.2.4",
"@types/react-dom": "^18.2.4",
"@vitejs/plugin-react": "^4.0.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.0.0-beta.0",
"@tanstack/eslint-plugin-query": "^5.0.0-rc.1",
"@vitejs/plugin-react": "^4.0.0",
"vite": "^4.4.4"
},
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.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"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 @@ -4,8 +4,8 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"isomorphic-unfetch": "4.0.2",
"next": "^13.4.4",
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 @@ -4,8 +4,8 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"isomorphic-unfetch": "4.0.2",
"next": "^13.4.4",
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 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query-next-experimental": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"@tanstack/react-query-next-experimental": "^5.0.0-rc.1",
"next": "^13.4.4",
"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 @@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"ky": "^0.33.3",
"ky-universal": "^0.11.0",
"next": "^13.4.4",
Expand Down
8 changes: 4 additions & 4 deletions examples/react/offline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/query-sync-storage-persister": "^5.0.0-beta.0",
"@tanstack/query-sync-storage-persister": "^5.0.0-rc.1",
"@tanstack/react-location": "^3.7.0",
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query-persist-client": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"@tanstack/react-query-persist-client": "^5.0.0-rc.1",
"ky": "^0.33.3",
"msw": "^0.39.2",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/optimistic-updates-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "pages/index.tsx",
"license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"isomorphic-unfetch": "4.0.2",
"next": "^13.4.4",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"isomorphic-unfetch": "4.0.2",
"next": "^13.4.4",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/playground/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.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/react/prefetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"isomorphic-unfetch": "4.0.2",
"next": "^13.4.4",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@react-native-community/netinfo": "^9.3.7",
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.16",
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"expo": "^48.0.17",
"expo-constants": "^14.2.1",
"expo-status-bar": "^1.4.4",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/react-router/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.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/rick-morty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.13.2",
"@mui/styles": "^5.13.2",
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router": "^6.11.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/simple/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.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/react/star-wars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.13.2",
"@mui/styles": "^5.13.2",
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router": "^6.11.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/suspense/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"main": "src/index.jsx",
"dependencies": {
"@tanstack/react-query": "^5.0.0-beta.0",
"@tanstack/react-query-devtools": "^5.0.0-beta.0",
"@tanstack/react-query": "^5.0.0-rc.1",
"@tanstack/react-query-devtools": "^5.0.0-rc.1",
"axios": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/basic-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"license": "MIT",
"dependencies": {
"@tanstack/solid-query": "^5.0.0-beta.0",
"@tanstack/solid-query": "^5.0.0-rc.1",
"graphql": "^16.6.0",
"graphql-request": "^6.1.0",
"solid-js": "^1.7.8"
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/basic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"license": "MIT",
"dependencies": {
"@tanstack/solid-query": "^5.0.0-beta.0",
"@tanstack/solid-query": "^5.0.0-rc.1",
"solid-js": "^1.7.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/default-query-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"license": "MIT",
"dependencies": {
"@tanstack/solid-query": "^5.0.0-beta.0",
"@tanstack/solid-query": "^5.0.0-rc.1",
"solid-js": "^1.7.8"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/solid/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"license": "MIT",
"dependencies": {
"@tanstack/solid-query": "^5.0.0-beta.0",
"@tanstack/solid-query": "^5.0.0-rc.1",
"solid-js": "^1.7.8"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.0.0-beta.0",
"@tanstack/eslint-plugin-query": "^5.0.0-rc.1",
"typescript": "^5.0.4",
"vite": "^4.4.4",
"vite-plugin-solid": "^2.7.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/solid-start-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@solidjs/meta": "^0.28.2",
"@solidjs/router": "^0.7.0",
"@tanstack/solid-query": "^5.0.0-beta.0",
"@tanstack/solid-query": "^5.0.0-rc.1",
"solid-js": "^1.7.8",
"solid-start": "^0.2.23",
"undici": "^5.22.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/auto-refetching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.0.0-beta.0",
"@tanstack/svelte-query-devtools": "^5.0.0-beta.0"
"@tanstack/svelte-query": "^5.0.0-rc.1",
"@tanstack/svelte-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.0.0-beta.0",
"@tanstack/svelte-query-devtools": "^5.0.0-beta.0"
"@tanstack/svelte-query": "^5.0.0-rc.1",
"@tanstack/svelte-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.0.0-beta.0",
"@tanstack/svelte-query-devtools": "^5.0.0-beta.0"
"@tanstack/svelte-query": "^5.0.0-rc.1",
"@tanstack/svelte-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/optimistic-updates-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.0.0-beta.0",
"@tanstack/svelte-query-devtools": "^5.0.0-beta.0"
"@tanstack/svelte-query": "^5.0.0-rc.1",
"@tanstack/svelte-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.0.0-beta.0",
"@tanstack/svelte-query-devtools": "^5.0.0-beta.0"
"@tanstack/svelte-query": "^5.0.0-rc.1",
"@tanstack/svelte-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.0.0-beta.0",
"@tanstack/svelte-query-devtools": "^5.0.0-beta.0"
"@tanstack/svelte-query": "^5.0.0-rc.1",
"@tanstack/svelte-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/svelte/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.0.0-beta.0",
"@tanstack/svelte-query-devtools": "^5.0.0-beta.0"
"@tanstack/svelte-query": "^5.0.0-rc.1",
"@tanstack/svelte-query-devtools": "^5.0.0-rc.1"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
Expand Down
Loading

0 comments on commit 05bfd3e

Please sign in to comment.