@trpc/server 11.0.0-next.324 → 11.0.0-next.325

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 (91) hide show
  1. package/adapters/next-app-dir/index.d.ts +1 -0
  2. package/adapters/next-app-dir/index.js +1 -0
  3. package/dist/adapters/aws-lambda/index.js +1 -0
  4. package/dist/adapters/aws-lambda/index.mjs +1 -0
  5. package/dist/adapters/aws-lambda/utils.js +1 -0
  6. package/dist/adapters/aws-lambda/utils.mjs +1 -0
  7. package/dist/adapters/fastify/fastifyRequestHandler.js +1 -0
  8. package/dist/adapters/fastify/fastifyRequestHandler.mjs +1 -0
  9. package/dist/adapters/fetch/fetchRequestHandler.js +1 -0
  10. package/dist/adapters/fetch/fetchRequestHandler.mjs +1 -0
  11. package/dist/adapters/next-app-dir/formDataToObject.d.ts +2 -0
  12. package/dist/adapters/next-app-dir/formDataToObject.d.ts.map +1 -0
  13. package/dist/adapters/next-app-dir/formDataToObject.js +34 -0
  14. package/dist/adapters/next-app-dir/formDataToObject.mjs +32 -0
  15. package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts +24 -0
  16. package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts.map +1 -0
  17. package/dist/adapters/next-app-dir/nextAppDirCaller.js +79 -0
  18. package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +77 -0
  19. package/dist/adapters/next-app-dir/notFound.d.ts +7 -0
  20. package/dist/adapters/next-app-dir/notFound.d.ts.map +1 -0
  21. package/dist/adapters/next-app-dir/notFound.js +16 -0
  22. package/dist/adapters/next-app-dir/notFound.mjs +14 -0
  23. package/dist/adapters/next-app-dir/redirect.d.ts +15 -0
  24. package/dist/adapters/next-app-dir/redirect.d.ts.map +1 -0
  25. package/dist/adapters/next-app-dir/redirect.js +28 -0
  26. package/dist/adapters/next-app-dir/redirect.mjs +25 -0
  27. package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts +6 -0
  28. package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts.map +1 -0
  29. package/dist/adapters/next-app-dir/rethrowNextErrors.js +23 -0
  30. package/dist/adapters/next-app-dir/rethrowNextErrors.mjs +21 -0
  31. package/dist/adapters/next-app-dir.d.ts +4 -0
  32. package/dist/adapters/next-app-dir.d.ts.map +1 -0
  33. package/dist/adapters/next-app-dir.js +11 -0
  34. package/dist/adapters/next-app-dir.mjs +3 -0
  35. package/dist/adapters/next.js +1 -0
  36. package/dist/adapters/next.mjs +1 -0
  37. package/dist/adapters/node-http/content-type/json/getPostBody.js +1 -0
  38. package/dist/adapters/node-http/content-type/json/getPostBody.mjs +1 -0
  39. package/dist/adapters/node-http/content-type/json/index.js +1 -0
  40. package/dist/adapters/node-http/content-type/json/index.mjs +1 -0
  41. package/dist/adapters/node-http/nodeHTTPRequestHandler.js +1 -0
  42. package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -0
  43. package/dist/adapters/standalone.js +1 -0
  44. package/dist/adapters/standalone.mjs +1 -0
  45. package/dist/adapters/ws.js +1 -0
  46. package/dist/adapters/ws.mjs +1 -0
  47. package/dist/bundle-analysis.json +168 -84
  48. package/dist/http.js +1 -0
  49. package/dist/http.mjs +1 -0
  50. package/dist/index.js +1 -0
  51. package/dist/index.mjs +1 -0
  52. package/dist/rpc.js +1 -0
  53. package/dist/rpc.mjs +1 -0
  54. package/dist/shared.js +1 -0
  55. package/dist/shared.mjs +1 -0
  56. package/dist/unstable-core-do-not-import/clientish/inference.d.ts +3 -3
  57. package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -1
  58. package/dist/unstable-core-do-not-import/error/getErrorShape.js +1 -0
  59. package/dist/unstable-core-do-not-import/error/getErrorShape.mjs +1 -0
  60. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.js +1 -0
  61. package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +1 -0
  62. package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
  63. package/dist/unstable-core-do-not-import/initTRPC.js +2 -4
  64. package/dist/unstable-core-do-not-import/initTRPC.mjs +2 -4
  65. package/dist/unstable-core-do-not-import/procedure.d.ts +8 -7
  66. package/dist/unstable-core-do-not-import/procedure.d.ts.map +1 -1
  67. package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +9 -21
  68. package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
  69. package/dist/unstable-core-do-not-import/procedureBuilder.js +5 -6
  70. package/dist/unstable-core-do-not-import/procedureBuilder.mjs +6 -7
  71. package/dist/unstable-core-do-not-import/router.d.ts +3 -3
  72. package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
  73. package/dist/unstable-core-do-not-import/utils.d.ts +5 -0
  74. package/dist/unstable-core-do-not-import/utils.d.ts.map +1 -1
  75. package/dist/unstable-core-do-not-import/utils.js +9 -0
  76. package/dist/unstable-core-do-not-import/utils.mjs +9 -1
  77. package/dist/unstable-core-do-not-import.js +1 -0
  78. package/dist/unstable-core-do-not-import.mjs +1 -1
  79. package/package.json +8 -3
  80. package/src/adapters/next-app-dir/formDataToObject.ts +36 -0
  81. package/src/adapters/next-app-dir/nextAppDirCaller.ts +120 -0
  82. package/src/adapters/next-app-dir/notFound.ts +12 -0
  83. package/src/adapters/next-app-dir/redirect.ts +27 -0
  84. package/src/adapters/next-app-dir/rethrowNextErrors.ts +25 -0
  85. package/src/adapters/next-app-dir.ts +3 -0
  86. package/src/unstable-core-do-not-import/clientish/inference.ts +9 -5
  87. package/src/unstable-core-do-not-import/initTRPC.ts +2 -6
  88. package/src/unstable-core-do-not-import/procedure.ts +10 -17
  89. package/src/unstable-core-do-not-import/procedureBuilder.ts +34 -49
  90. package/src/unstable-core-do-not-import/router.ts +4 -3
  91. package/src/unstable-core-do-not-import/utils.ts +12 -0
@@ -1,7 +1,7 @@
1
1
  {
2
- "bundleSize": 93071,
3
- "bundleOrigSize": 150877,
4
- "bundleReduction": 38.31,
2
+ "bundleSize": 97903,
3
+ "bundleOrigSize": 157073,
4
+ "bundleReduction": 37.67,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
@@ -15,7 +15,7 @@
15
15
  "dependents": [
16
16
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
17
17
  ],
18
- "percent": 10.93,
18
+ "percent": 10.39,
19
19
  "reduction": 0
20
20
  },
21
21
  {
@@ -27,13 +27,13 @@
27
27
  ],
28
28
  "removedExports": [],
29
29
  "dependents": [],
30
- "percent": 10.18,
30
+ "percent": 9.68,
31
31
  "reduction": 20.86
32
32
  },
33
33
  {
34
34
  "id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
35
- "size": 6410,
36
- "origSize": 15934,
35
+ "size": 6399,
36
+ "origSize": 15701,
37
37
  "renderedExports": [
38
38
  "unsetMarker",
39
39
  "createBuilder"
@@ -43,13 +43,13 @@
43
43
  "/src/unstable-core-do-not-import.ts",
44
44
  "/src/unstable-core-do-not-import/initTRPC.ts"
45
45
  ],
46
- "percent": 6.89,
47
- "reduction": 59.77
46
+ "percent": 6.54,
47
+ "reduction": 59.24
48
48
  },
49
49
  {
50
50
  "id": "/src/unstable-core-do-not-import/router.ts",
51
51
  "size": 5831,
52
- "origSize": 9972,
52
+ "origSize": 10003,
53
53
  "renderedExports": [
54
54
  "createRouterFactory",
55
55
  "callProcedure",
@@ -62,8 +62,8 @@
62
62
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
63
63
  "/src/unstable-core-do-not-import/initTRPC.ts"
64
64
  ],
65
- "percent": 6.27,
66
- "reduction": 41.53
65
+ "percent": 5.96,
66
+ "reduction": 41.71
67
67
  },
68
68
  {
69
69
  "id": "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
@@ -78,7 +78,7 @@
78
78
  "dependents": [
79
79
  "/src/adapters/node-http/content-type/form-data/index.ts"
80
80
  ],
81
- "percent": 5.35,
81
+ "percent": 5.08,
82
82
  "reduction": 38
83
83
  },
84
84
  {
@@ -92,7 +92,7 @@
92
92
  ],
93
93
  "removedExports": [],
94
94
  "dependents": [],
95
- "percent": 4.75,
95
+ "percent": 4.51,
96
96
  "reduction": 32.71
97
97
  },
98
98
  {
@@ -106,7 +106,7 @@
106
106
  "dependents": [
107
107
  "/src/adapters/node-http/index.ts"
108
108
  ],
109
- "percent": 4.23,
109
+ "percent": 4.02,
110
110
  "reduction": 13.56
111
111
  },
112
112
  {
@@ -120,7 +120,7 @@
120
120
  "dependents": [
121
121
  "/src/adapters/fetch/index.ts"
122
122
  ],
123
- "percent": 3.73,
123
+ "percent": 3.54,
124
124
  "reduction": 9.9
125
125
  },
126
126
  {
@@ -139,7 +139,7 @@
139
139
  "dependents": [
140
140
  "/src/adapters/aws-lambda/index.ts"
141
141
  ],
142
- "percent": 3.55,
142
+ "percent": 3.38,
143
143
  "reduction": 34.98
144
144
  },
145
145
  {
@@ -156,23 +156,9 @@
156
156
  "/src/observable/index.ts",
157
157
  "/src/observable/operators.ts"
158
158
  ],
159
- "percent": 3.36,
159
+ "percent": 3.2,
160
160
  "reduction": 0.67
161
161
  },
162
- {
163
- "id": "/src/unstable-core-do-not-import/initTRPC.ts",
164
- "size": 2801,
165
- "origSize": 4689,
166
- "renderedExports": [
167
- "initTRPC"
168
- ],
169
- "removedExports": [],
170
- "dependents": [
171
- "/src/unstable-core-do-not-import.ts"
172
- ],
173
- "percent": 3.01,
174
- "reduction": 40.26
175
- },
176
162
  {
177
163
  "id": "/src/observable/operators.ts",
178
164
  "size": 2756,
@@ -186,7 +172,7 @@
186
172
  "dependents": [
187
173
  "/src/observable/index.ts"
188
174
  ],
189
- "percent": 2.96,
175
+ "percent": 2.82,
190
176
  "reduction": 0
191
177
  },
192
178
  {
@@ -206,9 +192,37 @@
206
192
  "/src/unstable-core-do-not-import/router.ts",
207
193
  "/src/unstable-core-do-not-import/initTRPC.ts"
208
194
  ],
209
- "percent": 2.95,
195
+ "percent": 2.8,
210
196
  "reduction": 45.94
211
197
  },
198
+ {
199
+ "id": "/src/adapters/next-app-dir/nextAppDirCaller.ts",
200
+ "size": 2732,
201
+ "origSize": 3597,
202
+ "renderedExports": [
203
+ "nextAppDirCaller"
204
+ ],
205
+ "removedExports": [],
206
+ "dependents": [
207
+ "/src/adapters/next-app-dir.ts"
208
+ ],
209
+ "percent": 2.79,
210
+ "reduction": 24.05
211
+ },
212
+ {
213
+ "id": "/src/unstable-core-do-not-import/initTRPC.ts",
214
+ "size": 2665,
215
+ "origSize": 4540,
216
+ "renderedExports": [
217
+ "initTRPC"
218
+ ],
219
+ "removedExports": [],
220
+ "dependents": [
221
+ "/src/unstable-core-do-not-import.ts"
222
+ ],
223
+ "percent": 2.72,
224
+ "reduction": 41.3
225
+ },
212
226
  {
213
227
  "id": "/src/unstable-core-do-not-import/middleware.ts",
214
228
  "size": 2627,
@@ -226,7 +240,7 @@
226
240
  "/src/unstable-core-do-not-import/initTRPC.ts",
227
241
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
228
242
  ],
229
- "percent": 2.82,
243
+ "percent": 2.68,
230
244
  "reduction": 55.5
231
245
  },
232
246
  {
@@ -241,7 +255,7 @@
241
255
  "/src/adapters/fastify/index.ts",
242
256
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
243
257
  ],
244
- "percent": 2.66,
258
+ "percent": 2.53,
245
259
  "reduction": 36.53
246
260
  },
247
261
  {
@@ -253,7 +267,7 @@
253
267
  ],
254
268
  "removedExports": [],
255
269
  "dependents": [],
256
- "percent": 2.63,
270
+ "percent": 2.5,
257
271
  "reduction": 32.42
258
272
  },
259
273
  {
@@ -274,7 +288,7 @@
274
288
  "/src/unstable-core-do-not-import/middleware.ts",
275
289
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
276
290
  ],
277
- "percent": 1.86,
291
+ "percent": 1.77,
278
292
  "reduction": 19.47
279
293
  },
280
294
  {
@@ -288,7 +302,7 @@
288
302
  "dependents": [
289
303
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
290
304
  ],
291
- "percent": 1.76,
305
+ "percent": 1.68,
292
306
  "reduction": 34.79
293
307
  },
294
308
  {
@@ -300,7 +314,7 @@
300
314
  ],
301
315
  "removedExports": [],
302
316
  "dependents": [],
303
- "percent": 1.72,
317
+ "percent": 1.64,
304
318
  "reduction": 29.12
305
319
  },
306
320
  {
@@ -314,7 +328,7 @@
314
328
  "dependents": [
315
329
  "/src/adapters/node-http/content-type/json/index.ts"
316
330
  ],
317
- "percent": 1.71,
331
+ "percent": 1.62,
318
332
  "reduction": 0.19
319
333
  },
320
334
  {
@@ -326,7 +340,7 @@
326
340
  ],
327
341
  "removedExports": [],
328
342
  "dependents": [],
329
- "percent": 1.7,
343
+ "percent": 1.61,
330
344
  "reduction": 21.04
331
345
  },
332
346
  {
@@ -339,7 +353,7 @@
339
353
  ],
340
354
  "removedExports": [],
341
355
  "dependents": [],
342
- "percent": 1.64,
356
+ "percent": 1.56,
343
357
  "reduction": 27.6
344
358
  },
345
359
  {
@@ -353,10 +367,10 @@
353
367
  "removedExports": [],
354
368
  "dependents": [
355
369
  "/src/unstable-core-do-not-import.ts",
356
- "/src/unstable-core-do-not-import/router.ts",
357
- "/src/unstable-core-do-not-import/initTRPC.ts"
370
+ "/src/unstable-core-do-not-import/utils.ts",
371
+ "/src/unstable-core-do-not-import/router.ts"
358
372
  ],
359
- "percent": 1.62,
373
+ "percent": 1.54,
360
374
  "reduction": 5.58
361
375
  },
362
376
  {
@@ -370,7 +384,7 @@
370
384
  "dependents": [
371
385
  "/src/adapters/fastify/index.ts"
372
386
  ],
373
- "percent": 1.6,
387
+ "percent": 1.52,
374
388
  "reduction": 34.33
375
389
  },
376
390
  {
@@ -384,7 +398,7 @@
384
398
  "dependents": [
385
399
  "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"
386
400
  ],
387
- "percent": 1.5,
401
+ "percent": 1.42,
388
402
  "reduction": 0
389
403
  },
390
404
  {
@@ -400,9 +414,34 @@
400
414
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
401
415
  "/src/unstable-core-do-not-import/error/getErrorShape.ts"
402
416
  ],
403
- "percent": 1.36,
417
+ "percent": 1.29,
404
418
  "reduction": 22.76
405
419
  },
420
+ {
421
+ "id": "/src/unstable-core-do-not-import/utils.ts",
422
+ "size": 1094,
423
+ "origSize": 1425,
424
+ "renderedExports": [
425
+ "mergeWithoutOverrides",
426
+ "isObject",
427
+ "isFunction",
428
+ "omitPrototype",
429
+ "$typesProxy"
430
+ ],
431
+ "removedExports": [],
432
+ "dependents": [
433
+ "/src/unstable-core-do-not-import.ts",
434
+ "/src/unstable-core-do-not-import/error/TRPCError.ts",
435
+ "/src/unstable-core-do-not-import/router.ts",
436
+ "/src/unstable-core-do-not-import/transformer.ts",
437
+ "/src/unstable-core-do-not-import/initTRPC.ts",
438
+ "/src/unstable-core-do-not-import/middleware.ts",
439
+ "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
440
+ "/src/unstable-core-do-not-import/procedureBuilder.ts"
441
+ ],
442
+ "percent": 1.12,
443
+ "reduction": 23.23
444
+ },
406
445
  {
407
446
  "id": "/src/unstable-core-do-not-import/parser.ts",
408
447
  "size": 992,
@@ -415,31 +454,22 @@
415
454
  "/src/unstable-core-do-not-import.ts",
416
455
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
417
456
  ],
418
- "percent": 1.07,
457
+ "percent": 1.01,
419
458
  "reduction": 56.22
420
459
  },
421
460
  {
422
- "id": "/src/unstable-core-do-not-import/utils.ts",
423
- "size": 880,
424
- "origSize": 1151,
461
+ "id": "/src/adapters/next-app-dir/formDataToObject.ts",
462
+ "size": 818,
463
+ "origSize": 826,
425
464
  "renderedExports": [
426
- "mergeWithoutOverrides",
427
- "isObject",
428
- "isFunction",
429
- "omitPrototype"
465
+ "formDataToObject"
430
466
  ],
431
467
  "removedExports": [],
432
468
  "dependents": [
433
- "/src/unstable-core-do-not-import.ts",
434
- "/src/unstable-core-do-not-import/error/TRPCError.ts",
435
- "/src/unstable-core-do-not-import/router.ts",
436
- "/src/unstable-core-do-not-import/transformer.ts",
437
- "/src/unstable-core-do-not-import/middleware.ts",
438
- "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
439
- "/src/unstable-core-do-not-import/procedureBuilder.ts"
469
+ "/src/adapters/next-app-dir/nextAppDirCaller.ts"
440
470
  ],
441
- "percent": 0.95,
442
- "reduction": 23.54
471
+ "percent": 0.84,
472
+ "reduction": 0.97
443
473
  },
444
474
  {
445
475
  "id": "/src/adapters/node-http/content-type/form-data/uploadHandler.ts",
@@ -458,7 +488,7 @@
458
488
  "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
459
489
  "/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
460
490
  ],
461
- "percent": 0.78,
491
+ "percent": 0.74,
462
492
  "reduction": 67.52
463
493
  },
464
494
  {
@@ -472,7 +502,7 @@
472
502
  "dependents": [
473
503
  "/src/adapters/node-http/content-type/form-data/index.ts"
474
504
  ],
475
- "percent": 0.75,
505
+ "percent": 0.71,
476
506
  "reduction": 71.21
477
507
  },
478
508
  {
@@ -484,7 +514,7 @@
484
514
  ],
485
515
  "removedExports": [],
486
516
  "dependents": [],
487
- "percent": 0.72,
517
+ "percent": 0.68,
488
518
  "reduction": 0.6
489
519
  },
490
520
  {
@@ -499,7 +529,7 @@
499
529
  "/src/unstable-core-do-not-import.ts",
500
530
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
501
531
  ],
502
- "percent": 0.67,
532
+ "percent": 0.64,
503
533
  "reduction": 43.49
504
534
  },
505
535
  {
@@ -512,9 +542,39 @@
512
542
  ],
513
543
  "removedExports": [],
514
544
  "dependents": [],
515
- "percent": 0.62,
545
+ "percent": 0.59,
516
546
  "reduction": 65.23
517
547
  },
548
+ {
549
+ "id": "/src/adapters/next-app-dir/redirect.ts",
550
+ "size": 575,
551
+ "origSize": 732,
552
+ "renderedExports": [
553
+ "TRPCRedirectError",
554
+ "redirect"
555
+ ],
556
+ "removedExports": [],
557
+ "dependents": [
558
+ "/src/adapters/next-app-dir.ts",
559
+ "/src/adapters/next-app-dir/rethrowNextErrors.ts"
560
+ ],
561
+ "percent": 0.59,
562
+ "reduction": 21.45
563
+ },
564
+ {
565
+ "id": "/src/adapters/next-app-dir/rethrowNextErrors.ts",
566
+ "size": 422,
567
+ "origSize": 704,
568
+ "renderedExports": [
569
+ "rethrowNextErrors"
570
+ ],
571
+ "removedExports": [],
572
+ "dependents": [
573
+ "/src/adapters/next-app-dir/nextAppDirCaller.ts"
574
+ ],
575
+ "percent": 0.43,
576
+ "reduction": 40.06
577
+ },
518
578
  {
519
579
  "id": "/src/unstable-core-do-not-import/rootConfig.ts",
520
580
  "size": 343,
@@ -527,7 +587,7 @@
527
587
  "/src/unstable-core-do-not-import.ts",
528
588
  "/src/unstable-core-do-not-import/initTRPC.ts"
529
589
  ],
530
- "percent": 0.37,
590
+ "percent": 0.35,
531
591
  "reduction": 83.97
532
592
  },
533
593
  {
@@ -539,7 +599,7 @@
539
599
  ],
540
600
  "removedExports": [],
541
601
  "dependents": [],
542
- "percent": 0.36,
602
+ "percent": 0.35,
543
603
  "reduction": 71.37
544
604
  },
545
605
  {
@@ -553,7 +613,7 @@
553
613
  "dependents": [
554
614
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
555
615
  ],
556
- "percent": 0.31,
616
+ "percent": 0.3,
557
617
  "reduction": 35.11
558
618
  },
559
619
  {
@@ -567,9 +627,23 @@
567
627
  "dependents": [
568
628
  "/src/unstable-core-do-not-import.ts"
569
629
  ],
570
- "percent": 0.24,
630
+ "percent": 0.23,
571
631
  "reduction": 94.55
572
632
  },
633
+ {
634
+ "id": "/src/adapters/next-app-dir/notFound.ts",
635
+ "size": 218,
636
+ "origSize": 342,
637
+ "renderedExports": [
638
+ "notFound"
639
+ ],
640
+ "removedExports": [],
641
+ "dependents": [
642
+ "/src/adapters/next-app-dir.ts"
643
+ ],
644
+ "percent": 0.22,
645
+ "reduction": 36.26
646
+ },
573
647
  {
574
648
  "id": "/src/unstable-core-do-not-import/http/toURL.ts",
575
649
  "size": 158,
@@ -579,7 +653,7 @@
579
653
  ],
580
654
  "removedExports": [],
581
655
  "dependents": [],
582
- "percent": 0.17,
656
+ "percent": 0.16,
583
657
  "reduction": 14.13
584
658
  },
585
659
  {
@@ -600,7 +674,7 @@
600
674
  {
601
675
  "id": "/src/unstable-core-do-not-import/procedure.ts",
602
676
  "size": 75,
603
- "origSize": 2484,
677
+ "origSize": 2301,
604
678
  "renderedExports": [
605
679
  "procedureTypes"
606
680
  ],
@@ -610,7 +684,7 @@
610
684
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
611
685
  ],
612
686
  "percent": 0.08,
613
- "reduction": 96.98
687
+ "reduction": 96.74
614
688
  },
615
689
  {
616
690
  "id": "/src/unstable-core-do-not-import/error/formatter.ts",
@@ -625,7 +699,7 @@
625
699
  "/src/unstable-core-do-not-import/router.ts",
626
700
  "/src/unstable-core-do-not-import/initTRPC.ts"
627
701
  ],
628
- "percent": 0.07,
702
+ "percent": 0.06,
629
703
  "reduction": 93.8
630
704
  },
631
705
  {
@@ -649,9 +723,9 @@
649
723
  "reduction": 100
650
724
  },
651
725
  {
652
- "id": "/src/rpc.ts",
726
+ "id": "/src/shared.ts",
653
727
  "size": 0,
654
- "origSize": 36,
728
+ "origSize": 653,
655
729
  "renderedExports": [],
656
730
  "removedExports": [],
657
731
  "dependents": [],
@@ -659,9 +733,9 @@
659
733
  "reduction": 100
660
734
  },
661
735
  {
662
- "id": "/src/shared.ts",
736
+ "id": "/src/rpc.ts",
663
737
  "size": 0,
664
- "origSize": 653,
738
+ "origSize": 36,
665
739
  "renderedExports": [],
666
740
  "removedExports": [],
667
741
  "dependents": [],
@@ -678,6 +752,16 @@
678
752
  "percent": 0,
679
753
  "reduction": 100
680
754
  },
755
+ {
756
+ "id": "/src/adapters/next-app-dir.ts",
757
+ "size": 0,
758
+ "origSize": 255,
759
+ "renderedExports": [],
760
+ "removedExports": [],
761
+ "dependents": [],
762
+ "percent": 0,
763
+ "reduction": 100
764
+ },
681
765
  {
682
766
  "id": "/src/observable/index.ts",
683
767
  "size": 0,
@@ -725,5 +809,5 @@
725
809
  "reduction": 100
726
810
  }
727
811
  ],
728
- "moduleCount": 50
812
+ "moduleCount": 56
729
813
  }
package/dist/http.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var getHTTPStatusCode = require('./unstable-core-do-not-import/http/getHTTPStatusCode.js');
4
+ require('./unstable-core-do-not-import/utils.js');
4
5
  var resolveHTTPResponse = require('./unstable-core-do-not-import/http/resolveHTTPResponse.js');
5
6
  var batchStreamFormatter = require('./unstable-core-do-not-import/http/batchStreamFormatter.js');
6
7
  var contentType = require('./unstable-core-do-not-import/http/contentType.js');
package/dist/http.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  export { getHTTPStatusCode, getHTTPStatusCodeFromError } from './unstable-core-do-not-import/http/getHTTPStatusCode.mjs';
2
+ import './unstable-core-do-not-import/utils.mjs';
2
3
  export { resolveHTTPResponse } from './unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
3
4
  export { getBatchStreamFormatter } from './unstable-core-do-not-import/http/batchStreamFormatter.mjs';
4
5
  export { getJsonContentTypeInputs } from './unstable-core-do-not-import/http/contentType.mjs';
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
+ require('./unstable-core-do-not-import/utils.js');
6
7
  var router = require('./unstable-core-do-not-import/router.js');
7
8
  var transformer = require('./unstable-core-do-not-import/transformer.js');
8
9
  var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
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
+ import './unstable-core-do-not-import/utils.mjs';
4
5
  export { callProcedure, callProcedure as callTRPCProcedure } from './unstable-core-do-not-import/router.mjs';
5
6
  export { transformTRPCResponse } from './unstable-core-do-not-import/transformer.mjs';
6
7
  export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
package/dist/rpc.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var codes = require('./unstable-core-do-not-import/rpc/codes.js');
4
4
  var parseTRPCMessage = require('./unstable-core-do-not-import/rpc/parseTRPCMessage.js');
5
+ require('./unstable-core-do-not-import/utils.js');
5
6
  require('./unstable-core-do-not-import/rootConfig.js');
6
7
 
7
8
 
package/dist/rpc.mjs CHANGED
@@ -1,3 +1,4 @@
1
1
  export { TRPC_ERROR_CODES_BY_KEY, TRPC_ERROR_CODES_BY_NUMBER } from './unstable-core-do-not-import/rpc/codes.mjs';
2
2
  export { parseTRPCMessage } from './unstable-core-do-not-import/rpc/parseTRPCMessage.mjs';
3
+ import './unstable-core-do-not-import/utils.mjs';
3
4
  import './unstable-core-do-not-import/rootConfig.mjs';
package/dist/shared.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
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
+ require('./unstable-core-do-not-import/utils.js');
5
6
  require('./unstable-core-do-not-import/rootConfig.js');
6
7
 
7
8
 
package/dist/shared.mjs CHANGED
@@ -1,3 +1,4 @@
1
1
  export { createFlatProxy } from './unstable-core-do-not-import/createProxy.mjs';
2
2
  export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape.mjs';
3
+ import './unstable-core-do-not-import/utils.mjs';
3
4
  import './unstable-core-do-not-import/rootConfig.mjs';
@@ -1,14 +1,14 @@
1
1
  import type { inferObservableValue } from '../../observable';
2
- import type { AnyProcedure, inferProcedureInput } from '../procedure';
2
+ import type { AnyProcedure, inferProcedureInput, inferProcedureOutput } from '../procedure';
3
3
  import type { AnyRouter, RouterRecord } from '../router';
4
4
  import type { AnyClientTypes, inferClientTypes, InferrableClientTypes } from './inferrable';
5
5
  import type { Serialize } from './serialize';
6
6
  /**
7
7
  * @internal
8
8
  */
9
- export type inferTransformedProcedureOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<TProcedure['_def']['_output_out']> : TProcedure['_def']['_output_out'];
9
+ export type inferTransformedProcedureOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferProcedureOutput<TProcedure>> : inferProcedureOutput<TProcedure>;
10
10
  /** @internal */
11
- export type inferTransformedSubscriptionOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferObservableValue<TProcedure['_def']['_output_out']>> : inferObservableValue<TProcedure['_def']['_output_out']>;
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
13
  [TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends RouterRecord ? GetInferenceHelpers<TType, TRoot, $Value> : $Value extends AnyProcedure ? TType extends 'input' ? inferProcedureInput<$Value> : inferTransformedProcedureOutput<TRoot, $Value> : never : never;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/clientish/inference.ts"],"names":[],"mappings":"AAAA,OAAO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