@tanstack/solid-query 5.90.23 → 5.90.25
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/_tsup-dts-rollup.d.cts +801 -0
- package/build/_tsup-dts-rollup.d.ts +801 -0
- package/build/dev.cjs +5 -0
- package/build/dev.d.cts +200 -0
- package/build/dev.d.ts +200 -0
- package/build/dev.js +1 -1
- package/build/index.cjs +5 -0
- package/build/index.d.cts +200 -258
- package/build/index.d.ts +200 -258
- package/build/index.js +1 -1
- package/package.json +4 -5
- package/src/index.ts +24 -52
package/src/index.ts
CHANGED
|
@@ -5,23 +5,6 @@ import { useInfiniteQuery } from './useInfiniteQuery'
|
|
|
5
5
|
import { useMutation } from './useMutation'
|
|
6
6
|
import { useQueries } from './useQueries'
|
|
7
7
|
|
|
8
|
-
import type {
|
|
9
|
-
DefinedUseBaseQueryResult,
|
|
10
|
-
DefinedUseInfiniteQueryResult,
|
|
11
|
-
DefinedUseQueryResult,
|
|
12
|
-
UseBaseMutationResult,
|
|
13
|
-
UseBaseQueryOptions,
|
|
14
|
-
UseBaseQueryResult,
|
|
15
|
-
UseInfiniteQueryOptions,
|
|
16
|
-
UseInfiniteQueryResult,
|
|
17
|
-
UseMutateAsyncFunction,
|
|
18
|
-
UseMutateFunction,
|
|
19
|
-
UseMutationOptions,
|
|
20
|
-
UseMutationResult,
|
|
21
|
-
UseQueryOptions,
|
|
22
|
-
UseQueryResult,
|
|
23
|
-
} from './types'
|
|
24
|
-
|
|
25
8
|
// Re-export core
|
|
26
9
|
export * from '@tanstack/query-core'
|
|
27
10
|
|
|
@@ -46,38 +29,23 @@ export type {
|
|
|
46
29
|
UseMutationResult,
|
|
47
30
|
UseQueryOptions,
|
|
48
31
|
UseQueryResult,
|
|
32
|
+
// Aliases (create* and use* are both supported)
|
|
33
|
+
UseBaseQueryOptions as CreateBaseQueryOptions,
|
|
34
|
+
UseBaseQueryResult as CreateBaseQueryResult,
|
|
35
|
+
UseInfiniteQueryOptions as CreateInfiniteQueryOptions,
|
|
36
|
+
UseInfiniteQueryResult as CreateInfiniteQueryResult,
|
|
37
|
+
UseMutateAsyncFunction as CreateMutateAsyncFunction,
|
|
38
|
+
UseMutateFunction as CreateMutateFunction,
|
|
39
|
+
UseMutationOptions as CreateMutationOptions,
|
|
40
|
+
UseMutationResult as CreateMutationResult,
|
|
41
|
+
UseBaseMutationResult as CreateBaseMutationResult,
|
|
42
|
+
UseQueryOptions as CreateQueryOptions,
|
|
43
|
+
UseQueryResult as CreateQueryResult,
|
|
44
|
+
DefinedUseBaseQueryResult as DefinedCreateBaseQueryResult,
|
|
45
|
+
DefinedUseInfiniteQueryResult as DefinedCreateInfiniteQueryResult,
|
|
46
|
+
DefinedUseQueryResult as DefinedCreateQueryResult,
|
|
49
47
|
} from './types'
|
|
50
48
|
|
|
51
|
-
// Compatibility types (deprecated)
|
|
52
|
-
/** @deprecated Use UseQueryOptions instead */
|
|
53
|
-
export type CreateQueryOptions = UseQueryOptions
|
|
54
|
-
/** @deprecated Use UseBaseQueryResult instead */
|
|
55
|
-
export type CreateBaseQueryResult = UseBaseQueryResult
|
|
56
|
-
/** @deprecated Use UseQueryResult instead */
|
|
57
|
-
export type CreateQueryResult = UseQueryResult
|
|
58
|
-
/** @deprecated Use DefinedUseBaseQueryResult instead */
|
|
59
|
-
export type DefinedCreateBaseQueryResult = DefinedUseBaseQueryResult
|
|
60
|
-
/** @deprecated Use DefinedUseQueryResult instead */
|
|
61
|
-
export type DefinedCreateQueryResult = DefinedUseQueryResult
|
|
62
|
-
/** @deprecated Use UseInfiniteQueryOptions instead */
|
|
63
|
-
export type CreateInfiniteQueryOptions = UseInfiniteQueryOptions
|
|
64
|
-
/** @deprecated Use UseInfiniteQueryResult instead */
|
|
65
|
-
export type CreateInfiniteQueryResult = UseInfiniteQueryResult
|
|
66
|
-
/** @deprecated Use DefinedUseInfiniteQueryResult instead */
|
|
67
|
-
export type DefinedCreateInfiniteQueryResult = DefinedUseInfiniteQueryResult
|
|
68
|
-
/** @deprecated Use UseMutationOptions instead */
|
|
69
|
-
export type CreateMutationOptions = UseMutationOptions
|
|
70
|
-
/** @deprecated Use UseMutateFunction instead */
|
|
71
|
-
export type CreateMutateFunction = UseMutateFunction
|
|
72
|
-
/** @deprecated Use UseMutateAsyncFunction instead */
|
|
73
|
-
export type CreateMutateAsyncFunction = UseMutateAsyncFunction
|
|
74
|
-
/** @deprecated Use UseBaseMutationResult instead */
|
|
75
|
-
export type CreateBaseMutationResult = UseBaseMutationResult
|
|
76
|
-
/** @deprecated Use UseMutationResult instead */
|
|
77
|
-
export type CreateMutationResult = UseMutationResult
|
|
78
|
-
/** @deprecated Use UseBaseQueryOptions instead */
|
|
79
|
-
export type CreateBaseQueryOptions = UseBaseQueryOptions
|
|
80
|
-
|
|
81
49
|
export { QueryClient } from './QueryClient'
|
|
82
50
|
export type {
|
|
83
51
|
QueryObserverOptions,
|
|
@@ -86,7 +54,6 @@ export type {
|
|
|
86
54
|
InfiniteQueryObserverOptions,
|
|
87
55
|
} from './QueryClient'
|
|
88
56
|
export { useQuery } from './useQuery'
|
|
89
|
-
/** @deprecated Use useQuery instead */
|
|
90
57
|
export const createQuery = useQuery
|
|
91
58
|
export { queryOptions } from './queryOptions'
|
|
92
59
|
export type {
|
|
@@ -97,11 +64,12 @@ export {
|
|
|
97
64
|
QueryClientContext,
|
|
98
65
|
QueryClientProvider,
|
|
99
66
|
useQueryClient,
|
|
67
|
+
useQueryClient as createQueryClient,
|
|
100
68
|
} from './QueryClientProvider'
|
|
101
69
|
export type { QueryClientProviderProps } from './QueryClientProvider'
|
|
102
70
|
export { useIsFetching } from './useIsFetching'
|
|
71
|
+
export { useIsFetching as createIsFetching } from './useIsFetching'
|
|
103
72
|
export { useInfiniteQuery }
|
|
104
|
-
/** @deprecated Use useInfiniteQuery instead */
|
|
105
73
|
export const createInfiniteQuery = useInfiniteQuery
|
|
106
74
|
export { infiniteQueryOptions } from './infiniteQueryOptions'
|
|
107
75
|
export type {
|
|
@@ -109,11 +77,15 @@ export type {
|
|
|
109
77
|
UndefinedInitialDataInfiniteOptions,
|
|
110
78
|
} from './infiniteQueryOptions'
|
|
111
79
|
export { useMutation } from './useMutation'
|
|
112
|
-
/** @deprecated Use useMutation instead */
|
|
113
80
|
export const createMutation = useMutation
|
|
114
81
|
export { useIsMutating } from './useIsMutating'
|
|
82
|
+
export { useIsMutating as createIsMutating } from './useIsMutating'
|
|
115
83
|
export { useMutationState } from './useMutationState'
|
|
84
|
+
export { useMutationState as createMutationState } from './useMutationState'
|
|
116
85
|
export { useQueries } from './useQueries'
|
|
117
|
-
/** @deprecated Use useQueries instead */
|
|
118
86
|
export const createQueries = useQueries
|
|
119
|
-
export {
|
|
87
|
+
export {
|
|
88
|
+
useIsRestoring,
|
|
89
|
+
useIsRestoring as createIsRestoring,
|
|
90
|
+
IsRestoringProvider,
|
|
91
|
+
} from './isRestoring'
|