Skip to content

Commit 27b31f3

Browse files
authored
feat: rc release (#6058)
2 parents 22b2860 + 3e1f3ce commit 27b31f3

File tree

713 files changed

+44673
-29934
lines changed

Some content is hidden

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

713 files changed

+44673
-29934
lines changed

.browserslistrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.codesandbox/ci.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"installCommand": "install:csb",
3+
"buildCommand": "build:all",
34
"sandboxes": [
45
"/examples/react/basic-typescript",
56
"/examples/solid/basic-typescript",

.eslintrc.cjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// @ts-check
2+
3+
/** @type {import('eslint').Linter.Config} */
14
const config = {
25
root: true,
36
parser: '@typescript-eslint/parser',
@@ -15,7 +18,7 @@ const config = {
1518
},
1619
parserOptions: {
1720
tsconfigRootDir: __dirname,
18-
project: './tsconfig.base.json',
21+
project: './tsconfig.json',
1922
sourceType: 'module',
2023
ecmaVersion: 2020,
2124
},
@@ -31,6 +34,7 @@ const config = {
3134
},
3235
},
3336
rules: {
37+
'@typescript-eslint/array-type': ['error', { default: 'generic', readonly: 'generic' }],
3438
'@typescript-eslint/ban-types': 'off',
3539
'@typescript-eslint/ban-ts-comment': 'off',
3640
'@typescript-eslint/consistent-type-imports': [
@@ -42,6 +46,7 @@ const config = {
4246
'@typescript-eslint/no-explicit-any': 'off',
4347
'@typescript-eslint/no-non-null-assertion': 'off',
4448
'@typescript-eslint/no-unnecessary-condition': 'error',
49+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
4550
'@typescript-eslint/no-unused-vars': 'off',
4651
'@typescript-eslint/no-inferrable-types': [
4752
'error',

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Run Tests
4545
uses: nick-fields/retry@v2.8.3
4646
with:
47-
command: pnpm run test:ci --base=${{ github.event.before }}
47+
command: pnpm run test:ci
4848
timeout_minutes: 10
4949
max_attempts: 3
5050
- name: Publish

.github/workflows/pr.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Get appropriate base and head commits for `nx affected` commands
3636
uses: nrwl/nx-set-shas@v3
3737
with:
38-
main-branch-name: 'main'
38+
main-branch-name: 'beta'
3939
- run: |
4040
echo "BASE: ${{ env.NX_BASE }}"
4141
echo "HEAD: ${{ env.NX_HEAD }}"
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
timeout_minutes: 5
4848
max_attempts: 3
49-
command: npx nx affected --targets=test:eslint,test:lib,test:types,test:build
49+
command: npx nx affected --targets=test:eslint,test:lib,test:types,test:build,test:bundle
5050
- name: Stop Agents
5151
run: npx nx-cloud stop-all-agents
5252
- name: Upload coverage to Codecov
@@ -97,33 +97,3 @@ jobs:
9797
run: pnpm --filter "./packages/**" --filter query --prefer-offline install
9898
- name: Run prettier
9999
run: pnpm run test:format
100-
test-react-17:
101-
name: 'Test React 17'
102-
runs-on: ubuntu-latest
103-
steps:
104-
- uses: actions/checkout@v3
105-
with:
106-
fetch-depth: 0
107-
ref: ${{ github.head_ref }}
108-
repository: ${{github.event.pull_request.head.repo.full_name}}
109-
- uses: pnpm/action-setup@v2.2.4
110-
with:
111-
version: 8
112-
- uses: actions/setup-node@v3
113-
with:
114-
node-version-file: .nvmrc
115-
cache: pnpm
116-
cache-dependency-path: pnpm-lock.yaml
117-
- name: Install dependencies
118-
run: pnpm --filter "./packages/**" --filter query --prefer-offline install
119-
- name: Derive appropriate SHAs for base and head for `nx affected` commands
120-
uses: nrwl/nx-set-shas@v2
121-
- name: Run Tests
122-
uses: nick-fields/retry@v2.8.3
123-
with:
124-
timeout_minutes: 5
125-
max_attempts: 3
126-
command: npx nx affected --targets=test:lib --base=${{ github.event.pull_request.base.sha }}
127-
env:
128-
NX_CLOUD_DISTRIBUTED_EXECUTION: false
129-
REACTJS_VERSION: 17

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.19.0
1+
v18.16.0

README.md

Lines changed: 3 additions & 3 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://bundlephobia.com/package/@tanstack/react-query@latest" target="\_parent">
16-
<img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-query" />
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">
@@ -51,4 +51,4 @@ Still on **React Query v3**? No problem! Check out the v3 docs here: https://tan
5151

5252
### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
5353

54-
<!-- Use the force, Luke -->
54+
<!-- Use the force, Luke! -->

babel.config.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

docs/config.json

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@
164164
"label": "Suspense",
165165
"to": "react/guides/suspense"
166166
},
167-
{
168-
"label": "Custom Logger",
169-
"to": "react/guides/custom-logger"
170-
},
171167
{
172168
"label": "Testing",
173169
"to": "react/guides/testing"
@@ -177,12 +173,16 @@
177173
"to": "react/guides/does-this-replace-client-state"
178174
},
179175
{
180-
"label": "Migrating to React Query 3",
176+
"label": "Migrating to v3",
181177
"to": "react/guides/migrating-to-react-query-3"
182178
},
183179
{
184-
"label": "Migrating to React Query 4",
180+
"label": "Migrating to v4",
185181
"to": "react/guides/migrating-to-react-query-4"
182+
},
183+
{
184+
"label": "Migrating to v5",
185+
"to": "react/guides/migrating-to-v5"
186186
}
187187
]
188188
},
@@ -246,6 +246,10 @@
246246
"label": "Load-More & Infinite Scroll",
247247
"to": "react/examples/react/load-more-infinite-scroll"
248248
},
249+
{
250+
"label": "Infinite query with Max pages",
251+
"to": "react/examples/react/infinite-query-with-max-pages"
252+
},
249253
{
250254
"label": "Suspense",
251255
"to": "react/examples/react/suspense"
@@ -274,6 +278,10 @@
274278
"label": "Next.js",
275279
"to": "react/examples/react/nextjs"
276280
},
281+
{
282+
"label": "Next.js app with streaming",
283+
"to": "react/examples/react/nextjs-suspense-streaming"
284+
},
277285
{
278286
"label": "React Native",
279287
"to": "react/examples/react/react-native"
@@ -302,10 +310,6 @@
302310
{
303311
"label": "Exhaustive Deps",
304312
"to": "react/eslint/exhaustive-deps"
305-
},
306-
{
307-
"label": "Prefer object syntax",
308-
"to": "react/eslint/prefer-query-object-syntax"
309313
}
310314
]
311315
},
@@ -327,6 +331,10 @@
327331
{
328332
"label": "broadcastQueryClient (Experimental)",
329333
"to": "react/plugins/broadcastQueryClient"
334+
},
335+
{
336+
"label": "createPersister (Experimental)",
337+
"to": "react/plugins/createPersister"
330338
}
331339
]
332340
},
@@ -357,6 +365,10 @@
357365
"label": "useIsMutating",
358366
"to": "react/reference/useIsMutating"
359367
},
368+
{
369+
"label": "useMutationState",
370+
"to": "react/reference/useMutationState"
371+
},
360372
{
361373
"label": "QueryClient",
362374
"to": "react/reference/QueryClient"
@@ -575,8 +587,8 @@
575587
"to": "vue/guides/suspense"
576588
},
577589
{
578-
"label": "Custom Logger",
579-
"to": "vue/guides/custom-logger"
590+
"label": "Testing",
591+
"to": "vue/guides/testing"
580592
},
581593
{
582594
"label": "Custom Client",
@@ -585,6 +597,10 @@
585597
{
586598
"label": "Does this replace [Vuex, Pinia]?",
587599
"to": "vue/guides/does-this-replace-client-state"
600+
},
601+
{
602+
"label": "Migrating to v5",
603+
"to": "vue/guides/migrating-to-v5"
588604
}
589605
]
590606
},

docs/react/adapters/react-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Example() {
1616

1717
return (
1818
<div>
19-
{query.isLoading
19+
{query.isPending
2020
? 'Loading...'
2121
: query.isError
2222
? 'Error!'

0 commit comments

Comments
 (0)