@tanstack/solid-query 5.90.15 → 5.90.16
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/package.json +3 -3
- package/src/QueryClient.ts +22 -21
- package/src/types.ts +21 -21
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-query",
|
|
3
|
-
"version": "5.90.
|
|
3
|
+
"version": "5.90.16",
|
|
4
4
|
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/TanStack/query.git",
|
|
9
|
+
"url": "git+https://github.com/TanStack/query.git",
|
|
10
10
|
"directory": "packages/solid-query"
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://tanstack.com/query",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"!src/__tests__"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@tanstack/query-core": "5.90.
|
|
49
|
+
"@tanstack/query-core": "5.90.13"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@solidjs/testing-library": "^0.8.10",
|
package/src/QueryClient.ts
CHANGED
|
@@ -17,16 +17,16 @@ export interface QueryObserverOptions<
|
|
|
17
17
|
TQueryKey extends QueryKey = QueryKey,
|
|
18
18
|
TPageParam = never,
|
|
19
19
|
> extends OmitKeyof<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
QueryCoreObserverOptions<
|
|
21
|
+
TQueryFnData,
|
|
22
|
+
TError,
|
|
23
|
+
TData,
|
|
24
|
+
TQueryData,
|
|
25
|
+
TQueryKey,
|
|
26
|
+
TPageParam
|
|
27
|
+
>,
|
|
28
|
+
'structuralSharing'
|
|
29
|
+
> {
|
|
30
30
|
/**
|
|
31
31
|
* Set this to a reconciliation key to enable reconciliation between query results.
|
|
32
32
|
* Set this to `false` to disable reconciliation between query results.
|
|
@@ -46,15 +46,15 @@ export interface InfiniteQueryObserverOptions<
|
|
|
46
46
|
TQueryKey extends QueryKey = QueryKey,
|
|
47
47
|
TPageParam = unknown,
|
|
48
48
|
> extends OmitKeyof<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
QueryCoreInfiniteQueryObserverOptions<
|
|
50
|
+
TQueryFnData,
|
|
51
|
+
TError,
|
|
52
|
+
TData,
|
|
53
|
+
TQueryKey,
|
|
54
|
+
TPageParam
|
|
55
|
+
>,
|
|
56
|
+
'structuralSharing'
|
|
57
|
+
> {
|
|
58
58
|
/**
|
|
59
59
|
* Set this to a reconciliation key to enable reconciliation between query results.
|
|
60
60
|
* Set this to `false` to disable reconciliation between query results.
|
|
@@ -67,8 +67,9 @@ export interface InfiniteQueryObserverOptions<
|
|
|
67
67
|
| ((oldData: TData | undefined, newData: TData) => TData)
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export interface DefaultOptions<
|
|
71
|
-
|
|
70
|
+
export interface DefaultOptions<
|
|
71
|
+
TError = DefaultError,
|
|
72
|
+
> extends CoreDefaultOptions<TError> {
|
|
72
73
|
queries?: OmitKeyof<QueryObserverOptions<unknown, TError>, 'queryKey'>
|
|
73
74
|
}
|
|
74
75
|
|
package/src/types.ts
CHANGED
|
@@ -26,9 +26,9 @@ export interface UseBaseQueryOptions<
|
|
|
26
26
|
TQueryData = TQueryFnData,
|
|
27
27
|
TQueryKey extends QueryKey = QueryKey,
|
|
28
28
|
> extends OmitKeyof<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
QueryObserverOptions<TQueryFnData, TError, TData, TQueryData, TQueryKey>,
|
|
30
|
+
'suspense'
|
|
31
|
+
> {
|
|
32
32
|
/**
|
|
33
33
|
* Only applicable while rendering queries on the server with streaming.
|
|
34
34
|
* Set `deferStream` to `true` to wait for the query to resolve on the server before flushing the stream.
|
|
@@ -50,12 +50,12 @@ export interface SolidQueryOptions<
|
|
|
50
50
|
TData = TQueryFnData,
|
|
51
51
|
TQueryKey extends QueryKey = QueryKey,
|
|
52
52
|
> extends UseBaseQueryOptions<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
TQueryFnData,
|
|
54
|
+
TError,
|
|
55
|
+
TData,
|
|
56
|
+
TQueryFnData,
|
|
57
|
+
TQueryKey
|
|
58
|
+
> {}
|
|
59
59
|
|
|
60
60
|
export type UseQueryOptions<
|
|
61
61
|
TQueryFnData = unknown,
|
|
@@ -94,15 +94,15 @@ export interface SolidInfiniteQueryOptions<
|
|
|
94
94
|
TQueryKey extends QueryKey = QueryKey,
|
|
95
95
|
TPageParam = unknown,
|
|
96
96
|
> extends OmitKeyof<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
InfiniteQueryObserverOptions<
|
|
98
|
+
TQueryFnData,
|
|
99
|
+
TError,
|
|
100
|
+
TData,
|
|
101
|
+
TQueryKey,
|
|
102
|
+
TPageParam
|
|
103
|
+
>,
|
|
104
|
+
'queryKey' | 'suspense'
|
|
105
|
+
> {
|
|
106
106
|
queryKey: TQueryKey
|
|
107
107
|
/**
|
|
108
108
|
* Only applicable while rendering queries on the server with streaming.
|
|
@@ -146,9 +146,9 @@ export interface SolidMutationOptions<
|
|
|
146
146
|
TVariables = void,
|
|
147
147
|
TOnMutateResult = unknown,
|
|
148
148
|
> extends OmitKeyof<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>,
|
|
150
|
+
'_defaulted'
|
|
151
|
+
> {}
|
|
152
152
|
|
|
153
153
|
export type UseMutationOptions<
|
|
154
154
|
TData = unknown,
|