@trpc/server 11.0.0-rc.630 → 11.0.0-rc.633

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 (117) hide show
  1. package/dist/@trpc/server/http.d.ts +1 -1
  2. package/dist/@trpc/server/http.d.ts.map +1 -1
  3. package/dist/adapters/aws-lambda/index.js +1 -0
  4. package/dist/adapters/aws-lambda/index.mjs +1 -0
  5. package/dist/adapters/express.js +1 -0
  6. package/dist/adapters/express.mjs +1 -0
  7. package/dist/adapters/fastify/fastifyRequestHandler.js +2 -1
  8. package/dist/adapters/fastify/fastifyRequestHandler.mjs +2 -1
  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/nextAppDirCaller.js +1 -0
  12. package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +1 -0
  13. package/dist/adapters/next-app-dir/notFound.js +1 -0
  14. package/dist/adapters/next-app-dir/notFound.mjs +1 -0
  15. package/dist/adapters/next-app-dir/redirect.js +1 -0
  16. package/dist/adapters/next-app-dir/redirect.mjs +1 -0
  17. package/dist/adapters/next.js +1 -0
  18. package/dist/adapters/next.mjs +1 -0
  19. package/dist/adapters/node-http/incomingMessageToRequest.d.ts +1 -1
  20. package/dist/adapters/node-http/incomingMessageToRequest.d.ts.map +1 -1
  21. package/dist/adapters/node-http/incomingMessageToRequest.js +7 -5
  22. package/dist/adapters/node-http/incomingMessageToRequest.mjs +7 -5
  23. package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts.map +1 -1
  24. package/dist/adapters/node-http/nodeHTTPRequestHandler.js +9 -42
  25. package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +9 -42
  26. package/dist/adapters/node-http/writeResponse.d.ts +18 -0
  27. package/dist/adapters/node-http/writeResponse.d.ts.map +1 -0
  28. package/dist/adapters/node-http/writeResponse.js +80 -0
  29. package/dist/adapters/node-http/writeResponse.mjs +77 -0
  30. package/dist/adapters/standalone.js +1 -0
  31. package/dist/adapters/standalone.mjs +1 -0
  32. package/dist/adapters/ws.js +1 -0
  33. package/dist/adapters/ws.mjs +1 -0
  34. package/dist/bundle-analysis.json +195 -168
  35. package/dist/http.js +1 -2
  36. package/dist/http.mjs +1 -1
  37. package/dist/index.js +1 -0
  38. package/dist/index.mjs +1 -0
  39. package/dist/rpc.js +1 -0
  40. package/dist/rpc.mjs +1 -0
  41. package/dist/shared.js +1 -0
  42. package/dist/shared.mjs +1 -0
  43. package/dist/unstable-core-do-not-import/http/isAbortError.d.ts +4 -0
  44. package/dist/unstable-core-do-not-import/http/isAbortError.d.ts.map +1 -0
  45. package/dist/unstable-core-do-not-import/http/isAbortError.js +9 -0
  46. package/dist/unstable-core-do-not-import/http/isAbortError.mjs +7 -0
  47. package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
  48. package/dist/unstable-core-do-not-import/http/resolveResponse.js +3 -3
  49. package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +3 -3
  50. package/dist/unstable-core-do-not-import/initTRPC.js +2 -2
  51. package/dist/unstable-core-do-not-import/initTRPC.mjs +2 -2
  52. package/dist/unstable-core-do-not-import/rootConfig.d.ts +14 -14
  53. package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
  54. package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts +7 -10
  55. package/dist/unstable-core-do-not-import/rpc/envelopes.d.ts.map +1 -1
  56. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +6 -9
  57. package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +1 -1
  58. package/dist/unstable-core-do-not-import/stream/jsonl.js +75 -124
  59. package/dist/unstable-core-do-not-import/stream/jsonl.mjs +76 -125
  60. package/dist/unstable-core-do-not-import/stream/sse.d.ts +11 -1
  61. package/dist/unstable-core-do-not-import/stream/sse.d.ts.map +1 -1
  62. package/dist/unstable-core-do-not-import/stream/sse.js +154 -86
  63. package/dist/unstable-core-do-not-import/stream/sse.mjs +155 -87
  64. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts +10 -10
  65. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts.map +1 -1
  66. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +47 -34
  67. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +47 -34
  68. package/dist/unstable-core-do-not-import/stream/utils/createReadableStream.d.ts +0 -4
  69. package/dist/unstable-core-do-not-import/stream/utils/createReadableStream.d.ts.map +1 -1
  70. package/dist/unstable-core-do-not-import/stream/utils/createReadableStream.js +0 -11
  71. package/dist/unstable-core-do-not-import/stream/utils/createReadableStream.mjs +1 -11
  72. package/dist/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.d.ts +6 -0
  73. package/dist/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.d.ts.map +1 -0
  74. package/dist/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.js +28 -0
  75. package/dist/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.mjs +25 -0
  76. package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts.map +1 -1
  77. package/dist/unstable-core-do-not-import/stream/utils/withPing.js +17 -17
  78. package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +17 -17
  79. package/dist/unstable-core-do-not-import/stream/utils/withRefCount.d.ts +17 -0
  80. package/dist/unstable-core-do-not-import/stream/utils/withRefCount.d.ts.map +1 -0
  81. package/dist/unstable-core-do-not-import/stream/utils/withRefCount.js +59 -0
  82. package/dist/unstable-core-do-not-import/stream/utils/withRefCount.mjs +57 -0
  83. package/dist/unstable-core-do-not-import/transformer.d.ts +1 -4
  84. package/dist/unstable-core-do-not-import/transformer.d.ts.map +1 -1
  85. package/dist/unstable-core-do-not-import.d.ts +2 -2
  86. package/dist/unstable-core-do-not-import.d.ts.map +1 -1
  87. package/dist/unstable-core-do-not-import.js +2 -2
  88. package/dist/unstable-core-do-not-import.mjs +1 -1
  89. package/package.json +3 -3
  90. package/src/@trpc/server/http.ts +0 -1
  91. package/src/adapters/fastify/fastifyRequestHandler.ts +1 -1
  92. package/src/adapters/node-http/incomingMessageToRequest.ts +8 -4
  93. package/src/adapters/node-http/nodeHTTPRequestHandler.ts +8 -46
  94. package/src/adapters/node-http/writeResponse.ts +91 -0
  95. package/src/unstable-core-do-not-import/http/isAbortError.ts +7 -0
  96. package/src/unstable-core-do-not-import/http/resolveResponse.ts +3 -4
  97. package/src/unstable-core-do-not-import/initTRPC.ts +1 -1
  98. package/src/unstable-core-do-not-import/rootConfig.ts +17 -17
  99. package/src/unstable-core-do-not-import/rpc/envelopes.ts +7 -12
  100. package/src/unstable-core-do-not-import/stream/jsonl.ts +85 -154
  101. package/src/unstable-core-do-not-import/stream/sse.ts +179 -92
  102. package/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts +58 -37
  103. package/src/unstable-core-do-not-import/stream/utils/createReadableStream.ts +0 -13
  104. package/src/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.ts +27 -0
  105. package/src/unstable-core-do-not-import/stream/utils/withPing.ts +31 -19
  106. package/src/unstable-core-do-not-import/stream/utils/withRefCount.ts +93 -0
  107. package/src/unstable-core-do-not-import.ts +2 -2
  108. package/dist/unstable-core-do-not-import/http/batchStreamFormatter.d.ts +0 -24
  109. package/dist/unstable-core-do-not-import/http/batchStreamFormatter.d.ts.map +0 -1
  110. package/dist/unstable-core-do-not-import/http/batchStreamFormatter.js +0 -32
  111. package/dist/unstable-core-do-not-import/http/batchStreamFormatter.mjs +0 -30
  112. package/dist/unstable-core-do-not-import/stream/utils/promiseTimer.d.ts +0 -8
  113. package/dist/unstable-core-do-not-import/stream/utils/promiseTimer.d.ts.map +0 -1
  114. package/dist/unstable-core-do-not-import/stream/utils/promiseTimer.js +0 -38
  115. package/dist/unstable-core-do-not-import/stream/utils/promiseTimer.mjs +0 -36
  116. package/src/unstable-core-do-not-import/http/batchStreamFormatter.ts +0 -29
  117. package/src/unstable-core-do-not-import/stream/utils/promiseTimer.ts +0 -40
@@ -1,12 +1,12 @@
1
1
  {
2
- "bundleSize": 165180,
3
- "bundleOrigSize": 215280,
4
- "bundleReduction": 23.27,
2
+ "bundleSize": 167567,
3
+ "bundleOrigSize": 218715,
4
+ "bundleReduction": 23.39,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
8
- "size": 21597,
9
- "origSize": 19889,
8
+ "size": 21503,
9
+ "origSize": 19791,
10
10
  "renderedExports": [
11
11
  "resolveResponse"
12
12
  ],
@@ -14,26 +14,9 @@
14
14
  "dependents": [
15
15
  "/src/unstable-core-do-not-import.ts"
16
16
  ],
17
- "percent": 13.07,
17
+ "percent": 12.83,
18
18
  "reduction": 0
19
19
  },
20
- {
21
- "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
22
- "size": 17645,
23
- "origSize": 18521,
24
- "renderedExports": [
25
- "isPromise",
26
- "jsonlStreamProducer",
27
- "jsonlStreamConsumer"
28
- ],
29
- "removedExports": [],
30
- "dependents": [
31
- "/src/unstable-core-do-not-import.ts",
32
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
33
- ],
34
- "percent": 10.68,
35
- "reduction": 4.73
36
- },
37
20
  {
38
21
  "id": "/src/adapters/ws.ts",
39
22
  "size": 16774,
@@ -47,9 +30,26 @@
47
30
  "dependents": [
48
31
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
49
32
  ],
50
- "percent": 10.15,
33
+ "percent": 10.01,
51
34
  "reduction": 0
52
35
  },
36
+ {
37
+ "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
38
+ "size": 15675,
39
+ "origSize": 16691,
40
+ "renderedExports": [
41
+ "isPromise",
42
+ "jsonlStreamProducer",
43
+ "jsonlStreamConsumer"
44
+ ],
45
+ "removedExports": [],
46
+ "dependents": [
47
+ "/src/unstable-core-do-not-import.ts",
48
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts"
49
+ ],
50
+ "percent": 9.35,
51
+ "reduction": 6.09
52
+ },
53
53
  {
54
54
  "id": "/src/vendor/unpromise/unpromise.ts",
55
55
  "size": 11807,
@@ -60,40 +60,40 @@
60
60
  ],
61
61
  "removedExports": [],
62
62
  "dependents": [],
63
- "percent": 7.15,
63
+ "percent": 7.05,
64
64
  "reduction": 14.14
65
65
  },
66
66
  {
67
- "id": "/src/unstable-core-do-not-import/http/contentType.ts",
68
- "size": 7685,
69
- "origSize": 7608,
67
+ "id": "/src/unstable-core-do-not-import/stream/sse.ts",
68
+ "size": 9727,
69
+ "origSize": 12040,
70
70
  "renderedExports": [
71
- "getRequestInfo"
71
+ "sseStreamProducer",
72
+ "sseStreamConsumer",
73
+ "sseHeaders"
72
74
  ],
73
75
  "removedExports": [],
74
76
  "dependents": [
75
77
  "/src/unstable-core-do-not-import.ts",
76
78
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
77
79
  ],
78
- "percent": 4.65,
79
- "reduction": 0
80
+ "percent": 5.8,
81
+ "reduction": 19.21
80
82
  },
81
83
  {
82
- "id": "/src/unstable-core-do-not-import/stream/sse.ts",
83
- "size": 7329,
84
- "origSize": 9768,
84
+ "id": "/src/unstable-core-do-not-import/http/contentType.ts",
85
+ "size": 7685,
86
+ "origSize": 7608,
85
87
  "renderedExports": [
86
- "sseStreamProducer",
87
- "sseStreamConsumer",
88
- "sseHeaders"
88
+ "getRequestInfo"
89
89
  ],
90
90
  "removedExports": [],
91
91
  "dependents": [
92
92
  "/src/unstable-core-do-not-import.ts",
93
93
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
94
94
  ],
95
- "percent": 4.44,
96
- "reduction": 24.97
95
+ "percent": 4.59,
96
+ "reduction": 0
97
97
  },
98
98
  {
99
99
  "id": "/src/unstable-core-do-not-import/router.ts",
@@ -110,7 +110,7 @@
110
110
  "/src/unstable-core-do-not-import.ts",
111
111
  "/src/unstable-core-do-not-import/initTRPC.ts"
112
112
  ],
113
- "percent": 3.88,
113
+ "percent": 3.83,
114
114
  "reduction": 39.89
115
115
  },
116
116
  {
@@ -125,7 +125,7 @@
125
125
  "/src/unstable-core-do-not-import.ts",
126
126
  "/src/unstable-core-do-not-import/initTRPC.ts"
127
127
  ],
128
- "percent": 3.51,
128
+ "percent": 3.46,
129
129
  "reduction": 64.97
130
130
  },
131
131
  {
@@ -139,7 +139,7 @@
139
139
  "dependents": [
140
140
  "/src/adapters/aws-lambda/index.ts"
141
141
  ],
142
- "percent": 3.28,
142
+ "percent": 3.23,
143
143
  "reduction": 11.51
144
144
  },
145
145
  {
@@ -159,24 +159,9 @@
159
159
  "/src/observable/operators.ts",
160
160
  "/src/observable/behaviorSubject.ts"
161
161
  ],
162
- "percent": 2.71,
162
+ "percent": 2.67,
163
163
  "reduction": 0
164
164
  },
165
- {
166
- "id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
167
- "size": 4451,
168
- "origSize": 4579,
169
- "renderedExports": [
170
- "internal_exceptionHandler",
171
- "nodeHTTPRequestHandler"
172
- ],
173
- "removedExports": [],
174
- "dependents": [
175
- "/src/adapters/node-http/index.ts"
176
- ],
177
- "percent": 2.69,
178
- "reduction": 2.8
179
- },
180
165
  {
181
166
  "id": "/src/observable/operators.ts",
182
167
  "size": 3910,
@@ -192,13 +177,13 @@
192
177
  "dependents": [
193
178
  "/src/observable/index.ts"
194
179
  ],
195
- "percent": 2.37,
180
+ "percent": 2.33,
196
181
  "reduction": 1.66
197
182
  },
198
183
  {
199
184
  "id": "/src/adapters/node-http/incomingMessageToRequest.ts",
200
- "size": 3806,
201
- "origSize": 4302,
185
+ "size": 3838,
186
+ "origSize": 4355,
202
187
  "renderedExports": [
203
188
  "createURL",
204
189
  "incomingMessageToRequest"
@@ -208,8 +193,8 @@
208
193
  "/src/adapters/node-http/index.ts",
209
194
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
210
195
  ],
211
- "percent": 2.3,
212
- "reduction": 11.53
196
+ "percent": 2.29,
197
+ "reduction": 11.87
213
198
  },
214
199
  {
215
200
  "id": "/src/adapters/next-app-dir/nextAppDirCaller.ts",
@@ -222,9 +207,39 @@
222
207
  "dependents": [
223
208
  "/src/adapters/next-app-dir.ts"
224
209
  ],
225
- "percent": 1.96,
210
+ "percent": 1.94,
226
211
  "reduction": 22.52
227
212
  },
213
+ {
214
+ "id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
215
+ "size": 2776,
216
+ "origSize": 2876,
217
+ "renderedExports": [
218
+ "withMaxDuration",
219
+ "takeWithGrace"
220
+ ],
221
+ "removedExports": [],
222
+ "dependents": [
223
+ "/src/unstable-core-do-not-import/stream/sse.ts"
224
+ ],
225
+ "percent": 1.66,
226
+ "reduction": 3.48
227
+ },
228
+ {
229
+ "id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
230
+ "size": 2742,
231
+ "origSize": 3276,
232
+ "renderedExports": [
233
+ "internal_exceptionHandler",
234
+ "nodeHTTPRequestHandler"
235
+ ],
236
+ "removedExports": [],
237
+ "dependents": [
238
+ "/src/adapters/node-http/index.ts"
239
+ ],
240
+ "percent": 1.64,
241
+ "reduction": 16.3
242
+ },
228
243
  {
229
244
  "id": "/src/unstable-core-do-not-import/transformer.ts",
230
245
  "size": 2739,
@@ -242,13 +257,13 @@
242
257
  "/src/unstable-core-do-not-import/initTRPC.ts",
243
258
  "/src/unstable-core-do-not-import/router.ts"
244
259
  ],
245
- "percent": 1.66,
260
+ "percent": 1.63,
246
261
  "reduction": 45.98
247
262
  },
248
263
  {
249
264
  "id": "/src/unstable-core-do-not-import/initTRPC.ts",
250
- "size": 2695,
251
- "origSize": 4532,
265
+ "size": 2664,
266
+ "origSize": 4501,
252
267
  "renderedExports": [
253
268
  "initTRPC"
254
269
  ],
@@ -256,8 +271,8 @@
256
271
  "dependents": [
257
272
  "/src/unstable-core-do-not-import.ts"
258
273
  ],
259
- "percent": 1.63,
260
- "reduction": 40.53
274
+ "percent": 1.59,
275
+ "reduction": 40.81
261
276
  },
262
277
  {
263
278
  "id": "/src/unstable-core-do-not-import/middleware.ts",
@@ -276,7 +291,7 @@
276
291
  "/src/unstable-core-do-not-import/initTRPC.ts",
277
292
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
278
293
  ],
279
- "percent": 1.59,
294
+ "percent": 1.57,
280
295
  "reduction": 55.79
281
296
  },
282
297
  {
@@ -309,12 +324,12 @@
309
324
  "/src/unstable-core-do-not-import/router.ts",
310
325
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
311
326
  "/src/unstable-core-do-not-import/http/contentType.ts",
327
+ "/src/unstable-core-do-not-import/http/isAbortError.ts",
312
328
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
313
329
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
314
- "/src/unstable-core-do-not-import/stream/sse.ts",
315
- "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts"
330
+ "/src/unstable-core-do-not-import/stream/sse.ts"
316
331
  ],
317
- "percent": 1.49,
332
+ "percent": 1.47,
318
333
  "reduction": 17.51
319
334
  },
320
335
  {
@@ -330,7 +345,7 @@
330
345
  "/src/unstable-core-do-not-import.ts",
331
346
  "/src/unstable-core-do-not-import/router.ts"
332
347
  ],
333
- "percent": 1.41,
348
+ "percent": 1.39,
334
349
  "reduction": 0
335
350
  },
336
351
  {
@@ -344,7 +359,7 @@
344
359
  "dependents": [
345
360
  "/src/adapters/fetch/index.ts"
346
361
  ],
347
- "percent": 1.36,
362
+ "percent": 1.34,
348
363
  "reduction": 2.48
349
364
  },
350
365
  {
@@ -358,7 +373,7 @@
358
373
  "dependents": [
359
374
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
360
375
  ],
361
- "percent": 1.28,
376
+ "percent": 1.27,
362
377
  "reduction": 5.53
363
378
  },
364
379
  {
@@ -379,7 +394,7 @@
379
394
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
380
395
  "/src/unstable-core-do-not-import/error/getErrorShape.ts"
381
396
  ],
382
- "percent": 1.26,
397
+ "percent": 1.25,
383
398
  "reduction": 18.54
384
399
  },
385
400
  {
@@ -400,26 +415,39 @@
400
415
  "/src/unstable-core-do-not-import/router.ts",
401
416
  "/src/unstable-core-do-not-import/http/contentType.ts",
402
417
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
403
- "/src/unstable-core-do-not-import/stream/jsonl.ts",
404
418
  "/src/unstable-core-do-not-import/stream/sse.ts"
405
419
  ],
406
- "percent": 1.25,
420
+ "percent": 1.23,
407
421
  "reduction": 4.23
408
422
  },
409
423
  {
410
- "id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
411
- "size": 1996,
412
- "origSize": 2147,
424
+ "id": "/src/adapters/node-http/writeResponse.ts",
425
+ "size": 1930,
426
+ "origSize": 2011,
413
427
  "renderedExports": [
414
- "withCancel",
415
- "takeWithGrace"
428
+ "writeResponseBody",
429
+ "writeResponse"
416
430
  ],
417
431
  "removedExports": [],
418
432
  "dependents": [
419
- "/src/unstable-core-do-not-import/stream/sse.ts"
433
+ "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
420
434
  ],
421
- "percent": 1.21,
422
- "reduction": 7.03
435
+ "percent": 1.15,
436
+ "reduction": 4.03
437
+ },
438
+ {
439
+ "id": "/src/unstable-core-do-not-import/stream/utils/withRefCount.ts",
440
+ "size": 1860,
441
+ "origSize": 2564,
442
+ "renderedExports": [
443
+ "withRefCount"
444
+ ],
445
+ "removedExports": [],
446
+ "dependents": [
447
+ "/src/unstable-core-do-not-import/stream/jsonl.ts"
448
+ ],
449
+ "percent": 1.11,
450
+ "reduction": 27.46
423
451
  },
424
452
  {
425
453
  "id": "/src/adapters/fastify/fastifyTRPCPlugin.ts",
@@ -432,7 +460,7 @@
432
460
  "dependents": [
433
461
  "/src/adapters/fastify/index.ts"
434
462
  ],
435
- "percent": 1.08,
463
+ "percent": 1.06,
436
464
  "reduction": 30.2
437
465
  },
438
466
  {
@@ -444,7 +472,7 @@
444
472
  ],
445
473
  "removedExports": [],
446
474
  "dependents": [],
447
- "percent": 1.02,
475
+ "percent": 1.01,
448
476
  "reduction": 19.62
449
477
  },
450
478
  {
@@ -457,7 +485,7 @@
457
485
  ],
458
486
  "removedExports": [],
459
487
  "dependents": [],
460
- "percent": 0.98,
488
+ "percent": 0.96,
461
489
  "reduction": 17.81
462
490
  },
463
491
  {
@@ -469,7 +497,7 @@
469
497
  ],
470
498
  "removedExports": [],
471
499
  "dependents": [],
472
- "percent": 0.8,
500
+ "percent": 0.79,
473
501
  "reduction": 35.1
474
502
  },
475
503
  {
@@ -484,13 +512,28 @@
484
512
  "/src/unstable-core-do-not-import.ts",
485
513
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
486
514
  ],
487
- "percent": 0.79,
515
+ "percent": 0.77,
488
516
  "reduction": 55.37
489
517
  },
518
+ {
519
+ "id": "/src/unstable-core-do-not-import/stream/utils/withPing.ts",
520
+ "size": 1192,
521
+ "origSize": 1325,
522
+ "renderedExports": [
523
+ "PING_SYM",
524
+ "withPing"
525
+ ],
526
+ "removedExports": [],
527
+ "dependents": [
528
+ "/src/unstable-core-do-not-import/stream/sse.ts"
529
+ ],
530
+ "percent": 0.71,
531
+ "reduction": 10.04
532
+ },
490
533
  {
491
534
  "id": "/src/adapters/fastify/fastifyRequestHandler.ts",
492
- "size": 1132,
493
- "origSize": 2160,
535
+ "size": 1146,
536
+ "origSize": 2174,
494
537
  "renderedExports": [
495
538
  "fastifyRequestHandler"
496
539
  ],
@@ -499,8 +542,8 @@
499
542
  "/src/adapters/fastify/index.ts",
500
543
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
501
544
  ],
502
- "percent": 0.69,
503
- "reduction": 47.59
545
+ "percent": 0.68,
546
+ "reduction": 47.29
504
547
  },
505
548
  {
506
549
  "id": "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
@@ -515,7 +558,7 @@
515
558
  "/src/unstable-core-do-not-import.ts",
516
559
  "/src/unstable-core-do-not-import/http/contentType.ts"
517
560
  ],
518
- "percent": 0.67,
561
+ "percent": 0.66,
519
562
  "reduction": 15.08
520
563
  },
521
564
  {
@@ -529,24 +572,9 @@
529
572
  "dependents": [
530
573
  "/src/unstable-core-do-not-import.ts"
531
574
  ],
532
- "percent": 0.64,
575
+ "percent": 0.63,
533
576
  "reduction": 0
534
577
  },
535
- {
536
- "id": "/src/unstable-core-do-not-import/stream/utils/withPing.ts",
537
- "size": 1058,
538
- "origSize": 1213,
539
- "renderedExports": [
540
- "PING_SYM",
541
- "withPing"
542
- ],
543
- "removedExports": [],
544
- "dependents": [
545
- "/src/unstable-core-do-not-import/stream/sse.ts"
546
- ],
547
- "percent": 0.64,
548
- "reduction": 12.78
549
- },
550
578
  {
551
579
  "id": "/src/adapters/next-app-dir/redirect.ts",
552
580
  "size": 1029,
@@ -561,7 +589,7 @@
561
589
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
562
590
  "/src/adapters/next-app-dir/rethrowNextErrors.ts"
563
591
  ],
564
- "percent": 0.62,
592
+ "percent": 0.61,
565
593
  "reduction": 9.97
566
594
  },
567
595
  {
@@ -575,7 +603,7 @@
575
603
  "dependents": [
576
604
  "/src/observable/index.ts"
577
605
  ],
578
- "percent": 0.59,
606
+ "percent": 0.58,
579
607
  "reduction": 32.89
580
608
  },
581
609
  {
@@ -587,7 +615,7 @@
587
615
  ],
588
616
  "removedExports": [],
589
617
  "dependents": [],
590
- "percent": 0.52,
618
+ "percent": 0.51,
591
619
  "reduction": 34.73
592
620
  },
593
621
  {
@@ -629,54 +657,24 @@
629
657
  ],
630
658
  "removedExports": [],
631
659
  "dependents": [],
632
- "percent": 0.46,
660
+ "percent": 0.45,
633
661
  "reduction": 66.61
634
662
  },
635
663
  {
636
- "id": "/src/unstable-core-do-not-import/stream/utils/promiseTimer.ts",
637
- "size": 754,
638
- "origSize": 843,
664
+ "id": "/src/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.ts",
665
+ "size": 655,
666
+ "origSize": 651,
639
667
  "renderedExports": [
640
- "createPromiseTimer"
668
+ "disposablePromiseTimerResult",
669
+ "disposablePromiseTimer"
641
670
  ],
642
671
  "removedExports": [],
643
672
  "dependents": [
644
- "/src/unstable-core-do-not-import/stream/sse.ts",
645
673
  "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
646
674
  "/src/unstable-core-do-not-import/stream/utils/withPing.ts"
647
675
  ],
648
- "percent": 0.46,
649
- "reduction": 10.56
650
- },
651
- {
652
- "id": "/src/unstable-core-do-not-import/stream/utils/createReadableStream.ts",
653
- "size": 705,
654
- "origSize": 896,
655
- "renderedExports": [
656
- "createReadableStream",
657
- "isCancelledStreamResult"
658
- ],
659
- "removedExports": [],
660
- "dependents": [
661
- "/src/unstable-core-do-not-import/stream/jsonl.ts",
662
- "/src/unstable-core-do-not-import/stream/sse.ts"
663
- ],
664
- "percent": 0.43,
665
- "reduction": 21.32
666
- },
667
- {
668
- "id": "/src/unstable-core-do-not-import/http/batchStreamFormatter.ts",
669
- "size": 667,
670
- "origSize": 671,
671
- "renderedExports": [
672
- "getBatchStreamFormatter"
673
- ],
674
- "removedExports": [],
675
- "dependents": [
676
- "/src/unstable-core-do-not-import.ts"
677
- ],
678
- "percent": 0.4,
679
- "reduction": 0.6
676
+ "percent": 0.39,
677
+ "reduction": 0
680
678
  },
681
679
  {
682
680
  "id": "/src/unstable-core-do-not-import/error/getErrorShape.ts",
@@ -690,13 +688,28 @@
690
688
  "/src/unstable-core-do-not-import.ts",
691
689
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
692
690
  ],
693
- "percent": 0.38,
691
+ "percent": 0.37,
694
692
  "reduction": 43.85
695
693
  },
694
+ {
695
+ "id": "/src/unstable-core-do-not-import/stream/utils/createReadableStream.ts",
696
+ "size": 414,
697
+ "origSize": 495,
698
+ "renderedExports": [
699
+ "createReadableStream"
700
+ ],
701
+ "removedExports": [],
702
+ "dependents": [
703
+ "/src/unstable-core-do-not-import/stream/jsonl.ts",
704
+ "/src/unstable-core-do-not-import/stream/sse.ts"
705
+ ],
706
+ "percent": 0.25,
707
+ "reduction": 16.36
708
+ },
696
709
  {
697
710
  "id": "/src/unstable-core-do-not-import/rootConfig.ts",
698
711
  "size": 343,
699
- "origSize": 3267,
712
+ "origSize": 3273,
700
713
  "renderedExports": [
701
714
  "isServerDefault"
702
715
  ],
@@ -705,8 +718,8 @@
705
718
  "/src/unstable-core-do-not-import.ts",
706
719
  "/src/unstable-core-do-not-import/initTRPC.ts"
707
720
  ],
708
- "percent": 0.21,
709
- "reduction": 89.5
721
+ "percent": 0.2,
722
+ "reduction": 89.52
710
723
  },
711
724
  {
712
725
  "id": "/src/unstable-core-do-not-import/stream/utils/createDeferred.ts",
@@ -718,11 +731,9 @@
718
731
  "removedExports": [],
719
732
  "dependents": [
720
733
  "/src/unstable-core-do-not-import.ts",
721
- "/src/unstable-core-do-not-import/stream/jsonl.ts",
722
- "/src/unstable-core-do-not-import/stream/utils/createReadableStream.ts",
723
- "/src/unstable-core-do-not-import/stream/utils/promiseTimer.ts"
734
+ "/src/unstable-core-do-not-import/stream/jsonl.ts"
724
735
  ],
725
- "percent": 0.19,
736
+ "percent": 0.18,
726
737
  "reduction": 25.9
727
738
  },
728
739
  {
@@ -770,6 +781,21 @@
770
781
  "percent": 0.13,
771
782
  "reduction": 36.26
772
783
  },
784
+ {
785
+ "id": "/src/unstable-core-do-not-import/http/isAbortError.ts",
786
+ "size": 100,
787
+ "origSize": 208,
788
+ "renderedExports": [
789
+ "isAbortError"
790
+ ],
791
+ "removedExports": [],
792
+ "dependents": [
793
+ "/src/unstable-core-do-not-import.ts",
794
+ "/src/unstable-core-do-not-import/stream/sse.ts"
795
+ ],
796
+ "percent": 0.06,
797
+ "reduction": 51.92
798
+ },
773
799
  {
774
800
  "id": "/src/unstable-core-do-not-import/procedure.ts",
775
801
  "size": 75,
@@ -782,7 +808,7 @@
782
808
  "/src/unstable-core-do-not-import.ts",
783
809
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
784
810
  ],
785
- "percent": 0.05,
811
+ "percent": 0.04,
786
812
  "reduction": 97.19
787
813
  },
788
814
  {
@@ -846,16 +872,17 @@
846
872
  {
847
873
  "id": "/src/unstable-core-do-not-import.ts",
848
874
  "size": 0,
849
- "origSize": 2312,
875
+ "origSize": 2304,
850
876
  "renderedExports": [],
851
877
  "removedExports": [],
852
878
  "dependents": [
853
879
  "/src/adapters/express.ts",
854
- "/src/adapters/standalone.ts",
855
880
  "/src/adapters/next.ts",
856
881
  "/src/adapters/ws.ts",
882
+ "/src/adapters/standalone.ts",
857
883
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
858
- "/src/adapters/next-app-dir/nextAppDirCaller.ts"
884
+ "/src/adapters/next-app-dir/nextAppDirCaller.ts",
885
+ "/src/adapters/node-http/writeResponse.ts"
859
886
  ],
860
887
  "percent": 0,
861
888
  "reduction": 100
@@ -910,14 +937,14 @@
910
937
  "removedExports": [],
911
938
  "dependents": [
912
939
  "/src/adapters/express.ts",
913
- "/src/adapters/standalone.ts",
914
940
  "/src/adapters/next.ts",
915
941
  "/src/adapters/ws.ts",
942
+ "/src/adapters/standalone.ts",
916
943
  "/src/adapters/fastify/fastifyRequestHandler.ts"
917
944
  ],
918
945
  "percent": 0,
919
946
  "reduction": 100
920
947
  }
921
948
  ],
922
- "moduleCount": 60
949
+ "moduleCount": 62
923
950
  }