@trpc/react-query 11.0.0-alpha-tmp.195 → 11.0.0-alpha-tmp.213
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/bundle-analysis.json +24 -24
- package/dist/{createHooksInternal-59e1fe8b.js → createHooksInternal-7ec4d77f.js} +2 -2
- package/dist/{createHooksInternal-e7670370.mjs → createHooksInternal-99f56cf8.mjs} +2 -2
- package/dist/{createHooksInternal-321132ae.js → createHooksInternal-e15b2117.js} +4 -4
- package/dist/createTRPCReact.d.ts +1 -2
- package/dist/createTRPCReact.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/server/index.js +3 -4
- package/dist/server/index.mjs +2 -3
- package/dist/server/ssgProxy.d.ts +1 -2
- package/dist/server/ssgProxy.d.ts.map +1 -1
- package/dist/shared/index.js +3 -3
- package/dist/shared/index.mjs +3 -3
- package/dist/shared/polymorphism/mutationLike.d.ts +1 -2
- package/dist/shared/polymorphism/mutationLike.d.ts.map +1 -1
- package/dist/shared/polymorphism/queryLike.d.ts +1 -2
- package/dist/shared/polymorphism/queryLike.d.ts.map +1 -1
- package/dist/shared/proxy/decorationProxy.d.ts.map +1 -1
- package/dist/shared/proxy/useQueriesProxy.d.ts +1 -2
- package/dist/shared/proxy/useQueriesProxy.d.ts.map +1 -1
- package/dist/shared/proxy/utilsProxy.d.ts +1 -2
- package/dist/shared/proxy/utilsProxy.d.ts.map +1 -1
- package/dist/utils/inferReactQueryProcedure.d.ts +1 -2
- package/dist/utils/inferReactQueryProcedure.d.ts.map +1 -1
- package/dist/{utilsProxy-7e6ca9b7.js → utilsProxy-003891dc.js} +1 -1
- package/dist/{utilsProxy-003fc567.js → utilsProxy-aa151f2c.js} +4 -4
- package/dist/{utilsProxy-d2dce2dc.mjs → utilsProxy-e4c93b46.mjs} +1 -1
- package/package.json +9 -8
- package/src/createTRPCReact.tsx +3 -5
- package/src/server/ssgProxy.ts +3 -5
- package/src/shared/polymorphism/mutationLike.ts +6 -2
- package/src/shared/polymorphism/queryLike.ts +6 -2
- package/src/shared/proxy/decorationProxy.ts +1 -2
- package/src/shared/proxy/useQueriesProxy.ts +2 -4
- package/src/shared/proxy/utilsProxy.ts +3 -5
- package/src/utils/inferReactQueryProcedure.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 56.
|
|
2
|
+
"bundleSize": 26743,
|
|
3
|
+
"bundleOrigSize": 61264,
|
|
4
|
+
"bundleReduction": 56.35,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/shared/hooks/createHooksInternal.tsx",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/createTRPCReact.tsx"
|
|
16
16
|
],
|
|
17
|
-
"percent": 47.
|
|
17
|
+
"percent": 47.07,
|
|
18
18
|
"reduction": 17.12
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"id": "/src/server/ssgProxy.ts",
|
|
22
|
-
"size":
|
|
23
|
-
"origSize":
|
|
22
|
+
"size": 3630,
|
|
23
|
+
"origSize": 6974,
|
|
24
24
|
"renderedExports": [
|
|
25
25
|
"createServerSideHelpers"
|
|
26
26
|
],
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dependents": [
|
|
29
29
|
"/src/server/index.ts"
|
|
30
30
|
],
|
|
31
|
-
"percent": 13.
|
|
32
|
-
"reduction":
|
|
31
|
+
"percent": 13.57,
|
|
32
|
+
"reduction": 47.95
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"id": "/src/utils/createUtilityFunctions.ts",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"/src/createTRPCQueryUtils.tsx",
|
|
44
44
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
45
45
|
],
|
|
46
|
-
"percent": 12.
|
|
46
|
+
"percent": 12.21,
|
|
47
47
|
"reduction": 10.6
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"id": "/src/shared/proxy/utilsProxy.ts",
|
|
51
|
-
"size":
|
|
52
|
-
"origSize":
|
|
51
|
+
"size": 2660,
|
|
52
|
+
"origSize": 10265,
|
|
53
53
|
"renderedExports": [
|
|
54
54
|
"getQueryType",
|
|
55
55
|
"createReactQueryUtils",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"dependents": [
|
|
60
60
|
"/src/shared/index.ts"
|
|
61
61
|
],
|
|
62
|
-
"percent": 9.
|
|
63
|
-
"reduction": 74.
|
|
62
|
+
"percent": 9.95,
|
|
63
|
+
"reduction": 74.09
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"id": "/src/internals/getQueryKey.ts",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"id": "/src/createTRPCReact.tsx",
|
|
86
|
-
"size":
|
|
87
|
-
"origSize":
|
|
86
|
+
"size": 826,
|
|
87
|
+
"origSize": 8557,
|
|
88
88
|
"renderedExports": [
|
|
89
89
|
"createHooksInternal",
|
|
90
90
|
"createTRPCReact"
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
"/src/index.ts"
|
|
95
95
|
],
|
|
96
96
|
"percent": 3.09,
|
|
97
|
-
"reduction": 90.
|
|
97
|
+
"reduction": 90.35
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"id": "/src/shared/proxy/decorationProxy.ts",
|
|
101
|
-
"size":
|
|
102
|
-
"origSize":
|
|
101
|
+
"size": 787,
|
|
102
|
+
"origSize": 950,
|
|
103
103
|
"renderedExports": [
|
|
104
104
|
"createReactDecoration"
|
|
105
105
|
],
|
|
@@ -107,13 +107,13 @@
|
|
|
107
107
|
"dependents": [
|
|
108
108
|
"/src/shared/index.ts"
|
|
109
109
|
],
|
|
110
|
-
"percent": 2.
|
|
111
|
-
"reduction":
|
|
110
|
+
"percent": 2.94,
|
|
111
|
+
"reduction": 17.16
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"id": "/src/shared/proxy/useQueriesProxy.ts",
|
|
115
|
-
"size":
|
|
116
|
-
"origSize":
|
|
115
|
+
"size": 549,
|
|
116
|
+
"origSize": 3061,
|
|
117
117
|
"renderedExports": [
|
|
118
118
|
"createUseQueries"
|
|
119
119
|
],
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
"/src/shared/index.ts",
|
|
123
123
|
"/src/shared/hooks/createHooksInternal.tsx"
|
|
124
124
|
],
|
|
125
|
-
"percent": 2.
|
|
126
|
-
"reduction": 82.
|
|
125
|
+
"percent": 2.05,
|
|
126
|
+
"reduction": 82.06
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"id": "/src/internals/getClientArgs.ts",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createRecursiveProxy } from '@trpc/core
|
|
1
|
+
import { createRecursiveProxy } from '@trpc/core';
|
|
2
2
|
import { useQuery, useSuspenseQuery, useQueryClient, useMutation, hashKey, useInfiniteQuery, useSuspenseInfiniteQuery, useQueries, useSuspenseQueries } from '@tanstack/react-query';
|
|
3
3
|
import { TRPCUntypedClient, getUntypedClient, createTRPCUntypedClient } from '@trpc/client';
|
|
4
4
|
import React, { useRef, useState, useMemo, useEffect } from 'react';
|
|
5
|
-
import { b as getQueryKeyInternal, T as TRPCContext } from './utilsProxy-
|
|
5
|
+
import { b as getQueryKeyInternal, T as TRPCContext } from './utilsProxy-003891dc.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Create proxy for decorating procedures
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createRecursiveProxy } from '@trpc/core
|
|
1
|
+
import { createRecursiveProxy } from '@trpc/core';
|
|
2
2
|
import { useQuery, useSuspenseQuery, useQueryClient, useMutation, hashKey, useInfiniteQuery, useSuspenseInfiniteQuery, useQueries, useSuspenseQueries } from '@tanstack/react-query';
|
|
3
3
|
import { TRPCUntypedClient, getUntypedClient, createTRPCUntypedClient } from '@trpc/client';
|
|
4
4
|
import React, { useRef, useState, useMemo, useEffect } from 'react';
|
|
5
|
-
import { b as getQueryKeyInternal, T as TRPCContext } from './utilsProxy-
|
|
5
|
+
import { b as getQueryKeyInternal, T as TRPCContext } from './utilsProxy-e4c93b46.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Create proxy for decorating procedures
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@trpc/core');
|
|
4
4
|
var reactQuery = require('@tanstack/react-query');
|
|
5
5
|
var client = require('@trpc/client');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var utilsProxy = require('./utilsProxy-
|
|
7
|
+
var utilsProxy = require('./utilsProxy-aa151f2c.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
14
14
|
* Create proxy for decorating procedures
|
|
15
15
|
* @internal
|
|
16
16
|
*/ function createReactDecoration(name, hooks) {
|
|
17
|
-
return
|
|
17
|
+
return core.createRecursiveProxy(({ path , args })=>{
|
|
18
18
|
const pathCopy = [
|
|
19
19
|
name,
|
|
20
20
|
...path
|
|
@@ -40,7 +40,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
40
40
|
* Create proxy for `useQueries` options
|
|
41
41
|
* @internal
|
|
42
42
|
*/ function createUseQueries(client) {
|
|
43
|
-
return
|
|
43
|
+
return core.createRecursiveProxy((opts)=>{
|
|
44
44
|
const arrayPath = opts.path;
|
|
45
45
|
const dotPath = arrayPath.join('.');
|
|
46
46
|
const [input, _opts] = opts.args;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TRPCClientErrorLike } from '@trpc/client';
|
|
2
|
-
import { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, AnySubscriptionProcedure, inferProcedureInput, ProcedureRouterRecord, ProtectedIntersection } from '@trpc/core';
|
|
3
|
-
import { inferTransformedProcedureOutput, inferTransformedSubscriptionOutput } from '@trpc/core/shared';
|
|
2
|
+
import { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, AnySubscriptionProcedure, inferProcedureInput, inferTransformedProcedureOutput, inferTransformedSubscriptionOutput, ProcedureRouterRecord, ProtectedIntersection } from '@trpc/core';
|
|
4
3
|
import { TRPCUseQueries, TRPCUseSuspenseQueries } from './internals/useQueries';
|
|
5
4
|
import { CreateReactUtils } from './shared';
|
|
6
5
|
import { CreateReactQueryHooks } from './shared/hooks/createHooksInternal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTRPCReact.d.ts","sourceRoot":"","sources":["../src/createTRPCReact.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,wBAAwB,
|
|
1
|
+
{"version":3,"file":"createTRPCReact.d.ts","sourceRoot":"","sources":["../src/createTRPCReact.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,wBAAwB,EAExB,mBAAmB,EACnB,+BAA+B,EAC/B,kCAAkC,EAClC,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAGL,gBAAgB,EACjB,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AM,MAAM,eAAe,CACzB,OAAO,SAAS,SAAS,EACzB,WAAW,EACX,MAAM,IACJ,qBAAqB,CACvB,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,EACzC,wBAAwB,CACtB,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EACzB,MAAM,CACP,CACF,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,MAAM,GAAG,IAAI,EACb,IAAI,EAAE,qBAAqB,CAAC,OAAO,EAAE,WAAW,CAAC,6JAoBlD;AAED,wBAAgB,eAAe,CAC7B,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,MAAM,GAAG,IAAI,EAEb,IAAI,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,GACrC,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,CAK/C"}
|
package/dist/index.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var client = require('@trpc/client');
|
|
6
|
-
var utilsProxy = require('./utilsProxy-
|
|
7
|
-
var
|
|
6
|
+
var utilsProxy = require('./utilsProxy-aa151f2c.js');
|
|
7
|
+
var core = require('@trpc/core');
|
|
8
8
|
var React = require('react');
|
|
9
|
-
var createHooksInternal$1 = require('./createHooksInternal-
|
|
9
|
+
var createHooksInternal$1 = require('./createHooksInternal-e15b2117.js');
|
|
10
10
|
require('@tanstack/react-query');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/ function createHooksInternal(trpc) {
|
|
15
|
-
return
|
|
15
|
+
return core.createFlatProxy((key)=>{
|
|
16
16
|
if (key === 'useContext' || key === 'useUtils') {
|
|
17
17
|
return ()=>{
|
|
18
18
|
const context = trpc.useUtils();
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from '@trpc/client';
|
|
2
|
-
import { c as createReactQueryUtils, a as createQueryUtilsProxy } from './utilsProxy-
|
|
3
|
-
export { g as getQueryKey } from './utilsProxy-
|
|
4
|
-
import { createFlatProxy } from '@trpc/core
|
|
2
|
+
import { c as createReactQueryUtils, a as createQueryUtilsProxy } from './utilsProxy-e4c93b46.mjs';
|
|
3
|
+
export { g as getQueryKey } from './utilsProxy-e4c93b46.mjs';
|
|
4
|
+
import { createFlatProxy } from '@trpc/core';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
-
import { c as createRootHooks, a as createReactDecoration, b as createUtilityFunctions } from './createHooksInternal-
|
|
6
|
+
import { c as createRootHooks, a as createReactDecoration, b as createUtilityFunctions } from './createHooksInternal-99f56cf8.mjs';
|
|
7
7
|
import '@tanstack/react-query';
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/server/index.js
CHANGED
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var reactQuery = require('@tanstack/react-query');
|
|
6
6
|
var client = require('@trpc/client');
|
|
7
7
|
var core = require('@trpc/core');
|
|
8
|
-
var
|
|
9
|
-
var utilsProxy = require('../utilsProxy-003fc567.js');
|
|
8
|
+
var utilsProxy = require('../utilsProxy-aa151f2c.js');
|
|
10
9
|
require('react');
|
|
11
10
|
var queryClient = require('../queryClient-358a9a75.js');
|
|
12
11
|
|
|
@@ -48,10 +47,10 @@ var queryClient = require('../queryClient-358a9a75.js');
|
|
|
48
47
|
const after = resolvedOpts.serialize(before);
|
|
49
48
|
return after;
|
|
50
49
|
}
|
|
51
|
-
return
|
|
50
|
+
return core.createFlatProxy((key)=>{
|
|
52
51
|
if (key === 'queryClient') return queryClient$1;
|
|
53
52
|
if (key === 'dehydrate') return _dehydrate;
|
|
54
|
-
return
|
|
53
|
+
return core.createRecursiveProxy((opts)=>{
|
|
55
54
|
const args = opts.args;
|
|
56
55
|
const input = args[0];
|
|
57
56
|
const arrayPath = [
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { dehydrate } from '@tanstack/react-query';
|
|
2
2
|
import { TRPCUntypedClient, getUntypedClient } from '@trpc/client';
|
|
3
|
-
import { callProcedure } from '@trpc/core';
|
|
4
|
-
import {
|
|
5
|
-
import { b as getQueryKeyInternal, d as getQueryType } from '../utilsProxy-d2dce2dc.mjs';
|
|
3
|
+
import { callProcedure, createFlatProxy, createRecursiveProxy } from '@trpc/core';
|
|
4
|
+
import { b as getQueryKeyInternal, d as getQueryType } from '../utilsProxy-e4c93b46.mjs';
|
|
6
5
|
import 'react';
|
|
7
6
|
import { g as getQueryClient } from '../queryClient-4d766c0c.mjs';
|
|
8
7
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DehydratedState, DehydrateOptions, InfiniteData, QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import { inferRouterClient, TRPCClientError, TRPCUntypedClient } from '@trpc/client';
|
|
3
|
-
import { AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, DataTransformerOptions, Filter, inferProcedureInput, inferRouterContext, ProtectedIntersection } from '@trpc/core';
|
|
4
|
-
import { inferTransformedProcedureOutput } from '@trpc/core/shared';
|
|
3
|
+
import { AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, DataTransformerOptions, Filter, inferProcedureInput, inferRouterContext, inferTransformedProcedureOutput, ProtectedIntersection } from '@trpc/core';
|
|
5
4
|
import { CreateTRPCReactQueryClientConfig, ExtractCursorType, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions } from '../shared';
|
|
6
5
|
interface CreateSSGHelpersInternal<TRouter extends AnyRouter> {
|
|
7
6
|
router: TRouter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssgProxy.d.ts","sourceRoot":"","sources":["../../src/server/ssgProxy.ts"],"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AAI,IAAI,MAAM,MAAM,CACnB,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EACzB,iBAAiB,GAAG,SAAS,CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GACjD,2BAA2B,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAE5D,iBAAiB,CACf,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAChC;CACN,CAAC;AAIF;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,SAAS,SAAS,EAC/D,IAAI,EAAE,8BAA8B,CAAC,OAAO,CAAC;iBAoD5B,WAAW;uBACL,gBAAgB,KAAK,eAAe;yCA4D5D"}
|
package/dist/shared/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var createHooksInternal = require('../createHooksInternal-
|
|
6
|
-
var utilsProxy = require('../utilsProxy-
|
|
5
|
+
var createHooksInternal = require('../createHooksInternal-e15b2117.js');
|
|
6
|
+
var utilsProxy = require('../utilsProxy-aa151f2c.js');
|
|
7
7
|
var queryClient = require('../queryClient-358a9a75.js');
|
|
8
|
-
require('@trpc/core
|
|
8
|
+
require('@trpc/core');
|
|
9
9
|
require('@tanstack/react-query');
|
|
10
10
|
require('@trpc/client');
|
|
11
11
|
require('react');
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as createReactDecoration, c as createRootHooks, d as createUseQueries, g as getClientArgs } from '../createHooksInternal-
|
|
2
|
-
export { T as TRPCContext, e as contextProps, a as createQueryUtilsProxy, c as createReactQueryUtils, d as getQueryType } from '../utilsProxy-
|
|
1
|
+
export { a as createReactDecoration, c as createRootHooks, d as createUseQueries, g as getClientArgs } from '../createHooksInternal-99f56cf8.mjs';
|
|
2
|
+
export { T as TRPCContext, e as contextProps, a as createQueryUtilsProxy, c as createReactQueryUtils, d as getQueryType } from '../utilsProxy-e4c93b46.mjs';
|
|
3
3
|
export { g as getQueryClient } from '../queryClient-4d766c0c.mjs';
|
|
4
|
-
import '@trpc/core
|
|
4
|
+
import '@trpc/core';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '@trpc/client';
|
|
7
7
|
import 'react';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AnyProcedure, AnyRootConfig, inferProcedureInput } from '@trpc/core';
|
|
2
|
-
import { inferTransformedProcedureOutput } from '@trpc/core/shared';
|
|
1
|
+
import { AnyProcedure, AnyRootConfig, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/core';
|
|
3
2
|
import { InferMutationOptions, InferMutationResult } from '../../utils/inferReactQueryProcedure';
|
|
4
3
|
/**
|
|
5
4
|
* Use to describe a mutation route which matches a given mutation procedure's interface
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutationLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/mutationLike.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mutationLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/mutationLike.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,YAAY,CACtB,OAAO,SAAS,aAAa,EAC7B,UAAU,SAAS,YAAY,IAC7B;IACF,WAAW,EAAE,CACX,IAAI,CAAC,EAAE,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC,KAC7C,mBAAmB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,CAChC,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAC1C,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,MAAM,UAAU,CAAC,GACzD,mBAAmB,CAAC,UAAU,CAAC,GAC/B,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAC/B,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAC1C,aAAa,SAAS,YAAY,CAAC,MAAM,OAAO,EAAE,MAAM,UAAU,CAAC,GACnE,+BAA+B,CAAC,OAAO,EAAE,UAAU,CAAC,GACpD,KAAK,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AnyProcedure, AnyRootConfig, inferProcedureInput } from '@trpc/core';
|
|
2
|
-
import { inferTransformedProcedureOutput } from '@trpc/core/shared';
|
|
1
|
+
import { AnyProcedure, AnyRootConfig, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/core';
|
|
3
2
|
import { InferQueryOptions, InferQueryResult } from '../../utils/inferReactQueryProcedure';
|
|
4
3
|
/**
|
|
5
4
|
* Use to request a query route which matches a given query procedure's interface
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/queryLike.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"queryLike.d.ts","sourceRoot":"","sources":["../../../src/shared/polymorphism/queryLike.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,SAAS,CACnB,OAAO,SAAS,aAAa,EAC7B,UAAU,SAAS,YAAY,IAC7B;IACF,QAAQ,EAAE,CACR,SAAS,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAC1C,IAAI,CAAC,EAAE,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,KAC/C,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,UAAU,SAAS,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,IACpE,UAAU,SAAS,SAAS,CAAC,GAAG,EAAE,MAAM,UAAU,CAAC,GAC/C,mBAAmB,CAAC,UAAU,CAAC,GAC/B,KAAK,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,UAAU,SAAS,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,IACnE,UAAU,SAAS,SAAS,CAAC,MAAM,OAAO,EAAE,MAAM,UAAU,CAAC,GACzD,+BAA+B,CAAC,OAAO,EAAE,UAAU,CAAC,GACpD,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorationProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/decorationProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"decorationProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/decorationProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,SAAS,SAAS,EACzB,WAAW,GAAG,OAAO,EACrB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,CAAC,OAAO,EAAE,WAAW,CAAC,WAuBjE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TRPCClientError, TRPCUntypedClient } from '@trpc/client';
|
|
2
|
-
import { AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, Filter, inferProcedureInput } from '@trpc/core';
|
|
3
|
-
import { inferTransformedProcedureOutput } from '@trpc/core/shared';
|
|
2
|
+
import { AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, Filter, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/core';
|
|
4
3
|
import { TrpcQueryOptionsForUseQueries, TrpcQueryOptionsForUseSuspenseQueries } from '../../internals/useQueries';
|
|
5
4
|
type GetQueryOptions<TConfig extends AnyRootConfig, TProcedure extends AnyProcedure> = <TData = inferTransformedProcedureOutput<TConfig, TProcedure>>(input: inferProcedureInput<TProcedure>, opts?: TrpcQueryOptionsForUseQueries<inferTransformedProcedureOutput<TConfig, TProcedure>, TData, TRPCClientError<TConfig>>) => TrpcQueryOptionsForUseQueries<inferTransformedProcedureOutput<TConfig, TProcedure>, TData, TRPCClientError<TConfig>>;
|
|
6
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueriesProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/useQueriesProxy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"useQueriesProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/useQueriesProxy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EAET,MAAM,EACN,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,6BAA6B,EAC7B,qCAAqC,EACtC,MAAM,4BAA4B,CAA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C,+BAA+B,CAAC,OAAO,EAAE,UAAU,CAAC,EACpD,KAAK,EACL,eAAe,CAAC,OAAO,CAAC,CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iCAAiC,CAAC,OAAO,SAAS,SAAS,IAAI;KACxE,IAAI,IAAI,MAAM,MAAM,CACnB,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EACzB,iBAAiB,GAAG,SAAS,CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GACjD,iCAAiC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAClE,uBAAuB,CACrB,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAChC;CACN,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC,sCAoBnC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CancelOptions, InfiniteData, InvalidateOptions, InvalidateQueryFilters, Query, RefetchOptions, RefetchQueryFilters, ResetOptions, SetDataOptions, Updater } from '@tanstack/react-query';
|
|
2
2
|
import { TRPCClientError } from '@trpc/client';
|
|
3
|
-
import { AnyQueryProcedure, AnyRootConfig, AnyRouter, DeepPartial, Filter, inferProcedureInput, ProtectedIntersection } from '@trpc/core';
|
|
4
|
-
import { inferTransformedProcedureOutput } from '@trpc/core/shared';
|
|
3
|
+
import { AnyQueryProcedure, AnyRootConfig, AnyRouter, DeepPartial, Filter, inferProcedureInput, inferTransformedProcedureOutput, ProtectedIntersection } from '@trpc/core';
|
|
5
4
|
import { DecoratedTRPCContextProps, TRPCContextState, TRPCFetchInfiniteQueryOptions, TRPCFetchQueryOptions, TRPCQueryUtils } from '../../internals/context';
|
|
6
5
|
import { QueryKeyKnown, QueryType } from '../../internals/getQueryKey';
|
|
7
6
|
import { ExtractCursorType } from '../hooks/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilsProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/utilsProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,OAAO,EACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAyB,eAAe,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"utilsProxy.d.ts","sourceRoot":"","sources":["../../../src/shared/proxy/utilsProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,OAAO,EACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAyB,eAAe,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,SAAS,EAGT,WAAW,EACX,MAAM,EACN,mBAAmB,EACnB,+BAA+B,EAC/B,qBAAqB,EACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAEL,yBAAyB,EACzB,gBAAgB,EAChB,6BAA6B,EAC7B,qBAAqB,EACrB,cAAc,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,aAAa,EACb,SAAS,EACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,KAAK,iBAAiB,CACpB,OAAO,SAAS,aAAa,EAC7B,UAAU,SAAS,iBAAiB,IAClC;IACF;;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from '@trpc/client';
|
|
2
|
-
import { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, inferProcedureInput } from '@trpc/core';
|
|
3
|
-
import { inferTransformedProcedureOutput } from '@trpc/core/shared';
|
|
2
|
+
import { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnyRootConfig, AnyRouter, inferProcedureInput, inferTransformedProcedureOutput } from '@trpc/core';
|
|
4
3
|
import { UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCQueryOptions, UseTRPCQueryResult } from '../shared';
|
|
5
4
|
/**
|
|
6
5
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inferReactQueryProcedure.d.ts","sourceRoot":"","sources":["../../src/utils/inferReactQueryProcedure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,mBAAmB,
|
|
1
|
+
{"version":3,"file":"inferReactQueryProcedure.d.ts","sourceRoot":"","sources":["../../src/utils/inferReactQueryProcedure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAC3B,OAAO,SAAS,aAAa,EAC7B,UAAU,SAAS,YAAY,EAC/B,KAAK,GAAG,+BAA+B,CAAC,OAAO,EAAE,UAAU,CAAC,IAC1D,IAAI,CACN,mBAAmB,CACjB,+BAA+B,CAAC,OAAO,EAAE,UAAU,CAAC,EAC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iB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC,GACjE,KAAK,GACP,KAAK;CACV,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var client = require('@trpc/client');
|
|
4
|
-
var
|
|
4
|
+
var core = require('@trpc/core');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -76,7 +76,7 @@ const getQueryType = (utilName)=>{
|
|
|
76
76
|
/**
|
|
77
77
|
* @internal
|
|
78
78
|
*/ function createRecursiveUtilsProxy(context, key) {
|
|
79
|
-
return
|
|
79
|
+
return core.createRecursiveProxy((opts)=>{
|
|
80
80
|
const path = [
|
|
81
81
|
key,
|
|
82
82
|
...opts.path
|
|
@@ -113,7 +113,7 @@ const getQueryType = (utilName)=>{
|
|
|
113
113
|
/**
|
|
114
114
|
* @internal
|
|
115
115
|
*/ function createReactQueryUtils(context) {
|
|
116
|
-
return
|
|
116
|
+
return core.createFlatProxy((key)=>{
|
|
117
117
|
const contextName = key;
|
|
118
118
|
if (contextName === 'client') {
|
|
119
119
|
return client.createTRPCClientProxy(context.client);
|
|
@@ -127,7 +127,7 @@ const getQueryType = (utilName)=>{
|
|
|
127
127
|
/**
|
|
128
128
|
* @internal
|
|
129
129
|
*/ function createQueryUtilsProxy(context) {
|
|
130
|
-
return
|
|
130
|
+
return core.createFlatProxy((key)=>{
|
|
131
131
|
return createRecursiveUtilsProxy(context, key);
|
|
132
132
|
});
|
|
133
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/react-query",
|
|
3
|
-
"version": "11.0.0-alpha-tmp.
|
|
3
|
+
"version": "11.0.0-alpha-tmp.213+24a3b8da5",
|
|
4
4
|
"description": "The tRPC React library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,17 +58,18 @@
|
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@tanstack/react-query": "^5.0.0",
|
|
61
|
-
"@trpc/client": "11.0.0-alpha-tmp.
|
|
62
|
-
"@trpc/
|
|
63
|
-
"@trpc/server": "11.0.0-alpha-tmp.195+701930d81",
|
|
61
|
+
"@trpc/client": "11.0.0-alpha-tmp.213+24a3b8da5",
|
|
62
|
+
"@trpc/server": "11.0.0-alpha-tmp.213+24a3b8da5",
|
|
64
63
|
"react": ">=18.2.0",
|
|
65
64
|
"react-dom": ">=18.2.0"
|
|
66
65
|
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@trpc/core": "11.0.0-alpha-tmp.213+24a3b8da5"
|
|
68
|
+
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@tanstack/react-query": "^5.0.0",
|
|
69
|
-
"@trpc/client": "11.0.0-alpha-tmp.
|
|
70
|
-
"@trpc/
|
|
71
|
-
"@trpc/server": "11.0.0-alpha-tmp.195+701930d81",
|
|
71
|
+
"@trpc/client": "11.0.0-alpha-tmp.213+24a3b8da5",
|
|
72
|
+
"@trpc/server": "11.0.0-alpha-tmp.213+24a3b8da5",
|
|
72
73
|
"@types/express": "^4.17.17",
|
|
73
74
|
"@types/node": "^20.10.0",
|
|
74
75
|
"@types/react": "^18.2.33",
|
|
@@ -87,5 +88,5 @@
|
|
|
87
88
|
"funding": [
|
|
88
89
|
"https://trpc.io/sponsor"
|
|
89
90
|
],
|
|
90
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "24a3b8da51c73373bffe5f6888a23af2642c6d3c"
|
|
91
92
|
}
|
package/src/createTRPCReact.tsx
CHANGED
|
@@ -6,15 +6,13 @@ import {
|
|
|
6
6
|
AnyRootConfig,
|
|
7
7
|
AnyRouter,
|
|
8
8
|
AnySubscriptionProcedure,
|
|
9
|
+
createFlatProxy,
|
|
9
10
|
inferProcedureInput,
|
|
11
|
+
inferTransformedProcedureOutput,
|
|
12
|
+
inferTransformedSubscriptionOutput,
|
|
10
13
|
ProcedureRouterRecord,
|
|
11
14
|
ProtectedIntersection,
|
|
12
15
|
} from '@trpc/core';
|
|
13
|
-
import {
|
|
14
|
-
createFlatProxy,
|
|
15
|
-
inferTransformedProcedureOutput,
|
|
16
|
-
inferTransformedSubscriptionOutput,
|
|
17
|
-
} from '@trpc/core/shared';
|
|
18
16
|
import { useMemo } from 'react';
|
|
19
17
|
import { TRPCUseQueries, TRPCUseSuspenseQueries } from './internals/useQueries';
|
|
20
18
|
import {
|
package/src/server/ssgProxy.ts
CHANGED
|
@@ -17,18 +17,16 @@ import {
|
|
|
17
17
|
AnyRootConfig,
|
|
18
18
|
AnyRouter,
|
|
19
19
|
callProcedure,
|
|
20
|
+
createFlatProxy,
|
|
21
|
+
createRecursiveProxy,
|
|
20
22
|
DataTransformerOptions,
|
|
21
23
|
Filter,
|
|
22
24
|
inferProcedureInput,
|
|
23
25
|
inferRouterContext,
|
|
26
|
+
inferTransformedProcedureOutput,
|
|
24
27
|
Maybe,
|
|
25
28
|
ProtectedIntersection,
|
|
26
29
|
} from '@trpc/core';
|
|
27
|
-
import {
|
|
28
|
-
createFlatProxy,
|
|
29
|
-
createRecursiveProxy,
|
|
30
|
-
inferTransformedProcedureOutput,
|
|
31
|
-
} from '@trpc/core/shared';
|
|
32
30
|
import { getQueryKeyInternal } from '../internals/getQueryKey';
|
|
33
31
|
import {
|
|
34
32
|
CreateTRPCReactQueryClientConfig,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
AnyProcedure,
|
|
3
|
+
AnyRootConfig,
|
|
4
|
+
inferProcedureInput,
|
|
5
|
+
inferTransformedProcedureOutput,
|
|
6
|
+
} from '@trpc/core';
|
|
3
7
|
import {
|
|
4
8
|
InferMutationOptions,
|
|
5
9
|
InferMutationResult,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
AnyProcedure,
|
|
3
|
+
AnyRootConfig,
|
|
4
|
+
inferProcedureInput,
|
|
5
|
+
inferTransformedProcedureOutput,
|
|
6
|
+
} from '@trpc/core';
|
|
3
7
|
import {
|
|
4
8
|
InferQueryOptions,
|
|
5
9
|
InferQueryResult,
|
|
@@ -5,13 +5,11 @@ import {
|
|
|
5
5
|
AnyQueryProcedure,
|
|
6
6
|
AnyRootConfig,
|
|
7
7
|
AnyRouter,
|
|
8
|
+
createRecursiveProxy,
|
|
8
9
|
Filter,
|
|
9
10
|
inferProcedureInput,
|
|
10
|
-
} from '@trpc/core';
|
|
11
|
-
import {
|
|
12
|
-
createRecursiveProxy,
|
|
13
11
|
inferTransformedProcedureOutput,
|
|
14
|
-
} from '@trpc/core
|
|
12
|
+
} from '@trpc/core';
|
|
15
13
|
import { getQueryKeyInternal } from '../../internals/getQueryKey';
|
|
16
14
|
import {
|
|
17
15
|
TrpcQueryOptionsForUseQueries,
|
|
@@ -15,16 +15,14 @@ import {
|
|
|
15
15
|
AnyQueryProcedure,
|
|
16
16
|
AnyRootConfig,
|
|
17
17
|
AnyRouter,
|
|
18
|
+
createFlatProxy,
|
|
19
|
+
createRecursiveProxy,
|
|
18
20
|
DeepPartial,
|
|
19
21
|
Filter,
|
|
20
22
|
inferProcedureInput,
|
|
23
|
+
inferTransformedProcedureOutput,
|
|
21
24
|
ProtectedIntersection,
|
|
22
25
|
} from '@trpc/core';
|
|
23
|
-
import {
|
|
24
|
-
createFlatProxy,
|
|
25
|
-
createRecursiveProxy,
|
|
26
|
-
inferTransformedProcedureOutput,
|
|
27
|
-
} from '@trpc/core/shared';
|
|
28
26
|
import {
|
|
29
27
|
contextProps,
|
|
30
28
|
DecoratedTRPCContextProps,
|