@tanstack/react-query 5.0.0-alpha.35 → 5.0.0-alpha.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/QueryClientProvider.d.ts +1 -1
- package/build/lib/QueryClientProvider.d.ts.map +1 -1
- package/build/lib/__tests__/utils.d.ts +4 -4
- package/build/lib/__tests__/utils.d.ts.map +1 -1
- package/build/lib/suspense.d.ts +1 -4
- package/build/lib/suspense.d.ts.map +1 -1
- package/build/lib/suspense.esm.js.map +1 -1
- package/build/lib/suspense.js.map +1 -1
- package/build/lib/suspense.mjs.map +1 -1
- package/build/lib/types.d.ts +10 -10
- package/build/lib/types.d.ts.map +1 -1
- package/build/lib/useMutationState.d.ts +1 -1
- package/build/lib/useMutationState.d.ts.map +1 -1
- package/build/lib/useQueries.d.ts +6 -6
- package/build/lib/useQueries.d.ts.map +1 -1
- package/build/lib/useQuery.d.ts +2 -2
- package/build/lib/useQuery.d.ts.map +1 -1
- package/build/umd/index.development.js +2 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +3 -3
- package/src/suspense.ts +6 -4
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/default-import.input.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/default-import.output.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/named-import.input.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/named-import.output.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/namespaced-import.input.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/namespaced-import.output.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/parameter-is-identifier.input.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/parameter-is-identifier.output.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/parameter-is-object-expression.input.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/parameter-is-object-expression.output.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/replace-import-specifier.input.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/replace-import-specifier.output.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/type-arguments.input.tsx +0 -0
- /package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/type-arguments.output.tsx +0 -0
- /package/build/codemods/{v4/__tests__ → __tests__}/key-transformation.test.js +0 -0
- /package/build/codemods/{v4/__tests__ → __tests__}/replace-import-specifier.test.js +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/__testfixtures__/default-import.input.tsx +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/__testfixtures__/default-import.output.tsx +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/__tests__/remove-overloads.test.js +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/remove-overloads.js +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/transformers/filter-aware-usage-transformer.js +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/transformers/query-fn-aware-usage-transformer.js +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/utils/index.js +0 -0
- /package/build/codemods/{v5/remove-overloads → remove-overloads}/utils/unknown-usage-error.js +0 -0
- /package/build/codemods/{utils → src/utils}/index.js +0 -0
- /package/build/codemods/{v4 → src/v4}/key-transformation.js +0 -0
- /package/build/codemods/{v4 → src/v4}/replace-import-specifier.js +0 -0
- /package/build/codemods/{utils/transformers → transformers}/query-cache-transformer.js +0 -0
- /package/build/codemods/{utils/transformers → transformers}/query-client-transformer.js +0 -0
- /package/build/codemods/{utils/transformers → transformers}/use-query-like-transformer.js +0 -0
- /package/build/codemods/{v4/utils → utils}/replacers/key-replacer.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.38",
|
|
4
4
|
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-error-boundary": "^3.1.4"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@tanstack/query-core": "5.0.0-alpha.
|
|
42
|
+
"@tanstack/query-core": "5.0.0-alpha.38"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^18.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"test:types": "tsc",
|
|
61
61
|
"test:lib": "vitest run --coverage",
|
|
62
62
|
"test:lib:dev": "pnpm run test:lib --watch",
|
|
63
|
-
"build": "
|
|
63
|
+
"build": "cpy ../codemods/src/**/* ./build/codemods",
|
|
64
64
|
"build:types": "tsc --build"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/suspense.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
DefaultedQueryObserverOptions,
|
|
3
|
+
QueryObserverResult,
|
|
4
|
+
QueryKey,
|
|
5
|
+
QueryObserver,
|
|
6
|
+
} from '@tanstack/query-core'
|
|
3
7
|
import type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'
|
|
4
|
-
import type { QueryObserverResult } from '@tanstack/query-core'
|
|
5
|
-
import type { QueryKey } from '@tanstack/query-core'
|
|
6
8
|
|
|
7
9
|
export const ensureStaleTime = (
|
|
8
10
|
defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any>,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/namespaced-import.input.tsx
RENAMED
|
File without changes
|
/package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/namespaced-import.output.tsx
RENAMED
|
File without changes
|
/package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/parameter-is-identifier.input.tsx
RENAMED
|
File without changes
|
/package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/parameter-is-identifier.output.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/replace-import-specifier.input.tsx
RENAMED
|
File without changes
|
/package/build/codemods/{v4/__testfixtures__ → __testfixtures__}/replace-import-specifier.output.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/codemods/{v5/remove-overloads → remove-overloads}/__tests__/remove-overloads.test.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/codemods/{v5/remove-overloads → remove-overloads}/utils/unknown-usage-error.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|