@trpc/server 11.0.0-alpha-tmp-issues-5851-take-two.495 → 11.0.0-alpha-tmp-issues-5851-take-two.499
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 +35 -35
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +1 -0
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +1 -0
- 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/package.json +2 -2
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +1 -0
- package/src/unstable-core-do-not-import/rootConfig.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 27.
|
|
2
|
+
"bundleSize": 131453,
|
|
3
|
+
"bundleOrigSize": 180819,
|
|
4
|
+
"bundleReduction": 27.3,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"/src/unstable-core-do-not-import.ts",
|
|
18
18
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
19
19
|
],
|
|
20
|
-
"percent": 13.
|
|
20
|
+
"percent": 13.19,
|
|
21
21
|
"reduction": 4.22
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
25
|
-
"size":
|
|
26
|
-
"origSize":
|
|
25
|
+
"size": 17157,
|
|
26
|
+
"origSize": 16294,
|
|
27
27
|
"renderedExports": [
|
|
28
28
|
"resolveResponse"
|
|
29
29
|
],
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependents": [
|
|
32
32
|
"/src/unstable-core-do-not-import.ts"
|
|
33
33
|
],
|
|
34
|
-
"percent": 13,
|
|
34
|
+
"percent": 13.05,
|
|
35
35
|
"reduction": 0
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependents": [
|
|
47
47
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
48
48
|
],
|
|
49
|
-
"percent": 10.
|
|
49
|
+
"percent": 10.97,
|
|
50
50
|
"reduction": 0
|
|
51
51
|
},
|
|
52
52
|
{
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"/src/unstable-core-do-not-import.ts",
|
|
80
80
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
81
81
|
],
|
|
82
|
-
"percent": 4.
|
|
82
|
+
"percent": 4.85,
|
|
83
83
|
"reduction": 39.77
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"/src/unstable-core-do-not-import.ts",
|
|
95
95
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
96
96
|
],
|
|
97
|
-
"percent": 4.
|
|
97
|
+
"percent": 4.81,
|
|
98
98
|
"reduction": 60.06
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"dependents": [
|
|
162
162
|
"/src/adapters/next-app-dir.ts"
|
|
163
163
|
],
|
|
164
|
-
"percent": 2.
|
|
164
|
+
"percent": 2.38,
|
|
165
165
|
"reduction": 23.5
|
|
166
166
|
},
|
|
167
167
|
{
|
|
@@ -423,9 +423,9 @@
|
|
|
423
423
|
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
424
424
|
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
425
425
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
426
|
-
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
427
426
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
428
427
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
428
|
+
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
429
429
|
"/src/unstable-core-do-not-import/stream/jsonl.ts"
|
|
430
430
|
],
|
|
431
431
|
"percent": 0.91,
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
{
|
|
599
599
|
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
600
600
|
"size": 343,
|
|
601
|
-
"origSize":
|
|
601
|
+
"origSize": 3235,
|
|
602
602
|
"renderedExports": [
|
|
603
603
|
"isServerDefault"
|
|
604
604
|
],
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
609
609
|
],
|
|
610
610
|
"percent": 0.26,
|
|
611
|
-
"reduction": 89.
|
|
611
|
+
"reduction": 89.4
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
"id": "/src/adapters/express.ts",
|
|
@@ -731,16 +731,6 @@
|
|
|
731
731
|
"percent": 0,
|
|
732
732
|
"reduction": 100
|
|
733
733
|
},
|
|
734
|
-
{
|
|
735
|
-
"id": "/src/rpc.ts",
|
|
736
|
-
"size": 0,
|
|
737
|
-
"origSize": 36,
|
|
738
|
-
"renderedExports": [],
|
|
739
|
-
"removedExports": [],
|
|
740
|
-
"dependents": [],
|
|
741
|
-
"percent": 0,
|
|
742
|
-
"reduction": 100
|
|
743
|
-
},
|
|
744
734
|
{
|
|
745
735
|
"id": "/src/unstable-core-do-not-import.ts",
|
|
746
736
|
"size": 0,
|
|
@@ -764,6 +754,16 @@
|
|
|
764
754
|
"percent": 0,
|
|
765
755
|
"reduction": 100
|
|
766
756
|
},
|
|
757
|
+
{
|
|
758
|
+
"id": "/src/rpc.ts",
|
|
759
|
+
"size": 0,
|
|
760
|
+
"origSize": 36,
|
|
761
|
+
"renderedExports": [],
|
|
762
|
+
"removedExports": [],
|
|
763
|
+
"dependents": [],
|
|
764
|
+
"percent": 0,
|
|
765
|
+
"reduction": 100
|
|
766
|
+
},
|
|
767
767
|
{
|
|
768
768
|
"id": "/src/adapters/next-app-dir.ts",
|
|
769
769
|
"size": 0,
|
|
@@ -797,27 +797,27 @@
|
|
|
797
797
|
"reduction": 100
|
|
798
798
|
},
|
|
799
799
|
{
|
|
800
|
-
"id": "/src/adapters/
|
|
800
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
801
801
|
"size": 0,
|
|
802
|
-
"origSize":
|
|
802
|
+
"origSize": 64,
|
|
803
803
|
"renderedExports": [],
|
|
804
804
|
"removedExports": [],
|
|
805
|
-
"dependents": [
|
|
806
|
-
"/src/adapters/express.ts",
|
|
807
|
-
"/src/adapters/standalone.ts",
|
|
808
|
-
"/src/adapters/next.ts",
|
|
809
|
-
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
810
|
-
],
|
|
805
|
+
"dependents": [],
|
|
811
806
|
"percent": 0,
|
|
812
807
|
"reduction": 100
|
|
813
808
|
},
|
|
814
809
|
{
|
|
815
|
-
"id": "/src/adapters/
|
|
810
|
+
"id": "/src/adapters/node-http/index.ts",
|
|
816
811
|
"size": 0,
|
|
817
|
-
"origSize":
|
|
812
|
+
"origSize": 111,
|
|
818
813
|
"renderedExports": [],
|
|
819
814
|
"removedExports": [],
|
|
820
|
-
"dependents": [
|
|
815
|
+
"dependents": [
|
|
816
|
+
"/src/adapters/express.ts",
|
|
817
|
+
"/src/adapters/next.ts",
|
|
818
|
+
"/src/adapters/standalone.ts",
|
|
819
|
+
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
820
|
+
],
|
|
821
821
|
"percent": 0,
|
|
822
822
|
"reduction": 100
|
|
823
823
|
}
|
|
@@ -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,EA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-284,6 +284,7 @@ async function resolveResponse(opts) {
|
|
|
284
284
|
}
|
|
285
285
|
const dataAsIterable = observable.isObservable(data) ? observable.observableToAsyncIterable(data) : data;
|
|
286
286
|
const stream = sse.sseStreamProducer({
|
|
287
|
+
...router._def._config.experimental?.sseSubscriptions,
|
|
287
288
|
data: dataAsIterable,
|
|
288
289
|
serialize: (v)=>config.transformer.output.serialize(v)
|
|
289
290
|
});
|
|
@@ -282,6 +282,7 @@ async function resolveResponse(opts) {
|
|
|
282
282
|
}
|
|
283
283
|
const dataAsIterable = isObservable(data) ? observableToAsyncIterable(data) : data;
|
|
284
284
|
const stream = sseStreamProducer({
|
|
285
|
+
...router._def._config.experimental?.sseSubscriptions,
|
|
285
286
|
data: dataAsIterable,
|
|
286
287
|
serialize: (v)=>config.transformer.output.serialize(v)
|
|
287
288
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootConfig.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/rootConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,iBAAiB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAMmB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,SAAS;IAClD;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;;OAGG;IACH,cAAc,EAAE,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
|
|
3
|
-
"version": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-issues-5851-take-two.499+02e677611",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"funding": [
|
|
150
150
|
"https://trpc.io/sponsor"
|
|
151
151
|
],
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "02e67761124670c5ff27d174bfec6cfa5410a5ac"
|
|
153
153
|
}
|
|
@@ -380,6 +380,7 @@ export async function resolveResponse<TRouter extends AnyRouter>(
|
|
|
380
380
|
? observableToAsyncIterable(data)
|
|
381
381
|
: data;
|
|
382
382
|
const stream = sseStreamProducer({
|
|
383
|
+
...router._def._config.experimental?.sseSubscriptions,
|
|
383
384
|
data: dataAsIterable,
|
|
384
385
|
serialize: (v) => config.transformer.output.serialize(v),
|
|
385
386
|
});
|