@orpc/vue-query 1.7.9 → 1.7.11
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/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
@@ -42,7 +42,7 @@ interface QueryOptionsBase<TOutput, TError> {
|
|
42
42
|
queryFn(ctx: QueryFunctionContext): Promise<TOutput>;
|
43
43
|
throwOnError?(error: TError): boolean;
|
44
44
|
retryDelay?: (count: number, error: TError) => number;
|
45
|
-
enabled: ComputedRef<boolean>;
|
45
|
+
enabled: ComputedRef<boolean | undefined>;
|
46
46
|
}
|
47
47
|
type experimental_StreamedQueryOptions = Omit<Parameters<typeof experimental_streamedQuery>[0], 'queryFn'>;
|
48
48
|
type experimental_InferStreamedOutput<TOutput> = TOutput extends AsyncIterable<infer U> ? U[] : never;
|
@@ -68,7 +68,7 @@ interface InfiniteOptionsBase<TOutput, TError, TPageParam> {
|
|
68
68
|
queryFn(ctx: QueryFunctionContext<QueryKey, TPageParam>): Promise<TOutput>;
|
69
69
|
throwOnError?(error: TError): boolean;
|
70
70
|
retryDelay?: (count: number, error: TError) => number;
|
71
|
-
enabled: ComputedRef<boolean>;
|
71
|
+
enabled: ComputedRef<boolean | undefined>;
|
72
72
|
}
|
73
73
|
type MutationOptionsIn<TClientContext extends ClientContext, TInput, TOutput, TError, TMutationContext> = (Record<never, never> extends TClientContext ? {
|
74
74
|
context?: TClientContext;
|
package/dist/index.d.ts
CHANGED
@@ -42,7 +42,7 @@ interface QueryOptionsBase<TOutput, TError> {
|
|
42
42
|
queryFn(ctx: QueryFunctionContext): Promise<TOutput>;
|
43
43
|
throwOnError?(error: TError): boolean;
|
44
44
|
retryDelay?: (count: number, error: TError) => number;
|
45
|
-
enabled: ComputedRef<boolean>;
|
45
|
+
enabled: ComputedRef<boolean | undefined>;
|
46
46
|
}
|
47
47
|
type experimental_StreamedQueryOptions = Omit<Parameters<typeof experimental_streamedQuery>[0], 'queryFn'>;
|
48
48
|
type experimental_InferStreamedOutput<TOutput> = TOutput extends AsyncIterable<infer U> ? U[] : never;
|
@@ -68,7 +68,7 @@ interface InfiniteOptionsBase<TOutput, TError, TPageParam> {
|
|
68
68
|
queryFn(ctx: QueryFunctionContext<QueryKey, TPageParam>): Promise<TOutput>;
|
69
69
|
throwOnError?(error: TError): boolean;
|
70
70
|
retryDelay?: (count: number, error: TError) => number;
|
71
|
-
enabled: ComputedRef<boolean>;
|
71
|
+
enabled: ComputedRef<boolean | undefined>;
|
72
72
|
}
|
73
73
|
type MutationOptionsIn<TClientContext extends ClientContext, TInput, TOutput, TError, TMutationContext> = (Record<never, never> extends TClientContext ? {
|
74
74
|
context?: TClientContext;
|
package/dist/index.mjs
CHANGED
@@ -41,13 +41,13 @@ function createProcedureUtils(client, options) {
|
|
41
41
|
}
|
42
42
|
return client(input, { signal, context: unrefDeep(optionsIn.context) });
|
43
43
|
},
|
44
|
-
enabled: computed(() => unrefDeep(optionsIn.input)
|
44
|
+
enabled: computed(() => unrefDeep(optionsIn.input) === skipToken ? false : void 0),
|
45
45
|
...optionsIn
|
46
46
|
};
|
47
47
|
},
|
48
48
|
experimental_streamedOptions(...[optionsIn = {}]) {
|
49
49
|
return {
|
50
|
-
enabled: computed(() => unrefDeep(optionsIn.input)
|
50
|
+
enabled: computed(() => unrefDeep(optionsIn.input) === skipToken ? false : void 0),
|
51
51
|
queryKey: computed(() => generateOperationKey(options.path, { type: "streamed", input: unrefDeep(optionsIn.input), fnOptions: optionsIn.queryFnOptions })),
|
52
52
|
queryFn: experimental_streamedQuery({
|
53
53
|
queryFn: async ({ signal }) => {
|
@@ -82,7 +82,7 @@ function createProcedureUtils(client, options) {
|
|
82
82
|
}
|
83
83
|
return client(unrefDeep(input(pageParam)), { signal, context: unrefDeep(optionsIn.context) });
|
84
84
|
},
|
85
|
-
enabled: computed(() => unrefDeep(optionsIn.input)
|
85
|
+
enabled: computed(() => unrefDeep(optionsIn.input) === skipToken ? false : void 0),
|
86
86
|
...optionsIn
|
87
87
|
};
|
88
88
|
},
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/vue-query",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.7.
|
4
|
+
"version": "1.7.11",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -29,11 +29,11 @@
|
|
29
29
|
"peerDependencies": {
|
30
30
|
"@tanstack/vue-query": ">=5.80.2",
|
31
31
|
"vue": ">=3.3.0",
|
32
|
-
"@orpc/client": "1.7.
|
32
|
+
"@orpc/client": "1.7.11"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@orpc/shared": "1.7.
|
36
|
-
"@orpc/tanstack-query": "1.7.
|
35
|
+
"@orpc/shared": "1.7.11",
|
36
|
+
"@orpc/tanstack-query": "1.7.11"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@tanstack/vue-query": "^5.83.0"
|