@trpc/server 11.0.0-rc.560 → 11.0.0-rc.563

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/adapters/ws.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AASzB,OAAO,EAAS,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AActE,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAQlE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,CACpE,eAAe,EACf,EAAE,CAAC,SAAS,CACb,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC1D,IAAI,EAAE,yBAAyB,KAC5B,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/C,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,kBAAkB,CAAC,OAAO,EAAE,eAAe,CAAC,GAC1C,qBAAqB,CACnB,kBAAkB,CAAC,OAAO,CAAC,EAC3B,kBAAkB,CAAC,OAAO,CAAC,CAC5B,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,SAAS,IACrD,0BAA0B,CAAC,OAAO,CAAC,GAAG;IACpC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,OAAO,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MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,kBAAkB,CAAC,OAAO,EAAE,eAAe,CAAC,GAC1C,qBAAqB,CACnB,kBAAkB,CAAC,OAAO,CAAC,EAC3B,kBAAkB,CAAC,OAAO,CAAC,CAC5B,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,SAAS,IACrD,0BAA0B,CAAC,OAAO,CAAC,GAAG;IACpC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,OAAO,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAGJ,wBAAgB,sBAAsB,CAAC,OAAO,SAAS,SAAS,EAC9D,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,YAKV,EAAE,CAAC,SAAS,OAAO,eAAe,mBAsXzD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,EAAE,CAAC,SAAS,EACpB,MAAM,SAAS,EACf,UAAU,SAAQ,QAiCnB;AAED,wBAAgB,eAAe,CAAC,OAAO,SAAS,SAAS,EACvD,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC;;EAwCjC"}
@@ -1,7 +1,7 @@
1
1
  {
2
- "bundleSize": 136868,
3
- "bundleOrigSize": 183401,
4
- "bundleReduction": 25.37,
2
+ "bundleSize": 139519,
3
+ "bundleOrigSize": 186356,
4
+ "bundleReduction": 25.13,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
@@ -14,13 +14,13 @@
14
14
  "dependents": [
15
15
  "/src/unstable-core-do-not-import.ts"
16
16
  ],
17
- "percent": 13.47,
17
+ "percent": 13.22,
18
18
  "reduction": 0
19
19
  },
20
20
  {
21
21
  "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
22
22
  "size": 17567,
23
- "origSize": 18359,
23
+ "origSize": 18465,
24
24
  "renderedExports": [
25
25
  "isPromise",
26
26
  "jsonlStreamProducer",
@@ -31,13 +31,13 @@
31
31
  "/src/unstable-core-do-not-import.ts",
32
32
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
33
33
  ],
34
- "percent": 12.83,
35
- "reduction": 4.31
34
+ "percent": 12.59,
35
+ "reduction": 4.86
36
36
  },
37
37
  {
38
38
  "id": "/src/adapters/ws.ts",
39
39
  "size": 16285,
40
- "origSize": 15255,
40
+ "origSize": 15212,
41
41
  "renderedExports": [
42
42
  "getWSConnectionHandler",
43
43
  "handleKeepAlive",
@@ -47,9 +47,26 @@
47
47
  "dependents": [
48
48
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
49
49
  ],
50
- "percent": 11.9,
50
+ "percent": 11.67,
51
51
  "reduction": 0
52
52
  },
53
+ {
54
+ "id": "/src/unstable-core-do-not-import/stream/sse.ts",
55
+ "size": 9020,
56
+ "origSize": 10407,
57
+ "renderedExports": [
58
+ "sseStreamProducer",
59
+ "sseStreamConsumer",
60
+ "sseHeaders"
61
+ ],
62
+ "removedExports": [],
63
+ "dependents": [
64
+ "/src/unstable-core-do-not-import.ts",
65
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts"
66
+ ],
67
+ "percent": 6.47,
68
+ "reduction": 13.33
69
+ },
53
70
  {
54
71
  "id": "/src/unstable-core-do-not-import/http/contentType.ts",
55
72
  "size": 7688,
@@ -62,7 +79,7 @@
62
79
  "/src/unstable-core-do-not-import.ts",
63
80
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
64
81
  ],
65
- "percent": 5.62,
82
+ "percent": 5.51,
66
83
  "reduction": 0
67
84
  },
68
85
  {
@@ -80,26 +97,9 @@
80
97
  "/src/unstable-core-do-not-import.ts",
81
98
  "/src/unstable-core-do-not-import/initTRPC.ts"
82
99
  ],
83
- "percent": 4.69,
100
+ "percent": 4.6,
84
101
  "reduction": 40.09
85
102
  },
86
- {
87
- "id": "/src/unstable-core-do-not-import/stream/sse.ts",
88
- "size": 6386,
89
- "origSize": 7559,
90
- "renderedExports": [
91
- "sseStreamProducer",
92
- "sseStreamConsumer",
93
- "sseHeaders"
94
- ],
95
- "removedExports": [],
96
- "dependents": [
97
- "/src/unstable-core-do-not-import.ts",
98
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
99
- ],
100
- "percent": 4.67,
101
- "reduction": 15.52
102
- },
103
103
  {
104
104
  "id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
105
105
  "size": 5795,
@@ -112,7 +112,7 @@
112
112
  "/src/unstable-core-do-not-import.ts",
113
113
  "/src/unstable-core-do-not-import/initTRPC.ts"
114
114
  ],
115
- "percent": 4.23,
115
+ "percent": 4.15,
116
116
  "reduction": 64.74
117
117
  },
118
118
  {
@@ -126,13 +126,13 @@
126
126
  "dependents": [
127
127
  "/src/adapters/aws-lambda/index.ts"
128
128
  ],
129
- "percent": 3.96,
129
+ "percent": 3.88,
130
130
  "reduction": 11.38
131
131
  },
132
132
  {
133
133
  "id": "/src/observable/observable.ts",
134
- "size": 4116,
135
- "origSize": 4093,
134
+ "size": 4133,
135
+ "origSize": 4110,
136
136
  "renderedExports": [
137
137
  "isObservable",
138
138
  "observable",
@@ -141,12 +141,11 @@
141
141
  ],
142
142
  "removedExports": [],
143
143
  "dependents": [
144
- "/src/adapters/ws.ts",
145
144
  "/src/observable/index.ts",
146
145
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
147
146
  "/src/observable/operators.ts"
148
147
  ],
149
- "percent": 3.01,
148
+ "percent": 2.96,
150
149
  "reduction": 0
151
150
  },
152
151
  {
@@ -160,7 +159,7 @@
160
159
  "dependents": [
161
160
  "/src/adapters/next-app-dir.ts"
162
161
  ],
163
- "percent": 2.35,
162
+ "percent": 2.31,
164
163
  "reduction": 22.57
165
164
  },
166
165
  {
@@ -174,7 +173,7 @@
174
173
  "dependents": [
175
174
  "/src/adapters/node-http/index.ts"
176
175
  ],
177
- "percent": 2.09,
176
+ "percent": 2.05,
178
177
  "reduction": 6.07
179
178
  },
180
179
  {
@@ -190,7 +189,7 @@
190
189
  "dependents": [
191
190
  "/src/observable/index.ts"
192
191
  ],
193
- "percent": 2.01,
192
+ "percent": 1.98,
194
193
  "reduction": 0
195
194
  },
196
195
  {
@@ -210,7 +209,7 @@
210
209
  "/src/unstable-core-do-not-import/initTRPC.ts",
211
210
  "/src/unstable-core-do-not-import/router.ts"
212
211
  ],
213
- "percent": 2,
212
+ "percent": 1.97,
214
213
  "reduction": 45.94
215
214
  },
216
215
  {
@@ -224,7 +223,7 @@
224
223
  "dependents": [
225
224
  "/src/unstable-core-do-not-import.ts"
226
225
  ],
227
- "percent": 1.97,
226
+ "percent": 1.93,
228
227
  "reduction": 40.98
229
228
  },
230
229
  {
@@ -244,7 +243,7 @@
244
243
  "/src/unstable-core-do-not-import/initTRPC.ts",
245
244
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
246
245
  ],
247
- "percent": 1.92,
246
+ "percent": 1.88,
248
247
  "reduction": 55.78
249
248
  },
250
249
  {
@@ -260,7 +259,7 @@
260
259
  "/src/unstable-core-do-not-import.ts",
261
260
  "/src/unstable-core-do-not-import/router.ts"
262
261
  ],
263
- "percent": 1.7,
262
+ "percent": 1.67,
264
263
  "reduction": 0
265
264
  },
266
265
  {
@@ -274,7 +273,7 @@
274
273
  "dependents": [
275
274
  "/src/adapters/fetch/index.ts"
276
275
  ],
277
- "percent": 1.65,
276
+ "percent": 1.62,
278
277
  "reduction": 2.17
279
278
  },
280
279
  {
@@ -289,7 +288,7 @@
289
288
  "/src/adapters/node-http/index.ts",
290
289
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
291
290
  ],
292
- "percent": 1.6,
291
+ "percent": 1.57,
293
292
  "reduction": 13.79
294
293
  },
295
294
  {
@@ -303,7 +302,7 @@
303
302
  "dependents": [
304
303
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
305
304
  ],
306
- "percent": 1.5,
305
+ "percent": 1.47,
307
306
  "reduction": 5.79
308
307
  },
309
308
  {
@@ -317,7 +316,7 @@
317
316
  "dependents": [
318
317
  "/src/adapters/fastify/index.ts"
319
318
  ],
320
- "percent": 1.3,
319
+ "percent": 1.28,
321
320
  "reduction": 29.88
322
321
  },
323
322
  {
@@ -341,7 +340,7 @@
341
340
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
342
341
  "/src/unstable-core-do-not-import/stream/sse.ts"
343
342
  ],
344
- "percent": 1.27,
343
+ "percent": 1.24,
345
344
  "reduction": 19.47
346
345
  },
347
346
  {
@@ -353,7 +352,7 @@
353
352
  ],
354
353
  "removedExports": [],
355
354
  "dependents": [],
356
- "percent": 1.24,
355
+ "percent": 1.22,
357
356
  "reduction": 19.29
358
357
  },
359
358
  {
@@ -366,7 +365,7 @@
366
365
  ],
367
366
  "removedExports": [],
368
367
  "dependents": [],
369
- "percent": 1.18,
368
+ "percent": 1.15,
370
369
  "reduction": 27.47
371
370
  },
372
371
  {
@@ -378,7 +377,7 @@
378
377
  ],
379
378
  "removedExports": [],
380
379
  "dependents": [],
381
- "percent": 1.13,
380
+ "percent": 1.11,
382
381
  "reduction": 26.94
383
382
  },
384
383
  {
@@ -395,7 +394,7 @@
395
394
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
396
395
  "/src/unstable-core-do-not-import/error/getErrorShape.ts"
397
396
  ],
398
- "percent": 1.05,
397
+ "percent": 1.03,
399
398
  "reduction": 16.73
400
399
  },
401
400
  {
@@ -410,7 +409,7 @@
410
409
  "/src/unstable-core-do-not-import.ts",
411
410
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
412
411
  ],
413
- "percent": 0.95,
412
+ "percent": 0.93,
414
413
  "reduction": 55.21
415
414
  },
416
415
  {
@@ -432,17 +431,17 @@
432
431
  "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
433
432
  "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
434
433
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
435
- "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
436
434
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
437
435
  "/src/unstable-core-do-not-import/transformer.ts",
438
436
  "/src/unstable-core-do-not-import/middleware.ts",
439
437
  "/src/unstable-core-do-not-import/router.ts",
438
+ "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
440
439
  "/src/unstable-core-do-not-import/http/contentType.ts",
441
440
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
442
441
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
443
442
  "/src/unstable-core-do-not-import/stream/sse.ts"
444
443
  ],
445
- "percent": 0.87,
444
+ "percent": 0.85,
446
445
  "reduction": 28.34
447
446
  },
448
447
  {
@@ -457,7 +456,7 @@
457
456
  "/src/adapters/fastify/index.ts",
458
457
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
459
458
  ],
460
- "percent": 0.83,
459
+ "percent": 0.81,
461
460
  "reduction": 47.59
462
461
  },
463
462
  {
@@ -473,7 +472,7 @@
473
472
  "/src/unstable-core-do-not-import.ts",
474
473
  "/src/unstable-core-do-not-import/http/contentType.ts"
475
474
  ],
476
- "percent": 0.81,
475
+ "percent": 0.79,
477
476
  "reduction": 15.08
478
477
  },
479
478
  {
@@ -487,7 +486,7 @@
487
486
  "dependents": [
488
487
  "/src/unstable-core-do-not-import.ts"
489
488
  ],
490
- "percent": 0.77,
489
+ "percent": 0.76,
491
490
  "reduction": 0
492
491
  },
493
492
  {
@@ -504,7 +503,7 @@
504
503
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
505
504
  "/src/adapters/next-app-dir/rethrowNextErrors.ts"
506
505
  ],
507
- "percent": 0.72,
506
+ "percent": 0.71,
508
507
  "reduction": 13.65
509
508
  },
510
509
  {
@@ -522,7 +521,7 @@
522
521
  "/src/unstable-core-do-not-import/stream/sse.ts",
523
522
  "/src/unstable-core-do-not-import/stream/utils/createReadableStream.ts"
524
523
  ],
525
- "percent": 0.72,
524
+ "percent": 0.7,
526
525
  "reduction": 15.69
527
526
  },
528
527
  {
@@ -539,7 +538,7 @@
539
538
  "/src/unstable-core-do-not-import.ts",
540
539
  "/src/unstable-core-do-not-import/stream/sse.ts"
541
540
  ],
542
- "percent": 0.57,
541
+ "percent": 0.56,
543
542
  "reduction": 44.37
544
543
  },
545
544
  {
@@ -551,7 +550,7 @@
551
550
  ],
552
551
  "removedExports": [],
553
552
  "dependents": [],
554
- "percent": 0.55,
553
+ "percent": 0.54,
555
554
  "reduction": 66.9
556
555
  },
557
556
  {
@@ -567,7 +566,7 @@
567
566
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
568
567
  "/src/unstable-core-do-not-import/stream/sse.ts"
569
568
  ],
570
- "percent": 0.52,
569
+ "percent": 0.51,
571
570
  "reduction": 21.32
572
571
  },
573
572
  {
@@ -581,7 +580,7 @@
581
580
  "dependents": [
582
581
  "/src/unstable-core-do-not-import.ts"
583
582
  ],
584
- "percent": 0.49,
583
+ "percent": 0.48,
585
584
  "reduction": 0.6
586
585
  },
587
586
  {
@@ -596,7 +595,7 @@
596
595
  "/src/unstable-core-do-not-import.ts",
597
596
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
598
597
  ],
599
- "percent": 0.46,
598
+ "percent": 0.45,
600
599
  "reduction": 43.49
601
600
  },
602
601
  {
@@ -609,7 +608,7 @@
609
608
  ],
610
609
  "removedExports": [],
611
610
  "dependents": [],
612
- "percent": 0.38,
611
+ "percent": 0.37,
613
612
  "reduction": 67.09
614
613
  },
615
614
  {
@@ -678,7 +677,7 @@
678
677
  "dependents": [
679
678
  "/src/unstable-core-do-not-import.ts"
680
679
  ],
681
- "percent": 0.12,
680
+ "percent": 0.11,
682
681
  "reduction": 14.13
683
682
  },
684
683
  {
@@ -725,9 +724,9 @@
725
724
  "reduction": 100
726
725
  },
727
726
  {
728
- "id": "/src/rpc.ts",
727
+ "id": "/src/index.ts",
729
728
  "size": 0,
730
- "origSize": 36,
729
+ "origSize": 32,
731
730
  "renderedExports": [],
732
731
  "removedExports": [],
733
732
  "dependents": [],
@@ -735,9 +734,9 @@
735
734
  "reduction": 100
736
735
  },
737
736
  {
738
- "id": "/src/index.ts",
737
+ "id": "/src/rpc.ts",
739
738
  "size": 0,
740
- "origSize": 32,
739
+ "origSize": 36,
741
740
  "renderedExports": [],
742
741
  "removedExports": [],
743
742
  "dependents": [],
@@ -780,7 +779,7 @@
780
779
  {
781
780
  "id": "/src/observable/index.ts",
782
781
  "size": 0,
783
- "origSize": 293,
782
+ "origSize": 320,
784
783
  "renderedExports": [],
785
784
  "removedExports": [],
786
785
  "dependents": [
@@ -817,8 +816,8 @@
817
816
  "removedExports": [],
818
817
  "dependents": [
819
818
  "/src/adapters/express.ts",
820
- "/src/adapters/next.ts",
821
819
  "/src/adapters/standalone.ts",
820
+ "/src/adapters/next.ts",
822
821
  "/src/adapters/fastify/fastifyRequestHandler.ts"
823
822
  ],
824
823
  "percent": 0,
@@ -1,5 +1,5 @@
1
1
  export type { inferObservableValue } from './observable';
2
- export { isObservable, observable, observableToPromise } from './observable';
2
+ export { isObservable, observable, observableToAsyncIterable, observableToPromise } from './observable';
3
3
  export { map, share, tap } from './operators';
4
4
  export type { Observable, Observer, TeardownLogic, Unsubscribable, UnsubscribeFn, } from './types';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observable/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EACV,UAAU,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,GACd,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observable/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxG,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EACV,UAAU,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,GACd,MAAM,SAAS,CAAC"}
@@ -7,6 +7,7 @@ var operators = require('./operators.js');
7
7
 
8
8
  exports.isObservable = observable.isObservable;
9
9
  exports.observable = observable.observable;
10
+ exports.observableToAsyncIterable = observable.observableToAsyncIterable;
10
11
  exports.observableToPromise = observable.observableToPromise;
11
12
  exports.map = operators.map;
12
13
  exports.share = operators.share;
@@ -1,2 +1,2 @@
1
- export { isObservable, observable, observableToPromise } from './observable.mjs';
1
+ export { isObservable, observable, observableToAsyncIterable, observableToPromise } from './observable.mjs';
2
2
  export { map, share, tap } from './operators.mjs';
@@ -7,5 +7,6 @@ export declare function isObservable(x: unknown): x is Observable<unknown, unkno
7
7
  export declare function observable<TValue, TError = unknown>(subscribe: (observer: Observer<TValue, TError>) => TeardownLogic): Observable<TValue, TError>;
8
8
  /** @internal */
9
9
  export declare function observableToPromise<TValue>(observable: Observable<TValue, unknown>): Promise<TValue>;
10
+ /** @internal */
10
11
  export declare function observableToAsyncIterable<TValue>(observable: Observable<TValue, unknown>): AsyncIterable<TValue>;
11
12
  //# sourceMappingURL=observable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/observable/observable.ts"],"names":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AM,EAAE,MAAM,GAAG,OAAO,EACjD,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,aAAa,GAC/D,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CA6D5B;AAMD,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,MAAM,EACxC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,mBA+BxC;AA6BD,gBAAgB;AAChB,wBAAgB,yBAAyB,CAAC,MAAM,EAC9C,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,GACtC,aAAa,CAAC,MAAM,CAAC,CA+BvB"}
@@ -119,7 +119,7 @@ function pipeReducer(prev, fn) {
119
119
  }
120
120
  });
121
121
  }
122
- function observableToAsyncIterable(observable) {
122
+ /** @internal */ function observableToAsyncIterable(observable) {
123
123
  const stream = observableToReadableStream(observable);
124
124
  const reader = stream.getReader();
125
125
  const iterator = {
@@ -117,7 +117,7 @@ function pipeReducer(prev, fn) {
117
117
  }
118
118
  });
119
119
  }
120
- function observableToAsyncIterable(observable) {
120
+ /** @internal */ function observableToAsyncIterable(observable) {
121
121
  const stream = observableToReadableStream(observable);
122
122
  const reader = stream.getReader();
123
123
  const iterator = {
@@ -97,6 +97,9 @@ export declare function jsonlStreamConsumer<THead>(opts: {
97
97
  formatError?: (opts: {
98
98
  error: unknown;
99
99
  }) => Error;
100
+ /**
101
+ * This `AbortController` will be triggered when there are no more listeners to the stream.
102
+ */
100
103
  abortController: AbortController | null;
101
104
  }): Promise<readonly [Awaited<THead>, {
102
105
  readonly controllers: Map<ChunkIndex, {
@@ -1 +1 @@
1
- {"version":3,"file":"jsonl.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/stream/jsonl.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,2BAA2B,CAAC,UAAU,CAAC,CAAC;C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W,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC;IAClD;;OAEG;IACH,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;CACzC;;;kBAmBa,OAAO;;IA6MpB"}
@@ -1,4 +1,4 @@
1
- import type { ConsumerOnError } from './jsonl';
1
+ import type { MaybePromise } from '../types';
2
2
  import type { inferTrackedOutput } from './tracked';
3
3
  type Serialize = (value: any) => any;
4
4
  type Deserialize = (value: any) => any;
@@ -43,22 +43,41 @@ export interface SSEStreamProducerOptions {
43
43
  * @see https://html.spec.whatwg.org/multipage/server-sent-events.html
44
44
  */
45
45
  export declare function sseStreamProducer(opts: SSEStreamProducerOptions): ReadableStream<string>;
46
- type ConsumerStreamResult<TData> = {
47
- ok: true;
46
+ interface ConsumerStreamResultBase {
47
+ eventSource: EventSource;
48
+ }
49
+ interface ConsumerStreamResultData<TData> extends ConsumerStreamResultBase {
50
+ type: 'data';
48
51
  data: inferTrackedOutput<TData>;
49
- } | {
50
- ok: false;
52
+ }
53
+ interface ConsumerStreamResultError extends ConsumerStreamResultBase {
54
+ type: 'error';
51
55
  error: unknown;
52
- };
56
+ }
57
+ interface ConsumerStreamResultOpened extends ConsumerStreamResultBase {
58
+ type: 'opened';
59
+ }
60
+ interface ConsumerStreamResultConnecting extends ConsumerStreamResultBase {
61
+ type: 'connecting';
62
+ }
63
+ type ConsumerStreamResult<TData> = ConsumerStreamResultData<TData> | ConsumerStreamResultError | ConsumerStreamResultOpened | ConsumerStreamResultConnecting;
64
+ export interface SSEStreamConsumerOptions {
65
+ url: () => MaybePromise<string>;
66
+ init: () => MaybePromise<EventSourceInit> | undefined;
67
+ signal: AbortSignal;
68
+ shouldRecreateOnError?: (opts: {
69
+ type: 'event';
70
+ event: Event;
71
+ } | {
72
+ type: 'serialized-error';
73
+ error: unknown;
74
+ }) => boolean | Promise<boolean>;
75
+ deserialize?: Deserialize;
76
+ }
53
77
  /**
54
78
  * @see https://html.spec.whatwg.org/multipage/server-sent-events.html
55
79
  */
56
- export declare function sseStreamConsumer<TData>(opts: {
57
- from: Pick<EventSource, 'addEventListener' | 'readyState'>;
58
- onError?: ConsumerOnError;
59
- deserialize?: Deserialize;
60
- tryHandleError?: (error: Event) => Promise<boolean>;
61
- }): AsyncIterable<ConsumerStreamResult<TData>>;
80
+ export declare function sseStreamConsumer<TData>(opts: SSEStreamConsumerOptions): AsyncIterable<ConsumerStreamResult<TData>>;
62
81
  export declare const sseHeaders: {
63
82
  readonly 'Content-Type': "text/event-stream";
64
83
  readonly 'Cache-Control': "no-cache, no-transform";
@@ -1 +1 @@
1
- {"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/stream/sse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAKpD,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AACrC,KAAK,WAAW,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CA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