@trpc/server 11.0.0-rc.373 → 11.0.0-rc.374
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 +116 -97
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts +1 -1
- package/dist/unstable-core-do-not-import/clientish/serialize.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +79 -52
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +78 -51
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +2 -1
- package/dist/unstable-core-do-not-import/initTRPC.mjs +2 -1
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +6 -0
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/stream.d.ts +94 -0
- package/dist/unstable-core-do-not-import/stream/stream.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/stream.js +466 -0
- package/dist/unstable-core-do-not-import/stream/stream.mjs +462 -0
- package/dist/unstable-core-do-not-import/utils.d.ts +2 -1
- package/dist/unstable-core-do-not-import/utils.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/utils.js +4 -0
- package/dist/unstable-core-do-not-import/utils.mjs +4 -1
- package/dist/unstable-core-do-not-import.d.ts +1 -0
- package/dist/unstable-core-do-not-import.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import.js +5 -0
- package/dist/unstable-core-do-not-import.mjs +2 -1
- package/package.json +2 -2
- package/src/unstable-core-do-not-import/clientish/serialize.ts +1 -0
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +83 -52
- package/src/unstable-core-do-not-import/initTRPC.ts +1 -0
- package/src/unstable-core-do-not-import/rootConfig.ts +7 -0
- package/src/unstable-core-do-not-import/stream/stream.ts +580 -0
- package/src/unstable-core-do-not-import/utils.ts +7 -1
- package/src/unstable-core-do-not-import.ts +1 -0
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction":
|
|
2
|
+
"bundleSize": 102769,
|
|
3
|
+
"bundleOrigSize": 151532,
|
|
4
|
+
"bundleReduction": 32.18,
|
|
5
5
|
"modules": [
|
|
6
|
+
{
|
|
7
|
+
"id": "/src/unstable-core-do-not-import/stream/stream.ts",
|
|
8
|
+
"size": 14457,
|
|
9
|
+
"origSize": 15951,
|
|
10
|
+
"renderedExports": [
|
|
11
|
+
"isPromise",
|
|
12
|
+
"jsonlStreamProducer",
|
|
13
|
+
"jsonlStreamConsumer"
|
|
14
|
+
],
|
|
15
|
+
"removedExports": [],
|
|
16
|
+
"dependents": [
|
|
17
|
+
"/src/unstable-core-do-not-import.ts",
|
|
18
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
19
|
+
],
|
|
20
|
+
"percent": 14.07,
|
|
21
|
+
"reduction": 9.37
|
|
22
|
+
},
|
|
6
23
|
{
|
|
7
24
|
"id": "/src/adapters/ws.ts",
|
|
8
25
|
"size": 11241,
|
|
@@ -15,13 +32,13 @@
|
|
|
15
32
|
"dependents": [
|
|
16
33
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
17
34
|
],
|
|
18
|
-
"percent":
|
|
35
|
+
"percent": 10.94,
|
|
19
36
|
"reduction": 0
|
|
20
37
|
},
|
|
21
38
|
{
|
|
22
39
|
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
23
|
-
"size":
|
|
24
|
-
"origSize":
|
|
40
|
+
"size": 10457,
|
|
41
|
+
"origSize": 10914,
|
|
25
42
|
"renderedExports": [
|
|
26
43
|
"resolveResponse"
|
|
27
44
|
],
|
|
@@ -29,8 +46,8 @@
|
|
|
29
46
|
"dependents": [
|
|
30
47
|
"/src/unstable-core-do-not-import.ts"
|
|
31
48
|
],
|
|
32
|
-
"percent": 10.
|
|
33
|
-
"reduction": 4.
|
|
49
|
+
"percent": 10.18,
|
|
50
|
+
"reduction": 4.19
|
|
34
51
|
},
|
|
35
52
|
{
|
|
36
53
|
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
@@ -44,7 +61,7 @@
|
|
|
44
61
|
"/src/unstable-core-do-not-import.ts",
|
|
45
62
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
46
63
|
],
|
|
47
|
-
"percent":
|
|
64
|
+
"percent": 6.16,
|
|
48
65
|
"reduction": 59.52
|
|
49
66
|
},
|
|
50
67
|
{
|
|
@@ -63,7 +80,7 @@
|
|
|
63
80
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
64
81
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
65
82
|
],
|
|
66
|
-
"percent":
|
|
83
|
+
"percent": 5.83,
|
|
67
84
|
"reduction": 41.05
|
|
68
85
|
},
|
|
69
86
|
{
|
|
@@ -78,7 +95,7 @@
|
|
|
78
95
|
"/src/unstable-core-do-not-import.ts",
|
|
79
96
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
80
97
|
],
|
|
81
|
-
"percent":
|
|
98
|
+
"percent": 5.4,
|
|
82
99
|
"reduction": 0
|
|
83
100
|
},
|
|
84
101
|
{
|
|
@@ -92,7 +109,7 @@
|
|
|
92
109
|
"dependents": [
|
|
93
110
|
"/src/adapters/aws-lambda/index.ts"
|
|
94
111
|
],
|
|
95
|
-
"percent":
|
|
112
|
+
"percent": 4.72,
|
|
96
113
|
"reduction": 13.62
|
|
97
114
|
},
|
|
98
115
|
{
|
|
@@ -109,7 +126,7 @@
|
|
|
109
126
|
"/src/observable/index.ts",
|
|
110
127
|
"/src/observable/operators.ts"
|
|
111
128
|
],
|
|
112
|
-
"percent": 3.
|
|
129
|
+
"percent": 3.04,
|
|
113
130
|
"reduction": 0.67
|
|
114
131
|
},
|
|
115
132
|
{
|
|
@@ -123,7 +140,7 @@
|
|
|
123
140
|
"dependents": [
|
|
124
141
|
"/src/adapters/next-app-dir.ts"
|
|
125
142
|
],
|
|
126
|
-
"percent":
|
|
143
|
+
"percent": 2.97,
|
|
127
144
|
"reduction": 20.12
|
|
128
145
|
},
|
|
129
146
|
{
|
|
@@ -139,7 +156,7 @@
|
|
|
139
156
|
"dependents": [
|
|
140
157
|
"/src/observable/index.ts"
|
|
141
158
|
],
|
|
142
|
-
"percent":
|
|
159
|
+
"percent": 2.68,
|
|
143
160
|
"reduction": 0
|
|
144
161
|
},
|
|
145
162
|
{
|
|
@@ -159,13 +176,13 @@
|
|
|
159
176
|
"/src/unstable-core-do-not-import/router.ts",
|
|
160
177
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
161
178
|
],
|
|
162
|
-
"percent":
|
|
179
|
+
"percent": 2.67,
|
|
163
180
|
"reduction": 45.94
|
|
164
181
|
},
|
|
165
182
|
{
|
|
166
183
|
"id": "/src/unstable-core-do-not-import/initTRPC.ts",
|
|
167
|
-
"size":
|
|
168
|
-
"origSize":
|
|
184
|
+
"size": 2704,
|
|
185
|
+
"origSize": 4576,
|
|
169
186
|
"renderedExports": [
|
|
170
187
|
"initTRPC"
|
|
171
188
|
],
|
|
@@ -173,8 +190,8 @@
|
|
|
173
190
|
"dependents": [
|
|
174
191
|
"/src/unstable-core-do-not-import.ts"
|
|
175
192
|
],
|
|
176
|
-
"percent":
|
|
177
|
-
"reduction":
|
|
193
|
+
"percent": 2.63,
|
|
194
|
+
"reduction": 40.91
|
|
178
195
|
},
|
|
179
196
|
{
|
|
180
197
|
"id": "/src/unstable-core-do-not-import/middleware.ts",
|
|
@@ -193,7 +210,7 @@
|
|
|
193
210
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
194
211
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
195
212
|
],
|
|
196
|
-
"percent":
|
|
213
|
+
"percent": 2.56,
|
|
197
214
|
"reduction": 55.5
|
|
198
215
|
},
|
|
199
216
|
{
|
|
@@ -207,7 +224,7 @@
|
|
|
207
224
|
"dependents": [
|
|
208
225
|
"/src/adapters/fetch/index.ts"
|
|
209
226
|
],
|
|
210
|
-
"percent": 2.
|
|
227
|
+
"percent": 2.19,
|
|
211
228
|
"reduction": 2.17
|
|
212
229
|
},
|
|
213
230
|
{
|
|
@@ -222,7 +239,7 @@
|
|
|
222
239
|
"/src/adapters/node-http/index.ts",
|
|
223
240
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
224
241
|
],
|
|
225
|
-
"percent": 2.
|
|
242
|
+
"percent": 2.12,
|
|
226
243
|
"reduction": 14.12
|
|
227
244
|
},
|
|
228
245
|
{
|
|
@@ -238,7 +255,7 @@
|
|
|
238
255
|
"/src/unstable-core-do-not-import.ts",
|
|
239
256
|
"/src/unstable-core-do-not-import/router.ts"
|
|
240
257
|
],
|
|
241
|
-
"percent":
|
|
258
|
+
"percent": 1.95,
|
|
242
259
|
"reduction": 0
|
|
243
260
|
},
|
|
244
261
|
{
|
|
@@ -259,7 +276,7 @@
|
|
|
259
276
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
260
277
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
261
278
|
],
|
|
262
|
-
"percent": 1.
|
|
279
|
+
"percent": 1.69,
|
|
263
280
|
"reduction": 19.47
|
|
264
281
|
},
|
|
265
282
|
{
|
|
@@ -273,7 +290,7 @@
|
|
|
273
290
|
"dependents": [
|
|
274
291
|
"/src/adapters/node-http/index.ts"
|
|
275
292
|
],
|
|
276
|
-
"percent": 1.
|
|
293
|
+
"percent": 1.67,
|
|
277
294
|
"reduction": 20.03
|
|
278
295
|
},
|
|
279
296
|
{
|
|
@@ -285,7 +302,7 @@
|
|
|
285
302
|
],
|
|
286
303
|
"removedExports": [],
|
|
287
304
|
"dependents": [],
|
|
288
|
-
"percent": 1.
|
|
305
|
+
"percent": 1.54,
|
|
289
306
|
"reduction": 21.04
|
|
290
307
|
},
|
|
291
308
|
{
|
|
@@ -297,7 +314,7 @@
|
|
|
297
314
|
],
|
|
298
315
|
"removedExports": [],
|
|
299
316
|
"dependents": [],
|
|
300
|
-
"percent": 1.
|
|
317
|
+
"percent": 1.5,
|
|
301
318
|
"reduction": 26.94
|
|
302
319
|
},
|
|
303
320
|
{
|
|
@@ -310,7 +327,7 @@
|
|
|
310
327
|
],
|
|
311
328
|
"removedExports": [],
|
|
312
329
|
"dependents": [],
|
|
313
|
-
"percent": 1.
|
|
330
|
+
"percent": 1.48,
|
|
314
331
|
"reduction": 27.6
|
|
315
332
|
},
|
|
316
333
|
{
|
|
@@ -324,7 +341,7 @@
|
|
|
324
341
|
"dependents": [
|
|
325
342
|
"/src/adapters/fastify/index.ts"
|
|
326
343
|
],
|
|
327
|
-
"percent": 1.
|
|
344
|
+
"percent": 1.46,
|
|
328
345
|
"reduction": 34.7
|
|
329
346
|
},
|
|
330
347
|
{
|
|
@@ -341,7 +358,7 @@
|
|
|
341
358
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
342
359
|
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
|
|
343
360
|
],
|
|
344
|
-
"percent": 1.
|
|
361
|
+
"percent": 1.23,
|
|
345
362
|
"reduction": 23.5
|
|
346
363
|
},
|
|
347
364
|
{
|
|
@@ -356,9 +373,37 @@
|
|
|
356
373
|
"/src/adapters/fastify/index.ts",
|
|
357
374
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
358
375
|
],
|
|
359
|
-
"percent": 1.
|
|
376
|
+
"percent": 1.1,
|
|
360
377
|
"reduction": 47.59
|
|
361
378
|
},
|
|
379
|
+
{
|
|
380
|
+
"id": "/src/unstable-core-do-not-import/utils.ts",
|
|
381
|
+
"size": 1037,
|
|
382
|
+
"origSize": 1453,
|
|
383
|
+
"renderedExports": [
|
|
384
|
+
"unsetMarker",
|
|
385
|
+
"mergeWithoutOverrides",
|
|
386
|
+
"isObject",
|
|
387
|
+
"isFunction",
|
|
388
|
+
"omitPrototype",
|
|
389
|
+
"isAsyncIterable"
|
|
390
|
+
],
|
|
391
|
+
"removedExports": [],
|
|
392
|
+
"dependents": [
|
|
393
|
+
"/src/unstable-core-do-not-import.ts",
|
|
394
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
395
|
+
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
396
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
397
|
+
"/src/unstable-core-do-not-import/transformer.ts",
|
|
398
|
+
"/src/unstable-core-do-not-import/middleware.ts",
|
|
399
|
+
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
400
|
+
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
401
|
+
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
402
|
+
"/src/unstable-core-do-not-import/stream/stream.ts"
|
|
403
|
+
],
|
|
404
|
+
"percent": 1.01,
|
|
405
|
+
"reduction": 28.63
|
|
406
|
+
},
|
|
362
407
|
{
|
|
363
408
|
"id": "/src/unstable-core-do-not-import/parser.ts",
|
|
364
409
|
"size": 992,
|
|
@@ -371,7 +416,7 @@
|
|
|
371
416
|
"/src/unstable-core-do-not-import.ts",
|
|
372
417
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
373
418
|
],
|
|
374
|
-
"percent":
|
|
419
|
+
"percent": 0.97,
|
|
375
420
|
"reduction": 56.22
|
|
376
421
|
},
|
|
377
422
|
{
|
|
@@ -388,34 +433,9 @@
|
|
|
388
433
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
389
434
|
"/src/adapters/next-app-dir/rethrowNextErrors.ts"
|
|
390
435
|
],
|
|
391
|
-
"percent":
|
|
436
|
+
"percent": 0.96,
|
|
392
437
|
"reduction": 13.65
|
|
393
438
|
},
|
|
394
|
-
{
|
|
395
|
-
"id": "/src/unstable-core-do-not-import/utils.ts",
|
|
396
|
-
"size": 940,
|
|
397
|
-
"origSize": 1265,
|
|
398
|
-
"renderedExports": [
|
|
399
|
-
"unsetMarker",
|
|
400
|
-
"mergeWithoutOverrides",
|
|
401
|
-
"isObject",
|
|
402
|
-
"isFunction",
|
|
403
|
-
"omitPrototype"
|
|
404
|
-
],
|
|
405
|
-
"removedExports": [],
|
|
406
|
-
"dependents": [
|
|
407
|
-
"/src/unstable-core-do-not-import.ts",
|
|
408
|
-
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
409
|
-
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
410
|
-
"/src/unstable-core-do-not-import/router.ts",
|
|
411
|
-
"/src/unstable-core-do-not-import/transformer.ts",
|
|
412
|
-
"/src/unstable-core-do-not-import/middleware.ts",
|
|
413
|
-
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
414
|
-
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
415
|
-
],
|
|
416
|
-
"percent": 1.08,
|
|
417
|
-
"reduction": 25.69
|
|
418
|
-
},
|
|
419
439
|
{
|
|
420
440
|
"id": "/src/adapters/next-app-dir/formDataToObject.ts",
|
|
421
441
|
"size": 818,
|
|
@@ -427,7 +447,7 @@
|
|
|
427
447
|
"dependents": [
|
|
428
448
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
429
449
|
],
|
|
430
|
-
"percent": 0.
|
|
450
|
+
"percent": 0.8,
|
|
431
451
|
"reduction": 0.97
|
|
432
452
|
},
|
|
433
453
|
{
|
|
@@ -439,7 +459,7 @@
|
|
|
439
459
|
],
|
|
440
460
|
"removedExports": [],
|
|
441
461
|
"dependents": [],
|
|
442
|
-
"percent": 0.
|
|
462
|
+
"percent": 0.74,
|
|
443
463
|
"reduction": 66.9
|
|
444
464
|
},
|
|
445
465
|
{
|
|
@@ -451,10 +471,9 @@
|
|
|
451
471
|
],
|
|
452
472
|
"removedExports": [],
|
|
453
473
|
"dependents": [
|
|
454
|
-
"/src/unstable-core-do-not-import.ts"
|
|
455
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
474
|
+
"/src/unstable-core-do-not-import.ts"
|
|
456
475
|
],
|
|
457
|
-
"percent": 0.
|
|
476
|
+
"percent": 0.65,
|
|
458
477
|
"reduction": 0.6
|
|
459
478
|
},
|
|
460
479
|
{
|
|
@@ -469,7 +488,7 @@
|
|
|
469
488
|
"/src/unstable-core-do-not-import.ts",
|
|
470
489
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
471
490
|
],
|
|
472
|
-
"percent": 0.
|
|
491
|
+
"percent": 0.61,
|
|
473
492
|
"reduction": 43.49
|
|
474
493
|
},
|
|
475
494
|
{
|
|
@@ -482,7 +501,7 @@
|
|
|
482
501
|
],
|
|
483
502
|
"removedExports": [],
|
|
484
503
|
"dependents": [],
|
|
485
|
-
"percent": 0.
|
|
504
|
+
"percent": 0.51,
|
|
486
505
|
"reduction": 67.09
|
|
487
506
|
},
|
|
488
507
|
{
|
|
@@ -496,13 +515,13 @@
|
|
|
496
515
|
"dependents": [
|
|
497
516
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
498
517
|
],
|
|
499
|
-
"percent": 0.
|
|
518
|
+
"percent": 0.41,
|
|
500
519
|
"reduction": 40.06
|
|
501
520
|
},
|
|
502
521
|
{
|
|
503
522
|
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
504
523
|
"size": 343,
|
|
505
|
-
"origSize":
|
|
524
|
+
"origSize": 2848,
|
|
506
525
|
"renderedExports": [
|
|
507
526
|
"isServerDefault"
|
|
508
527
|
],
|
|
@@ -511,8 +530,8 @@
|
|
|
511
530
|
"/src/unstable-core-do-not-import.ts",
|
|
512
531
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
513
532
|
],
|
|
514
|
-
"percent": 0.
|
|
515
|
-
"reduction": 87.
|
|
533
|
+
"percent": 0.33,
|
|
534
|
+
"reduction": 87.96
|
|
516
535
|
},
|
|
517
536
|
{
|
|
518
537
|
"id": "/src/adapters/express.ts",
|
|
@@ -523,7 +542,7 @@
|
|
|
523
542
|
],
|
|
524
543
|
"removedExports": [],
|
|
525
544
|
"dependents": [],
|
|
526
|
-
"percent": 0.
|
|
545
|
+
"percent": 0.27,
|
|
527
546
|
"reduction": 72.92
|
|
528
547
|
},
|
|
529
548
|
{
|
|
@@ -537,7 +556,7 @@
|
|
|
537
556
|
"dependents": [
|
|
538
557
|
"/src/unstable-core-do-not-import.ts"
|
|
539
558
|
],
|
|
540
|
-
"percent": 0.
|
|
559
|
+
"percent": 0.27,
|
|
541
560
|
"reduction": 68.45
|
|
542
561
|
},
|
|
543
562
|
{
|
|
@@ -551,7 +570,7 @@
|
|
|
551
570
|
"dependents": [
|
|
552
571
|
"/src/unstable-core-do-not-import.ts"
|
|
553
572
|
],
|
|
554
|
-
"percent": 0.
|
|
573
|
+
"percent": 0.22,
|
|
555
574
|
"reduction": 94.55
|
|
556
575
|
},
|
|
557
576
|
{
|
|
@@ -565,7 +584,7 @@
|
|
|
565
584
|
"dependents": [
|
|
566
585
|
"/src/adapters/next-app-dir.ts"
|
|
567
586
|
],
|
|
568
|
-
"percent": 0.
|
|
587
|
+
"percent": 0.21,
|
|
569
588
|
"reduction": 36.26
|
|
570
589
|
},
|
|
571
590
|
{
|
|
@@ -579,7 +598,7 @@
|
|
|
579
598
|
"dependents": [
|
|
580
599
|
"/src/unstable-core-do-not-import.ts"
|
|
581
600
|
],
|
|
582
|
-
"percent": 0.
|
|
601
|
+
"percent": 0.15,
|
|
583
602
|
"reduction": 14.13
|
|
584
603
|
},
|
|
585
604
|
{
|
|
@@ -594,7 +613,7 @@
|
|
|
594
613
|
"/src/unstable-core-do-not-import.ts",
|
|
595
614
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
|
|
596
615
|
],
|
|
597
|
-
"percent": 0.
|
|
616
|
+
"percent": 0.07,
|
|
598
617
|
"reduction": 96.87
|
|
599
618
|
},
|
|
600
619
|
{
|
|
@@ -610,7 +629,7 @@
|
|
|
610
629
|
"/src/unstable-core-do-not-import/router.ts",
|
|
611
630
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
612
631
|
],
|
|
613
|
-
"percent": 0.
|
|
632
|
+
"percent": 0.06,
|
|
614
633
|
"reduction": 93.8
|
|
615
634
|
},
|
|
616
635
|
{
|
|
@@ -624,9 +643,9 @@
|
|
|
624
643
|
"reduction": 100
|
|
625
644
|
},
|
|
626
645
|
{
|
|
627
|
-
"id": "/src/
|
|
646
|
+
"id": "/src/index.ts",
|
|
628
647
|
"size": 0,
|
|
629
|
-
"origSize":
|
|
648
|
+
"origSize": 32,
|
|
630
649
|
"renderedExports": [],
|
|
631
650
|
"removedExports": [],
|
|
632
651
|
"dependents": [],
|
|
@@ -634,9 +653,9 @@
|
|
|
634
653
|
"reduction": 100
|
|
635
654
|
},
|
|
636
655
|
{
|
|
637
|
-
"id": "/src/
|
|
656
|
+
"id": "/src/rpc.ts",
|
|
638
657
|
"size": 0,
|
|
639
|
-
"origSize":
|
|
658
|
+
"origSize": 36,
|
|
640
659
|
"renderedExports": [],
|
|
641
660
|
"removedExports": [],
|
|
642
661
|
"dependents": [],
|
|
@@ -644,9 +663,9 @@
|
|
|
644
663
|
"reduction": 100
|
|
645
664
|
},
|
|
646
665
|
{
|
|
647
|
-
"id": "/src/
|
|
666
|
+
"id": "/src/shared.ts",
|
|
648
667
|
"size": 0,
|
|
649
|
-
"origSize":
|
|
668
|
+
"origSize": 653,
|
|
650
669
|
"renderedExports": [],
|
|
651
670
|
"removedExports": [],
|
|
652
671
|
"dependents": [],
|
|
@@ -654,9 +673,9 @@
|
|
|
654
673
|
"reduction": 100
|
|
655
674
|
},
|
|
656
675
|
{
|
|
657
|
-
"id": "/src/
|
|
676
|
+
"id": "/src/unstable-core-do-not-import.ts",
|
|
658
677
|
"size": 0,
|
|
659
|
-
"origSize":
|
|
678
|
+
"origSize": 1969,
|
|
660
679
|
"renderedExports": [],
|
|
661
680
|
"removedExports": [],
|
|
662
681
|
"dependents": [],
|
|
@@ -695,16 +714,6 @@
|
|
|
695
714
|
"percent": 0,
|
|
696
715
|
"reduction": 100
|
|
697
716
|
},
|
|
698
|
-
{
|
|
699
|
-
"id": "/src/adapters/fetch/index.ts",
|
|
700
|
-
"size": 0,
|
|
701
|
-
"origSize": 64,
|
|
702
|
-
"renderedExports": [],
|
|
703
|
-
"removedExports": [],
|
|
704
|
-
"dependents": [],
|
|
705
|
-
"percent": 0,
|
|
706
|
-
"reduction": 100
|
|
707
|
-
},
|
|
708
717
|
{
|
|
709
718
|
"id": "/src/adapters/node-http/index.ts",
|
|
710
719
|
"size": 0,
|
|
@@ -713,13 +722,23 @@
|
|
|
713
722
|
"removedExports": [],
|
|
714
723
|
"dependents": [
|
|
715
724
|
"/src/adapters/express.ts",
|
|
716
|
-
"/src/adapters/next.ts",
|
|
717
725
|
"/src/adapters/standalone.ts",
|
|
726
|
+
"/src/adapters/next.ts",
|
|
718
727
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
719
728
|
],
|
|
720
729
|
"percent": 0,
|
|
721
730
|
"reduction": 100
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
734
|
+
"size": 0,
|
|
735
|
+
"origSize": 64,
|
|
736
|
+
"renderedExports": [],
|
|
737
|
+
"removedExports": [],
|
|
738
|
+
"dependents": [],
|
|
739
|
+
"percent": 0,
|
|
740
|
+
"reduction": 100
|
|
722
741
|
}
|
|
723
742
|
],
|
|
724
|
-
"moduleCount":
|
|
743
|
+
"moduleCount": 51
|
|
725
744
|
}
|
|
@@ -7,7 +7,7 @@ type NonJsonPrimitive = Function | symbol | undefined;
|
|
|
7
7
|
type IsAny<T> = 0 extends T & 1 ? true : false;
|
|
8
8
|
type JsonReturnable = JsonPrimitive | undefined;
|
|
9
9
|
type IsRecord<T extends object> = keyof WithoutIndexSignature<T> extends never ? true : false;
|
|
10
|
-
export type Serialize<T> = IsAny<T> extends true ? any : unknown extends T ? unknown : T extends JsonReturnable ? T : T extends Map<any, any> | Set<any> ? object : T extends NonJsonPrimitive ? never : T extends {
|
|
10
|
+
export type Serialize<T> = IsAny<T> extends true ? any : unknown extends T ? unknown : T extends AsyncIterable<infer U> ? AsyncIterable<Serialize<U>> : T extends JsonReturnable ? T : T extends Map<any, any> | Set<any> ? object : T extends NonJsonPrimitive ? never : T extends {
|
|
11
11
|
toJSON(): infer U;
|
|
12
12
|
} ? U : T extends [] ? [] : T extends [unknown, ...unknown[]] ? SerializeTuple<T> : T extends readonly (infer U)[] ? (U extends NonJsonPrimitive ? null : Serialize<U>)[] : T extends object ? IsRecord<T> extends true ? Record<keyof T, Serialize<T[keyof T]>> : Simplify<SerializeObject<UndefinedToOptional<T>>> : never;
|
|
13
13
|
/** JSON serialize [tuples](https://www.typescriptlang.org/docs/handbook/2/objects.html#tuple-types) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/clientish/serialize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEhE;;GAEG;AACH,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAEtD,KAAK,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAKtD,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;AAK/C,KAAK,cAAc,GAAG,aAAa,GAAG,SAAS,CAAC;AAEhD,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,qBAAqB,CAAC,CAAC,CAAC,SAAS,KAAK,GAC1E,IAAI,GACJ,KAAK,CAAC;AAGV,MAAM,MAAM,SAAS,CAAC,CAAC,IACrB,KAAK,CAAC,CAAC,CAAC,SAAS,IAAI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CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC;CACtE,CAAC;AAEF;;GAEG;AACH,KAAK,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAEvC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,GAEzE,CAAC,0BAA0B,SAAS,IAAI,GACpC,oBAAoB,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,GACnE,iBAAiB,CAAC,CAAC,CAAC,SAAS,IAAI,GACjC,oBAAoB,CAAC,CAAC,CAAC,GACvB,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveResponse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/resolveResponse.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveResponse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/resolveResponse.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,WAAW,CAAC;AAOnB,OAAO,KAAK,EACV,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,SAAS,CAAC;AAUjB,UAAU,yBAAyB,CAAC,OAAO,SAAS,SAAS,CAC3D,SAAQ,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC;IAChD,aAAa,EAAE,kCAAkC,CAAC,OAAO,CAAC,CAAC;IAC3D,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB;AAsHD,wBAAsB,eAAe,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,QAAQ,CAAC,CAiQnB"}
|