@trpc/server 11.0.0-rc.637 → 11.0.0-rc.642
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/adapters/aws-lambda/index.js +1 -1
- package/dist/adapters/aws-lambda/index.mjs +1 -1
- package/dist/adapters/express.js +1 -1
- package/dist/adapters/express.mjs +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.js +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.mjs +1 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.js +1 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +1 -1
- package/dist/adapters/next-app-dir/notFound.js +1 -1
- package/dist/adapters/next-app-dir/notFound.mjs +1 -1
- package/dist/adapters/next-app-dir/redirect.js +1 -1
- package/dist/adapters/next-app-dir/redirect.mjs +1 -1
- package/dist/adapters/next.js +1 -1
- package/dist/adapters/next.mjs +1 -1
- package/dist/adapters/node-http/incomingMessageToRequest.js +1 -1
- package/dist/adapters/node-http/incomingMessageToRequest.mjs +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -1
- package/dist/adapters/node-http/writeResponse.js +1 -1
- package/dist/adapters/node-http/writeResponse.mjs +1 -1
- package/dist/adapters/standalone.js +1 -1
- package/dist/adapters/standalone.mjs +1 -1
- package/dist/adapters/ws.js +1 -1
- package/dist/adapters/ws.mjs +1 -1
- package/dist/bundle-analysis.json +107 -107
- package/dist/http.js +1 -1
- package/dist/http.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/rpc.js +1 -1
- package/dist/rpc.mjs +1 -1
- package/dist/shared.js +1 -1
- package/dist/shared.mjs +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 +0 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +0 -1
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +1 -1
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts +1 -1
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/jsonl.js +73 -47
- package/dist/unstable-core-do-not-import/stream/jsonl.mjs +73 -47
- package/dist/unstable-core-do-not-import/stream/sse.d.ts +20 -12
- package/dist/unstable-core-do-not-import/stream/sse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/sse.js +22 -11
- package/dist/unstable-core-do-not-import/stream/sse.mjs +22 -11
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts +0 -2
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +5 -8
- package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +3 -6
- package/dist/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.d.ts → timerResource.d.ts} +2 -2
- package/dist/unstable-core-do-not-import/stream/utils/timerResource.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.js → timerResource.js} +2 -2
- package/dist/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.mjs → timerResource.mjs} +2 -2
- package/dist/unstable-core-do-not-import/stream/utils/withPing.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/utils/withPing.js +3 -3
- package/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +2 -2
- package/package.json +7 -3
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +0 -1
- package/src/unstable-core-do-not-import/rootConfig.ts +1 -1
- package/src/unstable-core-do-not-import/stream/jsonl.ts +81 -51
- package/src/unstable-core-do-not-import/stream/sse.ts +56 -24
- package/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts +5 -11
- package/src/unstable-core-do-not-import/stream/utils/{disposablePromiseTimer.ts → timerResource.ts} +1 -1
- package/src/unstable-core-do-not-import/stream/utils/withPing.ts +2 -5
- package/dist/unstable-core-do-not-import/stream/utils/createServer.d.ts +0 -7
- package/dist/unstable-core-do-not-import/stream/utils/createServer.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/stream/utils/disposablePromiseTimer.d.ts.map +0 -1
- package/src/unstable-core-do-not-import/stream/utils/createServer.ts +0 -44
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
2
|
+
"bundleSize": 168625,
|
|
3
|
+
"bundleOrigSize": 220107,
|
|
4
4
|
"bundleReduction": 23.39,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
8
|
-
"size":
|
|
9
|
-
"origSize":
|
|
8
|
+
"size": 21420,
|
|
9
|
+
"origSize": 19724,
|
|
10
10
|
"renderedExports": [
|
|
11
11
|
"resolveResponse"
|
|
12
12
|
],
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/unstable-core-do-not-import.ts"
|
|
16
16
|
],
|
|
17
|
-
"percent": 12.
|
|
17
|
+
"percent": 12.7,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"dependents": [
|
|
31
31
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
32
32
|
],
|
|
33
|
-
"percent":
|
|
33
|
+
"percent": 9.95,
|
|
34
34
|
"reduction": 0
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
38
|
-
"size":
|
|
39
|
-
"origSize":
|
|
38
|
+
"size": 16412,
|
|
39
|
+
"origSize": 17477,
|
|
40
40
|
"renderedExports": [
|
|
41
41
|
"isPromise",
|
|
42
42
|
"jsonlStreamProducer",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"/src/unstable-core-do-not-import.ts",
|
|
48
48
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
49
49
|
],
|
|
50
|
-
"percent": 9.
|
|
50
|
+
"percent": 9.73,
|
|
51
51
|
"reduction": 6.09
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
],
|
|
61
61
|
"removedExports": [],
|
|
62
62
|
"dependents": [],
|
|
63
|
-
"percent": 7
|
|
63
|
+
"percent": 7,
|
|
64
64
|
"reduction": 14.14
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"id": "/src/unstable-core-do-not-import/stream/sse.ts",
|
|
68
|
-
"size":
|
|
69
|
-
"origSize":
|
|
68
|
+
"size": 10408,
|
|
69
|
+
"origSize": 12991,
|
|
70
70
|
"renderedExports": [
|
|
71
71
|
"sseStreamProducer",
|
|
72
72
|
"sseStreamConsumer",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"/src/unstable-core-do-not-import.ts",
|
|
78
78
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
79
79
|
],
|
|
80
|
-
"percent":
|
|
81
|
-
"reduction": 19.
|
|
80
|
+
"percent": 6.17,
|
|
81
|
+
"reduction": 19.88
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"id": "/src/unstable-core-do-not-import/http/contentType.ts",
|
|
@@ -92,7 +92,7 @@
|
|
|
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.
|
|
95
|
+
"percent": 4.56,
|
|
96
96
|
"reduction": 0
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -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.
|
|
113
|
+
"percent": 3.81,
|
|
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.
|
|
128
|
+
"percent": 3.44,
|
|
129
129
|
"reduction": 65.01
|
|
130
130
|
},
|
|
131
131
|
{
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"dependents": [
|
|
140
140
|
"/src/adapters/aws-lambda/index.ts"
|
|
141
141
|
],
|
|
142
|
-
"percent": 3.
|
|
142
|
+
"percent": 3.21,
|
|
143
143
|
"reduction": 11.51
|
|
144
144
|
},
|
|
145
145
|
{
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"/src/observable/operators.ts",
|
|
160
160
|
"/src/observable/behaviorSubject.ts"
|
|
161
161
|
],
|
|
162
|
-
"percent": 2.
|
|
162
|
+
"percent": 2.66,
|
|
163
163
|
"reduction": 0
|
|
164
164
|
},
|
|
165
165
|
{
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"dependents": [
|
|
178
178
|
"/src/observable/index.ts"
|
|
179
179
|
],
|
|
180
|
-
"percent": 2.
|
|
180
|
+
"percent": 2.32,
|
|
181
181
|
"reduction": 1.66
|
|
182
182
|
},
|
|
183
183
|
{
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"/src/adapters/node-http/index.ts",
|
|
194
194
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
195
195
|
],
|
|
196
|
-
"percent": 2.
|
|
196
|
+
"percent": 2.28,
|
|
197
197
|
"reduction": 11.87
|
|
198
198
|
},
|
|
199
199
|
{
|
|
@@ -207,24 +207,9 @@
|
|
|
207
207
|
"dependents": [
|
|
208
208
|
"/src/adapters/next-app-dir.ts"
|
|
209
209
|
],
|
|
210
|
-
"percent": 1.
|
|
210
|
+
"percent": 1.92,
|
|
211
211
|
"reduction": 22.52
|
|
212
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
213
|
{
|
|
229
214
|
"id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
230
215
|
"size": 2742,
|
|
@@ -237,7 +222,7 @@
|
|
|
237
222
|
"dependents": [
|
|
238
223
|
"/src/adapters/node-http/index.ts"
|
|
239
224
|
],
|
|
240
|
-
"percent": 1.
|
|
225
|
+
"percent": 1.63,
|
|
241
226
|
"reduction": 16.3
|
|
242
227
|
},
|
|
243
228
|
{
|
|
@@ -253,11 +238,11 @@
|
|
|
253
238
|
"removedExports": [],
|
|
254
239
|
"dependents": [
|
|
255
240
|
"/src/unstable-core-do-not-import.ts",
|
|
256
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
257
241
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
258
|
-
"/src/unstable-core-do-not-import/router.ts"
|
|
242
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
243
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
259
244
|
],
|
|
260
|
-
"percent": 1.
|
|
245
|
+
"percent": 1.62,
|
|
261
246
|
"reduction": 45.98
|
|
262
247
|
},
|
|
263
248
|
{
|
|
@@ -271,7 +256,7 @@
|
|
|
271
256
|
"dependents": [
|
|
272
257
|
"/src/unstable-core-do-not-import.ts"
|
|
273
258
|
],
|
|
274
|
-
"percent": 1.
|
|
259
|
+
"percent": 1.58,
|
|
275
260
|
"reduction": 40.81
|
|
276
261
|
},
|
|
277
262
|
{
|
|
@@ -291,9 +276,24 @@
|
|
|
291
276
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
292
277
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
293
278
|
],
|
|
294
|
-
"percent": 1.
|
|
279
|
+
"percent": 1.56,
|
|
295
280
|
"reduction": 55.79
|
|
296
281
|
},
|
|
282
|
+
{
|
|
283
|
+
"id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
|
|
284
|
+
"size": 2535,
|
|
285
|
+
"origSize": 2611,
|
|
286
|
+
"renderedExports": [
|
|
287
|
+
"withMaxDuration",
|
|
288
|
+
"takeWithGrace"
|
|
289
|
+
],
|
|
290
|
+
"removedExports": [],
|
|
291
|
+
"dependents": [
|
|
292
|
+
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
293
|
+
],
|
|
294
|
+
"percent": 1.5,
|
|
295
|
+
"reduction": 2.91
|
|
296
|
+
},
|
|
297
297
|
{
|
|
298
298
|
"id": "/src/unstable-core-do-not-import/utils.ts",
|
|
299
299
|
"size": 2460,
|
|
@@ -315,13 +315,13 @@
|
|
|
315
315
|
"removedExports": [],
|
|
316
316
|
"dependents": [
|
|
317
317
|
"/src/unstable-core-do-not-import.ts",
|
|
318
|
-
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
319
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
320
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
321
318
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
322
319
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
323
320
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
324
321
|
"/src/unstable-core-do-not-import/router.ts",
|
|
322
|
+
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
323
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
324
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
325
325
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
326
326
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
327
327
|
"/src/unstable-core-do-not-import/http/isAbortError.ts",
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
330
330
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
331
331
|
],
|
|
332
|
-
"percent": 1.
|
|
332
|
+
"percent": 1.46,
|
|
333
333
|
"reduction": 17.51
|
|
334
334
|
},
|
|
335
335
|
{
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
"/src/unstable-core-do-not-import.ts",
|
|
346
346
|
"/src/unstable-core-do-not-import/router.ts"
|
|
347
347
|
],
|
|
348
|
-
"percent": 1.
|
|
348
|
+
"percent": 1.38,
|
|
349
349
|
"reduction": 0
|
|
350
350
|
},
|
|
351
351
|
{
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"dependents": [
|
|
360
360
|
"/src/adapters/fetch/index.ts"
|
|
361
361
|
],
|
|
362
|
-
"percent": 1.
|
|
362
|
+
"percent": 1.33,
|
|
363
363
|
"reduction": 2.48
|
|
364
364
|
},
|
|
365
365
|
{
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
"dependents": [
|
|
374
374
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
375
375
|
],
|
|
376
|
-
"percent": 1.
|
|
376
|
+
"percent": 1.26,
|
|
377
377
|
"reduction": 5.53
|
|
378
378
|
},
|
|
379
379
|
{
|
|
@@ -391,10 +391,10 @@
|
|
|
391
391
|
"removedExports": [],
|
|
392
392
|
"dependents": [
|
|
393
393
|
"/src/unstable-core-do-not-import.ts",
|
|
394
|
-
"/src/unstable-core-do-not-import/
|
|
395
|
-
"/src/unstable-core-do-not-import/
|
|
394
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts",
|
|
395
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
396
396
|
],
|
|
397
|
-
"percent": 1.
|
|
397
|
+
"percent": 1.24,
|
|
398
398
|
"reduction": 18.54
|
|
399
399
|
},
|
|
400
400
|
{
|
|
@@ -409,15 +409,15 @@
|
|
|
409
409
|
"removedExports": [],
|
|
410
410
|
"dependents": [
|
|
411
411
|
"/src/unstable-core-do-not-import.ts",
|
|
412
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
413
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
414
412
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
415
413
|
"/src/unstable-core-do-not-import/router.ts",
|
|
414
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
415
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
416
416
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
417
417
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
418
418
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
419
419
|
],
|
|
420
|
-
"percent": 1.
|
|
420
|
+
"percent": 1.22,
|
|
421
421
|
"reduction": 4.23
|
|
422
422
|
},
|
|
423
423
|
{
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
"dependents": [
|
|
433
433
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
434
434
|
],
|
|
435
|
-
"percent": 1.
|
|
435
|
+
"percent": 1.14,
|
|
436
436
|
"reduction": 4.03
|
|
437
437
|
},
|
|
438
438
|
{
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
"dependents": [
|
|
447
447
|
"/src/unstable-core-do-not-import/stream/jsonl.ts"
|
|
448
448
|
],
|
|
449
|
-
"percent": 1.
|
|
449
|
+
"percent": 1.1,
|
|
450
450
|
"reduction": 27.46
|
|
451
451
|
},
|
|
452
452
|
{
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
"dependents": [
|
|
461
461
|
"/src/adapters/fastify/index.ts"
|
|
462
462
|
],
|
|
463
|
-
"percent": 1.
|
|
463
|
+
"percent": 1.05,
|
|
464
464
|
"reduction": 30.2
|
|
465
465
|
},
|
|
466
466
|
{
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
],
|
|
473
473
|
"removedExports": [],
|
|
474
474
|
"dependents": [],
|
|
475
|
-
"percent": 1
|
|
475
|
+
"percent": 1,
|
|
476
476
|
"reduction": 19.62
|
|
477
477
|
},
|
|
478
478
|
{
|
|
@@ -517,8 +517,8 @@
|
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
"id": "/src/unstable-core-do-not-import/stream/utils/withPing.ts",
|
|
520
|
-
"size":
|
|
521
|
-
"origSize":
|
|
520
|
+
"size": 1165,
|
|
521
|
+
"origSize": 1293,
|
|
522
522
|
"renderedExports": [
|
|
523
523
|
"PING_SYM",
|
|
524
524
|
"withPing"
|
|
@@ -527,8 +527,8 @@
|
|
|
527
527
|
"dependents": [
|
|
528
528
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
529
529
|
],
|
|
530
|
-
"percent": 0.
|
|
531
|
-
"reduction":
|
|
530
|
+
"percent": 0.69,
|
|
531
|
+
"reduction": 9.9
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
534
|
"id": "/src/adapters/fastify/fastifyRequestHandler.ts",
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
"/src/unstable-core-do-not-import.ts",
|
|
559
559
|
"/src/unstable-core-do-not-import/http/contentType.ts"
|
|
560
560
|
],
|
|
561
|
-
"percent": 0.
|
|
561
|
+
"percent": 0.65,
|
|
562
562
|
"reduction": 15.08
|
|
563
563
|
},
|
|
564
564
|
{
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
"dependents": [
|
|
604
604
|
"/src/observable/index.ts"
|
|
605
605
|
],
|
|
606
|
-
"percent": 0.
|
|
606
|
+
"percent": 0.57,
|
|
607
607
|
"reduction": 32.89
|
|
608
608
|
},
|
|
609
609
|
{
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
"/src/unstable-core-do-not-import.ts",
|
|
633
633
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
634
634
|
],
|
|
635
|
-
"percent": 0.
|
|
635
|
+
"percent": 0.46,
|
|
636
636
|
"reduction": 44.13
|
|
637
637
|
},
|
|
638
638
|
{
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
],
|
|
646
646
|
"removedExports": [],
|
|
647
647
|
"dependents": [],
|
|
648
|
-
"percent": 0.
|
|
648
|
+
"percent": 0.45,
|
|
649
649
|
"reduction": 56.66
|
|
650
650
|
},
|
|
651
651
|
{
|
|
@@ -661,19 +661,19 @@
|
|
|
661
661
|
"reduction": 66.61
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
|
-
"id": "/src/unstable-core-do-not-import/stream/utils/
|
|
665
|
-
"size":
|
|
666
|
-
"origSize":
|
|
664
|
+
"id": "/src/unstable-core-do-not-import/stream/utils/timerResource.ts",
|
|
665
|
+
"size": 646,
|
|
666
|
+
"origSize": 642,
|
|
667
667
|
"renderedExports": [
|
|
668
668
|
"disposablePromiseTimerResult",
|
|
669
|
-
"
|
|
669
|
+
"timerResource"
|
|
670
670
|
],
|
|
671
671
|
"removedExports": [],
|
|
672
672
|
"dependents": [
|
|
673
673
|
"/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
|
|
674
674
|
"/src/unstable-core-do-not-import/stream/utils/withPing.ts"
|
|
675
675
|
],
|
|
676
|
-
"percent": 0.
|
|
676
|
+
"percent": 0.38,
|
|
677
677
|
"reduction": 0
|
|
678
678
|
},
|
|
679
679
|
{
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
{
|
|
710
710
|
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
711
711
|
"size": 343,
|
|
712
|
-
"origSize":
|
|
712
|
+
"origSize": 3284,
|
|
713
713
|
"renderedExports": [
|
|
714
714
|
"isServerDefault"
|
|
715
715
|
],
|
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
720
720
|
],
|
|
721
721
|
"percent": 0.2,
|
|
722
|
-
"reduction": 89.
|
|
722
|
+
"reduction": 89.56
|
|
723
723
|
},
|
|
724
724
|
{
|
|
725
725
|
"id": "/src/unstable-core-do-not-import/stream/utils/createDeferred.ts",
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
"dependents": [
|
|
748
748
|
"/src/unstable-core-do-not-import.ts"
|
|
749
749
|
],
|
|
750
|
-
"percent": 0.
|
|
750
|
+
"percent": 0.16,
|
|
751
751
|
"reduction": 68.45
|
|
752
752
|
},
|
|
753
753
|
{
|
|
@@ -759,12 +759,12 @@
|
|
|
759
759
|
],
|
|
760
760
|
"removedExports": [],
|
|
761
761
|
"dependents": [
|
|
762
|
-
"/src/vendor/unpromise/unpromise.ts",
|
|
763
762
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
763
|
+
"/src/vendor/unpromise/unpromise.ts",
|
|
764
764
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
765
765
|
"/src/adapters/next-app-dir/redirect.ts"
|
|
766
766
|
],
|
|
767
|
-
"percent": 0.
|
|
767
|
+
"percent": 0.13,
|
|
768
768
|
"reduction": 13.36
|
|
769
769
|
},
|
|
770
770
|
{
|
|
@@ -827,18 +827,6 @@
|
|
|
827
827
|
"percent": 0.04,
|
|
828
828
|
"reduction": 93.9
|
|
829
829
|
},
|
|
830
|
-
{
|
|
831
|
-
"id": "/src/http.ts",
|
|
832
|
-
"size": 0,
|
|
833
|
-
"origSize": 37,
|
|
834
|
-
"renderedExports": [],
|
|
835
|
-
"removedExports": [],
|
|
836
|
-
"dependents": [
|
|
837
|
-
"/src/adapters/ws.ts"
|
|
838
|
-
],
|
|
839
|
-
"percent": 0,
|
|
840
|
-
"reduction": 100
|
|
841
|
-
},
|
|
842
830
|
{
|
|
843
831
|
"id": "/src/index.ts",
|
|
844
832
|
"size": 0,
|
|
@@ -850,19 +838,21 @@
|
|
|
850
838
|
"reduction": 100
|
|
851
839
|
},
|
|
852
840
|
{
|
|
853
|
-
"id": "/src/
|
|
841
|
+
"id": "/src/http.ts",
|
|
854
842
|
"size": 0,
|
|
855
|
-
"origSize":
|
|
843
|
+
"origSize": 37,
|
|
856
844
|
"renderedExports": [],
|
|
857
845
|
"removedExports": [],
|
|
858
|
-
"dependents": [
|
|
846
|
+
"dependents": [
|
|
847
|
+
"/src/adapters/ws.ts"
|
|
848
|
+
],
|
|
859
849
|
"percent": 0,
|
|
860
850
|
"reduction": 100
|
|
861
851
|
},
|
|
862
852
|
{
|
|
863
|
-
"id": "/src/
|
|
853
|
+
"id": "/src/rpc.ts",
|
|
864
854
|
"size": 0,
|
|
865
|
-
"origSize":
|
|
855
|
+
"origSize": 36,
|
|
866
856
|
"renderedExports": [],
|
|
867
857
|
"removedExports": [],
|
|
868
858
|
"dependents": [],
|
|
@@ -877,8 +867,8 @@
|
|
|
877
867
|
"removedExports": [],
|
|
878
868
|
"dependents": [
|
|
879
869
|
"/src/adapters/express.ts",
|
|
880
|
-
"/src/adapters/standalone.ts",
|
|
881
870
|
"/src/adapters/next.ts",
|
|
871
|
+
"/src/adapters/standalone.ts",
|
|
882
872
|
"/src/adapters/ws.ts",
|
|
883
873
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
884
874
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
@@ -887,6 +877,16 @@
|
|
|
887
877
|
"percent": 0,
|
|
888
878
|
"reduction": 100
|
|
889
879
|
},
|
|
880
|
+
{
|
|
881
|
+
"id": "/src/shared.ts",
|
|
882
|
+
"size": 0,
|
|
883
|
+
"origSize": 653,
|
|
884
|
+
"renderedExports": [],
|
|
885
|
+
"removedExports": [],
|
|
886
|
+
"dependents": [],
|
|
887
|
+
"percent": 0,
|
|
888
|
+
"reduction": 100
|
|
889
|
+
},
|
|
890
890
|
{
|
|
891
891
|
"id": "/src/adapters/next-app-dir.ts",
|
|
892
892
|
"size": 0,
|
|
@@ -919,16 +919,6 @@
|
|
|
919
919
|
"percent": 0,
|
|
920
920
|
"reduction": 100
|
|
921
921
|
},
|
|
922
|
-
{
|
|
923
|
-
"id": "/src/adapters/fetch/index.ts",
|
|
924
|
-
"size": 0,
|
|
925
|
-
"origSize": 64,
|
|
926
|
-
"renderedExports": [],
|
|
927
|
-
"removedExports": [],
|
|
928
|
-
"dependents": [],
|
|
929
|
-
"percent": 0,
|
|
930
|
-
"reduction": 100
|
|
931
|
-
},
|
|
932
922
|
{
|
|
933
923
|
"id": "/src/adapters/node-http/index.ts",
|
|
934
924
|
"size": 0,
|
|
@@ -937,13 +927,23 @@
|
|
|
937
927
|
"removedExports": [],
|
|
938
928
|
"dependents": [
|
|
939
929
|
"/src/adapters/express.ts",
|
|
940
|
-
"/src/adapters/standalone.ts",
|
|
941
930
|
"/src/adapters/next.ts",
|
|
931
|
+
"/src/adapters/standalone.ts",
|
|
942
932
|
"/src/adapters/ws.ts",
|
|
943
933
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
944
934
|
],
|
|
945
935
|
"percent": 0,
|
|
946
936
|
"reduction": 100
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
940
|
+
"size": 0,
|
|
941
|
+
"origSize": 64,
|
|
942
|
+
"renderedExports": [],
|
|
943
|
+
"removedExports": [],
|
|
944
|
+
"dependents": [],
|
|
945
|
+
"percent": 0,
|
|
946
|
+
"reduction": 100
|
|
947
947
|
}
|
|
948
948
|
],
|
|
949
949
|
"moduleCount": 62
|
package/dist/http.js
CHANGED
|
@@ -6,7 +6,7 @@ var contentTypeParsers = require('./unstable-core-do-not-import/http/contentType
|
|
|
6
6
|
var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
|
|
7
7
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
8
8
|
require('./vendor/unpromise/unpromise.js');
|
|
9
|
-
require('./unstable-core-do-not-import/stream/utils/
|
|
9
|
+
require('./unstable-core-do-not-import/stream/utils/timerResource.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
package/dist/http.mjs
CHANGED
|
@@ -4,4 +4,4 @@ export { octetInputParser } from './unstable-core-do-not-import/http/contentType
|
|
|
4
4
|
export { resolveResponse } from './unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
5
5
|
import './unstable-core-do-not-import/rootConfig.mjs';
|
|
6
6
|
import './vendor/unpromise/unpromise.mjs';
|
|
7
|
-
import './unstable-core-do-not-import/stream/utils/
|
|
7
|
+
import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.j
|
|
|
5
5
|
var TRPCError = require('./unstable-core-do-not-import/error/TRPCError.js');
|
|
6
6
|
require('./vendor/unpromise/unpromise.js');
|
|
7
7
|
var tracked = require('./unstable-core-do-not-import/stream/tracked.js');
|
|
8
|
-
require('./unstable-core-do-not-import/stream/utils/
|
|
8
|
+
require('./unstable-core-do-not-import/stream/utils/timerResource.js');
|
|
9
9
|
var transformer = require('./unstable-core-do-not-import/transformer.js');
|
|
10
10
|
var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
|
|
11
11
|
var middleware = require('./unstable-core-do-not-import/middleware.js');
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape
|
|
|
3
3
|
export { TRPCError, getTRPCErrorFromUnknown } from './unstable-core-do-not-import/error/TRPCError.mjs';
|
|
4
4
|
import './vendor/unpromise/unpromise.mjs';
|
|
5
5
|
export { isTrackedEnvelope, sse, tracked } from './unstable-core-do-not-import/stream/tracked.mjs';
|
|
6
|
-
import './unstable-core-do-not-import/stream/utils/
|
|
6
|
+
import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
|
|
7
7
|
export { transformTRPCResponse } from './unstable-core-do-not-import/transformer.mjs';
|
|
8
8
|
export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
|
|
9
9
|
export { experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware } from './unstable-core-do-not-import/middleware.mjs';
|
package/dist/rpc.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
5
|
require('./vendor/unpromise/unpromise.js');
|
|
6
|
-
require('./unstable-core-do-not-import/stream/utils/
|
|
6
|
+
require('./unstable-core-do-not-import/stream/utils/timerResource.js');
|
|
7
7
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
8
8
|
|
|
9
9
|
|
package/dist/rpc.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
3
|
import './vendor/unpromise/unpromise.mjs';
|
|
4
|
-
import './unstable-core-do-not-import/stream/utils/
|
|
4
|
+
import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
|
|
5
5
|
import './unstable-core-do-not-import/rootConfig.mjs';
|
package/dist/shared.js
CHANGED
|
@@ -3,7 +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
|
require('./vendor/unpromise/unpromise.js');
|
|
6
|
-
require('./unstable-core-do-not-import/stream/utils/
|
|
6
|
+
require('./unstable-core-do-not-import/stream/utils/timerResource.js');
|
|
7
7
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
8
8
|
|
|
9
9
|
|
package/dist/shared.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
3
|
import './vendor/unpromise/unpromise.mjs';
|
|
4
|
-
import './unstable-core-do-not-import/stream/utils/
|
|
4
|
+
import './unstable-core-do-not-import/stream/utils/timerResource.mjs';
|
|
5
5
|
import './unstable-core-do-not-import/rootConfig.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveResponse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/resolveResponse.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,WAAW,CAAC;AAanB,OAAO,KAAK,EACV,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,SAAS,CAAC;AAqCjB,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;AA2ID,wBAAsB,eAAe,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"resolveResponse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/resolveResponse.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,WAAW,CAAC;AAanB,OAAO,KAAK,EACV,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,SAAS,CAAC;AAqCjB,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;AA2ID,wBAAsB,eAAe,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,QAAQ,CAAC,CAufnB"}
|
|
@@ -362,7 +362,6 @@ async function resolveResponse(opts) {
|
|
|
362
362
|
const stream = sse.sseStreamProducer({
|
|
363
363
|
...config.sse,
|
|
364
364
|
data: iterable,
|
|
365
|
-
abortCtrl: result?.abortCtrl ?? new AbortController(),
|
|
366
365
|
serialize: (v)=>config.transformer.output.serialize(v),
|
|
367
366
|
formatError (errorOpts) {
|
|
368
367
|
const error = TRPCError.getTRPCErrorFromUnknown(errorOpts.error);
|
|
@@ -360,7 +360,6 @@ async function resolveResponse(opts) {
|
|
|
360
360
|
const stream = sseStreamProducer({
|
|
361
361
|
...config.sse,
|
|
362
362
|
data: iterable,
|
|
363
|
-
abortCtrl: result?.abortCtrl ?? new AbortController(),
|
|
364
363
|
serialize: (v)=>config.transformer.output.serialize(v),
|
|
365
364
|
formatError (errorOpts) {
|
|
366
365
|
const error = getTRPCErrorFromUnknown(errorOpts.error);
|