@trpc/tanstack-react-query 11.0.0-alpha-tmp-query-optoins-codemod.723 → 11.0.0-alpha-tmp-02-12-response-types-idea.839
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 +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/internals/Context.d.ts.map +1 -1
- package/dist/internals/createOptionsProxy.d.ts +6 -6
- package/dist/internals/createOptionsProxy.d.ts.map +1 -1
- package/dist/internals/createOptionsProxy.mjs +1 -1
- package/package.json +14 -14
- package/src/index.ts +2 -2
- package/src/internals/Context.tsx +2 -2
- package/src/internals/createOptionsProxy.ts +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundleSize": 15570,
|
|
3
|
-
"bundleOrigSize":
|
|
3
|
+
"bundleOrigSize": 40387,
|
|
4
4
|
"bundleReduction": 61.45,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
{
|
|
23
23
|
"id": "/src/internals/createOptionsProxy.ts",
|
|
24
24
|
"size": 3435,
|
|
25
|
-
"origSize":
|
|
25
|
+
"origSize": 10142,
|
|
26
26
|
"renderedExports": [
|
|
27
27
|
"createTRPCOptionsProxy"
|
|
28
28
|
],
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"/src/internals/Context.tsx"
|
|
33
33
|
],
|
|
34
34
|
"percent": 22.06,
|
|
35
|
-
"reduction": 66.
|
|
35
|
+
"reduction": 66.13
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"id": "/src/internals/utils.ts",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
{
|
|
103
103
|
"id": "/src/internals/Context.tsx",
|
|
104
104
|
"size": 1010,
|
|
105
|
-
"origSize":
|
|
105
|
+
"origSize": 1693,
|
|
106
106
|
"renderedExports": [
|
|
107
107
|
"createTRPCContext"
|
|
108
108
|
],
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"/src/index.ts"
|
|
112
112
|
],
|
|
113
113
|
"percent": 6.49,
|
|
114
|
-
"reduction": 40.
|
|
114
|
+
"reduction": 40.34
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"id": "/src/index.ts",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createTRPCContext } from './internals/Context';
|
|
2
|
-
export type { TRPCOptionsProxy,
|
|
2
|
+
export type { TRPCOptionsProxy, inferInput, inferOutput, DecorateMutationProcedure, DecorateProcedure, DecorateQueryKeyable, DecorateQueryProcedure, DecorateSubscriptionProcedure, } from './internals/createOptionsProxy';
|
|
3
3
|
export type { TRPCQueryOptions } from './internals/queryOptions';
|
|
4
4
|
export type { TRPCInfiniteQueryOptions } from './internals/infiniteQueryOptions';
|
|
5
5
|
export type { TRPCMutationOptions } from './internals/mutationOptions';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/internals/Context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/internals/Context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,MAAM,WAAW,uBAAuB,CAAC,OAAO,SAAS,aAAa;IACpE,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,WAAW,CAAC;QACzB,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;KACvC,CAAC,CAAC;IACH,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC;CAC1C;AACD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,SAAS,aAAa,KAC1B,uBAAuB,CAAC,OAAO,CAAC,CAoCpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataTag, QueryClient, QueryFilters } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TRPCClient } from '@trpc/client';
|
|
3
3
|
import { TRPCUntypedClient } from '@trpc/client';
|
|
4
4
|
import type { AnyTRPCProcedure, AnyTRPCRootTypes, AnyTRPCRouter, inferProcedureInput, inferRouterContext, inferTransformedProcedureOutput, TRPCProcedureType, TRPCRouterRecord } from '@trpc/server';
|
|
5
5
|
import type { MaybePromise } from '@trpc/server/unstable-core-do-not-import';
|
|
@@ -25,11 +25,11 @@ export interface DecorateQueryKeyable {
|
|
|
25
25
|
*/
|
|
26
26
|
queryFilter: (input?: undefined, filters?: QueryFilters) => QueryFilters;
|
|
27
27
|
}
|
|
28
|
-
export type
|
|
29
|
-
export type
|
|
28
|
+
export type inferInput<TProcedure extends DecorateQueryProcedure<any> | DecorateMutationProcedure<any>> = TProcedure['~types']['input'];
|
|
29
|
+
export type inferOutput<TProcedure extends DecorateQueryProcedure<any> | DecorateMutationProcedure<any>> = TProcedure['~types']['output'];
|
|
30
30
|
export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
31
31
|
/**
|
|
32
|
-
* @internal prefer using
|
|
32
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
33
33
|
*/
|
|
34
34
|
'~types': {
|
|
35
35
|
input: TDef['input'];
|
|
@@ -67,7 +67,7 @@ export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
|
67
67
|
}
|
|
68
68
|
export interface DecorateMutationProcedure<TDef extends ResolverDef> {
|
|
69
69
|
/**
|
|
70
|
-
* @internal prefer using
|
|
70
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
71
71
|
*/
|
|
72
72
|
'~types': {
|
|
73
73
|
input: TDef['input'];
|
|
@@ -118,7 +118,7 @@ export interface TRPCOptionsProxyOptionsInternal<TRouter extends AnyTRPCRouter>
|
|
|
118
118
|
ctx: inferRouterContext<TRouter> | (() => MaybePromise<inferRouterContext<TRouter>>);
|
|
119
119
|
}
|
|
120
120
|
export interface TRPCOptionsProxyOptionsExternal<TRouter extends AnyTRPCRouter> {
|
|
121
|
-
client: TRPCUntypedClient<TRouter> |
|
|
121
|
+
client: TRPCUntypedClient<TRouter> | TRPCClient<TRouter>;
|
|
122
122
|
}
|
|
123
123
|
export type TRPCOptionsProxyOptions<TRouter extends AnyTRPCRouter> = TRPCOptionsProxyOptionsBase & (TRPCOptionsProxyOptionsInternal<TRouter> | TRPCOptionsProxyOptionsExternal<TRouter>);
|
|
124
124
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOptionsProxy.d.ts","sourceRoot":"","sources":["../../src/internals/createOptionsProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createOptionsProxy.d.ts","sourceRoot":"","sources":["../../src/internals/createOptionsProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,cAAc,CAAC;AACnE,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,mB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B,CAC9C,OAAO,SAAS,aAAa;IAE7B,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EACC,kBAAkB,CAAC,OAAO,CAAC,GAC3B,CAAC,MAAM,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,+BAA+B,CAC9C,OAAO,SAAS,aAAa;IAE7B,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;CAC1D;AAED,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,aAAa,IAC/D,2BAA2B,GACzB,CACI,+BAA+B,CAAC,OAAO,CAAC,GACxC,+BAA+B,CAAC,OAAO,CAAC,CAC3C,CAAC;AAkBN;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,SAAS,aAAa,EAClE,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,GACrC,gBAAgB,CAAC,OAAO,CAAC,CA0F3B"}
|
|
@@ -4,7 +4,7 @@ import { trpcInfiniteQueryOptions } from './infiniteQueryOptions.mjs';
|
|
|
4
4
|
import { trpcMutationOptions } from './mutationOptions.mjs';
|
|
5
5
|
import { trpcQueryOptions } from './queryOptions.mjs';
|
|
6
6
|
import { trpcSubscriptionOptions } from './subscriptionOptions.mjs';
|
|
7
|
-
import { getMutationKeyInternal,
|
|
7
|
+
import { getMutationKeyInternal, getQueryKeyInternal, unwrapLazyArg } from './utils.mjs';
|
|
8
8
|
|
|
9
9
|
function getQueryType(method) {
|
|
10
10
|
const map = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/tanstack-react-query",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-
|
|
3
|
+
"version": "11.0.0-alpha-tmp-02-12-response-types-idea.839+b64c35a60",
|
|
4
4
|
"description": "TanStack React Query Integration for tRPC",
|
|
5
5
|
"author": "juliusmarminge",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,29 +49,29 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@tanstack/react-query": "^5.62.8",
|
|
52
|
-
"@trpc/client": "11.0.0-alpha-tmp-
|
|
53
|
-
"@trpc/server": "11.0.0-alpha-tmp-
|
|
52
|
+
"@trpc/client": "11.0.0-alpha-tmp-02-12-response-types-idea.839+b64c35a60",
|
|
53
|
+
"@trpc/server": "11.0.0-alpha-tmp-02-12-response-types-idea.839+b64c35a60",
|
|
54
54
|
"react": ">=18.2.0",
|
|
55
55
|
"react-dom": ">=18.2.0",
|
|
56
56
|
"typescript": ">=5.7.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@tanstack/react-query": "^5.66.0",
|
|
60
|
-
"@trpc/client": "11.0.0-alpha-tmp-
|
|
61
|
-
"@trpc/server": "11.0.0-alpha-tmp-
|
|
62
|
-
"@types/node": "^
|
|
60
|
+
"@trpc/client": "11.0.0-alpha-tmp-02-12-response-types-idea.839+b64c35a60",
|
|
61
|
+
"@trpc/server": "11.0.0-alpha-tmp-02-12-response-types-idea.839+b64c35a60",
|
|
62
|
+
"@types/node": "^22.13.5",
|
|
63
63
|
"@types/react": "^19.0.0",
|
|
64
|
-
"eslint": "^
|
|
64
|
+
"eslint": "^9.21.0",
|
|
65
65
|
"event-source-polyfill": "^1.0.31",
|
|
66
66
|
"konn": "^0.7.0",
|
|
67
67
|
"react": "^19.0.0",
|
|
68
|
-
"react-dom": "^
|
|
69
|
-
"rollup": "^4.
|
|
70
|
-
"tsx": "^4.
|
|
71
|
-
"typescript": "^5.
|
|
72
|
-
"vitest": "^
|
|
68
|
+
"react-dom": "^19.0.0",
|
|
69
|
+
"rollup": "^4.34.8",
|
|
70
|
+
"tsx": "^4.19.3",
|
|
71
|
+
"typescript": "^5.7.2",
|
|
72
|
+
"vitest": "^3.0.6",
|
|
73
73
|
"ws": "^8.0.0",
|
|
74
|
-
"zod": "^3.
|
|
74
|
+
"zod": "^3.24.2"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"funding": [
|
|
80
80
|
"https://trpc.io/sponsor"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "b64c35a607728c68e0115794ba82b666a6ec3003"
|
|
83
83
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { QueryClient } from '@tanstack/react-query';
|
|
2
|
-
import type { CreateTRPCClient } from '@trpc/client';
|
|
2
|
+
import type { CreateTRPCClient, TRPCClient } from '@trpc/client';
|
|
3
3
|
import type { AnyTRPCRouter } from '@trpc/server';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import type { TRPCOptionsProxy } from './createOptionsProxy';
|
|
@@ -29,7 +29,7 @@ export function createTRPCContext<
|
|
|
29
29
|
props: Readonly<{
|
|
30
30
|
children: React.ReactNode;
|
|
31
31
|
queryClient: QueryClient;
|
|
32
|
-
trpcClient:
|
|
32
|
+
trpcClient: TRPCClient<TRouter>;
|
|
33
33
|
}>,
|
|
34
34
|
) {
|
|
35
35
|
const value = React.useMemo(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataTag, QueryClient, QueryFilters } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TRPCClient, TRPCRequestOptions } from '@trpc/client';
|
|
3
3
|
import { getUntypedClient, TRPCUntypedClient } from '@trpc/client';
|
|
4
4
|
import type {
|
|
5
5
|
AnyTRPCProcedure,
|
|
@@ -57,13 +57,13 @@ export interface DecorateQueryKeyable {
|
|
|
57
57
|
queryFilter: (input?: undefined, filters?: QueryFilters) => QueryFilters;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export type
|
|
60
|
+
export type inferInput<
|
|
61
61
|
TProcedure extends
|
|
62
62
|
| DecorateQueryProcedure<any>
|
|
63
63
|
| DecorateMutationProcedure<any>,
|
|
64
64
|
> = TProcedure['~types']['input'];
|
|
65
65
|
|
|
66
|
-
export type
|
|
66
|
+
export type inferOutput<
|
|
67
67
|
TProcedure extends
|
|
68
68
|
| DecorateQueryProcedure<any>
|
|
69
69
|
| DecorateMutationProcedure<any>,
|
|
@@ -71,7 +71,7 @@ export type InferOutput<
|
|
|
71
71
|
|
|
72
72
|
export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
73
73
|
/**
|
|
74
|
-
* @internal prefer using
|
|
74
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
75
75
|
*/
|
|
76
76
|
'~types': {
|
|
77
77
|
input: TDef['input'];
|
|
@@ -124,7 +124,7 @@ export interface DecorateQueryProcedure<TDef extends ResolverDef> {
|
|
|
124
124
|
|
|
125
125
|
export interface DecorateMutationProcedure<TDef extends ResolverDef> {
|
|
126
126
|
/**
|
|
127
|
-
* @internal prefer using
|
|
127
|
+
* @internal prefer using inferInput and inferOutput to access types
|
|
128
128
|
*/
|
|
129
129
|
'~types': {
|
|
130
130
|
input: TDef['input'];
|
|
@@ -216,7 +216,7 @@ export interface TRPCOptionsProxyOptionsInternal<
|
|
|
216
216
|
export interface TRPCOptionsProxyOptionsExternal<
|
|
217
217
|
TRouter extends AnyTRPCRouter,
|
|
218
218
|
> {
|
|
219
|
-
client: TRPCUntypedClient<TRouter> |
|
|
219
|
+
client: TRPCUntypedClient<TRouter> | TRPCClient<TRouter>;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
export type TRPCOptionsProxyOptions<TRouter extends AnyTRPCRouter> =
|