@trpc/react-query 11.18.1-canary.19 → 11.18.1-canary.30
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/getQueryKey-4D2iXfB-.cjs +193 -0
- package/dist/getQueryKey-B1x5Ak4F.mjs +132 -0
- package/dist/getQueryKey-B1x5Ak4F.mjs.map +1 -0
- package/dist/{getQueryKey.d-CruH3ncI.d.mts → getQueryKey-Bw7DtJ4y.d.cts} +21 -46
- package/dist/getQueryKey-Bw7DtJ4y.d.cts.map +1 -0
- package/dist/{getQueryKey.d-C_PnqPni.d.cts → getQueryKey-Cgg9jecL.d.mts} +21 -46
- package/dist/getQueryKey-Cgg9jecL.d.mts.map +1 -0
- package/dist/index.cjs +16 -17
- package/dist/index.d.cts +3 -12
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -12
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -10
- package/dist/index.mjs.map +1 -1
- package/dist/rsc.cjs +49 -17
- package/dist/rsc.d.cts +3 -5
- package/dist/rsc.d.cts.map +1 -1
- package/dist/rsc.d.mts +3 -5
- package/dist/rsc.d.mts.map +1 -1
- package/dist/rsc.mjs +43 -11
- package/dist/rsc.mjs.map +1 -1
- package/dist/server/index.cjs +30 -35
- package/dist/server/index.d.cts +3 -5
- package/dist/server/index.d.cts.map +1 -1
- package/dist/server/index.d.mts +3 -5
- package/dist/server/index.d.mts.map +1 -1
- package/dist/server/index.mjs +20 -25
- package/dist/server/index.mjs.map +1 -1
- package/dist/shared/index.cjs +3 -4
- package/dist/shared/index.d.cts +2 -2
- package/dist/shared/index.d.mts +2 -2
- package/dist/shared/index.mjs +2 -4
- package/dist/{shared-Dt4RsQVp.cjs → shared-BhNi4Oqs.cjs} +210 -237
- package/dist/{shared-JtnEvJvB.mjs → shared-DhkLzxq7.mjs} +131 -160
- package/dist/shared-DhkLzxq7.mjs.map +1 -0
- package/package.json +6 -6
- package/src/createTRPCReact.tsx +1 -2
- package/src/index.ts +1 -0
- package/src/internals/context.tsx +10 -4
- package/src/internals/getQueryKey.ts +1 -3
- package/src/internals/useQueries.ts +9 -3
- package/src/shared/hooks/createHooksInternal.tsx +0 -1
- package/src/shared/hooks/types.ts +37 -20
- package/src/shared/types.ts +31 -12
- package/src/utils/createUtilityFunctions.ts +2 -2
- package/dist/getQueryKey-BY58RNzP.mjs +0 -196
- package/dist/getQueryKey-BY58RNzP.mjs.map +0 -1
- package/dist/getQueryKey-PyKLS56S.cjs +0 -242
- package/dist/getQueryKey.d-C_PnqPni.d.cts.map +0 -1
- package/dist/getQueryKey.d-CruH3ncI.d.mts.map +0 -1
- package/dist/shared-JtnEvJvB.mjs.map +0 -1
package/dist/server/index.mjs
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as _objectSpread2, i as getQueryKeyInternal, o as _objectWithoutProperties } from "../getQueryKey-B1x5Ak4F.mjs";
|
|
2
|
+
import { c as getQueryType, t as getQueryClient } from "../shared-DhkLzxq7.mjs";
|
|
3
3
|
import { TRPCUntypedClient, getUntypedClient } from "@trpc/client";
|
|
4
4
|
import { dehydrate } from "@tanstack/react-query";
|
|
5
5
|
import { callProcedure, createFlatProxy, createRecursiveProxy, run } from "@trpc/server/unstable-core-do-not-import";
|
|
6
6
|
import { getTransformer } from "@trpc/client/unstable-internals";
|
|
7
|
-
|
|
8
7
|
//#region src/server/ssgProxy.ts
|
|
9
|
-
var import_objectSpread2 = __toESM(require_objectSpread2(), 1);
|
|
10
|
-
var import_objectWithoutProperties = __toESM(require_objectWithoutProperties(), 1);
|
|
11
8
|
const _excluded = ["promise"];
|
|
12
9
|
/**
|
|
13
10
|
* Create functions you can use for server-side rendering / static generation
|
|
@@ -41,51 +38,50 @@ function createServerSideHelpers(opts) {
|
|
|
41
38
|
serialize: (obj) => transformer.output.serialize(obj)
|
|
42
39
|
};
|
|
43
40
|
})();
|
|
44
|
-
function _dehydrate(opts
|
|
41
|
+
function _dehydrate(opts = { shouldDehydrateQuery(query) {
|
|
45
42
|
if (query.state.status === "pending") return false;
|
|
46
43
|
return true;
|
|
47
44
|
} }) {
|
|
48
45
|
const before = run(() => {
|
|
49
|
-
const dehydrated = dehydrate(queryClient, opts
|
|
50
|
-
return (
|
|
46
|
+
const dehydrated = dehydrate(queryClient, opts);
|
|
47
|
+
return _objectSpread2(_objectSpread2({}, dehydrated), {}, { queries: dehydrated.queries.map((query) => {
|
|
51
48
|
if (query.promise) {
|
|
52
|
-
const { promise: _ } = query
|
|
53
|
-
return
|
|
49
|
+
const { promise: _ } = query;
|
|
50
|
+
return _objectWithoutProperties(query, _excluded);
|
|
54
51
|
}
|
|
55
52
|
return query;
|
|
56
53
|
}) });
|
|
57
54
|
});
|
|
58
|
-
|
|
59
|
-
return after;
|
|
55
|
+
return resolvedOpts.serialize(before);
|
|
60
56
|
}
|
|
61
|
-
const proxy = createRecursiveProxy((opts
|
|
62
|
-
const args = opts
|
|
57
|
+
const proxy = createRecursiveProxy((opts) => {
|
|
58
|
+
const args = opts.args;
|
|
63
59
|
const input = args[0];
|
|
64
|
-
const arrayPath = [...opts
|
|
60
|
+
const arrayPath = [...opts.path];
|
|
65
61
|
const utilName = arrayPath.pop();
|
|
66
62
|
const queryFn = () => resolvedOpts.query({
|
|
67
63
|
path: arrayPath.join("."),
|
|
68
64
|
input
|
|
69
65
|
});
|
|
70
66
|
const queryKey = getQueryKeyInternal(arrayPath, input, getQueryType(utilName));
|
|
71
|
-
|
|
67
|
+
return {
|
|
72
68
|
queryOptions: () => {
|
|
73
69
|
const args1 = args[1];
|
|
74
|
-
return (
|
|
70
|
+
return _objectSpread2(_objectSpread2({}, args1), {}, {
|
|
75
71
|
queryKey,
|
|
76
72
|
queryFn
|
|
77
73
|
});
|
|
78
74
|
},
|
|
79
75
|
infiniteQueryOptions: () => {
|
|
80
76
|
const args1 = args[1];
|
|
81
|
-
return (
|
|
77
|
+
return _objectSpread2(_objectSpread2({}, args1), {}, {
|
|
82
78
|
queryKey,
|
|
83
79
|
queryFn
|
|
84
80
|
});
|
|
85
81
|
},
|
|
86
82
|
fetch: () => {
|
|
87
83
|
const args1 = args[1];
|
|
88
|
-
return queryClient.fetchQuery((
|
|
84
|
+
return queryClient.fetchQuery(_objectSpread2(_objectSpread2({}, args1), {}, {
|
|
89
85
|
queryKey,
|
|
90
86
|
queryFn
|
|
91
87
|
}));
|
|
@@ -93,7 +89,7 @@ function createServerSideHelpers(opts) {
|
|
|
93
89
|
fetchInfinite: () => {
|
|
94
90
|
var _args1$initialCursor;
|
|
95
91
|
const args1 = args[1];
|
|
96
|
-
return queryClient.fetchInfiniteQuery((
|
|
92
|
+
return queryClient.fetchInfiniteQuery(_objectSpread2(_objectSpread2({}, args1), {}, {
|
|
97
93
|
queryKey,
|
|
98
94
|
queryFn,
|
|
99
95
|
initialPageParam: (_args1$initialCursor = args1 === null || args1 === void 0 ? void 0 : args1.initialCursor) !== null && _args1$initialCursor !== void 0 ? _args1$initialCursor : null
|
|
@@ -101,7 +97,7 @@ function createServerSideHelpers(opts) {
|
|
|
101
97
|
},
|
|
102
98
|
prefetch: () => {
|
|
103
99
|
const args1 = args[1];
|
|
104
|
-
return queryClient.prefetchQuery((
|
|
100
|
+
return queryClient.prefetchQuery(_objectSpread2(_objectSpread2({}, args1), {}, {
|
|
105
101
|
queryKey,
|
|
106
102
|
queryFn
|
|
107
103
|
}));
|
|
@@ -109,14 +105,13 @@ function createServerSideHelpers(opts) {
|
|
|
109
105
|
prefetchInfinite: () => {
|
|
110
106
|
var _args1$initialCursor2;
|
|
111
107
|
const args1 = args[1];
|
|
112
|
-
return queryClient.prefetchInfiniteQuery((
|
|
108
|
+
return queryClient.prefetchInfiniteQuery(_objectSpread2(_objectSpread2({}, args1), {}, {
|
|
113
109
|
queryKey,
|
|
114
110
|
queryFn,
|
|
115
111
|
initialPageParam: (_args1$initialCursor2 = args1 === null || args1 === void 0 ? void 0 : args1.initialCursor) !== null && _args1$initialCursor2 !== void 0 ? _args1$initialCursor2 : null
|
|
116
112
|
}));
|
|
117
113
|
}
|
|
118
|
-
};
|
|
119
|
-
return helperMap[utilName]();
|
|
114
|
+
}[utilName]();
|
|
120
115
|
});
|
|
121
116
|
return createFlatProxy((key) => {
|
|
122
117
|
if (key === "queryClient") return queryClient;
|
|
@@ -124,7 +119,7 @@ function createServerSideHelpers(opts) {
|
|
|
124
119
|
return proxy[key];
|
|
125
120
|
});
|
|
126
121
|
}
|
|
127
|
-
|
|
128
122
|
//#endregion
|
|
129
123
|
export { createServerSideHelpers };
|
|
124
|
+
|
|
130
125
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/server/ssgProxy.ts"],"sourcesContent":["import type {\n DehydratedState,\n DehydrateOptions,\n QueryClient,\n} from '@tanstack/react-query';\nimport { dehydrate } from '@tanstack/react-query';\nimport type { TRPCClient } from '@trpc/client';\nimport { getUntypedClient, TRPCUntypedClient } from '@trpc/client';\nimport type { CoercedTransformerParameters } from '@trpc/client/unstable-internals';\nimport {\n getTransformer,\n type TransformerOptions,\n} from '@trpc/client/unstable-internals';\nimport type {\n AnyQueryProcedure,\n AnyRootTypes,\n AnyRouter,\n inferClientTypes,\n inferRouterContext,\n Maybe,\n ProtectedIntersection,\n RouterRecord,\n} from '@trpc/server/unstable-core-do-not-import';\nimport {\n callProcedure,\n createFlatProxy,\n createRecursiveProxy,\n run,\n} from '@trpc/server/unstable-core-do-not-import';\nimport { getQueryKeyInternal } from '../internals/getQueryKey';\nimport type {\n CreateTRPCReactQueryClientConfig,\n DecorateQueryProcedure,\n TRPCFetchInfiniteQueryOptions,\n TRPCFetchQueryOptions,\n} from '../shared';\nimport { getQueryClient, getQueryType } from '../shared';\n\ntype CreateSSGHelpersInternal<TRouter extends AnyRouter> = {\n router: TRouter;\n ctx: inferRouterContext<TRouter>;\n} & TransformerOptions<inferClientTypes<TRouter>>;\n\ninterface CreateSSGHelpersExternal<TRouter extends AnyRouter> {\n client: TRPCClient<TRouter> | TRPCUntypedClient<TRouter>;\n}\n\ntype CreateServerSideHelpersOptions<TRouter extends AnyRouter> =\n CreateTRPCReactQueryClientConfig &\n (CreateSSGHelpersExternal<TRouter> | CreateSSGHelpersInternal<TRouter>);\n\ntype SSGFns =\n | 'queryOptions'\n | 'infiniteQueryOptions'\n | 'fetch'\n | 'fetchInfinite'\n | 'prefetch'\n | 'prefetchInfinite';\n\n/**\n * @internal\n */\ntype DecoratedProcedureSSGRecord<\n TRoot extends AnyRootTypes,\n TRecord extends RouterRecord,\n> = {\n [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value\n ? $Value extends AnyQueryProcedure\n ? Pick<DecorateQueryProcedure<TRoot, $Value>, SSGFns>\n : $Value extends RouterRecord\n ? DecoratedProcedureSSGRecord<TRoot, $Value>\n : never\n : never;\n};\n\ntype AnyDecoratedProcedure = Pick<DecorateQueryProcedure<any, any>, SSGFns>;\n\n/**\n * Create functions you can use for server-side rendering / static generation\n * @see https://trpc.io/docs/v11/client/nextjs/server-side-helpers\n */\nexport function createServerSideHelpers<TRouter extends AnyRouter>(\n opts: CreateServerSideHelpersOptions<TRouter>,\n) {\n const queryClient = getQueryClient(opts);\n const transformer = getTransformer(\n (opts as CoercedTransformerParameters).transformer,\n );\n\n const resolvedOpts: {\n serialize: (obj: unknown) => any;\n query: (queryOpts: { path: string; input: unknown }) => Promise<unknown>;\n } = (() => {\n if ('router' in opts) {\n const { ctx, router } = opts;\n return {\n serialize: (obj) => transformer.output.serialize(obj),\n query: (queryOpts) => {\n return callProcedure({\n router,\n path: queryOpts.path,\n getRawInput: async () => queryOpts.input,\n ctx,\n type: 'query',\n signal: undefined,\n batchIndex: 0,\n });\n },\n };\n }\n\n const { client } = opts;\n const untypedClient =\n client instanceof TRPCUntypedClient ? client : getUntypedClient(client);\n\n return {\n query: (queryOpts) =>\n untypedClient.query(queryOpts.path, queryOpts.input),\n serialize: (obj) => transformer.output.serialize(obj),\n };\n })();\n\n function _dehydrate(\n opts: DehydrateOptions = {\n shouldDehydrateQuery(query) {\n if (query.state.status === 'pending') {\n return false;\n }\n // makes sure to serialize errors\n return true;\n },\n },\n ): DehydratedState {\n const before = run(() => {\n const dehydrated = dehydrate(queryClient, opts);\n\n return {\n ...dehydrated,\n queries: dehydrated.queries.map((query) => {\n if (query.promise) {\n const { promise: _, ...rest } = query;\n return rest;\n }\n return query;\n }),\n };\n });\n const after = resolvedOpts.serialize(before);\n return after;\n }\n\n type CreateSSGHelpers = ProtectedIntersection<\n {\n queryClient: QueryClient;\n dehydrate: (opts?: DehydrateOptions) => DehydratedState;\n },\n DecoratedProcedureSSGRecord<\n TRouter['_def']['_config']['$types'],\n TRouter['_def']['record']\n >\n >;\n const proxy = createRecursiveProxy<CreateSSGHelpers>((opts) => {\n const args = opts.args;\n const input = args[0];\n const arrayPath = [...opts.path];\n const utilName = arrayPath.pop() as keyof AnyDecoratedProcedure;\n\n const queryFn = () =>\n resolvedOpts.query({ path: arrayPath.join('.'), input });\n\n const queryKey = getQueryKeyInternal(\n arrayPath,\n input,\n getQueryType(utilName),\n );\n\n const helperMap: Record<keyof AnyDecoratedProcedure, () => unknown> = {\n queryOptions: () => {\n const args1 = args[1] as Maybe<any>;\n return { ...args1, queryKey, queryFn };\n },\n infiniteQueryOptions: () => {\n const args1 = args[1] as Maybe<any>;\n return { ...args1, queryKey, queryFn };\n },\n fetch: () => {\n const args1 = args[1] as Maybe<TRPCFetchQueryOptions<any, any>>;\n return queryClient.fetchQuery({ ...args1, queryKey, queryFn });\n },\n fetchInfinite: () => {\n const args1 = args[1] as Maybe<\n TRPCFetchInfiniteQueryOptions<any, any, any>\n >;\n return queryClient.fetchInfiniteQuery({\n ...args1,\n queryKey,\n queryFn,\n initialPageParam: args1?.initialCursor ?? null,\n });\n },\n prefetch: () => {\n const args1 = args[1] as Maybe<TRPCFetchQueryOptions<any, any>>;\n return queryClient.prefetchQuery({ ...args1, queryKey, queryFn });\n },\n prefetchInfinite: () => {\n const args1 = args[1] as Maybe<\n TRPCFetchInfiniteQueryOptions<any, any, any>\n >;\n return queryClient.prefetchInfiniteQuery({\n ...args1,\n queryKey,\n queryFn,\n initialPageParam: args1?.initialCursor ?? null,\n });\n },\n };\n\n return helperMap[utilName]();\n });\n return createFlatProxy<CreateSSGHelpers>((key) => {\n if (key === 'queryClient') return queryClient;\n if (key === 'dehydrate') return _dehydrate;\n return proxy[key];\n });\n}\n"],"mappings":"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"}
|
package/dist/shared/index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const require_shared = require(
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_shared = require("../shared-BhNi4Oqs.cjs");
|
|
4
3
|
exports.TRPCContext = require_shared.TRPCContext;
|
|
5
4
|
exports.contextProps = require_shared.contextProps;
|
|
6
5
|
exports.createQueryUtilsProxy = require_shared.createQueryUtilsProxy;
|
|
@@ -10,4 +9,4 @@ exports.createRootHooks = require_shared.createRootHooks;
|
|
|
10
9
|
exports.createUseQueries = require_shared.createUseQueries;
|
|
11
10
|
exports.getClientArgs = require_shared.getClientArgs;
|
|
12
11
|
exports.getQueryClient = require_shared.getQueryClient;
|
|
13
|
-
exports.getQueryType = require_shared.getQueryType;
|
|
12
|
+
exports.getQueryType = require_shared.getQueryType;
|
package/dist/shared/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { CreateClient, CreateQueryUtils, CreateReactUtils, CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig, DecorateProcedure, DecorateQueryProcedure, DecorateRouterRecord, DecoratedProcedureUtilsRecord, DecoratedTRPCContextProps, DefinedTRPCInfiniteQueryOptionsIn, DefinedTRPCInfiniteQueryOptionsOut, DefinedTRPCQueryOptionsIn, DefinedTRPCQueryOptionsOut, DefinedUseTRPCQueryOptions, DefinedUseTRPCQueryResult, ExtractCursorType, InferMutationLikeData, InferMutationLikeInput, InferQueryLikeData, InferQueryLikeInput, MutationLike, OutputWithCursor, QueryLike, RouterLike, RouterLikeInner, SSRState, TRPCContext, TRPCContextProps, TRPCContextPropsBase, TRPCContextState, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions, TRPCHookResult, TRPCProvider, TRPCProviderProps, TRPCQueryBaseOptions, TRPCQueryOptions, TRPCQueryOptionsResult, TRPCQueryUtils, TRPCReactRequestOptions, TRPCSubscriptionBaseResult, TRPCSubscriptionConnectingResult, TRPCSubscriptionErrorResult, TRPCSubscriptionIdleResult, TRPCSubscriptionPendingResult, TRPCSubscriptionResult, TRPCUseQueries, TRPCUseQueryBaseOptions, TRPCUseSuspenseQueries, UndefinedTRPCInfiniteQueryOptionsIn, UndefinedTRPCInfiniteQueryOptionsOut, UndefinedTRPCQueryOptionsIn, UndefinedTRPCQueryOptionsOut, UnusedSkipTokenTRPCInfiniteQueryOptionsIn, UnusedSkipTokenTRPCInfiniteQueryOptionsOut, UnusedSkipTokenTRPCQueryOptionsIn, UnusedSkipTokenTRPCQueryOptionsOut, UseMutationOverride, UseQueriesProcedureRecord, UseSuspenseQueriesProcedureRecord, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult, UseTRPCInfiniteQuerySuccessResult, UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCPrefetchInfiniteQueryOptions, UseTRPCPrefetchQueryOptions, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCQuerySuccessResult, UseTRPCSubscriptionOptions, UseTRPCSuspenseInfiniteQueryOptions, UseTRPCSuspenseInfiniteQueryResult, UseTRPCSuspenseQueryOptions, UseTRPCSuspenseQueryResult, UtilsLike, contextProps, createQueryUtilsProxy, createReactDecoration, createReactQueryUtils, createRootHooks, createUseQueries, getClientArgs, getQueryClient, getQueryType };
|
|
1
|
+
import { $ as DefinedUseTRPCQueryResult, A as createReactQueryUtils, At as SSRState, B as TRPCQueryBaseOptions, C as UseSuspenseQueriesProcedureRecord, Ct as UseTRPCQuerySuccessResult, D as DecorateQueryProcedure, Dt as UseTRPCSuspenseQueryOptions, E as CreateReactUtils, Et as UseTRPCSuspenseInfiniteQueryResult, F as CreateTRPCReactOptions, Ft as TRPCFetchInfiniteQueryOptions, G as UndefinedTRPCQueryOptionsOut, H as UndefinedTRPCInfiniteQueryOptionsIn, I as DefinedTRPCInfiniteQueryOptionsIn, It as TRPCFetchQueryOptions, J as UnusedSkipTokenTRPCQueryOptionsIn, K as UnusedSkipTokenTRPCInfiniteQueryOptionsIn, L as DefinedTRPCInfiniteQueryOptionsOut, Lt as TRPCQueryUtils, Mt as TRPCContextProps, N as createReactDecoration, Nt as TRPCContextPropsBase, O as DecoratedProcedureUtilsRecord, Ot as UseTRPCSuspenseQueryResult, P as createRootHooks, Pt as TRPCContextState, Q as DefinedUseTRPCQueryOptions, R as DefinedTRPCQueryOptionsIn, Rt as contextProps, S as UseQueriesProcedureRecord, St as UseTRPCQueryResult, T as CreateQueryUtils, Tt as UseTRPCSuspenseInfiniteQueryOptions, U as UndefinedTRPCInfiniteQueryOptionsOut, V as TRPCQueryOptionsResult, W as UndefinedTRPCQueryOptionsIn, X as UseMutationOverride, Y as UnusedSkipTokenTRPCQueryOptionsOut, Z as CreateClient, _ as InferMutationLikeData, _t as UseTRPCMutationOptions, a as DecorateProcedure, at as TRPCQueryOptions, b as CreateTRPCReactQueryClientConfig, bt as UseTRPCPrefetchQueryOptions, c as TRPCUseQueries, ct as TRPCSubscriptionConnectingResult, d as UtilsLike, dt as TRPCSubscriptionPendingResult, et as ExtractCursorType, f as RouterLike, ft as TRPCSubscriptionResult, g as QueryLike, gt as UseTRPCInfiniteQuerySuccessResult, h as InferQueryLikeInput, ht as UseTRPCInfiniteQueryResult, it as TRPCProviderProps, j as getQueryType, jt as TRPCContext, k as createQueryUtilsProxy, kt as DecoratedTRPCContextProps, l as TRPCUseSuspenseQueries, lt as TRPCSubscriptionErrorResult, m as InferQueryLikeData, mt as UseTRPCInfiniteQueryOptions, nt as TRPCHookResult, o as DecorateRouterRecord, ot as TRPCReactRequestOptions, p as RouterLikeInner, pt as TRPCUseQueryBaseOptions, q as UnusedSkipTokenTRPCInfiniteQueryOptionsOut, rt as TRPCProvider, st as TRPCSubscriptionBaseResult, tt as OutputWithCursor, u as getClientArgs, ut as TRPCSubscriptionIdleResult, v as InferMutationLikeInput, vt as UseTRPCMutationResult, w as createUseQueries, wt as UseTRPCSubscriptionOptions, x as getQueryClient, xt as UseTRPCQueryOptions, y as MutationLike, yt as UseTRPCPrefetchInfiniteQueryOptions, z as DefinedTRPCQueryOptionsOut } from "../getQueryKey-Bw7DtJ4y.cjs";
|
|
2
|
+
export { CreateClient, CreateQueryUtils, CreateReactUtils, CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig, type DecorateProcedure, DecorateQueryProcedure, type DecorateRouterRecord, DecoratedProcedureUtilsRecord, DecoratedTRPCContextProps, DefinedTRPCInfiniteQueryOptionsIn, DefinedTRPCInfiniteQueryOptionsOut, DefinedTRPCQueryOptionsIn, DefinedTRPCQueryOptionsOut, DefinedUseTRPCQueryOptions, DefinedUseTRPCQueryResult, ExtractCursorType, InferMutationLikeData, InferMutationLikeInput, InferQueryLikeData, InferQueryLikeInput, MutationLike, OutputWithCursor, QueryLike, RouterLike, RouterLikeInner, SSRState, TRPCContext, TRPCContextProps, TRPCContextPropsBase, TRPCContextState, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions, TRPCHookResult, TRPCProvider, TRPCProviderProps, TRPCQueryBaseOptions, TRPCQueryOptions, TRPCQueryOptionsResult, TRPCQueryUtils, TRPCReactRequestOptions, TRPCSubscriptionBaseResult, TRPCSubscriptionConnectingResult, TRPCSubscriptionErrorResult, TRPCSubscriptionIdleResult, TRPCSubscriptionPendingResult, TRPCSubscriptionResult, type TRPCUseQueries, TRPCUseQueryBaseOptions, type TRPCUseSuspenseQueries, UndefinedTRPCInfiniteQueryOptionsIn, UndefinedTRPCInfiniteQueryOptionsOut, UndefinedTRPCQueryOptionsIn, UndefinedTRPCQueryOptionsOut, UnusedSkipTokenTRPCInfiniteQueryOptionsIn, UnusedSkipTokenTRPCInfiniteQueryOptionsOut, UnusedSkipTokenTRPCQueryOptionsIn, UnusedSkipTokenTRPCQueryOptionsOut, UseMutationOverride, UseQueriesProcedureRecord, UseSuspenseQueriesProcedureRecord, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult, UseTRPCInfiniteQuerySuccessResult, UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCPrefetchInfiniteQueryOptions, UseTRPCPrefetchQueryOptions, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCQuerySuccessResult, UseTRPCSubscriptionOptions, UseTRPCSuspenseInfiniteQueryOptions, UseTRPCSuspenseInfiniteQueryResult, UseTRPCSuspenseQueryOptions, UseTRPCSuspenseQueryResult, UtilsLike, contextProps, createQueryUtilsProxy, createReactDecoration, createReactQueryUtils, createRootHooks, createUseQueries, getClientArgs, getQueryClient, getQueryType };
|
package/dist/shared/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { CreateClient, CreateQueryUtils, CreateReactUtils, CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig, DecorateProcedure, DecorateQueryProcedure, DecorateRouterRecord, DecoratedProcedureUtilsRecord, DecoratedTRPCContextProps, DefinedTRPCInfiniteQueryOptionsIn, DefinedTRPCInfiniteQueryOptionsOut, DefinedTRPCQueryOptionsIn, DefinedTRPCQueryOptionsOut, DefinedUseTRPCQueryOptions, DefinedUseTRPCQueryResult, ExtractCursorType, InferMutationLikeData, InferMutationLikeInput, InferQueryLikeData, InferQueryLikeInput, MutationLike, OutputWithCursor, QueryLike, RouterLike, RouterLikeInner, SSRState, TRPCContext, TRPCContextProps, TRPCContextPropsBase, TRPCContextState, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions, TRPCHookResult, TRPCProvider, TRPCProviderProps, TRPCQueryBaseOptions, TRPCQueryOptions, TRPCQueryOptionsResult, TRPCQueryUtils, TRPCReactRequestOptions, TRPCSubscriptionBaseResult, TRPCSubscriptionConnectingResult, TRPCSubscriptionErrorResult, TRPCSubscriptionIdleResult, TRPCSubscriptionPendingResult, TRPCSubscriptionResult, TRPCUseQueries, TRPCUseQueryBaseOptions, TRPCUseSuspenseQueries, UndefinedTRPCInfiniteQueryOptionsIn, UndefinedTRPCInfiniteQueryOptionsOut, UndefinedTRPCQueryOptionsIn, UndefinedTRPCQueryOptionsOut, UnusedSkipTokenTRPCInfiniteQueryOptionsIn, UnusedSkipTokenTRPCInfiniteQueryOptionsOut, UnusedSkipTokenTRPCQueryOptionsIn, UnusedSkipTokenTRPCQueryOptionsOut, UseMutationOverride, UseQueriesProcedureRecord, UseSuspenseQueriesProcedureRecord, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult, UseTRPCInfiniteQuerySuccessResult, UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCPrefetchInfiniteQueryOptions, UseTRPCPrefetchQueryOptions, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCQuerySuccessResult, UseTRPCSubscriptionOptions, UseTRPCSuspenseInfiniteQueryOptions, UseTRPCSuspenseInfiniteQueryResult, UseTRPCSuspenseQueryOptions, UseTRPCSuspenseQueryResult, UtilsLike, contextProps, createQueryUtilsProxy, createReactDecoration, createReactQueryUtils, createRootHooks, createUseQueries, getClientArgs, getQueryClient, getQueryType };
|
|
1
|
+
import { $ as DefinedUseTRPCQueryResult, A as createReactQueryUtils, At as SSRState, B as TRPCQueryBaseOptions, C as UseSuspenseQueriesProcedureRecord, Ct as UseTRPCQuerySuccessResult, D as DecorateQueryProcedure, Dt as UseTRPCSuspenseQueryOptions, E as CreateReactUtils, Et as UseTRPCSuspenseInfiniteQueryResult, F as CreateTRPCReactOptions, Ft as TRPCFetchInfiniteQueryOptions, G as UndefinedTRPCQueryOptionsOut, H as UndefinedTRPCInfiniteQueryOptionsIn, I as DefinedTRPCInfiniteQueryOptionsIn, It as TRPCFetchQueryOptions, J as UnusedSkipTokenTRPCQueryOptionsIn, K as UnusedSkipTokenTRPCInfiniteQueryOptionsIn, L as DefinedTRPCInfiniteQueryOptionsOut, Lt as TRPCQueryUtils, Mt as TRPCContextProps, N as createReactDecoration, Nt as TRPCContextPropsBase, O as DecoratedProcedureUtilsRecord, Ot as UseTRPCSuspenseQueryResult, P as createRootHooks, Pt as TRPCContextState, Q as DefinedUseTRPCQueryOptions, R as DefinedTRPCQueryOptionsIn, Rt as contextProps, S as UseQueriesProcedureRecord, St as UseTRPCQueryResult, T as CreateQueryUtils, Tt as UseTRPCSuspenseInfiniteQueryOptions, U as UndefinedTRPCInfiniteQueryOptionsOut, V as TRPCQueryOptionsResult, W as UndefinedTRPCQueryOptionsIn, X as UseMutationOverride, Y as UnusedSkipTokenTRPCQueryOptionsOut, Z as CreateClient, _ as InferMutationLikeData, _t as UseTRPCMutationOptions, a as DecorateProcedure, at as TRPCQueryOptions, b as CreateTRPCReactQueryClientConfig, bt as UseTRPCPrefetchQueryOptions, c as TRPCUseQueries, ct as TRPCSubscriptionConnectingResult, d as UtilsLike, dt as TRPCSubscriptionPendingResult, et as ExtractCursorType, f as RouterLike, ft as TRPCSubscriptionResult, g as QueryLike, gt as UseTRPCInfiniteQuerySuccessResult, h as InferQueryLikeInput, ht as UseTRPCInfiniteQueryResult, it as TRPCProviderProps, j as getQueryType, jt as TRPCContext, k as createQueryUtilsProxy, kt as DecoratedTRPCContextProps, l as TRPCUseSuspenseQueries, lt as TRPCSubscriptionErrorResult, m as InferQueryLikeData, mt as UseTRPCInfiniteQueryOptions, nt as TRPCHookResult, o as DecorateRouterRecord, ot as TRPCReactRequestOptions, p as RouterLikeInner, pt as TRPCUseQueryBaseOptions, q as UnusedSkipTokenTRPCInfiniteQueryOptionsOut, rt as TRPCProvider, st as TRPCSubscriptionBaseResult, tt as OutputWithCursor, u as getClientArgs, ut as TRPCSubscriptionIdleResult, v as InferMutationLikeInput, vt as UseTRPCMutationResult, w as createUseQueries, wt as UseTRPCSubscriptionOptions, x as getQueryClient, xt as UseTRPCQueryOptions, y as MutationLike, yt as UseTRPCPrefetchInfiniteQueryOptions, z as DefinedTRPCQueryOptionsOut } from "../getQueryKey-Cgg9jecL.mjs";
|
|
2
|
+
export { CreateClient, CreateQueryUtils, CreateReactUtils, CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig, type DecorateProcedure, DecorateQueryProcedure, type DecorateRouterRecord, DecoratedProcedureUtilsRecord, DecoratedTRPCContextProps, DefinedTRPCInfiniteQueryOptionsIn, DefinedTRPCInfiniteQueryOptionsOut, DefinedTRPCQueryOptionsIn, DefinedTRPCQueryOptionsOut, DefinedUseTRPCQueryOptions, DefinedUseTRPCQueryResult, ExtractCursorType, InferMutationLikeData, InferMutationLikeInput, InferQueryLikeData, InferQueryLikeInput, MutationLike, OutputWithCursor, QueryLike, RouterLike, RouterLikeInner, SSRState, TRPCContext, TRPCContextProps, TRPCContextPropsBase, TRPCContextState, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions, TRPCHookResult, TRPCProvider, TRPCProviderProps, TRPCQueryBaseOptions, TRPCQueryOptions, TRPCQueryOptionsResult, TRPCQueryUtils, TRPCReactRequestOptions, TRPCSubscriptionBaseResult, TRPCSubscriptionConnectingResult, TRPCSubscriptionErrorResult, TRPCSubscriptionIdleResult, TRPCSubscriptionPendingResult, TRPCSubscriptionResult, type TRPCUseQueries, TRPCUseQueryBaseOptions, type TRPCUseSuspenseQueries, UndefinedTRPCInfiniteQueryOptionsIn, UndefinedTRPCInfiniteQueryOptionsOut, UndefinedTRPCQueryOptionsIn, UndefinedTRPCQueryOptionsOut, UnusedSkipTokenTRPCInfiniteQueryOptionsIn, UnusedSkipTokenTRPCInfiniteQueryOptionsOut, UnusedSkipTokenTRPCQueryOptionsIn, UnusedSkipTokenTRPCQueryOptionsOut, UseMutationOverride, UseQueriesProcedureRecord, UseSuspenseQueriesProcedureRecord, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult, UseTRPCInfiniteQuerySuccessResult, UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCPrefetchInfiniteQueryOptions, UseTRPCPrefetchQueryOptions, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCQuerySuccessResult, UseTRPCSubscriptionOptions, UseTRPCSuspenseInfiniteQueryOptions, UseTRPCSuspenseInfiniteQueryResult, UseTRPCSuspenseQueryOptions, UseTRPCSuspenseQueryResult, UtilsLike, contextProps, createQueryUtilsProxy, createReactDecoration, createReactQueryUtils, createRootHooks, createUseQueries, getClientArgs, getQueryClient, getQueryType };
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { TRPCContext, contextProps, createQueryUtilsProxy, createReactDecoration, createReactQueryUtils, createRootHooks, createUseQueries, getClientArgs, getQueryClient, getQueryType };
|
|
1
|
+
import { a as createUseQueries, c as getQueryType, d as createReactDecoration, i as getClientArgs, l as TRPCContext, n as createRootHooks, o as createQueryUtilsProxy, s as createReactQueryUtils, t as getQueryClient, u as contextProps } from "../shared-DhkLzxq7.mjs";
|
|
2
|
+
export { TRPCContext, contextProps, createQueryUtilsProxy, createReactDecoration, createReactQueryUtils, createRootHooks, createUseQueries, getClientArgs, getQueryClient, getQueryType };
|