@trpc/server 11.0.0-rc.746 → 11.0.0-rc.748

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.
Files changed (35) hide show
  1. package/dist/@trpc/server/index.d.ts +1 -1
  2. package/dist/@trpc/server/index.d.ts.map +1 -1
  3. package/dist/adapters/node-http/nodeHTTPRequestHandler.js +1 -1
  4. package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -1
  5. package/dist/adapters/ws.js +2 -2
  6. package/dist/adapters/ws.mjs +2 -2
  7. package/dist/bundle-analysis.json +122 -119
  8. package/dist/index.js +4 -3
  9. package/dist/index.mjs +1 -1
  10. package/dist/unstable-core-do-not-import/http/contentType.d.ts +2 -2
  11. package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +1 -1
  12. package/dist/unstable-core-do-not-import/http/contentType.js +12 -10
  13. package/dist/unstable-core-do-not-import/http/contentType.mjs +12 -10
  14. package/dist/unstable-core-do-not-import/http/resolveResponse.js +2 -2
  15. package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +2 -2
  16. package/dist/unstable-core-do-not-import/procedureBuilder.js +1 -0
  17. package/dist/unstable-core-do-not-import/procedureBuilder.mjs +1 -0
  18. package/dist/unstable-core-do-not-import/router.d.ts +20 -3
  19. package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
  20. package/dist/unstable-core-do-not-import/router.js +102 -6
  21. package/dist/unstable-core-do-not-import/router.mjs +102 -8
  22. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +3 -9
  23. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +1 -1
  24. package/dist/unstable-core-do-not-import/stream/jsonl.js +24 -33
  25. package/dist/unstable-core-do-not-import/stream/jsonl.mjs +24 -33
  26. package/dist/unstable-core-do-not-import.js +2 -0
  27. package/dist/unstable-core-do-not-import.mjs +1 -1
  28. package/package.json +2 -2
  29. package/src/@trpc/server/index.ts +1 -0
  30. package/src/adapters/ws.ts +1 -1
  31. package/src/unstable-core-do-not-import/http/contentType.ts +48 -42
  32. package/src/unstable-core-do-not-import/http/resolveResponse.ts +2 -2
  33. package/src/unstable-core-do-not-import/procedureBuilder.ts +1 -0
  34. package/src/unstable-core-do-not-import/router.ts +156 -14
  35. package/src/unstable-core-do-not-import/stream/jsonl.ts +28 -40
@@ -1,12 +1,12 @@
1
1
  {
2
- "bundleSize": 195415,
3
- "bundleOrigSize": 226915,
4
- "bundleReduction": 13.88,
2
+ "bundleSize": 198708,
3
+ "bundleOrigSize": 230376,
4
+ "bundleReduction": 13.75,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
8
- "size": 21071,
9
- "origSize": 19429,
8
+ "size": 21089,
9
+ "origSize": 19447,
10
10
  "renderedExports": [
11
11
  "resolveResponse"
12
12
  ],
@@ -14,40 +14,40 @@
14
14
  "dependents": [
15
15
  "/src/unstable-core-do-not-import.ts"
16
16
  ],
17
- "percent": 10.78,
17
+ "percent": 10.61,
18
18
  "reduction": 0
19
19
  },
20
20
  {
21
- "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
22
- "size": 20511,
23
- "origSize": 17610,
21
+ "id": "/src/adapters/ws.ts",
22
+ "size": 20151,
23
+ "origSize": 15938,
24
24
  "renderedExports": [
25
- "isPromise",
26
- "jsonlStreamProducer",
27
- "jsonlStreamConsumer"
25
+ "getWSConnectionHandler",
26
+ "handleKeepAlive",
27
+ "applyWSSHandler"
28
28
  ],
29
29
  "removedExports": [],
30
30
  "dependents": [
31
- "/src/unstable-core-do-not-import.ts",
32
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
31
+ "/src/adapters/fastify/fastifyTRPCPlugin.ts"
33
32
  ],
34
- "percent": 10.5,
33
+ "percent": 10.14,
35
34
  "reduction": 0
36
35
  },
37
36
  {
38
- "id": "/src/adapters/ws.ts",
39
- "size": 20168,
40
- "origSize": 15955,
37
+ "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
38
+ "size": 19944,
39
+ "origSize": 16994,
41
40
  "renderedExports": [
42
- "getWSConnectionHandler",
43
- "handleKeepAlive",
44
- "applyWSSHandler"
41
+ "isPromise",
42
+ "jsonlStreamProducer",
43
+ "jsonlStreamConsumer"
45
44
  ],
46
45
  "removedExports": [],
47
46
  "dependents": [
48
- "/src/adapters/fastify/fastifyTRPCPlugin.ts"
47
+ "/src/unstable-core-do-not-import.ts",
48
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts"
49
49
  ],
50
- "percent": 10.32,
50
+ "percent": 10.04,
51
51
  "reduction": 0
52
52
  },
53
53
  {
@@ -64,7 +64,7 @@
64
64
  "/src/unstable-core-do-not-import.ts",
65
65
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
66
66
  ],
67
- "percent": 6.46,
67
+ "percent": 6.35,
68
68
  "reduction": 0
69
69
  },
70
70
  {
@@ -77,9 +77,30 @@
77
77
  ],
78
78
  "removedExports": [],
79
79
  "dependents": [],
80
- "percent": 6.22,
80
+ "percent": 6.12,
81
81
  "reduction": 11.62
82
82
  },
83
+ {
84
+ "id": "/src/unstable-core-do-not-import/router.ts",
85
+ "size": 10152,
86
+ "origSize": 14423,
87
+ "renderedExports": [
88
+ "lazy",
89
+ "createRouterFactory",
90
+ "getProcedureAtPath",
91
+ "callProcedure",
92
+ "createCallerFactory",
93
+ "mergeRouters"
94
+ ],
95
+ "removedExports": [],
96
+ "dependents": [
97
+ "/src/unstable-core-do-not-import.ts",
98
+ "/src/unstable-core-do-not-import/initTRPC.ts",
99
+ "/src/unstable-core-do-not-import/http/contentType.ts"
100
+ ],
101
+ "percent": 5.11,
102
+ "reduction": 29.61
103
+ },
83
104
  {
84
105
  "id": "/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts",
85
106
  "size": 8124,
@@ -91,13 +112,13 @@
91
112
  "dependents": [
92
113
  "/src/unstable-core-do-not-import/stream/jsonl.ts"
93
114
  ],
94
- "percent": 4.16,
115
+ "percent": 4.09,
95
116
  "reduction": 0
96
117
  },
97
118
  {
98
119
  "id": "/src/unstable-core-do-not-import/http/contentType.ts",
99
- "size": 7766,
100
- "origSize": 7690,
120
+ "size": 7889,
121
+ "origSize": 7955,
101
122
  "renderedExports": [
102
123
  "getRequestInfo"
103
124
  ],
@@ -107,25 +128,7 @@
107
128
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
108
129
  ],
109
130
  "percent": 3.97,
110
- "reduction": 0
111
- },
112
- {
113
- "id": "/src/unstable-core-do-not-import/router.ts",
114
- "size": 6448,
115
- "origSize": 10642,
116
- "renderedExports": [
117
- "createRouterFactory",
118
- "callProcedure",
119
- "createCallerFactory",
120
- "mergeRouters"
121
- ],
122
- "removedExports": [],
123
- "dependents": [
124
- "/src/unstable-core-do-not-import.ts",
125
- "/src/unstable-core-do-not-import/initTRPC.ts"
126
- ],
127
- "percent": 3.3,
128
- "reduction": 39.41
131
+ "reduction": 0.83
129
132
  },
130
133
  {
131
134
  "id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
@@ -144,13 +147,13 @@
144
147
  "/src/unstable-core-do-not-import/stream/sse.ts",
145
148
  "/src/unstable-core-do-not-import/stream/utils/withPing.ts"
146
149
  ],
147
- "percent": 2.98,
150
+ "percent": 2.93,
148
151
  "reduction": 0
149
152
  },
150
153
  {
151
154
  "id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
152
- "size": 5793,
153
- "origSize": 16554,
155
+ "size": 5825,
156
+ "origSize": 16584,
154
157
  "renderedExports": [
155
158
  "createBuilder"
156
159
  ],
@@ -159,8 +162,8 @@
159
162
  "/src/unstable-core-do-not-import.ts",
160
163
  "/src/unstable-core-do-not-import/initTRPC.ts"
161
164
  ],
162
- "percent": 2.96,
163
- "reduction": 65.01
165
+ "percent": 2.93,
166
+ "reduction": 64.88
164
167
  },
165
168
  {
166
169
  "id": "/src/adapters/aws-lambda/getPlanner.ts",
@@ -173,7 +176,7 @@
173
176
  "dependents": [
174
177
  "/src/adapters/aws-lambda/index.ts"
175
178
  ],
176
- "percent": 2.77,
179
+ "percent": 2.72,
177
180
  "reduction": 11.51
178
181
  },
179
182
  {
@@ -193,7 +196,7 @@
193
196
  "/src/observable/operators.ts",
194
197
  "/src/observable/behaviorSubject.ts"
195
198
  ],
196
- "percent": 2.47,
199
+ "percent": 2.43,
197
200
  "reduction": 0
198
201
  },
199
202
  {
@@ -209,7 +212,7 @@
209
212
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
210
213
  "/src/unstable-core-do-not-import/stream/sse.ts"
211
214
  ],
212
- "percent": 2.27,
215
+ "percent": 2.23,
213
216
  "reduction": 0
214
217
  },
215
218
  {
@@ -225,7 +228,7 @@
225
228
  "/src/adapters/node-http/index.ts",
226
229
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
227
230
  ],
228
- "percent": 2.07,
231
+ "percent": 2.04,
229
232
  "reduction": 6.82
230
233
  },
231
234
  {
@@ -243,7 +246,7 @@
243
246
  "dependents": [
244
247
  "/src/observable/index.ts"
245
248
  ],
246
- "percent": 2,
249
+ "percent": 1.97,
247
250
  "reduction": 1.66
248
251
  },
249
252
  {
@@ -257,7 +260,7 @@
257
260
  "dependents": [
258
261
  "/src/adapters/next-app-dir.ts"
259
262
  ],
260
- "percent": 1.66,
263
+ "percent": 1.63,
261
264
  "reduction": 22.52
262
265
  },
263
266
  {
@@ -272,7 +275,7 @@
272
275
  "dependents": [
273
276
  "/src/adapters/node-http/index.ts"
274
277
  ],
275
- "percent": 1.4,
278
+ "percent": 1.38,
276
279
  "reduction": 16.3
277
280
  },
278
281
  {
@@ -288,11 +291,11 @@
288
291
  "removedExports": [],
289
292
  "dependents": [
290
293
  "/src/unstable-core-do-not-import.ts",
291
- "/src/unstable-core-do-not-import/initTRPC.ts",
294
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
292
295
  "/src/unstable-core-do-not-import/router.ts",
293
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
296
+ "/src/unstable-core-do-not-import/initTRPC.ts"
294
297
  ],
295
- "percent": 1.4,
298
+ "percent": 1.38,
296
299
  "reduction": 45.98
297
300
  },
298
301
  {
@@ -306,7 +309,7 @@
306
309
  "dependents": [
307
310
  "/src/unstable-core-do-not-import.ts"
308
311
  ],
309
- "percent": 1.36,
312
+ "percent": 1.34,
310
313
  "reduction": 40.81
311
314
  },
312
315
  {
@@ -326,7 +329,7 @@
326
329
  "/src/unstable-core-do-not-import/initTRPC.ts",
327
330
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
328
331
  ],
329
- "percent": 1.34,
332
+ "percent": 1.32,
330
333
  "reduction": 55.79
331
334
  },
332
335
  {
@@ -350,21 +353,21 @@
350
353
  "removedExports": [],
351
354
  "dependents": [
352
355
  "/src/unstable-core-do-not-import.ts",
353
- "/src/unstable-core-do-not-import/error/TRPCError.ts",
354
- "/src/unstable-core-do-not-import/transformer.ts",
355
- "/src/unstable-core-do-not-import/middleware.ts",
356
- "/src/unstable-core-do-not-import/router.ts",
357
356
  "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
358
357
  "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
359
358
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
360
359
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
360
+ "/src/unstable-core-do-not-import/error/TRPCError.ts",
361
+ "/src/unstable-core-do-not-import/router.ts",
362
+ "/src/unstable-core-do-not-import/transformer.ts",
363
+ "/src/unstable-core-do-not-import/middleware.ts",
361
364
  "/src/unstable-core-do-not-import/http/contentType.ts",
362
365
  "/src/unstable-core-do-not-import/http/isAbortError.ts",
363
366
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
364
367
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
365
368
  "/src/unstable-core-do-not-import/stream/sse.ts"
366
369
  ],
367
- "percent": 1.26,
370
+ "percent": 1.24,
368
371
  "reduction": 17.51
369
372
  },
370
373
  {
@@ -379,15 +382,15 @@
379
382
  "removedExports": [],
380
383
  "dependents": [
381
384
  "/src/unstable-core-do-not-import.ts",
382
- "/src/unstable-core-do-not-import/middleware.ts",
383
- "/src/unstable-core-do-not-import/router.ts",
384
385
  "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
385
386
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
387
+ "/src/unstable-core-do-not-import/router.ts",
388
+ "/src/unstable-core-do-not-import/middleware.ts",
386
389
  "/src/unstable-core-do-not-import/http/contentType.ts",
387
390
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
388
391
  "/src/unstable-core-do-not-import/stream/sse.ts"
389
392
  ],
390
- "percent": 1.21,
393
+ "percent": 1.19,
391
394
  "reduction": 0
392
395
  },
393
396
  {
@@ -403,7 +406,7 @@
403
406
  "/src/unstable-core-do-not-import.ts",
404
407
  "/src/unstable-core-do-not-import/router.ts"
405
408
  ],
406
- "percent": 1.19,
409
+ "percent": 1.17,
407
410
  "reduction": 0
408
411
  },
409
412
  {
@@ -417,7 +420,7 @@
417
420
  "dependents": [
418
421
  "/src/adapters/fetch/index.ts"
419
422
  ],
420
- "percent": 1.15,
423
+ "percent": 1.13,
421
424
  "reduction": 2.48
422
425
  },
423
426
  {
@@ -431,7 +434,7 @@
431
434
  "dependents": [
432
435
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
433
436
  ],
434
- "percent": 1.08,
437
+ "percent": 1.07,
435
438
  "reduction": 5.4
436
439
  },
437
440
  {
@@ -449,10 +452,10 @@
449
452
  "removedExports": [],
450
453
  "dependents": [
451
454
  "/src/unstable-core-do-not-import.ts",
452
- "/src/unstable-core-do-not-import/error/getErrorShape.ts",
453
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
455
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
456
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts"
454
457
  ],
455
- "percent": 1.07,
458
+ "percent": 1.05,
456
459
  "reduction": 18.54
457
460
  },
458
461
  {
@@ -467,7 +470,7 @@
467
470
  "dependents": [
468
471
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
469
472
  ],
470
- "percent": 1.04,
473
+ "percent": 1.02,
471
474
  "reduction": 3.71
472
475
  },
473
476
  {
@@ -481,7 +484,7 @@
481
484
  "dependents": [
482
485
  "/src/adapters/fastify/index.ts"
483
486
  ],
484
- "percent": 0.91,
487
+ "percent": 0.89,
485
488
  "reduction": 30.2
486
489
  },
487
490
  {
@@ -501,7 +504,7 @@
501
504
  "/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts",
502
505
  "/src/unstable-core-do-not-import/stream/utils/timerResource.ts"
503
506
  ],
504
- "percent": 0.9,
507
+ "percent": 0.88,
505
508
  "reduction": 1.46
506
509
  },
507
510
  {
@@ -513,7 +516,7 @@
513
516
  ],
514
517
  "removedExports": [],
515
518
  "dependents": [],
516
- "percent": 0.87,
519
+ "percent": 0.85,
517
520
  "reduction": 19.62
518
521
  },
519
522
  {
@@ -526,7 +529,7 @@
526
529
  ],
527
530
  "removedExports": [],
528
531
  "dependents": [],
529
- "percent": 0.82,
532
+ "percent": 0.81,
530
533
  "reduction": 17.81
531
534
  },
532
535
  {
@@ -541,7 +544,7 @@
541
544
  "/src/unstable-core-do-not-import.ts",
542
545
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
543
546
  ],
544
- "percent": 0.82,
547
+ "percent": 0.81,
545
548
  "reduction": 54.01
546
549
  },
547
550
  {
@@ -553,7 +556,7 @@
553
556
  ],
554
557
  "removedExports": [],
555
558
  "dependents": [],
556
- "percent": 0.68,
559
+ "percent": 0.67,
557
560
  "reduction": 35.1
558
561
  },
559
562
  {
@@ -570,7 +573,7 @@
570
573
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
571
574
  "/src/adapters/next-app-dir/rethrowNextErrors.ts"
572
575
  ],
573
- "percent": 0.68,
576
+ "percent": 0.67,
574
577
  "reduction": 0
575
578
  },
576
579
  {
@@ -585,7 +588,7 @@
585
588
  "/src/adapters/fastify/index.ts",
586
589
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
587
590
  ],
588
- "percent": 0.59,
591
+ "percent": 0.58,
589
592
  "reduction": 47.55
590
593
  },
591
594
  {
@@ -615,7 +618,7 @@
615
618
  "dependents": [
616
619
  "/src/unstable-core-do-not-import.ts"
617
620
  ],
618
- "percent": 0.54,
621
+ "percent": 0.53,
619
622
  "reduction": 0
620
623
  },
621
624
  {
@@ -643,7 +646,7 @@
643
646
  ],
644
647
  "removedExports": [],
645
648
  "dependents": [],
646
- "percent": 0.49,
649
+ "percent": 0.48,
647
650
  "reduction": 69.13
648
651
  },
649
652
  {
@@ -672,7 +675,7 @@
672
675
  "/src/unstable-core-do-not-import.ts",
673
676
  "/src/unstable-core-do-not-import/stream/sse.ts"
674
677
  ],
675
- "percent": 0.4,
678
+ "percent": 0.39,
676
679
  "reduction": 44.13
677
680
  },
678
681
  {
@@ -684,7 +687,7 @@
684
687
  ],
685
688
  "removedExports": [],
686
689
  "dependents": [],
687
- "percent": 0.39,
690
+ "percent": 0.38,
688
691
  "reduction": 66.61
689
692
  },
690
693
  {
@@ -699,7 +702,7 @@
699
702
  "/src/unstable-core-do-not-import.ts",
700
703
  "/src/unstable-core-do-not-import/parser.ts"
701
704
  ],
702
- "percent": 0.36,
705
+ "percent": 0.35,
703
706
  "reduction": 0
704
707
  },
705
708
  {
@@ -729,7 +732,7 @@
729
732
  "/src/unstable-core-do-not-import.ts",
730
733
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
731
734
  ],
732
- "percent": 0.32,
735
+ "percent": 0.31,
733
736
  "reduction": 43.85
734
737
  },
735
738
  {
@@ -761,7 +764,7 @@
761
764
  "/src/unstable-core-do-not-import.ts",
762
765
  "/src/unstable-core-do-not-import/initTRPC.ts"
763
766
  ],
764
- "percent": 0.18,
767
+ "percent": 0.17,
765
768
  "reduction": 89.66
766
769
  },
767
770
  {
@@ -848,22 +851,12 @@
848
851
  "removedExports": [],
849
852
  "dependents": [
850
853
  "/src/unstable-core-do-not-import.ts",
851
- "/src/unstable-core-do-not-import/initTRPC.ts",
852
- "/src/unstable-core-do-not-import/router.ts"
854
+ "/src/unstable-core-do-not-import/router.ts",
855
+ "/src/unstable-core-do-not-import/initTRPC.ts"
853
856
  ],
854
857
  "percent": 0.03,
855
858
  "reduction": 93.9
856
859
  },
857
- {
858
- "id": "/src/index.ts",
859
- "size": 0,
860
- "origSize": 32,
861
- "renderedExports": [],
862
- "removedExports": [],
863
- "dependents": [],
864
- "percent": 0,
865
- "reduction": 100
866
- },
867
860
  {
868
861
  "id": "/src/http.ts",
869
862
  "size": 0,
@@ -886,6 +879,16 @@
886
879
  "percent": 0,
887
880
  "reduction": 100
888
881
  },
882
+ {
883
+ "id": "/src/index.ts",
884
+ "size": 0,
885
+ "origSize": 32,
886
+ "renderedExports": [],
887
+ "removedExports": [],
888
+ "dependents": [],
889
+ "percent": 0,
890
+ "reduction": 100
891
+ },
889
892
  {
890
893
  "id": "/src/shared.ts",
891
894
  "size": 0,
@@ -903,12 +906,12 @@
903
906
  "renderedExports": [],
904
907
  "removedExports": [],
905
908
  "dependents": [
906
- "/src/adapters/express.ts",
907
909
  "/src/adapters/next.ts",
910
+ "/src/adapters/express.ts",
908
911
  "/src/adapters/standalone.ts",
909
912
  "/src/adapters/ws.ts",
910
- "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
911
913
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
914
+ "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
912
915
  "/src/adapters/node-http/writeResponse.ts"
913
916
  ],
914
917
  "percent": 0,
@@ -946,6 +949,16 @@
946
949
  "percent": 0,
947
950
  "reduction": 100
948
951
  },
952
+ {
953
+ "id": "/src/adapters/fetch/index.ts",
954
+ "size": 0,
955
+ "origSize": 64,
956
+ "renderedExports": [],
957
+ "removedExports": [],
958
+ "dependents": [],
959
+ "percent": 0,
960
+ "reduction": 100
961
+ },
949
962
  {
950
963
  "id": "/src/adapters/node-http/index.ts",
951
964
  "size": 0,
@@ -953,24 +966,14 @@
953
966
  "renderedExports": [],
954
967
  "removedExports": [],
955
968
  "dependents": [
956
- "/src/adapters/express.ts",
957
969
  "/src/adapters/next.ts",
970
+ "/src/adapters/express.ts",
958
971
  "/src/adapters/standalone.ts",
959
972
  "/src/adapters/ws.ts",
960
973
  "/src/adapters/fastify/fastifyRequestHandler.ts"
961
974
  ],
962
975
  "percent": 0,
963
976
  "reduction": 100
964
- },
965
- {
966
- "id": "/src/adapters/fetch/index.ts",
967
- "size": 0,
968
- "origSize": 64,
969
- "renderedExports": [],
970
- "removedExports": [],
971
- "dependents": [],
972
- "percent": 0,
973
- "reduction": 100
974
977
  }
975
978
  ],
976
979
  "moduleCount": 63
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  var createProxy = require('./unstable-core-do-not-import/createProxy.js');
4
4
  var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.js');
5
5
  var TRPCError = require('./unstable-core-do-not-import/error/TRPCError.js');
6
+ var router = require('./unstable-core-do-not-import/router.js');
6
7
  require('./vendor/unpromise/unpromise.js');
7
8
  require('./unstable-core-do-not-import/stream/utils/disposable.js');
8
9
  var tracked = require('./unstable-core-do-not-import/stream/tracked.js');
@@ -11,7 +12,6 @@ var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
11
12
  var middleware = require('./unstable-core-do-not-import/middleware.js');
12
13
  var error = require('./vendor/standard-schema-v1/error.js');
13
14
  require('./unstable-core-do-not-import/rootConfig.js');
14
- var router = require('./unstable-core-do-not-import/router.js');
15
15
 
16
16
 
17
17
 
@@ -19,6 +19,9 @@ exports.createTRPCFlatProxy = createProxy.createFlatProxy;
19
19
  exports.getErrorShape = getErrorShape.getErrorShape;
20
20
  exports.TRPCError = TRPCError.TRPCError;
21
21
  exports.getTRPCErrorFromUnknown = TRPCError.getTRPCErrorFromUnknown;
22
+ exports.callProcedure = router.callProcedure;
23
+ exports.callTRPCProcedure = router.callProcedure;
24
+ exports.experimental_lazy = router.lazy;
22
25
  exports.isTrackedEnvelope = tracked.isTrackedEnvelope;
23
26
  exports.sse = tracked.sse;
24
27
  exports.tracked = tracked.tracked;
@@ -27,5 +30,3 @@ exports.initTRPC = initTRPC.initTRPC;
27
30
  exports.experimental_standaloneMiddleware = middleware.experimental_standaloneMiddleware;
28
31
  exports.experimental_trpcMiddleware = middleware.experimental_standaloneMiddleware;
29
32
  exports.StandardSchemaV1Error = error.StandardSchemaV1Error;
30
- exports.callProcedure = router.callProcedure;
31
- exports.callTRPCProcedure = router.callProcedure;
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  export { createFlatProxy as createTRPCFlatProxy } from './unstable-core-do-not-import/createProxy.mjs';
2
2
  export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape.mjs';
3
3
  export { TRPCError, getTRPCErrorFromUnknown } from './unstable-core-do-not-import/error/TRPCError.mjs';
4
+ export { callProcedure, callProcedure as callTRPCProcedure, lazy as experimental_lazy } from './unstable-core-do-not-import/router.mjs';
4
5
  import './vendor/unpromise/unpromise.mjs';
5
6
  import './unstable-core-do-not-import/stream/utils/disposable.mjs';
6
7
  export { isTrackedEnvelope, sse, tracked } from './unstable-core-do-not-import/stream/tracked.mjs';
@@ -9,4 +10,3 @@ export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
9
10
  export { experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware } from './unstable-core-do-not-import/middleware.mjs';
10
11
  export { StandardSchemaV1Error } from './vendor/standard-schema-v1/error.mjs';
11
12
  import './unstable-core-do-not-import/rootConfig.mjs';
12
- export { callProcedure, callProcedure as callTRPCProcedure } from './unstable-core-do-not-import/router.mjs';
@@ -1,4 +1,4 @@
1
- import type { AnyRouter } from '../router';
1
+ import { type AnyRouter } from '../router';
2
2
  import type { TRPCRequestInfo } from './types';
3
3
  type GetRequestInfoOptions = {
4
4
  path: string;
@@ -8,6 +8,6 @@ type GetRequestInfoOptions = {
8
8
  headers: Headers;
9
9
  router: AnyRouter;
10
10
  };
11
- export declare function getRequestInfo(opts: GetRequestInfoOptions): TRPCRequestInfo;
11
+ export declare function getRequestInfo(opts: GetRequestInfoOptions): Promise<TRPCRequestInfo>;
12
12
  export {};
13
13
  //# sourceMappingURL=contentType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/contentType.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjE,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAChB,YAAY,EAAE,eAAe,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AA2QF,wBAAgB,cAAc,CAAC,IAAI,EAAE,qBAAqB,GAAG,eAAe,CAG3E"}
1
+ {"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/contentType.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAG/D,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjE,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAChB,YAAY,EAAE,eAAe,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AA+QF,wBAAsB,cAAc,CAClC,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,eAAe,CAAC,CAG1B"}