@orpc/tanstack-query 0.0.0-next.02cdb0f → 0.0.0-next.06aad3a
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/README.md +4 -2
- package/dist/index.d.mts +22 -6
- package/dist/index.d.ts +22 -6
- package/dist/index.mjs +55 -4
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
- **🔗 End-to-End Type Safety**: Ensure type-safe inputs, outputs, and errors from client to server.
|
|
31
31
|
- **📘 First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard.
|
|
32
32
|
- **📝 Contract-First Development**: Optionally define your API contract before implementation.
|
|
33
|
-
-
|
|
33
|
+
- **🔍 First-Class OpenTelemetry**: Seamlessly integrate with OpenTelemetry for observability.
|
|
34
|
+
- **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), SWR, Pinia Colada, and more.
|
|
34
35
|
- **🚀 Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms.
|
|
35
36
|
- **🔠 Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators.
|
|
36
37
|
- **🗃️ Native Types**: Supports native types like Date, File, Blob, BigInt, URL, and more.
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
- **📡 SSE & Streaming**: Enjoy full type-safe support for SSE and streaming.
|
|
39
40
|
- **🌍 Multi-Runtime Support**: Fast and lightweight on Cloudflare, Deno, Bun, Node.js, and beyond.
|
|
40
41
|
- **🔌 Extendability**: Easily extend functionality with plugins, middleware, and interceptors.
|
|
41
|
-
- **🛡️ Reliability**: Well-tested, TypeScript-based, production-ready, and MIT licensed.
|
|
42
42
|
|
|
43
43
|
## Documentation
|
|
44
44
|
|
|
@@ -50,9 +50,11 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
|
50
50
|
- [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract.
|
|
51
51
|
- [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety.
|
|
52
52
|
- [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
|
|
53
|
+
- [@orpc/otel](https://www.npmjs.com/package/@orpc/otel): [OpenTelemetry](https://opentelemetry.io/) integration for observability.
|
|
53
54
|
- [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with [NestJS](https://nestjs.com/).
|
|
54
55
|
- [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
|
|
55
56
|
- [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query): [TanStack Query](https://tanstack.com/query/latest) integration.
|
|
57
|
+
- [@orpc/experimental-react-swr](https://www.npmjs.com/package/@orpc/experimental-react-swr): [SWR](https://swr.vercel.app/) integration.
|
|
56
58
|
- [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/).
|
|
57
59
|
- [@orpc/hey-api](https://www.npmjs.com/package/@orpc/hey-api): [Hey API](https://heyapi.dev/) integration.
|
|
58
60
|
- [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet.
|
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,9 @@ import { SetOptional, PartialDeep, MaybeOptionalOptions } from '@orpc/shared';
|
|
|
3
3
|
import { SkipToken, QueryKey, QueryObserverOptions, DataTag, QueryFunction, experimental_streamedQuery, InfiniteQueryObserverOptions, InfiniteData, MutationObserverOptions } from '@tanstack/query-core';
|
|
4
4
|
|
|
5
5
|
type experimental_StreamedQueryOutput<TOutput> = TOutput extends AsyncIterable<infer U> ? U[] : never;
|
|
6
|
+
type experimental_LiveQueryOutput<TOutput> = TOutput extends AsyncIterable<infer U> ? U : never;
|
|
6
7
|
type experimental_StreamedQueryOptions = Omit<Parameters<typeof experimental_streamedQuery>[0], 'queryFn'>;
|
|
7
|
-
type OperationType = 'query' | 'streamed' | 'infinite' | 'mutation';
|
|
8
|
+
type OperationType = 'query' | 'streamed' | 'live' | 'infinite' | 'mutation';
|
|
8
9
|
type OperationKeyOptions<TType extends OperationType, TInput> = {
|
|
9
10
|
type?: TType;
|
|
10
11
|
input?: TType extends 'mutation' ? never : PartialDeep<TInput>;
|
|
@@ -35,7 +36,7 @@ interface QueryOptionsBase<TOutput, TError> {
|
|
|
35
36
|
queryFn: QueryFunction<TOutput>;
|
|
36
37
|
throwOnError?: (error: TError) => boolean;
|
|
37
38
|
retryDelay?: (count: number, error: TError) => number;
|
|
38
|
-
enabled
|
|
39
|
+
enabled?: boolean;
|
|
39
40
|
}
|
|
40
41
|
type experimental_StreamedKeyOptions<TInput> = QueryKeyOptions<TInput> & {
|
|
41
42
|
queryFnOptions?: experimental_StreamedQueryOptions;
|
|
@@ -58,7 +59,7 @@ interface InfiniteOptionsBase<TOutput, TError, TPageParam> {
|
|
|
58
59
|
select?(): InfiniteData<TOutput, TPageParam>;
|
|
59
60
|
throwOnError?: (error: TError) => boolean;
|
|
60
61
|
retryDelay?: (count: number, error: TError) => number;
|
|
61
|
-
enabled
|
|
62
|
+
enabled?: boolean;
|
|
62
63
|
}
|
|
63
64
|
type MutationOptionsIn<TClientContext extends ClientContext, TInput, TOutput, TError, TMutationContext> = (Record<never, never> extends TClientContext ? {
|
|
64
65
|
context?: TClientContext;
|
|
@@ -108,12 +109,27 @@ interface ProcedureUtils<TClientContext extends ClientContext, TInput, TOutput,
|
|
|
108
109
|
*/
|
|
109
110
|
experimental_streamedKey(...rest: MaybeOptionalOptions<experimental_StreamedKeyOptions<TInput>>): DataTag<QueryKey, experimental_StreamedQueryOutput<TOutput>, TError>;
|
|
110
111
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
112
|
+
* Configure queries for [Event Iterator](https://orpc.unnoq.com/docs/event-iterator).
|
|
113
|
+
* This is built on [TanStack Query streamedQuery](https://tanstack.com/query/latest/docs/reference/streamedQuery)
|
|
114
|
+
* and works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
|
|
113
115
|
*
|
|
114
116
|
* @see {@link https://orpc.unnoq.com/docs/integrations/tanstack-query#streamed-query-options Tanstack Streamed Query Options Utility Docs}
|
|
115
117
|
*/
|
|
116
118
|
experimental_streamedOptions<U, USelectData = experimental_StreamedQueryOutput<TOutput>>(...rest: MaybeOptionalOptions<U & experimental_StreamedOptionsIn<TClientContext, TInput, experimental_StreamedQueryOutput<TOutput>, TError, USelectData>>): NoInfer<U & Omit<experimental_StreamedOptionsBase<experimental_StreamedQueryOutput<TOutput>, TError>, keyof U>>;
|
|
119
|
+
/**
|
|
120
|
+
* Generate a **full matching** key for [Live Query Options](https://orpc.unnoq.com/docs/integrations/tanstack-query#live-query-options).
|
|
121
|
+
*
|
|
122
|
+
* @see {@link https://orpc.unnoq.com/docs/integrations/tanstack-query#query-mutation-key Tanstack Query/Mutation Key Docs}
|
|
123
|
+
*/
|
|
124
|
+
experimental_liveKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): DataTag<QueryKey, experimental_LiveQueryOutput<TOutput>, TError>;
|
|
125
|
+
/**
|
|
126
|
+
* Configure live queries for [Event Iterator](https://orpc.unnoq.com/docs/event-iterator).
|
|
127
|
+
* Unlike `.streamedOptions` which accumulates chunks, live queries replace the entire result with each new chunk received.
|
|
128
|
+
* Works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
|
|
129
|
+
*
|
|
130
|
+
* @see {@link https://orpc.unnoq.com/docs/integrations/tanstack-query#live-query-options Tanstack Live Query Options Utility Docs}
|
|
131
|
+
*/
|
|
132
|
+
experimental_liveOptions<U, USelectData = experimental_LiveQueryOutput<TOutput>>(...rest: MaybeOptionalOptions<U & QueryOptionsIn<TClientContext, TInput, experimental_LiveQueryOutput<TOutput>, TError, USelectData>>): NoInfer<U & Omit<QueryOptionsBase<experimental_LiveQueryOutput<TOutput>, TError>, keyof U>>;
|
|
117
133
|
/**
|
|
118
134
|
* Generate a **full matching** key for [Infinite Query Options](https://orpc.unnoq.com/docs/integrations/tanstack-query#infinite-query-options).
|
|
119
135
|
*
|
|
@@ -159,4 +175,4 @@ interface CreateRouterUtilsOptions {
|
|
|
159
175
|
declare function createRouterUtils<T extends NestedClient<any>>(client: T, options?: CreateRouterUtilsOptions): RouterUtils<T>;
|
|
160
176
|
|
|
161
177
|
export { OPERATION_CONTEXT_SYMBOL, OPERATION_CONTEXT_SYMBOL as TANSTACK_QUERY_OPERATION_CONTEXT_SYMBOL, createGeneralUtils, createProcedureUtils, createRouterUtils, createRouterUtils as createTanstackQueryUtils, generateOperationKey };
|
|
162
|
-
export type { CreateProcedureUtilsOptions, CreateRouterUtilsOptions, GeneralUtils, InfiniteOptionsBase, InfiniteOptionsIn, MutationOptions, MutationOptionsIn, OperationContext, OperationKey, OperationKeyOptions, OperationType, ProcedureUtils, QueryKeyOptions, QueryOptionsBase, QueryOptionsIn, RouterUtils, OperationContext as TanstackQueryOperationContext, experimental_StreamedKeyOptions, experimental_StreamedOptionsBase, experimental_StreamedOptionsIn, experimental_StreamedQueryOutput };
|
|
178
|
+
export type { CreateProcedureUtilsOptions, CreateRouterUtilsOptions, GeneralUtils, InfiniteOptionsBase, InfiniteOptionsIn, MutationOptions, MutationOptionsIn, OperationContext, OperationKey, OperationKeyOptions, OperationType, ProcedureUtils, QueryKeyOptions, QueryOptionsBase, QueryOptionsIn, RouterUtils, OperationContext as TanstackQueryOperationContext, experimental_LiveQueryOutput, experimental_StreamedKeyOptions, experimental_StreamedOptionsBase, experimental_StreamedOptionsIn, experimental_StreamedQueryOutput };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { SetOptional, PartialDeep, MaybeOptionalOptions } from '@orpc/shared';
|
|
|
3
3
|
import { SkipToken, QueryKey, QueryObserverOptions, DataTag, QueryFunction, experimental_streamedQuery, InfiniteQueryObserverOptions, InfiniteData, MutationObserverOptions } from '@tanstack/query-core';
|
|
4
4
|
|
|
5
5
|
type experimental_StreamedQueryOutput<TOutput> = TOutput extends AsyncIterable<infer U> ? U[] : never;
|
|
6
|
+
type experimental_LiveQueryOutput<TOutput> = TOutput extends AsyncIterable<infer U> ? U : never;
|
|
6
7
|
type experimental_StreamedQueryOptions = Omit<Parameters<typeof experimental_streamedQuery>[0], 'queryFn'>;
|
|
7
|
-
type OperationType = 'query' | 'streamed' | 'infinite' | 'mutation';
|
|
8
|
+
type OperationType = 'query' | 'streamed' | 'live' | 'infinite' | 'mutation';
|
|
8
9
|
type OperationKeyOptions<TType extends OperationType, TInput> = {
|
|
9
10
|
type?: TType;
|
|
10
11
|
input?: TType extends 'mutation' ? never : PartialDeep<TInput>;
|
|
@@ -35,7 +36,7 @@ interface QueryOptionsBase<TOutput, TError> {
|
|
|
35
36
|
queryFn: QueryFunction<TOutput>;
|
|
36
37
|
throwOnError?: (error: TError) => boolean;
|
|
37
38
|
retryDelay?: (count: number, error: TError) => number;
|
|
38
|
-
enabled
|
|
39
|
+
enabled?: boolean;
|
|
39
40
|
}
|
|
40
41
|
type experimental_StreamedKeyOptions<TInput> = QueryKeyOptions<TInput> & {
|
|
41
42
|
queryFnOptions?: experimental_StreamedQueryOptions;
|
|
@@ -58,7 +59,7 @@ interface InfiniteOptionsBase<TOutput, TError, TPageParam> {
|
|
|
58
59
|
select?(): InfiniteData<TOutput, TPageParam>;
|
|
59
60
|
throwOnError?: (error: TError) => boolean;
|
|
60
61
|
retryDelay?: (count: number, error: TError) => number;
|
|
61
|
-
enabled
|
|
62
|
+
enabled?: boolean;
|
|
62
63
|
}
|
|
63
64
|
type MutationOptionsIn<TClientContext extends ClientContext, TInput, TOutput, TError, TMutationContext> = (Record<never, never> extends TClientContext ? {
|
|
64
65
|
context?: TClientContext;
|
|
@@ -108,12 +109,27 @@ interface ProcedureUtils<TClientContext extends ClientContext, TInput, TOutput,
|
|
|
108
109
|
*/
|
|
109
110
|
experimental_streamedKey(...rest: MaybeOptionalOptions<experimental_StreamedKeyOptions<TInput>>): DataTag<QueryKey, experimental_StreamedQueryOutput<TOutput>, TError>;
|
|
110
111
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
112
|
+
* Configure queries for [Event Iterator](https://orpc.unnoq.com/docs/event-iterator).
|
|
113
|
+
* This is built on [TanStack Query streamedQuery](https://tanstack.com/query/latest/docs/reference/streamedQuery)
|
|
114
|
+
* and works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
|
|
113
115
|
*
|
|
114
116
|
* @see {@link https://orpc.unnoq.com/docs/integrations/tanstack-query#streamed-query-options Tanstack Streamed Query Options Utility Docs}
|
|
115
117
|
*/
|
|
116
118
|
experimental_streamedOptions<U, USelectData = experimental_StreamedQueryOutput<TOutput>>(...rest: MaybeOptionalOptions<U & experimental_StreamedOptionsIn<TClientContext, TInput, experimental_StreamedQueryOutput<TOutput>, TError, USelectData>>): NoInfer<U & Omit<experimental_StreamedOptionsBase<experimental_StreamedQueryOutput<TOutput>, TError>, keyof U>>;
|
|
119
|
+
/**
|
|
120
|
+
* Generate a **full matching** key for [Live Query Options](https://orpc.unnoq.com/docs/integrations/tanstack-query#live-query-options).
|
|
121
|
+
*
|
|
122
|
+
* @see {@link https://orpc.unnoq.com/docs/integrations/tanstack-query#query-mutation-key Tanstack Query/Mutation Key Docs}
|
|
123
|
+
*/
|
|
124
|
+
experimental_liveKey(...rest: MaybeOptionalOptions<QueryKeyOptions<TInput>>): DataTag<QueryKey, experimental_LiveQueryOutput<TOutput>, TError>;
|
|
125
|
+
/**
|
|
126
|
+
* Configure live queries for [Event Iterator](https://orpc.unnoq.com/docs/event-iterator).
|
|
127
|
+
* Unlike `.streamedOptions` which accumulates chunks, live queries replace the entire result with each new chunk received.
|
|
128
|
+
* Works with hooks like `useQuery`, `useSuspenseQuery`, or `prefetchQuery`.
|
|
129
|
+
*
|
|
130
|
+
* @see {@link https://orpc.unnoq.com/docs/integrations/tanstack-query#live-query-options Tanstack Live Query Options Utility Docs}
|
|
131
|
+
*/
|
|
132
|
+
experimental_liveOptions<U, USelectData = experimental_LiveQueryOutput<TOutput>>(...rest: MaybeOptionalOptions<U & QueryOptionsIn<TClientContext, TInput, experimental_LiveQueryOutput<TOutput>, TError, USelectData>>): NoInfer<U & Omit<QueryOptionsBase<experimental_LiveQueryOutput<TOutput>, TError>, keyof U>>;
|
|
117
133
|
/**
|
|
118
134
|
* Generate a **full matching** key for [Infinite Query Options](https://orpc.unnoq.com/docs/integrations/tanstack-query#infinite-query-options).
|
|
119
135
|
*
|
|
@@ -159,4 +175,4 @@ interface CreateRouterUtilsOptions {
|
|
|
159
175
|
declare function createRouterUtils<T extends NestedClient<any>>(client: T, options?: CreateRouterUtilsOptions): RouterUtils<T>;
|
|
160
176
|
|
|
161
177
|
export { OPERATION_CONTEXT_SYMBOL, OPERATION_CONTEXT_SYMBOL as TANSTACK_QUERY_OPERATION_CONTEXT_SYMBOL, createGeneralUtils, createProcedureUtils, createRouterUtils, createRouterUtils as createTanstackQueryUtils, generateOperationKey };
|
|
162
|
-
export type { CreateProcedureUtilsOptions, CreateRouterUtilsOptions, GeneralUtils, InfiniteOptionsBase, InfiniteOptionsIn, MutationOptions, MutationOptionsIn, OperationContext, OperationKey, OperationKeyOptions, OperationType, ProcedureUtils, QueryKeyOptions, QueryOptionsBase, QueryOptionsIn, RouterUtils, OperationContext as TanstackQueryOperationContext, experimental_StreamedKeyOptions, experimental_StreamedOptionsBase, experimental_StreamedOptionsIn, experimental_StreamedQueryOutput };
|
|
178
|
+
export type { CreateProcedureUtilsOptions, CreateRouterUtilsOptions, GeneralUtils, InfiniteOptionsBase, InfiniteOptionsIn, MutationOptions, MutationOptionsIn, OperationContext, OperationKey, OperationKeyOptions, OperationType, ProcedureUtils, QueryKeyOptions, QueryOptionsBase, QueryOptionsIn, RouterUtils, OperationContext as TanstackQueryOperationContext, experimental_LiveQueryOutput, experimental_StreamedKeyOptions, experimental_StreamedOptionsBase, experimental_StreamedOptionsIn, experimental_StreamedQueryOutput };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isAsyncIteratorObject, toArray } from '@orpc/shared';
|
|
1
|
+
import { stringifyJSON, isAsyncIteratorObject, toArray } from '@orpc/shared';
|
|
2
2
|
import { skipToken, experimental_streamedQuery } from '@tanstack/query-core';
|
|
3
3
|
|
|
4
4
|
function generateOperationKey(path, state = {}) {
|
|
@@ -17,6 +17,26 @@ function createGeneralUtils(path) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
function experimental_liveQuery(queryFn) {
|
|
21
|
+
return async (context) => {
|
|
22
|
+
const stream = await queryFn(context);
|
|
23
|
+
let last;
|
|
24
|
+
for await (const chunk of stream) {
|
|
25
|
+
if (context.signal.aborted) {
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
last = { chunk };
|
|
29
|
+
context.client.setQueryData(context.queryKey, chunk);
|
|
30
|
+
}
|
|
31
|
+
if (!last) {
|
|
32
|
+
throw new Error(
|
|
33
|
+
`Live query for ${stringifyJSON(context.queryKey)} did not yield any data. Ensure the query function returns an AsyncIterable with at least one chunk.`
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
return last.chunk;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
20
40
|
const OPERATION_CONTEXT_SYMBOL = Symbol("ORPC_OPERATION_CONTEXT");
|
|
21
41
|
|
|
22
42
|
function createProcedureUtils(client, options) {
|
|
@@ -44,7 +64,7 @@ function createProcedureUtils(client, options) {
|
|
|
44
64
|
}
|
|
45
65
|
});
|
|
46
66
|
},
|
|
47
|
-
|
|
67
|
+
...optionsIn.input === skipToken ? { enabled: false } : {},
|
|
48
68
|
...optionsIn,
|
|
49
69
|
queryKey
|
|
50
70
|
};
|
|
@@ -56,7 +76,6 @@ function createProcedureUtils(client, options) {
|
|
|
56
76
|
experimental_streamedOptions(...[optionsIn = {}]) {
|
|
57
77
|
const queryKey = utils.experimental_streamedKey(optionsIn);
|
|
58
78
|
return {
|
|
59
|
-
enabled: optionsIn.input !== skipToken,
|
|
60
79
|
queryFn: experimental_streamedQuery({
|
|
61
80
|
queryFn: async ({ signal }) => {
|
|
62
81
|
if (optionsIn.input === skipToken) {
|
|
@@ -79,6 +98,38 @@ function createProcedureUtils(client, options) {
|
|
|
79
98
|
},
|
|
80
99
|
...optionsIn.queryFnOptions
|
|
81
100
|
}),
|
|
101
|
+
...optionsIn.input === skipToken ? { enabled: false } : {},
|
|
102
|
+
...optionsIn,
|
|
103
|
+
queryKey
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
experimental_liveKey(...[optionsIn = {}]) {
|
|
107
|
+
const queryKey = optionsIn.queryKey ?? generateOperationKey(options.path, { type: "live", input: optionsIn.input });
|
|
108
|
+
return queryKey;
|
|
109
|
+
},
|
|
110
|
+
experimental_liveOptions(...[optionsIn = {}]) {
|
|
111
|
+
const queryKey = utils.experimental_liveKey(optionsIn);
|
|
112
|
+
return {
|
|
113
|
+
queryFn: experimental_liveQuery(async ({ signal }) => {
|
|
114
|
+
if (optionsIn.input === skipToken) {
|
|
115
|
+
throw new Error("queryFn should not be called with skipToken used as input");
|
|
116
|
+
}
|
|
117
|
+
const output = await client(optionsIn.input, {
|
|
118
|
+
signal,
|
|
119
|
+
context: {
|
|
120
|
+
[OPERATION_CONTEXT_SYMBOL]: {
|
|
121
|
+
key: queryKey,
|
|
122
|
+
type: "live"
|
|
123
|
+
},
|
|
124
|
+
...optionsIn.context
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
if (!isAsyncIteratorObject(output)) {
|
|
128
|
+
throw new Error("liveQuery requires an event iterator output");
|
|
129
|
+
}
|
|
130
|
+
return output;
|
|
131
|
+
}),
|
|
132
|
+
...optionsIn.input === skipToken ? { enabled: false } : {},
|
|
82
133
|
...optionsIn,
|
|
83
134
|
queryKey
|
|
84
135
|
};
|
|
@@ -108,7 +159,7 @@ function createProcedureUtils(client, options) {
|
|
|
108
159
|
}
|
|
109
160
|
});
|
|
110
161
|
},
|
|
111
|
-
|
|
162
|
+
...optionsIn.input === skipToken ? { enabled: false } : {},
|
|
112
163
|
...optionsIn,
|
|
113
164
|
queryKey
|
|
114
165
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/tanstack-query",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.06aad3a",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
],
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@tanstack/query-core": ">=5.80.2",
|
|
28
|
-
"@orpc/client": "0.0.0-next.
|
|
28
|
+
"@orpc/client": "0.0.0-next.06aad3a"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@orpc/shared": "0.0.0-next.
|
|
31
|
+
"@orpc/shared": "0.0.0-next.06aad3a"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@angular/core": "^20.
|
|
35
|
-
"@tanstack/angular-query-experimental": "^5.
|
|
36
|
-
"@tanstack/query-core": "^5.
|
|
37
|
-
"@tanstack/react-query": "^5.
|
|
38
|
-
"@tanstack/solid-query": "^5.
|
|
39
|
-
"@tanstack/svelte-query": "^5.
|
|
40
|
-
"@tanstack/vue-query": "^5.
|
|
41
|
-
"svelte": "^5.
|
|
42
|
-
"vue": "^3.5.
|
|
43
|
-
"zod": "^
|
|
34
|
+
"@angular/core": "^20.2.3",
|
|
35
|
+
"@tanstack/angular-query-experimental": "^5.85.9",
|
|
36
|
+
"@tanstack/query-core": "^5.85.9",
|
|
37
|
+
"@tanstack/react-query": "^5.85.9",
|
|
38
|
+
"@tanstack/solid-query": "^5.85.9",
|
|
39
|
+
"@tanstack/svelte-query": "^5.85.9",
|
|
40
|
+
"@tanstack/vue-query": "^5.85.9",
|
|
41
|
+
"svelte": "^5.38.6",
|
|
42
|
+
"vue": "^3.5.21",
|
|
43
|
+
"zod": "^4.1.5"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "unbuild",
|