@trpc/server 11.0.0-alpha-tmp-01-22-fix.719 → 11.0.0-alpha-tmp-01-22-fix.722
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 +28 -28
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +1 -1
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/router.d.ts +1 -1
- package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/unstable-core-do-not-import/clientish/inference.ts +6 -6
- package/src/unstable-core-do-not-import/router.ts +7 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundleSize": 193504,
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 13.
|
|
3
|
+
"bundleOrigSize": 223977,
|
|
4
|
+
"bundleReduction": 13.61,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
{
|
|
113
113
|
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
114
114
|
"size": 6448,
|
|
115
|
-
"origSize":
|
|
115
|
+
"origSize": 10642,
|
|
116
116
|
"renderedExports": [
|
|
117
117
|
"createRouterFactory",
|
|
118
118
|
"callProcedure",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
126
126
|
],
|
|
127
127
|
"percent": 3.33,
|
|
128
|
-
"reduction": 39.
|
|
128
|
+
"reduction": 39.41
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
|
|
@@ -286,9 +286,9 @@
|
|
|
286
286
|
"removedExports": [],
|
|
287
287
|
"dependents": [
|
|
288
288
|
"/src/unstable-core-do-not-import.ts",
|
|
289
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
290
289
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
291
|
-
"/src/unstable-core-do-not-import/router.ts"
|
|
290
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
291
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
292
292
|
],
|
|
293
293
|
"percent": 1.42,
|
|
294
294
|
"reduction": 45.98
|
|
@@ -348,13 +348,13 @@
|
|
|
348
348
|
"removedExports": [],
|
|
349
349
|
"dependents": [
|
|
350
350
|
"/src/unstable-core-do-not-import.ts",
|
|
351
|
-
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
352
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
353
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
354
351
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
355
352
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
356
353
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
357
354
|
"/src/unstable-core-do-not-import/router.ts",
|
|
355
|
+
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
356
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
357
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
358
358
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
359
359
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
360
360
|
"/src/unstable-core-do-not-import/http/isAbortError.ts",
|
|
@@ -377,10 +377,10 @@
|
|
|
377
377
|
"removedExports": [],
|
|
378
378
|
"dependents": [
|
|
379
379
|
"/src/unstable-core-do-not-import.ts",
|
|
380
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
381
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
382
380
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
383
381
|
"/src/unstable-core-do-not-import/router.ts",
|
|
382
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
383
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
384
384
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
385
385
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
386
386
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
@@ -447,8 +447,8 @@
|
|
|
447
447
|
"removedExports": [],
|
|
448
448
|
"dependents": [
|
|
449
449
|
"/src/unstable-core-do-not-import.ts",
|
|
450
|
-
"/src/unstable-core-do-not-import/
|
|
451
|
-
"/src/unstable-core-do-not-import/
|
|
450
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts",
|
|
451
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
452
452
|
],
|
|
453
453
|
"percent": 1.08,
|
|
454
454
|
"reduction": 18.54
|
|
@@ -837,31 +837,31 @@
|
|
|
837
837
|
"reduction": 93.9
|
|
838
838
|
},
|
|
839
839
|
{
|
|
840
|
-
"id": "/src/
|
|
840
|
+
"id": "/src/index.ts",
|
|
841
841
|
"size": 0,
|
|
842
|
-
"origSize":
|
|
842
|
+
"origSize": 32,
|
|
843
843
|
"renderedExports": [],
|
|
844
844
|
"removedExports": [],
|
|
845
|
-
"dependents": [
|
|
846
|
-
"/src/adapters/ws.ts"
|
|
847
|
-
],
|
|
845
|
+
"dependents": [],
|
|
848
846
|
"percent": 0,
|
|
849
847
|
"reduction": 100
|
|
850
848
|
},
|
|
851
849
|
{
|
|
852
|
-
"id": "/src/
|
|
850
|
+
"id": "/src/http.ts",
|
|
853
851
|
"size": 0,
|
|
854
|
-
"origSize":
|
|
852
|
+
"origSize": 37,
|
|
855
853
|
"renderedExports": [],
|
|
856
854
|
"removedExports": [],
|
|
857
|
-
"dependents": [
|
|
855
|
+
"dependents": [
|
|
856
|
+
"/src/adapters/ws.ts"
|
|
857
|
+
],
|
|
858
858
|
"percent": 0,
|
|
859
859
|
"reduction": 100
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
|
-
"id": "/src/
|
|
862
|
+
"id": "/src/rpc.ts",
|
|
863
863
|
"size": 0,
|
|
864
|
-
"origSize":
|
|
864
|
+
"origSize": 36,
|
|
865
865
|
"renderedExports": [],
|
|
866
866
|
"removedExports": [],
|
|
867
867
|
"dependents": [],
|
|
@@ -869,9 +869,9 @@
|
|
|
869
869
|
"reduction": 100
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
|
-
"id": "/src/
|
|
872
|
+
"id": "/src/shared.ts",
|
|
873
873
|
"size": 0,
|
|
874
|
-
"origSize":
|
|
874
|
+
"origSize": 653,
|
|
875
875
|
"renderedExports": [],
|
|
876
876
|
"removedExports": [],
|
|
877
877
|
"dependents": [],
|
|
@@ -886,11 +886,11 @@
|
|
|
886
886
|
"removedExports": [],
|
|
887
887
|
"dependents": [
|
|
888
888
|
"/src/adapters/express.ts",
|
|
889
|
-
"/src/adapters/standalone.ts",
|
|
890
889
|
"/src/adapters/next.ts",
|
|
891
890
|
"/src/adapters/ws.ts",
|
|
892
|
-
"/src/adapters/
|
|
891
|
+
"/src/adapters/standalone.ts",
|
|
893
892
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
893
|
+
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
894
894
|
"/src/adapters/node-http/writeResponse.ts"
|
|
895
895
|
],
|
|
896
896
|
"percent": 0,
|
|
@@ -946,9 +946,9 @@
|
|
|
946
946
|
"removedExports": [],
|
|
947
947
|
"dependents": [
|
|
948
948
|
"/src/adapters/express.ts",
|
|
949
|
-
"/src/adapters/standalone.ts",
|
|
950
949
|
"/src/adapters/next.ts",
|
|
951
950
|
"/src/adapters/ws.ts",
|
|
951
|
+
"/src/adapters/standalone.ts",
|
|
952
952
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
953
953
|
],
|
|
954
954
|
"percent": 0,
|
|
@@ -10,7 +10,7 @@ export type inferTransformedProcedureOutput<TInferrable extends InferrableClient
|
|
|
10
10
|
/** @internal */
|
|
11
11
|
export type inferTransformedSubscriptionOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferObservableValue<inferProcedureOutput<TProcedure>>> : inferObservableValue<inferProcedureOutput<TProcedure>>;
|
|
12
12
|
export type GetInferenceHelpers<TType extends 'input' | 'output', TRoot extends AnyClientTypes, TRecord extends RouterRecord> = {
|
|
13
|
-
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends
|
|
13
|
+
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyProcedure ? TType extends 'input' ? inferProcedureInput<$Value> : inferTransformedProcedureOutput<TRoot, $Value> : $Value extends RouterRecord ? GetInferenceHelpers<TType, TRoot, $Value> : never : never;
|
|
14
14
|
};
|
|
15
15
|
export type inferRouterInputs<TRouter extends AnyRouter> = GetInferenceHelpers<'input', TRouter['_def']['_config']['$types'], TRouter['_def']['record']>;
|
|
16
16
|
export type inferRouterOutputs<TRouter extends AnyRouter> = GetInferenceHelpers<'output', TRouter['_def']['_config']['$types'], TRouter['_def']['record']>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/clientish/inference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MA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AAS,IAAI,mBAAmB,CAC7E,QAAQ,EACR,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACpC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAC1B,CAAC"}
|
|
@@ -12,7 +12,7 @@ type DecorateProcedure<TProcedure extends AnyProcedure> = (input: inferProcedure
|
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
14
|
export type DecorateRouterRecord<TRecord extends RouterRecord> = {
|
|
15
|
-
[TKey in keyof TRecord]: TRecord[TKey] extends AnyProcedure ? DecorateProcedure
|
|
15
|
+
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyProcedure ? DecorateProcedure<$Value> : $Value extends RouterRecord ? DecorateRouterRecord<$Value> : never : never;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,EAA2B,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,qCAAqC,EACtC,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAW,MAAM,SAAS,CAAC;AAGrD,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;CAC5C;AAED,KAAK,iBAAiB,CAAC,UAAU,SAAS,YAAY,IAAI,CACxD,KAAK,EAAE,mBAAmB,C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ix.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-01-22-fix.722+6680a6090",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"peerDependencies": {
|
|
153
153
|
"typescript": ">=5.7.2"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "6680a60909e17e84a84be5e7bf8dc98b40397e3c"
|
|
156
156
|
}
|
|
@@ -37,12 +37,12 @@ export type GetInferenceHelpers<
|
|
|
37
37
|
TRecord extends RouterRecord,
|
|
38
38
|
> = {
|
|
39
39
|
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value
|
|
40
|
-
? $Value extends
|
|
41
|
-
?
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
? $Value extends AnyProcedure
|
|
41
|
+
? TType extends 'input'
|
|
42
|
+
? inferProcedureInput<$Value>
|
|
43
|
+
: inferTransformedProcedureOutput<TRoot, $Value>
|
|
44
|
+
: $Value extends RouterRecord
|
|
45
|
+
? GetInferenceHelpers<TType, TRoot, $Value>
|
|
46
46
|
: never
|
|
47
47
|
: never;
|
|
48
48
|
};
|
|
@@ -33,11 +33,13 @@ type DecorateProcedure<TProcedure extends AnyProcedure> = (
|
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
35
35
|
export type DecorateRouterRecord<TRecord extends RouterRecord> = {
|
|
36
|
-
[TKey in keyof TRecord]: TRecord[TKey] extends
|
|
37
|
-
?
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value
|
|
37
|
+
? $Value extends AnyProcedure
|
|
38
|
+
? DecorateProcedure<$Value>
|
|
39
|
+
: $Value extends RouterRecord
|
|
40
|
+
? DecorateRouterRecord<$Value>
|
|
41
|
+
: never
|
|
42
|
+
: never;
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
/**
|