@tanstack/solid-query 5.90.23 → 5.90.24
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 +800 -0
- package/build/_tsup-dts-rollup.d.ts +800 -0
- package/build/dev.d.cts +195 -0
- package/build/dev.d.ts +195 -0
- package/build/index.d.cts +195 -258
- package/build/index.d.ts +195 -258
- package/package.json +4 -5
- package/src/index.ts +29 -47
package/build/index.d.ts
CHANGED
|
@@ -1,258 +1,195 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
declare const QueryClientContext: solid_js.Context<(() => QueryClient) | undefined>;
|
|
197
|
-
declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
|
|
198
|
-
type QueryClientProviderProps = {
|
|
199
|
-
client: QueryClient;
|
|
200
|
-
children?: JSX.Element;
|
|
201
|
-
};
|
|
202
|
-
declare const QueryClientProvider: (props: QueryClientProviderProps) => JSX.Element;
|
|
203
|
-
|
|
204
|
-
declare function useIsFetching(filters?: Accessor<QueryFilters>, queryClient?: Accessor<QueryClient>): Accessor<number>;
|
|
205
|
-
|
|
206
|
-
declare function useIsMutating(filters?: Accessor<MutationFilters>, queryClient?: Accessor<QueryClient>): Accessor<number>;
|
|
207
|
-
|
|
208
|
-
type MutationStateOptions<TResult = MutationState> = {
|
|
209
|
-
filters?: MutationFilters;
|
|
210
|
-
select?: (mutation: Mutation) => TResult;
|
|
211
|
-
};
|
|
212
|
-
declare function useMutationState<TResult = MutationState>(options?: Accessor<MutationStateOptions<TResult>>, queryClient?: Accessor<QueryClient>): Accessor<Array<TResult>>;
|
|
213
|
-
|
|
214
|
-
declare const useIsRestoring: () => Accessor<boolean>;
|
|
215
|
-
declare const IsRestoringProvider: solid_js.ContextProviderComponent<Accessor<boolean>>;
|
|
216
|
-
|
|
217
|
-
/** @deprecated Use UseQueryOptions instead */
|
|
218
|
-
type CreateQueryOptions = UseQueryOptions;
|
|
219
|
-
/** @deprecated Use UseBaseQueryResult instead */
|
|
220
|
-
type CreateBaseQueryResult = UseBaseQueryResult;
|
|
221
|
-
/** @deprecated Use UseQueryResult instead */
|
|
222
|
-
type CreateQueryResult = UseQueryResult;
|
|
223
|
-
/** @deprecated Use DefinedUseBaseQueryResult instead */
|
|
224
|
-
type DefinedCreateBaseQueryResult = DefinedUseBaseQueryResult;
|
|
225
|
-
/** @deprecated Use DefinedUseQueryResult instead */
|
|
226
|
-
type DefinedCreateQueryResult = DefinedUseQueryResult;
|
|
227
|
-
/** @deprecated Use UseInfiniteQueryOptions instead */
|
|
228
|
-
type CreateInfiniteQueryOptions = UseInfiniteQueryOptions;
|
|
229
|
-
/** @deprecated Use UseInfiniteQueryResult instead */
|
|
230
|
-
type CreateInfiniteQueryResult = UseInfiniteQueryResult;
|
|
231
|
-
/** @deprecated Use DefinedUseInfiniteQueryResult instead */
|
|
232
|
-
type DefinedCreateInfiniteQueryResult = DefinedUseInfiniteQueryResult;
|
|
233
|
-
/** @deprecated Use UseMutationOptions instead */
|
|
234
|
-
type CreateMutationOptions = UseMutationOptions;
|
|
235
|
-
/** @deprecated Use UseMutateFunction instead */
|
|
236
|
-
type CreateMutateFunction = UseMutateFunction;
|
|
237
|
-
/** @deprecated Use UseMutateAsyncFunction instead */
|
|
238
|
-
type CreateMutateAsyncFunction = UseMutateAsyncFunction;
|
|
239
|
-
/** @deprecated Use UseBaseMutationResult instead */
|
|
240
|
-
type CreateBaseMutationResult = UseBaseMutationResult;
|
|
241
|
-
/** @deprecated Use UseMutationResult instead */
|
|
242
|
-
type CreateMutationResult = UseMutationResult;
|
|
243
|
-
/** @deprecated Use UseBaseQueryOptions instead */
|
|
244
|
-
type CreateBaseQueryOptions = UseBaseQueryOptions;
|
|
245
|
-
|
|
246
|
-
/** @deprecated Use useQuery instead */
|
|
247
|
-
declare const createQuery: typeof useQuery;
|
|
248
|
-
|
|
249
|
-
/** @deprecated Use useInfiniteQuery instead */
|
|
250
|
-
declare const createInfiniteQuery: typeof useInfiniteQuery;
|
|
251
|
-
|
|
252
|
-
/** @deprecated Use useMutation instead */
|
|
253
|
-
declare const createMutation: typeof useMutation;
|
|
254
|
-
|
|
255
|
-
/** @deprecated Use useQueries instead */
|
|
256
|
-
declare const createQueries: typeof useQueries;
|
|
257
|
-
|
|
258
|
-
export { type CreateBaseMutationResult, type CreateBaseQueryOptions, type CreateBaseQueryResult, type CreateInfiniteQueryOptions, type CreateInfiniteQueryResult, type CreateMutateAsyncFunction, type CreateMutateFunction, type CreateMutationOptions, type CreateMutationResult, type CreateQueryOptions, type CreateQueryResult, type DefaultOptions, type DefinedCreateBaseQueryResult, type DefinedCreateInfiniteQueryResult, type DefinedCreateQueryResult, type DefinedInitialDataInfiniteOptions, type DefinedInitialDataOptions, type DefinedUseBaseQueryResult, type DefinedUseInfiniteQueryResult, type DefinedUseQueryResult, type InfiniteQueryObserverOptions, IsRestoringProvider, QueryClient, type QueryClientConfig, QueryClientContext, QueryClientProvider, type QueryClientProviderProps, type QueryObserverOptions, type SolidInfiniteQueryOptions, type SolidMutationOptions, type SolidQueryOptions, type UndefinedInitialDataInfiniteOptions, type UndefinedInitialDataOptions, type UseBaseMutationResult, type UseBaseQueryOptions, type UseBaseQueryResult, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutateAsyncFunction, type UseMutateFunction, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, createInfiniteQuery, createMutation, createQueries, createQuery, infiniteQueryOptions, queryOptions, useInfiniteQuery, useIsFetching, useIsMutating, useIsRestoring, useMutation, useMutationState, useQueries, useQuery, useQueryClient };
|
|
1
|
+
export { DefinedUseBaseQueryResult } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { DefinedUseInfiniteQueryResult } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { DefinedUseQueryResult } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { SolidInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { SolidMutationOptions } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { SolidQueryOptions } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { UseBaseMutationResult } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { UseBaseQueryOptions } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { UseBaseQueryResult } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { UseInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
11
|
+
export { UseInfiniteQueryResult } from './_tsup-dts-rollup.js';
|
|
12
|
+
export { UseMutateAsyncFunction } from './_tsup-dts-rollup.js';
|
|
13
|
+
export { UseMutateFunction } from './_tsup-dts-rollup.js';
|
|
14
|
+
export { UseMutationOptions } from './_tsup-dts-rollup.js';
|
|
15
|
+
export { UseMutationResult } from './_tsup-dts-rollup.js';
|
|
16
|
+
export { UseQueryOptions } from './_tsup-dts-rollup.js';
|
|
17
|
+
export { UseQueryResult } from './_tsup-dts-rollup.js';
|
|
18
|
+
export { CreateBaseQueryOptions } from './_tsup-dts-rollup.js';
|
|
19
|
+
export { CreateBaseQueryResult } from './_tsup-dts-rollup.js';
|
|
20
|
+
export { CreateInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
21
|
+
export { CreateInfiniteQueryResult } from './_tsup-dts-rollup.js';
|
|
22
|
+
export { CreateMutateAsyncFunction } from './_tsup-dts-rollup.js';
|
|
23
|
+
export { CreateMutateFunction } from './_tsup-dts-rollup.js';
|
|
24
|
+
export { CreateMutationOptions } from './_tsup-dts-rollup.js';
|
|
25
|
+
export { CreateMutationResult } from './_tsup-dts-rollup.js';
|
|
26
|
+
export { CreateBaseMutationResult } from './_tsup-dts-rollup.js';
|
|
27
|
+
export { CreateQueryOptions } from './_tsup-dts-rollup.js';
|
|
28
|
+
export { CreateQueryResult } from './_tsup-dts-rollup.js';
|
|
29
|
+
export { DefinedCreateBaseQueryResult } from './_tsup-dts-rollup.js';
|
|
30
|
+
export { DefinedCreateInfiniteQueryResult } from './_tsup-dts-rollup.js';
|
|
31
|
+
export { DefinedCreateQueryResult } from './_tsup-dts-rollup.js';
|
|
32
|
+
export { QueryClient_alias_1 as QueryClient } from './_tsup-dts-rollup.js';
|
|
33
|
+
export { QueryObserverOptions_alias_1 as QueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
34
|
+
export { DefaultOptions_alias_1 as DefaultOptions } from './_tsup-dts-rollup.js';
|
|
35
|
+
export { QueryClientConfig_alias_1 as QueryClientConfig } from './_tsup-dts-rollup.js';
|
|
36
|
+
export { InfiniteQueryObserverOptions_alias_1 as InfiniteQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
37
|
+
export { useQuery } from './_tsup-dts-rollup.js';
|
|
38
|
+
export { createQuery } from './_tsup-dts-rollup.js';
|
|
39
|
+
export { queryOptions } from './_tsup-dts-rollup.js';
|
|
40
|
+
export { DefinedInitialDataOptions } from './_tsup-dts-rollup.js';
|
|
41
|
+
export { UndefinedInitialDataOptions } from './_tsup-dts-rollup.js';
|
|
42
|
+
export { QueryClientContext_alias_1 as QueryClientContext } from './_tsup-dts-rollup.js';
|
|
43
|
+
export { QueryClientProvider_alias_1 as QueryClientProvider } from './_tsup-dts-rollup.js';
|
|
44
|
+
export { useQueryClient_alias_1 as useQueryClient } from './_tsup-dts-rollup.js';
|
|
45
|
+
export { QueryClientProviderProps_alias_1 as QueryClientProviderProps } from './_tsup-dts-rollup.js';
|
|
46
|
+
export { useIsFetching } from './_tsup-dts-rollup.js';
|
|
47
|
+
export { useInfiniteQuery } from './_tsup-dts-rollup.js';
|
|
48
|
+
export { createInfiniteQuery } from './_tsup-dts-rollup.js';
|
|
49
|
+
export { infiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
50
|
+
export { DefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
51
|
+
export { UndefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
52
|
+
export { useMutation } from './_tsup-dts-rollup.js';
|
|
53
|
+
export { createMutation } from './_tsup-dts-rollup.js';
|
|
54
|
+
export { useIsMutating } from './_tsup-dts-rollup.js';
|
|
55
|
+
export { useMutationState } from './_tsup-dts-rollup.js';
|
|
56
|
+
export { useQueries } from './_tsup-dts-rollup.js';
|
|
57
|
+
export { createQueries } from './_tsup-dts-rollup.js';
|
|
58
|
+
export { useIsRestoring } from './_tsup-dts-rollup.js';
|
|
59
|
+
export { IsRestoringProvider } from './_tsup-dts-rollup.js';
|
|
60
|
+
export { focusManager } from './_tsup-dts-rollup.js';
|
|
61
|
+
export { defaultShouldDehydrateMutation } from './_tsup-dts-rollup.js';
|
|
62
|
+
export { defaultShouldDehydrateQuery } from './_tsup-dts-rollup.js';
|
|
63
|
+
export { dehydrate } from './_tsup-dts-rollup.js';
|
|
64
|
+
export { hydrate } from './_tsup-dts-rollup.js';
|
|
65
|
+
export { InfiniteQueryObserver } from './_tsup-dts-rollup.js';
|
|
66
|
+
export { MutationCache } from './_tsup-dts-rollup.js';
|
|
67
|
+
export { MutationCacheNotifyEvent } from './_tsup-dts-rollup.js';
|
|
68
|
+
export { MutationObserver } from './_tsup-dts-rollup.js';
|
|
69
|
+
export { defaultScheduler } from './_tsup-dts-rollup.js';
|
|
70
|
+
export { notifyManager } from './_tsup-dts-rollup.js';
|
|
71
|
+
export { onlineManager } from './_tsup-dts-rollup.js';
|
|
72
|
+
export { QueriesObserver } from './_tsup-dts-rollup.js';
|
|
73
|
+
export { QueryCache } from './_tsup-dts-rollup.js';
|
|
74
|
+
export { QueryCacheNotifyEvent } from './_tsup-dts-rollup.js';
|
|
75
|
+
export { QueryObserver } from './_tsup-dts-rollup.js';
|
|
76
|
+
export { CancelledError } from './_tsup-dts-rollup.js';
|
|
77
|
+
export { isCancelledError } from './_tsup-dts-rollup.js';
|
|
78
|
+
export { timeoutManager } from './_tsup-dts-rollup.js';
|
|
79
|
+
export { ManagedTimerId } from './_tsup-dts-rollup.js';
|
|
80
|
+
export { TimeoutCallback } from './_tsup-dts-rollup.js';
|
|
81
|
+
export { TimeoutProvider } from './_tsup-dts-rollup.js';
|
|
82
|
+
export { hashKey } from './_tsup-dts-rollup.js';
|
|
83
|
+
export { isServer } from './_tsup-dts-rollup.js';
|
|
84
|
+
export { keepPreviousData } from './_tsup-dts-rollup.js';
|
|
85
|
+
export { matchMutation } from './_tsup-dts-rollup.js';
|
|
86
|
+
export { matchQuery } from './_tsup-dts-rollup.js';
|
|
87
|
+
export { noop } from './_tsup-dts-rollup.js';
|
|
88
|
+
export { partialMatchKey } from './_tsup-dts-rollup.js';
|
|
89
|
+
export { replaceEqualDeep } from './_tsup-dts-rollup.js';
|
|
90
|
+
export { shouldThrowError } from './_tsup-dts-rollup.js';
|
|
91
|
+
export { skipToken } from './_tsup-dts-rollup.js';
|
|
92
|
+
export { MutationFilters } from './_tsup-dts-rollup.js';
|
|
93
|
+
export { QueryFilters } from './_tsup-dts-rollup.js';
|
|
94
|
+
export { SkipToken } from './_tsup-dts-rollup.js';
|
|
95
|
+
export { Updater } from './_tsup-dts-rollup.js';
|
|
96
|
+
export { experimental_streamedQuery } from './_tsup-dts-rollup.js';
|
|
97
|
+
export { DehydratedState } from './_tsup-dts-rollup.js';
|
|
98
|
+
export { DehydrateOptions } from './_tsup-dts-rollup.js';
|
|
99
|
+
export { HydrateOptions } from './_tsup-dts-rollup.js';
|
|
100
|
+
export { Mutation } from './_tsup-dts-rollup.js';
|
|
101
|
+
export { MutationState } from './_tsup-dts-rollup.js';
|
|
102
|
+
export { QueriesObserverOptions } from './_tsup-dts-rollup.js';
|
|
103
|
+
export { Query } from './_tsup-dts-rollup.js';
|
|
104
|
+
export { QueryState } from './_tsup-dts-rollup.js';
|
|
105
|
+
export { NonUndefinedGuard } from './_tsup-dts-rollup.js';
|
|
106
|
+
export { DistributiveOmit } from './_tsup-dts-rollup.js';
|
|
107
|
+
export { OmitKeyof } from './_tsup-dts-rollup.js';
|
|
108
|
+
export { Override } from './_tsup-dts-rollup.js';
|
|
109
|
+
export { NoInfer } from './_tsup-dts-rollup.js';
|
|
110
|
+
export { Register } from './_tsup-dts-rollup.js';
|
|
111
|
+
export { DefaultError } from './_tsup-dts-rollup.js';
|
|
112
|
+
export { QueryKey } from './_tsup-dts-rollup.js';
|
|
113
|
+
export { dataTagSymbol } from './_tsup-dts-rollup.js';
|
|
114
|
+
export { dataTagErrorSymbol } from './_tsup-dts-rollup.js';
|
|
115
|
+
export { unsetMarker } from './_tsup-dts-rollup.js';
|
|
116
|
+
export { UnsetMarker } from './_tsup-dts-rollup.js';
|
|
117
|
+
export { AnyDataTag } from './_tsup-dts-rollup.js';
|
|
118
|
+
export { DataTag } from './_tsup-dts-rollup.js';
|
|
119
|
+
export { InferDataFromTag } from './_tsup-dts-rollup.js';
|
|
120
|
+
export { InferErrorFromTag } from './_tsup-dts-rollup.js';
|
|
121
|
+
export { QueryFunction } from './_tsup-dts-rollup.js';
|
|
122
|
+
export { StaleTime } from './_tsup-dts-rollup.js';
|
|
123
|
+
export { StaleTimeFunction } from './_tsup-dts-rollup.js';
|
|
124
|
+
export { Enabled } from './_tsup-dts-rollup.js';
|
|
125
|
+
export { QueryPersister } from './_tsup-dts-rollup.js';
|
|
126
|
+
export { QueryFunctionContext } from './_tsup-dts-rollup.js';
|
|
127
|
+
export { InitialDataFunction } from './_tsup-dts-rollup.js';
|
|
128
|
+
export { PlaceholderDataFunction } from './_tsup-dts-rollup.js';
|
|
129
|
+
export { QueriesPlaceholderDataFunction } from './_tsup-dts-rollup.js';
|
|
130
|
+
export { QueryKeyHashFunction } from './_tsup-dts-rollup.js';
|
|
131
|
+
export { GetPreviousPageParamFunction } from './_tsup-dts-rollup.js';
|
|
132
|
+
export { GetNextPageParamFunction } from './_tsup-dts-rollup.js';
|
|
133
|
+
export { InfiniteData } from './_tsup-dts-rollup.js';
|
|
134
|
+
export { QueryMeta } from './_tsup-dts-rollup.js';
|
|
135
|
+
export { NetworkMode } from './_tsup-dts-rollup.js';
|
|
136
|
+
export { NotifyOnChangeProps } from './_tsup-dts-rollup.js';
|
|
137
|
+
export { QueryOptions } from './_tsup-dts-rollup.js';
|
|
138
|
+
export { InitialPageParam } from './_tsup-dts-rollup.js';
|
|
139
|
+
export { InfiniteQueryPageParamsOptions } from './_tsup-dts-rollup.js';
|
|
140
|
+
export { ThrowOnError } from './_tsup-dts-rollup.js';
|
|
141
|
+
export { WithRequired } from './_tsup-dts-rollup.js';
|
|
142
|
+
export { DefaultedQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
143
|
+
export { DefaultedInfiniteQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
144
|
+
export { FetchQueryOptions } from './_tsup-dts-rollup.js';
|
|
145
|
+
export { EnsureQueryDataOptions } from './_tsup-dts-rollup.js';
|
|
146
|
+
export { EnsureInfiniteQueryDataOptions } from './_tsup-dts-rollup.js';
|
|
147
|
+
export { FetchInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
148
|
+
export { ResultOptions } from './_tsup-dts-rollup.js';
|
|
149
|
+
export { RefetchOptions } from './_tsup-dts-rollup.js';
|
|
150
|
+
export { InvalidateQueryFilters } from './_tsup-dts-rollup.js';
|
|
151
|
+
export { RefetchQueryFilters } from './_tsup-dts-rollup.js';
|
|
152
|
+
export { InvalidateOptions } from './_tsup-dts-rollup.js';
|
|
153
|
+
export { ResetOptions } from './_tsup-dts-rollup.js';
|
|
154
|
+
export { FetchNextPageOptions } from './_tsup-dts-rollup.js';
|
|
155
|
+
export { FetchPreviousPageOptions } from './_tsup-dts-rollup.js';
|
|
156
|
+
export { QueryStatus } from './_tsup-dts-rollup.js';
|
|
157
|
+
export { FetchStatus } from './_tsup-dts-rollup.js';
|
|
158
|
+
export { QueryObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
159
|
+
export { QueryObserverPendingResult } from './_tsup-dts-rollup.js';
|
|
160
|
+
export { QueryObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
161
|
+
export { QueryObserverLoadingErrorResult } from './_tsup-dts-rollup.js';
|
|
162
|
+
export { QueryObserverRefetchErrorResult } from './_tsup-dts-rollup.js';
|
|
163
|
+
export { QueryObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
164
|
+
export { QueryObserverPlaceholderResult } from './_tsup-dts-rollup.js';
|
|
165
|
+
export { DefinedQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
166
|
+
export { QueryObserverResult } from './_tsup-dts-rollup.js';
|
|
167
|
+
export { InfiniteQueryObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
168
|
+
export { InfiniteQueryObserverPendingResult } from './_tsup-dts-rollup.js';
|
|
169
|
+
export { InfiniteQueryObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
170
|
+
export { InfiniteQueryObserverLoadingErrorResult } from './_tsup-dts-rollup.js';
|
|
171
|
+
export { InfiniteQueryObserverRefetchErrorResult } from './_tsup-dts-rollup.js';
|
|
172
|
+
export { InfiniteQueryObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
173
|
+
export { InfiniteQueryObserverPlaceholderResult } from './_tsup-dts-rollup.js';
|
|
174
|
+
export { DefinedInfiniteQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
175
|
+
export { InfiniteQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
176
|
+
export { MutationKey } from './_tsup-dts-rollup.js';
|
|
177
|
+
export { MutationStatus } from './_tsup-dts-rollup.js';
|
|
178
|
+
export { MutationScope } from './_tsup-dts-rollup.js';
|
|
179
|
+
export { MutationMeta } from './_tsup-dts-rollup.js';
|
|
180
|
+
export { MutationFunctionContext } from './_tsup-dts-rollup.js';
|
|
181
|
+
export { MutationFunction } from './_tsup-dts-rollup.js';
|
|
182
|
+
export { MutationOptions } from './_tsup-dts-rollup.js';
|
|
183
|
+
export { MutationObserverOptions } from './_tsup-dts-rollup.js';
|
|
184
|
+
export { MutateOptions } from './_tsup-dts-rollup.js';
|
|
185
|
+
export { MutateFunction } from './_tsup-dts-rollup.js';
|
|
186
|
+
export { MutationObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
187
|
+
export { MutationObserverIdleResult } from './_tsup-dts-rollup.js';
|
|
188
|
+
export { MutationObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
189
|
+
export { MutationObserverErrorResult } from './_tsup-dts-rollup.js';
|
|
190
|
+
export { MutationObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
191
|
+
export { MutationObserverResult } from './_tsup-dts-rollup.js';
|
|
192
|
+
export { CancelOptions } from './_tsup-dts-rollup.js';
|
|
193
|
+
export { SetDataOptions } from './_tsup-dts-rollup.js';
|
|
194
|
+
export { NotifyEventType } from './_tsup-dts-rollup.js';
|
|
195
|
+
export { NotifyEvent } from './_tsup-dts-rollup.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-query",
|
|
3
|
-
"version": "5.90.
|
|
3
|
+
"version": "5.90.24",
|
|
4
4
|
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,15 +64,14 @@
|
|
|
64
64
|
"compile": "tsc --build",
|
|
65
65
|
"test:eslint": "eslint --concurrency=auto ./src",
|
|
66
66
|
"test:types": "npm-run-all --serial test:types:*",
|
|
67
|
-
"test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js --build tsconfig.legacy.json",
|
|
68
|
-
"test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js --build tsconfig.legacy.json",
|
|
69
|
-
"test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js --build tsconfig.legacy.json",
|
|
70
|
-
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js --build tsconfig.legacy.json",
|
|
71
67
|
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js --build tsconfig.legacy.json",
|
|
72
68
|
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js --build tsconfig.legacy.json",
|
|
73
69
|
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json",
|
|
74
70
|
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json",
|
|
71
|
+
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json",
|
|
72
|
+
"test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json",
|
|
75
73
|
"test:types:tscurrent": "tsc --build",
|
|
74
|
+
"test:types:ts60": "node ../../node_modules/typescript60/lib/tsc.js --build tsconfig.legacy.json",
|
|
76
75
|
"test:lib": "vitest --retry=3",
|
|
77
76
|
"test:lib:dev": "pnpm run test:lib --watch",
|
|
78
77
|
"test:build": "publint --strict && attw --pack",
|
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,37 @@ export type {
|
|
|
46
29
|
UseMutationResult,
|
|
47
30
|
UseQueryOptions,
|
|
48
31
|
UseQueryResult,
|
|
32
|
+
// Compatibility types (deprecated)
|
|
33
|
+
/** @deprecated Use UseBaseQueryOptions instead */
|
|
34
|
+
UseBaseQueryOptions as CreateBaseQueryOptions,
|
|
35
|
+
/** @deprecated Use UseBaseQueryResult instead */
|
|
36
|
+
UseBaseQueryResult as CreateBaseQueryResult,
|
|
37
|
+
/** @deprecated Use UseInfiniteQueryOptions instead */
|
|
38
|
+
UseInfiniteQueryOptions as CreateInfiniteQueryOptions,
|
|
39
|
+
/** @deprecated Use UseInfiniteQueryResult instead */
|
|
40
|
+
UseInfiniteQueryResult as CreateInfiniteQueryResult,
|
|
41
|
+
/** @deprecated Use UseMutateAsyncFunction instead */
|
|
42
|
+
UseMutateAsyncFunction as CreateMutateAsyncFunction,
|
|
43
|
+
/** @deprecated Use UseMutateFunction instead */
|
|
44
|
+
UseMutateFunction as CreateMutateFunction,
|
|
45
|
+
/** @deprecated Use UseMutationOptions instead */
|
|
46
|
+
UseMutationOptions as CreateMutationOptions,
|
|
47
|
+
/** @deprecated Use UseMutationResult instead */
|
|
48
|
+
UseMutationResult as CreateMutationResult,
|
|
49
|
+
/** @deprecated Use UseBaseMutationResult instead */
|
|
50
|
+
UseBaseMutationResult as CreateBaseMutationResult,
|
|
51
|
+
/** @deprecated Use UseQueryOptions instead */
|
|
52
|
+
UseQueryOptions as CreateQueryOptions,
|
|
53
|
+
/** @deprecated Use UseQueryResult instead */
|
|
54
|
+
UseQueryResult as CreateQueryResult,
|
|
55
|
+
/** @deprecated Use DefinedUseBaseQueryResult instead */
|
|
56
|
+
DefinedUseBaseQueryResult as DefinedCreateBaseQueryResult,
|
|
57
|
+
/** @deprecated Use DefinedUseInfiniteQueryResult instead */
|
|
58
|
+
DefinedUseInfiniteQueryResult as DefinedCreateInfiniteQueryResult,
|
|
59
|
+
/** @deprecated Use DefinedUseQueryResult instead */
|
|
60
|
+
DefinedUseQueryResult as DefinedCreateQueryResult,
|
|
49
61
|
} from './types'
|
|
50
62
|
|
|
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
63
|
export { QueryClient } from './QueryClient'
|
|
82
64
|
export type {
|
|
83
65
|
QueryObserverOptions,
|