@trpc/server 11.0.0-rc.744 → 11.0.0-rc.745
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 +20 -20
- package/dist/unstable-core-do-not-import/stream/jsonl.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/stream/jsonl.js +7 -0
- package/dist/unstable-core-do-not-import/stream/jsonl.mjs +7 -0
- package/package.json +2 -2
- package/src/unstable-core-do-not-import/stream/jsonl.ts +5 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 13.
|
|
2
|
+
"bundleSize": 195513,
|
|
3
|
+
"bundleOrigSize": 226893,
|
|
4
|
+
"bundleReduction": 13.83,
|
|
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": 10.
|
|
17
|
+
"percent": 10.78,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
22
|
-
"size":
|
|
23
|
-
"origSize":
|
|
22
|
+
"size": 20609,
|
|
23
|
+
"origSize": 17588,
|
|
24
24
|
"renderedExports": [
|
|
25
25
|
"isPromise",
|
|
26
26
|
"jsonlStreamProducer",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"/src/unstable-core-do-not-import.ts",
|
|
32
32
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
33
33
|
],
|
|
34
|
-
"percent": 10.
|
|
34
|
+
"percent": 10.54,
|
|
35
35
|
"reduction": 0
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependents": [
|
|
48
48
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
49
49
|
],
|
|
50
|
-
"percent": 10.
|
|
50
|
+
"percent": 10.32,
|
|
51
51
|
"reduction": 0
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"/src/unstable-core-do-not-import.ts",
|
|
107
107
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
108
108
|
],
|
|
109
|
-
"percent": 3.
|
|
109
|
+
"percent": 3.97,
|
|
110
110
|
"reduction": 0
|
|
111
111
|
},
|
|
112
112
|
{
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"/src/unstable-core-do-not-import.ts",
|
|
160
160
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
161
161
|
],
|
|
162
|
-
"percent": 2.
|
|
162
|
+
"percent": 2.96,
|
|
163
163
|
"reduction": 65.01
|
|
164
164
|
},
|
|
165
165
|
{
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"/src/observable/operators.ts",
|
|
194
194
|
"/src/observable/behaviorSubject.ts"
|
|
195
195
|
],
|
|
196
|
-
"percent": 2.
|
|
196
|
+
"percent": 2.47,
|
|
197
197
|
"reduction": 0
|
|
198
198
|
},
|
|
199
199
|
{
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
"dependents": [
|
|
432
432
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
433
433
|
],
|
|
434
|
-
"percent": 1.
|
|
434
|
+
"percent": 1.08,
|
|
435
435
|
"reduction": 5.4
|
|
436
436
|
},
|
|
437
437
|
{
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
"/src/unstable-core-do-not-import.ts",
|
|
602
602
|
"/src/unstable-core-do-not-import/http/contentType.ts"
|
|
603
603
|
],
|
|
604
|
-
"percent": 0.
|
|
604
|
+
"percent": 0.56,
|
|
605
605
|
"reduction": 15.08
|
|
606
606
|
},
|
|
607
607
|
{
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
"dependents": [
|
|
630
630
|
"/src/observable/index.ts"
|
|
631
631
|
],
|
|
632
|
-
"percent": 0.
|
|
632
|
+
"percent": 0.49,
|
|
633
633
|
"reduction": 32.89
|
|
634
634
|
},
|
|
635
635
|
{
|
|
@@ -877,9 +877,9 @@
|
|
|
877
877
|
"reduction": 100
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
|
-
"id": "/src/
|
|
880
|
+
"id": "/src/shared.ts",
|
|
881
881
|
"size": 0,
|
|
882
|
-
"origSize":
|
|
882
|
+
"origSize": 653,
|
|
883
883
|
"renderedExports": [],
|
|
884
884
|
"removedExports": [],
|
|
885
885
|
"dependents": [],
|
|
@@ -887,9 +887,9 @@
|
|
|
887
887
|
"reduction": 100
|
|
888
888
|
},
|
|
889
889
|
{
|
|
890
|
-
"id": "/src/
|
|
890
|
+
"id": "/src/rpc.ts",
|
|
891
891
|
"size": 0,
|
|
892
|
-
"origSize":
|
|
892
|
+
"origSize": 36,
|
|
893
893
|
"renderedExports": [],
|
|
894
894
|
"removedExports": [],
|
|
895
895
|
"dependents": [],
|
|
@@ -904,8 +904,8 @@
|
|
|
904
904
|
"removedExports": [],
|
|
905
905
|
"dependents": [
|
|
906
906
|
"/src/adapters/express.ts",
|
|
907
|
-
"/src/adapters/standalone.ts",
|
|
908
907
|
"/src/adapters/next.ts",
|
|
908
|
+
"/src/adapters/standalone.ts",
|
|
909
909
|
"/src/adapters/ws.ts",
|
|
910
910
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
911
911
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
@@ -964,8 +964,8 @@
|
|
|
964
964
|
"removedExports": [],
|
|
965
965
|
"dependents": [
|
|
966
966
|
"/src/adapters/express.ts",
|
|
967
|
-
"/src/adapters/standalone.ts",
|
|
968
967
|
"/src/adapters/next.ts",
|
|
968
|
+
"/src/adapters/standalone.ts",
|
|
969
969
|
"/src/adapters/ws.ts",
|
|
970
970
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
971
971
|
],
|
|
@@ -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;CAC1D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,CACA,SAAS,EAAE,MAAM,GAAG,MAAM,EAC1B,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACjC,yBAAyB,CAAC;CAC9B,CAAC;AAKF,QAAA,MAAM,wBAAwB,IAAI,CAAC;AACnC,KAAK,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;AAChE,QAAA,MAAM,+BAA+B,IAAI,CAAC;AAC1C,KAAK,+BAA+B,GAAG,OAAO,+BAA+B,CAAC;AAE9E,QAAA,MAAM,wBAAwB,IAAI,CAAC;AACnC,KAAK,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;AAChE,QAAA,MAAM,uBAAuB,IAAI,CAAC;AAClC,KAAK,uBAAuB,GAAG,OAAO,uBAAuB,CAAC;AAE9D,QAAA,MAAM,4BAA4B,IAAI,CAAC;AACvC,KAAK,4BAA4B,GAAG,OAAO,4BAA4B,CAAC;AACxE,QAAA,MAAM,2BAA2B,IAAI,CAAC;AACtC,KAAK,2BAA2B,GAAG,OAAO,2BAA2B,CAAC;AACtE,QAAA,MAAM,2BAA2B,IAAI,CAAC;AACtC,KAAK,2BAA2B,GAAG,OAAO,2BAA2B,CAAC;AAEtE,KAAK,kBAAkB,GAEnB,IAAI,GAEJ,MAAM,GAEN,MAAM,CAAC;AAEX,KAAK,UAAU,GAAG,MAAM,GAAG;IAAE,YAAY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;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC;IAClD;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;CAClC;2BAxC+B,UAAU;qBArCvB,eAAe;;;;;;wBAiDL,OAAO;IA0JnC"}
|
|
@@ -254,6 +254,13 @@ async function* createBatchStreamProducer(opts) {
|
|
|
254
254
|
]
|
|
255
255
|
];
|
|
256
256
|
}
|
|
257
|
+
if (Object.prototype.toString.call(value) !== '[object Object]') {
|
|
258
|
+
return [
|
|
259
|
+
[
|
|
260
|
+
value
|
|
261
|
+
]
|
|
262
|
+
];
|
|
263
|
+
}
|
|
257
264
|
const newObj = {};
|
|
258
265
|
const asyncValues = [];
|
|
259
266
|
for (const [key, item] of Object.entries(value)){
|
|
@@ -252,6 +252,13 @@ async function* createBatchStreamProducer(opts) {
|
|
|
252
252
|
]
|
|
253
253
|
];
|
|
254
254
|
}
|
|
255
|
+
if (Object.prototype.toString.call(value) !== '[object Object]') {
|
|
256
|
+
return [
|
|
257
|
+
[
|
|
258
|
+
value
|
|
259
|
+
]
|
|
260
|
+
];
|
|
261
|
+
}
|
|
255
262
|
const newObj = {};
|
|
256
263
|
const asyncValues = [];
|
|
257
264
|
for (const [key, item] of Object.entries(value)){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.745+6ab0f06e2",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"peerDependencies": {
|
|
153
153
|
"typescript": ">=5.7.2"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "6ab0f06e288b19b2d40ff0fe483c15365a7699f0"
|
|
156
156
|
}
|
|
@@ -233,10 +233,15 @@ async function* createBatchStreamProducer(
|
|
|
233
233
|
if (!isObject(value)) {
|
|
234
234
|
return [[value]];
|
|
235
235
|
}
|
|
236
|
+
|
|
236
237
|
const reg = encodeAsync(value, path);
|
|
237
238
|
if (reg) {
|
|
238
239
|
return [[placeholder], [null, ...reg]];
|
|
239
240
|
}
|
|
241
|
+
|
|
242
|
+
if (Object.prototype.toString.call(value) !== '[object Object]') {
|
|
243
|
+
return [[value]];
|
|
244
|
+
}
|
|
240
245
|
const newObj = {} as Record<string, unknown>;
|
|
241
246
|
const asyncValues: ChunkDefinition[] = [];
|
|
242
247
|
for (const [key, item] of Object.entries(value)) {
|