@trpc/server 11.0.0-alpha-tmp-03-03-pipe-pipe.310 → 11.0.0-alpha-tmp-issues-4129-lazy-routers.304

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.
@@ -59,7 +59,7 @@ function getWSConnectionHandler(opts) {
59
59
  try {
60
60
  await ctxPromise; // asserts context has been set
61
61
  const result = await router.callProcedure({
62
- procedures: router$1._def.procedures,
62
+ _def: router$1._def,
63
63
  path,
64
64
  getRawInput: async ()=>input,
65
65
  ctx,
@@ -57,7 +57,7 @@ function getWSConnectionHandler(opts) {
57
57
  try {
58
58
  await ctxPromise; // asserts context has been set
59
59
  const result = await callProcedure({
60
- procedures: router._def.procedures,
60
+ _def: router._def,
61
61
  path,
62
62
  getRawInput: async ()=>input,
63
63
  ctx,
@@ -1,12 +1,12 @@
1
1
  {
2
- "bundleSize": 92666,
3
- "bundleOrigSize": 147947,
4
- "bundleReduction": 37.37,
2
+ "bundleSize": 95069,
3
+ "bundleOrigSize": 150561,
4
+ "bundleReduction": 36.86,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
8
- "size": 10170,
9
- "origSize": 9698,
8
+ "size": 10153,
9
+ "origSize": 9681,
10
10
  "renderedExports": [
11
11
  "getWSConnectionHandler",
12
12
  "applyWSSHandler"
@@ -15,26 +15,27 @@
15
15
  "dependents": [
16
16
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
17
17
  ],
18
- "percent": 10.97,
18
+ "percent": 10.68,
19
19
  "reduction": 0
20
20
  },
21
21
  {
22
22
  "id": "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
23
- "size": 9385,
24
- "origSize": 11914,
23
+ "size": 9365,
24
+ "origSize": 11892,
25
25
  "renderedExports": [
26
26
  "resolveHTTPResponse"
27
27
  ],
28
28
  "removedExports": [],
29
29
  "dependents": [],
30
- "percent": 10.13,
31
- "reduction": 21.23
30
+ "percent": 9.85,
31
+ "reduction": 21.25
32
32
  },
33
33
  {
34
34
  "id": "/src/unstable-core-do-not-import/router.ts",
35
- "size": 6069,
36
- "origSize": 9881,
35
+ "size": 8477,
36
+ "origSize": 12504,
37
37
  "renderedExports": [
38
+ "lazy",
38
39
  "createRouterFactory",
39
40
  "callProcedure",
40
41
  "createCallerFactory",
@@ -43,16 +44,16 @@
43
44
  "removedExports": [],
44
45
  "dependents": [
45
46
  "/src/unstable-core-do-not-import.ts",
46
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
47
- "/src/unstable-core-do-not-import/initTRPC.ts"
47
+ "/src/unstable-core-do-not-import/initTRPC.ts",
48
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
48
49
  ],
49
- "percent": 6.55,
50
- "reduction": 38.58
50
+ "percent": 8.92,
51
+ "reduction": 32.21
51
52
  },
52
53
  {
53
54
  "id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
54
- "size": 5706,
55
- "origSize": 13774,
55
+ "size": 5738,
56
+ "origSize": 13804,
56
57
  "renderedExports": [
57
58
  "unsetMarker",
58
59
  "createBuilder"
@@ -62,8 +63,8 @@
62
63
  "/src/unstable-core-do-not-import.ts",
63
64
  "/src/unstable-core-do-not-import/initTRPC.ts"
64
65
  ],
65
- "percent": 6.16,
66
- "reduction": 58.57
66
+ "percent": 6.04,
67
+ "reduction": 58.43
67
68
  },
68
69
  {
69
70
  "id": "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
@@ -78,7 +79,7 @@
78
79
  "dependents": [
79
80
  "/src/adapters/node-http/content-type/form-data/index.ts"
80
81
  ],
81
- "percent": 5.37,
82
+ "percent": 5.24,
82
83
  "reduction": 36.77
83
84
  },
84
85
  {
@@ -92,7 +93,7 @@
92
93
  ],
93
94
  "removedExports": [],
94
95
  "dependents": [],
95
- "percent": 4.77,
96
+ "percent": 4.65,
96
97
  "reduction": 32.71
97
98
  },
98
99
  {
@@ -106,7 +107,7 @@
106
107
  "dependents": [
107
108
  "/src/adapters/node-http/index.ts"
108
109
  ],
109
- "percent": 4.24,
110
+ "percent": 4.14,
110
111
  "reduction": 13.56
111
112
  },
112
113
  {
@@ -120,7 +121,7 @@
120
121
  "dependents": [
121
122
  "/src/adapters/fetch/index.ts"
122
123
  ],
123
- "percent": 3.84,
124
+ "percent": 3.74,
124
125
  "reduction": 9.5
125
126
  },
126
127
  {
@@ -139,7 +140,7 @@
139
140
  "dependents": [
140
141
  "/src/adapters/aws-lambda/index.ts"
141
142
  ],
142
- "percent": 3.57,
143
+ "percent": 3.48,
143
144
  "reduction": 36.48
144
145
  },
145
146
  {
@@ -156,7 +157,7 @@
156
157
  "/src/observable/index.ts",
157
158
  "/src/observable/operators.ts"
158
159
  ],
159
- "percent": 3.38,
160
+ "percent": 3.29,
160
161
  "reduction": 0.67
161
162
  },
162
163
  {
@@ -172,7 +173,7 @@
172
173
  "dependents": [
173
174
  "/src/observable/index.ts"
174
175
  ],
175
- "percent": 2.97,
176
+ "percent": 2.9,
176
177
  "reduction": 0
177
178
  },
178
179
  {
@@ -188,11 +189,11 @@
188
189
  "removedExports": [],
189
190
  "dependents": [
190
191
  "/src/unstable-core-do-not-import.ts",
191
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
192
192
  "/src/unstable-core-do-not-import/router.ts",
193
- "/src/unstable-core-do-not-import/initTRPC.ts"
193
+ "/src/unstable-core-do-not-import/initTRPC.ts",
194
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
194
195
  ],
195
- "percent": 2.96,
196
+ "percent": 2.89,
196
197
  "reduction": 45.94
197
198
  },
198
199
  {
@@ -206,7 +207,7 @@
206
207
  "dependents": [
207
208
  "/src/unstable-core-do-not-import.ts"
208
209
  ],
209
- "percent": 2.94,
210
+ "percent": 2.87,
210
211
  "reduction": 39.13
211
212
  },
212
213
  {
@@ -226,7 +227,7 @@
226
227
  "/src/unstable-core-do-not-import/initTRPC.ts",
227
228
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
228
229
  ],
229
- "percent": 2.83,
230
+ "percent": 2.76,
230
231
  "reduction": 55.5
231
232
  },
232
233
  {
@@ -241,7 +242,7 @@
241
242
  "/src/adapters/fastify/index.ts",
242
243
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
243
244
  ],
244
- "percent": 2.79,
245
+ "percent": 2.72,
245
246
  "reduction": 35.33
246
247
  },
247
248
  {
@@ -253,7 +254,7 @@
253
254
  ],
254
255
  "removedExports": [],
255
256
  "dependents": [],
256
- "percent": 2.74,
257
+ "percent": 2.67,
257
258
  "reduction": 31.37
258
259
  },
259
260
  {
@@ -268,13 +269,13 @@
268
269
  "removedExports": [],
269
270
  "dependents": [
270
271
  "/src/unstable-core-do-not-import.ts",
271
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
272
- "/src/unstable-core-do-not-import/http/contentType.ts",
273
272
  "/src/unstable-core-do-not-import/router.ts",
274
273
  "/src/unstable-core-do-not-import/middleware.ts",
274
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
275
+ "/src/unstable-core-do-not-import/http/contentType.ts",
275
276
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
276
277
  ],
277
- "percent": 1.87,
278
+ "percent": 1.82,
278
279
  "reduction": 19.47
279
280
  },
280
281
  {
@@ -288,7 +289,7 @@
288
289
  "dependents": [
289
290
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
290
291
  ],
291
- "percent": 1.77,
292
+ "percent": 1.73,
292
293
  "reduction": 34.79
293
294
  },
294
295
  {
@@ -300,7 +301,7 @@
300
301
  ],
301
302
  "removedExports": [],
302
303
  "dependents": [],
303
- "percent": 1.73,
304
+ "percent": 1.69,
304
305
  "reduction": 29.12
305
306
  },
306
307
  {
@@ -314,7 +315,7 @@
314
315
  "dependents": [
315
316
  "/src/adapters/node-http/content-type/json/index.ts"
316
317
  ],
317
- "percent": 1.72,
318
+ "percent": 1.67,
318
319
  "reduction": 0.19
319
320
  },
320
321
  {
@@ -326,7 +327,7 @@
326
327
  ],
327
328
  "removedExports": [],
328
329
  "dependents": [],
329
- "percent": 1.71,
330
+ "percent": 1.66,
330
331
  "reduction": 21.04
331
332
  },
332
333
  {
@@ -339,7 +340,7 @@
339
340
  ],
340
341
  "removedExports": [],
341
342
  "dependents": [],
342
- "percent": 1.64,
343
+ "percent": 1.6,
343
344
  "reduction": 27.6
344
345
  },
345
346
  {
@@ -356,7 +357,7 @@
356
357
  "/src/unstable-core-do-not-import/router.ts",
357
358
  "/src/unstable-core-do-not-import/initTRPC.ts"
358
359
  ],
359
- "percent": 1.63,
360
+ "percent": 1.59,
360
361
  "reduction": 5.58
361
362
  },
362
363
  {
@@ -370,7 +371,7 @@
370
371
  "dependents": [
371
372
  "/src/adapters/fastify/index.ts"
372
373
  ],
373
- "percent": 1.6,
374
+ "percent": 1.56,
374
375
  "reduction": 34.33
375
376
  },
376
377
  {
@@ -384,7 +385,7 @@
384
385
  "dependents": [
385
386
  "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"
386
387
  ],
387
- "percent": 1.5,
388
+ "percent": 1.47,
388
389
  "reduction": 0
389
390
  },
390
391
  {
@@ -397,10 +398,10 @@
397
398
  ],
398
399
  "removedExports": [],
399
400
  "dependents": [
400
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
401
- "/src/unstable-core-do-not-import/error/getErrorShape.ts"
401
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts",
402
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
402
403
  ],
403
- "percent": 1.37,
404
+ "percent": 1.33,
404
405
  "reduction": 22.76
405
406
  },
406
407
  {
@@ -415,7 +416,7 @@
415
416
  "/src/unstable-core-do-not-import.ts",
416
417
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
417
418
  ],
418
- "percent": 1.07,
419
+ "percent": 1.04,
419
420
  "reduction": 56.22
420
421
  },
421
422
  {
@@ -437,7 +438,7 @@
437
438
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
438
439
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
439
440
  ],
440
- "percent": 0.88,
441
+ "percent": 0.86,
441
442
  "reduction": 19.78
442
443
  },
443
444
  {
@@ -457,7 +458,7 @@
457
458
  "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
458
459
  "/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
459
460
  ],
460
- "percent": 0.78,
461
+ "percent": 0.76,
461
462
  "reduction": 67.52
462
463
  },
463
464
  {
@@ -471,7 +472,7 @@
471
472
  "dependents": [
472
473
  "/src/adapters/node-http/content-type/form-data/index.ts"
473
474
  ],
474
- "percent": 0.75,
475
+ "percent": 0.74,
475
476
  "reduction": 71.21
476
477
  },
477
478
  {
@@ -483,7 +484,7 @@
483
484
  ],
484
485
  "removedExports": [],
485
486
  "dependents": [],
486
- "percent": 0.72,
487
+ "percent": 0.7,
487
488
  "reduction": 0.6
488
489
  },
489
490
  {
@@ -498,7 +499,7 @@
498
499
  "/src/unstable-core-do-not-import.ts",
499
500
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
500
501
  ],
501
- "percent": 0.67,
502
+ "percent": 0.66,
502
503
  "reduction": 43.49
503
504
  },
504
505
  {
@@ -511,7 +512,7 @@
511
512
  ],
512
513
  "removedExports": [],
513
514
  "dependents": [],
514
- "percent": 0.62,
515
+ "percent": 0.61,
515
516
  "reduction": 65.23
516
517
  },
517
518
  {
@@ -526,7 +527,7 @@
526
527
  "/src/unstable-core-do-not-import.ts",
527
528
  "/src/unstable-core-do-not-import/initTRPC.ts"
528
529
  ],
529
- "percent": 0.37,
530
+ "percent": 0.36,
530
531
  "reduction": 83.97
531
532
  },
532
533
  {
@@ -538,7 +539,7 @@
538
539
  ],
539
540
  "removedExports": [],
540
541
  "dependents": [],
541
- "percent": 0.37,
542
+ "percent": 0.36,
542
543
  "reduction": 71.37
543
544
  },
544
545
  {
@@ -552,7 +553,7 @@
552
553
  "dependents": [
553
554
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
554
555
  ],
555
- "percent": 0.32,
556
+ "percent": 0.31,
556
557
  "reduction": 35.11
557
558
  },
558
559
  {
@@ -566,7 +567,7 @@
566
567
  "dependents": [
567
568
  "/src/unstable-core-do-not-import.ts"
568
569
  ],
569
- "percent": 0.24,
570
+ "percent": 0.23,
570
571
  "reduction": 94.55
571
572
  },
572
573
  {
@@ -593,7 +594,7 @@
593
594
  "/src/adapters/node-http/content-type/json/index.ts",
594
595
  "/src/adapters/node-http/content-type/form-data/index.ts"
595
596
  ],
596
- "percent": 0.13,
597
+ "percent": 0.12,
597
598
  "reduction": 86.68
598
599
  },
599
600
  {
@@ -624,13 +625,13 @@
624
625
  "/src/unstable-core-do-not-import/router.ts",
625
626
  "/src/unstable-core-do-not-import/initTRPC.ts"
626
627
  ],
627
- "percent": 0.07,
628
+ "percent": 0.06,
628
629
  "reduction": 93.8
629
630
  },
630
631
  {
631
- "id": "/src/http.ts",
632
+ "id": "/src/index.ts",
632
633
  "size": 0,
633
- "origSize": 37,
634
+ "origSize": 32,
634
635
  "renderedExports": [],
635
636
  "removedExports": [],
636
637
  "dependents": [],
@@ -638,9 +639,9 @@
638
639
  "reduction": 100
639
640
  },
640
641
  {
641
- "id": "/src/index.ts",
642
+ "id": "/src/http.ts",
642
643
  "size": 0,
643
- "origSize": 32,
644
+ "origSize": 37,
644
645
  "renderedExports": [],
645
646
  "removedExports": [],
646
647
  "dependents": [],
@@ -139,7 +139,7 @@ async function resolveHTTPResponse(opts) {
139
139
  const input = inputs[index];
140
140
  try {
141
141
  const data = await router.callProcedure({
142
- procedures: opts.router._def.procedures,
142
+ _def: router$1._def,
143
143
  path,
144
144
  getRawInput: async ()=>input,
145
145
  ctx,
@@ -137,7 +137,7 @@ async function resolveHTTPResponse(opts) {
137
137
  const input = inputs[index];
138
138
  try {
139
139
  const data = await callProcedure({
140
- procedures: opts.router._def.procedures,
140
+ _def: router._def,
141
141
  path,
142
142
  getRawInput: async ()=>input,
143
143
  ctx,
@@ -171,6 +171,7 @@ function createProcedureCaller(_def) {
171
171
  return result.data;
172
172
  }
173
173
  procedure._def = _def;
174
+ procedure.procedure = true;
174
175
  // FIXME typecast shouldn't be needed - fixittt
175
176
  return procedure;
176
177
  }
@@ -169,6 +169,7 @@ function createProcedureCaller(_def) {
169
169
  return result.data;
170
170
  }
171
171
  procedure._def = _def;
172
+ procedure.procedure = true;
172
173
  // FIXME typecast shouldn't be needed - fixittt
173
174
  return procedure;
174
175
  }
@@ -24,13 +24,18 @@ export type RouterCaller<TRoot extends AnyRootTypes, TRecord extends RouterRecor
24
24
  * e.g. wrapped in `React.cache` to avoid unnecessary computations
25
25
  */
26
26
  ctx: TRoot['ctx'] | (() => MaybePromise<TRoot['ctx']>)) => DecorateRouterRecord<TRecord>;
27
+ type LazyLoader<TAny> = {
28
+ load: () => Promise<void>;
29
+ ref: Lazy<TAny>;
30
+ };
27
31
  export interface Router<TRoot extends AnyRootTypes, TRecord extends RouterRecord> {
28
32
  _def: {
29
33
  _config: RootConfig<TRoot>;
30
34
  router: true;
31
35
  procedure?: never;
32
- procedures: TRecord;
36
+ procedures: Record<string, AnyProcedure>;
33
37
  record: TRecord;
38
+ lazy: Record<string, LazyLoader<AnyRouter>>;
34
39
  };
35
40
  /**
36
41
  * @deprecated use `t.createCallerFactory(router)` instead
@@ -44,11 +49,16 @@ export type inferRouterRootTypes<TRouter extends AnyRouter> = TRouter['_def']['_
44
49
  export type inferRouterContext<TRouter extends AnyRouter> = inferRouterRootTypes<TRouter>['ctx'];
45
50
  export type inferRouterError<TRouter extends AnyRouter> = inferRouterRootTypes<TRouter>['errorShape'];
46
51
  export type inferRouterMeta<TRouter extends AnyRouter> = inferRouterRootTypes<TRouter>['meta'];
52
+ declare const lazySymbol: unique symbol;
53
+ export type Lazy<TAny> = (() => Promise<TAny>) & {
54
+ [lazySymbol]: true;
55
+ };
47
56
  export type CreateRouterOptions = {
48
- [key: string]: AnyProcedure | AnyRouter | CreateRouterOptions;
57
+ [key: string]: AnyProcedure | AnyRouter | CreateRouterOptions | Lazy<AnyRouter>;
49
58
  };
59
+ export declare function lazy<TAny>(getRouter: () => Promise<TAny>): Lazy<TAny>;
50
60
  export type DecorateCreateRouterOptions<TRouterOptions extends CreateRouterOptions> = {
51
- [K in keyof TRouterOptions]: TRouterOptions[K] extends infer $Value ? $Value extends AnyProcedure ? $Value : $Value extends Router<any, infer TRecord> ? TRecord : $Value extends CreateRouterOptions ? DecorateCreateRouterOptions<$Value> : never : never;
61
+ [K in keyof TRouterOptions]: TRouterOptions[K] extends infer $Value ? $Value extends AnyProcedure ? $Value : $Value extends Router<any, infer TRecord> ? TRecord : $Value extends CreateRouterOptions ? DecorateCreateRouterOptions<$Value> : $Value extends Lazy<infer $Lazy> ? $Lazy extends Router<any, infer TRecord> ? TRecord : never : never : never;
52
62
  };
53
63
  /**
54
64
  * @internal
@@ -61,7 +71,7 @@ export declare function createRouterFactory<TRoot extends AnyRootTypes>(config:
61
71
  * @internal
62
72
  */
63
73
  export declare function callProcedure(opts: ProcedureCallOptions & {
64
- procedures: RouterRecord;
74
+ _def: AnyRouter['_def'];
65
75
  allowMethodOverride?: boolean;
66
76
  }): Promise<unknown>;
67
77
  export declare function createCallerFactory<TRoot extends AnyRootTypes>(): <TRecord extends RouterRecord>(router: Router<TRoot, TRecord>) => RouterCaller<TRoot, TRecord>;
@@ -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,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EA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