@trpc/next 11.0.0-rc.708 → 11.0.0-rc.711
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/app-dir/shared.d.ts +3 -3
- package/dist/app-dir/shared.d.ts.map +1 -1
- package/dist/app-dir/types.d.ts +3 -3
- package/dist/app-dir/types.d.ts.map +1 -1
- package/dist/bundle-analysis.json +4 -4
- package/package.json +8 -8
- package/src/app-dir/shared.ts +10 -9
- package/src/app-dir/types.ts +14 -12
package/dist/app-dir/shared.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { CreateTRPCClientOptions, inferRouterClient, Resolver } from '@trpc/client';
|
|
2
2
|
import { TRPCUntypedClient } from '@trpc/client';
|
|
3
3
|
import type { inferProcedureOutput } from '@trpc/server';
|
|
4
|
-
import type { AnyClientTypes, AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, inferProcedureInput, inferTransformedProcedureOutput, ProtectedIntersection, RouterRecord } from '@trpc/server/unstable-core-do-not-import';
|
|
4
|
+
import type { AnyClientTypes, AnyProcedure, AnyQueryProcedure, AnyRootTypes, AnyRouter, coerceToRouterRecord, inferProcedureInput, inferTransformedProcedureOutput, ProtectedIntersection, RouterRecord } from '@trpc/server/unstable-core-do-not-import';
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export type UseProcedureRecord<TRoot extends AnyRootTypes, TRecord extends RouterRecord> = {
|
|
9
|
-
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends
|
|
9
|
+
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyQueryProcedure ? Resolver<{
|
|
10
10
|
input: inferProcedureInput<$Value>;
|
|
11
11
|
output: inferTransformedProcedureOutput<TRoot, $Value>;
|
|
12
12
|
errorShape: TRoot['errorShape'];
|
|
13
13
|
transformer: TRoot['transformer'];
|
|
14
|
-
}> : never : never;
|
|
14
|
+
}> : $Value extends RouterRecord | AnyRouter ? UseProcedureRecord<TRoot, coerceToRouterRecord<$Value>> : never : never;
|
|
15
15
|
};
|
|
16
16
|
export declare function createUseProxy<TRouter extends AnyRouter>(client: TRPCUntypedClient<TRouter> | inferRouterClient<TRouter>): UseProcedureRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>;
|
|
17
17
|
type NextAppRouterUse<TRouter extends AnyRouter> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/app-dir/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,mBAAmB,EACnB,+BAA+B,EAC/B,qBAAqB,EACrB,YAAY,EACb,MAAM,0CAA0C,CAAC;AAGlD;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,YAAY,EAC1B,OAAO,SAAS,YAAY,IAC1B;KACD,IAAI,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,MAAM,MAAM,GACvD,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/app-dir/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAoB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EACd,YAA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oBAAoB,CAAC,KAAK,CAAC,CAAC;IACpC,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACjC,CAAC"}
|
package/dist/app-dir/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Resolver } from '@trpc/client';
|
|
2
|
-
import type { AnyProcedure, AnyRootTypes, inferProcedureInput, inferTransformedProcedureOutput, ProcedureType, RouterRecord } from '@trpc/server/unstable-core-do-not-import';
|
|
2
|
+
import type { AnyProcedure, AnyRootTypes, AnyRouter, coerceToRouterRecord, inferProcedureInput, inferTransformedProcedureOutput, ProcedureType, RouterRecord } from '@trpc/server/unstable-core-do-not-import';
|
|
3
3
|
type ResolverDef = {
|
|
4
4
|
input: any;
|
|
5
5
|
output: any;
|
|
@@ -20,12 +20,12 @@ export type DecorateProcedureServer<TType extends ProcedureType, TDef extends Re
|
|
|
20
20
|
subscribe: Resolver<TDef>;
|
|
21
21
|
} : never;
|
|
22
22
|
export type NextAppDirDecorateRouterRecord<TRoot extends AnyRootTypes, TRecord extends RouterRecord> = {
|
|
23
|
-
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends
|
|
23
|
+
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyProcedure ? DecorateProcedureServer<$Value['_def']['type'], {
|
|
24
24
|
input: inferProcedureInput<$Value>;
|
|
25
25
|
output: inferTransformedProcedureOutput<TRoot, $Value>;
|
|
26
26
|
errorShape: TRoot['errorShape'];
|
|
27
27
|
transformer: TRoot['transformer'];
|
|
28
|
-
}> : never : never;
|
|
28
|
+
}> : $Value extends RouterRecord | AnyRouter ? NextAppDirDecorateRouterRecord<TRoot, coerceToRouterRecord<$Value>> : never : never;
|
|
29
29
|
};
|
|
30
30
|
export {};
|
|
31
31
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/app-dir/types.ts"],"names":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AAC,CAAC;QAChC,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;KACnC,CACF,GACD,MAAM,SAAS,YAAY,GAAG,SAAS,GACrC,8BAA8B,CAAC,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC,GACnE,KAAK,GACT,KAAK;CACV,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundleSize": 22997,
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 39.
|
|
3
|
+
"bundleOrigSize": 38244,
|
|
4
|
+
"bundleReduction": 39.87,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/ssrPrepass.ts",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
{
|
|
113
113
|
"id": "/src/app-dir/shared.ts",
|
|
114
114
|
"size": 335,
|
|
115
|
-
"origSize":
|
|
115
|
+
"origSize": 3440,
|
|
116
116
|
"renderedExports": [
|
|
117
117
|
"generateCacheTag",
|
|
118
118
|
"isFormData"
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"/src/app-dir/create-action-hook.tsx"
|
|
128
128
|
],
|
|
129
129
|
"percent": 1.46,
|
|
130
|
-
"reduction": 90.
|
|
130
|
+
"reduction": 90.26
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"id": "/src/index.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/next",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.711+e82d26126",
|
|
4
4
|
"description": "The tRPC Next.js library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
],
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@tanstack/react-query": "^5.59.15",
|
|
77
|
-
"@trpc/client": "11.0.0-rc.
|
|
78
|
-
"@trpc/react-query": "11.0.0-rc.
|
|
79
|
-
"@trpc/server": "11.0.0-rc.
|
|
77
|
+
"@trpc/client": "11.0.0-rc.711+e82d26126",
|
|
78
|
+
"@trpc/react-query": "11.0.0-rc.711+e82d26126",
|
|
79
|
+
"@trpc/server": "11.0.0-rc.711+e82d26126",
|
|
80
80
|
"next": "*",
|
|
81
81
|
"react": ">=16.8.0",
|
|
82
82
|
"react-dom": ">=16.8.0",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@tanstack/react-query": "^5.62.8",
|
|
95
|
-
"@trpc/client": "11.0.0-rc.
|
|
96
|
-
"@trpc/react-query": "11.0.0-rc.
|
|
97
|
-
"@trpc/server": "11.0.0-rc.
|
|
95
|
+
"@trpc/client": "11.0.0-rc.711+e82d26126",
|
|
96
|
+
"@trpc/react-query": "11.0.0-rc.711+e82d26126",
|
|
97
|
+
"@trpc/server": "11.0.0-rc.711+e82d26126",
|
|
98
98
|
"@types/express": "^4.17.17",
|
|
99
99
|
"@types/node": "^22.9.0",
|
|
100
100
|
"@types/react": "^19.0.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"funding": [
|
|
116
116
|
"https://trpc.io/sponsor"
|
|
117
117
|
],
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "e82d261262fcb9d54747e0b223ee1e069ec2a9fd"
|
|
119
119
|
}
|
package/src/app-dir/shared.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type {
|
|
|
11
11
|
AnyQueryProcedure,
|
|
12
12
|
AnyRootTypes,
|
|
13
13
|
AnyRouter,
|
|
14
|
+
coerceToRouterRecord,
|
|
14
15
|
inferProcedureInput,
|
|
15
16
|
inferTransformedProcedureOutput,
|
|
16
17
|
ProtectedIntersection,
|
|
@@ -26,15 +27,15 @@ export type UseProcedureRecord<
|
|
|
26
27
|
TRecord extends RouterRecord,
|
|
27
28
|
> = {
|
|
28
29
|
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value
|
|
29
|
-
? $Value extends
|
|
30
|
-
?
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
? $Value extends AnyQueryProcedure
|
|
31
|
+
? Resolver<{
|
|
32
|
+
input: inferProcedureInput<$Value>;
|
|
33
|
+
output: inferTransformedProcedureOutput<TRoot, $Value>;
|
|
34
|
+
errorShape: TRoot['errorShape'];
|
|
35
|
+
transformer: TRoot['transformer'];
|
|
36
|
+
}>
|
|
37
|
+
: $Value extends RouterRecord | AnyRouter
|
|
38
|
+
? UseProcedureRecord<TRoot, coerceToRouterRecord<$Value>>
|
|
38
39
|
: never
|
|
39
40
|
: never;
|
|
40
41
|
};
|
package/src/app-dir/types.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type { Resolver } from '@trpc/client';
|
|
|
2
2
|
import type {
|
|
3
3
|
AnyProcedure,
|
|
4
4
|
AnyRootTypes,
|
|
5
|
+
AnyRouter,
|
|
6
|
+
coerceToRouterRecord,
|
|
5
7
|
inferProcedureInput,
|
|
6
8
|
inferTransformedProcedureOutput,
|
|
7
9
|
ProcedureType,
|
|
@@ -42,18 +44,18 @@ export type NextAppDirDecorateRouterRecord<
|
|
|
42
44
|
TRecord extends RouterRecord,
|
|
43
45
|
> = {
|
|
44
46
|
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value
|
|
45
|
-
? $Value extends
|
|
46
|
-
?
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
? $Value extends AnyProcedure
|
|
48
|
+
? DecorateProcedureServer<
|
|
49
|
+
$Value['_def']['type'],
|
|
50
|
+
{
|
|
51
|
+
input: inferProcedureInput<$Value>;
|
|
52
|
+
output: inferTransformedProcedureOutput<TRoot, $Value>;
|
|
53
|
+
errorShape: TRoot['errorShape'];
|
|
54
|
+
transformer: TRoot['transformer'];
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
: $Value extends RouterRecord | AnyRouter
|
|
58
|
+
? NextAppDirDecorateRouterRecord<TRoot, coerceToRouterRecord<$Value>>
|
|
57
59
|
: never
|
|
58
60
|
: never;
|
|
59
61
|
};
|