@trpc/server 11.0.0-alpha-tmp-issues-5851-take-two.466 → 11.0.0-alpha-tmp-issues-5851-take-two.469
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 27.
|
|
2
|
+
"bundleSize": 131295,
|
|
3
|
+
"bundleOrigSize": 180715,
|
|
4
|
+
"bundleReduction": 27.35,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
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.2,
|
|
21
21
|
"reduction": 4.22
|
|
22
22
|
},
|
|
23
23
|
{
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependents": [
|
|
32
32
|
"/src/unstable-core-do-not-import.ts"
|
|
33
33
|
],
|
|
34
|
-
"percent":
|
|
34
|
+
"percent": 13,
|
|
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.87,
|
|
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.86,
|
|
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.82,
|
|
98
98
|
"reduction": 60.06
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -127,13 +127,13 @@
|
|
|
127
127
|
"dependents": [
|
|
128
128
|
"/src/adapters/aws-lambda/index.ts"
|
|
129
129
|
],
|
|
130
|
-
"percent": 4.
|
|
130
|
+
"percent": 4.13,
|
|
131
131
|
"reduction": 11.38
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"id": "/src/observable/observable.ts",
|
|
135
|
-
"size":
|
|
136
|
-
"origSize":
|
|
135
|
+
"size": 4329,
|
|
136
|
+
"origSize": 4292,
|
|
137
137
|
"renderedExports": [
|
|
138
138
|
"isObservable",
|
|
139
139
|
"observable",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
148
148
|
"/src/observable/operators.ts"
|
|
149
149
|
],
|
|
150
|
-
"percent": 3.
|
|
150
|
+
"percent": 3.3,
|
|
151
151
|
"reduction": 0
|
|
152
152
|
},
|
|
153
153
|
{
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"dependents": [
|
|
162
162
|
"/src/adapters/next-app-dir.ts"
|
|
163
163
|
],
|
|
164
|
-
"percent": 2.
|
|
164
|
+
"percent": 2.39,
|
|
165
165
|
"reduction": 23.5
|
|
166
166
|
},
|
|
167
167
|
{
|
|
@@ -193,9 +193,9 @@
|
|
|
193
193
|
"removedExports": [],
|
|
194
194
|
"dependents": [
|
|
195
195
|
"/src/unstable-core-do-not-import.ts",
|
|
196
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
197
196
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
198
|
-
"/src/unstable-core-do-not-import/router.ts"
|
|
197
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
198
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
199
199
|
],
|
|
200
200
|
"percent": 2.09,
|
|
201
201
|
"reduction": 45.94
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"dependents": [
|
|
226
226
|
"/src/adapters/node-http/index.ts"
|
|
227
227
|
],
|
|
228
|
-
"percent": 2.
|
|
228
|
+
"percent": 2.05,
|
|
229
229
|
"reduction": 7.31
|
|
230
230
|
},
|
|
231
231
|
{
|
|
@@ -319,11 +319,11 @@
|
|
|
319
319
|
"removedExports": [],
|
|
320
320
|
"dependents": [
|
|
321
321
|
"/src/unstable-core-do-not-import.ts",
|
|
322
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
323
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
324
322
|
"/src/unstable-core-do-not-import/stream/sse.ts",
|
|
325
323
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
326
324
|
"/src/unstable-core-do-not-import/router.ts",
|
|
325
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
326
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
327
327
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
328
328
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
329
329
|
"/src/unstable-core-do-not-import/stream/jsonl.ts"
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
],
|
|
353
353
|
"removedExports": [],
|
|
354
354
|
"dependents": [],
|
|
355
|
-
"percent": 1.
|
|
355
|
+
"percent": 1.18,
|
|
356
356
|
"reduction": 26.94
|
|
357
357
|
},
|
|
358
358
|
{
|
|
@@ -393,8 +393,8 @@
|
|
|
393
393
|
"removedExports": [],
|
|
394
394
|
"dependents": [
|
|
395
395
|
"/src/unstable-core-do-not-import.ts",
|
|
396
|
-
"/src/unstable-core-do-not-import/
|
|
397
|
-
"/src/unstable-core-do-not-import/
|
|
396
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts",
|
|
397
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
398
398
|
],
|
|
399
399
|
"percent": 0.98,
|
|
400
400
|
"reduction": 18.7
|
|
@@ -415,17 +415,17 @@
|
|
|
415
415
|
"removedExports": [],
|
|
416
416
|
"dependents": [
|
|
417
417
|
"/src/unstable-core-do-not-import.ts",
|
|
418
|
-
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
419
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
420
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
421
418
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
422
419
|
"/src/unstable-core-do-not-import/stream/sse.ts",
|
|
423
420
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
424
421
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
425
422
|
"/src/unstable-core-do-not-import/router.ts",
|
|
426
|
-
"/src/unstable-core-do-not-import/
|
|
423
|
+
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
424
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
425
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.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,
|
|
@@ -710,34 +710,37 @@
|
|
|
710
710
|
"reduction": 93.8
|
|
711
711
|
},
|
|
712
712
|
{
|
|
713
|
-
"id": "/src/
|
|
713
|
+
"id": "/src/index.ts",
|
|
714
714
|
"size": 0,
|
|
715
|
-
"origSize":
|
|
715
|
+
"origSize": 32,
|
|
716
716
|
"renderedExports": [],
|
|
717
717
|
"removedExports": [],
|
|
718
|
-
"dependents": [
|
|
719
|
-
"/src/adapters/ws.ts"
|
|
720
|
-
],
|
|
718
|
+
"dependents": [],
|
|
721
719
|
"percent": 0,
|
|
722
720
|
"reduction": 100
|
|
723
721
|
},
|
|
724
722
|
{
|
|
725
|
-
"id": "/src/
|
|
723
|
+
"id": "/src/http.ts",
|
|
726
724
|
"size": 0,
|
|
727
|
-
"origSize":
|
|
725
|
+
"origSize": 37,
|
|
728
726
|
"renderedExports": [],
|
|
729
727
|
"removedExports": [],
|
|
730
|
-
"dependents": [
|
|
728
|
+
"dependents": [
|
|
729
|
+
"/src/adapters/ws.ts"
|
|
730
|
+
],
|
|
731
731
|
"percent": 0,
|
|
732
732
|
"reduction": 100
|
|
733
733
|
},
|
|
734
734
|
{
|
|
735
|
-
"id": "/src/
|
|
735
|
+
"id": "/src/unstable-core-do-not-import.ts",
|
|
736
736
|
"size": 0,
|
|
737
|
-
"origSize":
|
|
737
|
+
"origSize": 2244,
|
|
738
738
|
"renderedExports": [],
|
|
739
739
|
"removedExports": [],
|
|
740
|
-
"dependents": [
|
|
740
|
+
"dependents": [
|
|
741
|
+
"/src/adapters/ws.ts",
|
|
742
|
+
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
743
|
+
],
|
|
741
744
|
"percent": 0,
|
|
742
745
|
"reduction": 100
|
|
743
746
|
},
|
|
@@ -752,15 +755,12 @@
|
|
|
752
755
|
"reduction": 100
|
|
753
756
|
},
|
|
754
757
|
{
|
|
755
|
-
"id": "/src/
|
|
758
|
+
"id": "/src/rpc.ts",
|
|
756
759
|
"size": 0,
|
|
757
|
-
"origSize":
|
|
760
|
+
"origSize": 36,
|
|
758
761
|
"renderedExports": [],
|
|
759
762
|
"removedExports": [],
|
|
760
|
-
"dependents": [
|
|
761
|
-
"/src/adapters/ws.ts",
|
|
762
|
-
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
763
|
-
],
|
|
763
|
+
"dependents": [],
|
|
764
764
|
"percent": 0,
|
|
765
765
|
"reduction": 100
|
|
766
766
|
},
|
|
@@ -796,16 +796,6 @@
|
|
|
796
796
|
"percent": 0,
|
|
797
797
|
"reduction": 100
|
|
798
798
|
},
|
|
799
|
-
{
|
|
800
|
-
"id": "/src/adapters/fetch/index.ts",
|
|
801
|
-
"size": 0,
|
|
802
|
-
"origSize": 64,
|
|
803
|
-
"renderedExports": [],
|
|
804
|
-
"removedExports": [],
|
|
805
|
-
"dependents": [],
|
|
806
|
-
"percent": 0,
|
|
807
|
-
"reduction": 100
|
|
808
|
-
},
|
|
809
799
|
{
|
|
810
800
|
"id": "/src/adapters/node-http/index.ts",
|
|
811
801
|
"size": 0,
|
|
@@ -820,6 +810,16 @@
|
|
|
820
810
|
],
|
|
821
811
|
"percent": 0,
|
|
822
812
|
"reduction": 100
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
816
|
+
"size": 0,
|
|
817
|
+
"origSize": 64,
|
|
818
|
+
"renderedExports": [],
|
|
819
|
+
"removedExports": [],
|
|
820
|
+
"dependents": [],
|
|
821
|
+
"percent": 0,
|
|
822
|
+
"reduction": 100
|
|
823
823
|
}
|
|
824
824
|
],
|
|
825
825
|
"moduleCount": 55
|
|
@@ -6,9 +6,6 @@ export declare function isObservable(x: unknown): x is Observable<unknown, unkno
|
|
|
6
6
|
/** @public */
|
|
7
7
|
export declare function observable<TValue, TError = unknown>(subscribe: (observer: Observer<TValue, TError>) => TeardownLogic): Observable<TValue, TError>;
|
|
8
8
|
/** @internal */
|
|
9
|
-
export declare function observableToPromise<TValue>(observable: Observable<TValue, unknown>):
|
|
10
|
-
promise: Promise<TValue>;
|
|
11
|
-
abort: () => void;
|
|
12
|
-
};
|
|
9
|
+
export declare function observableToPromise<TValue>(observable: Observable<TValue, unknown>): Promise<TValue>;
|
|
13
10
|
export declare function observableToAsyncIterable<TValue>(observable: Observable<TValue, unknown>): AsyncIterable<TValue>;
|
|
14
11
|
//# sourceMappingURL=observable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/observable/observable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EAER,aAAa,EAGd,MAAM,SAAS,CAAC;AAEjB,cAAc;AACd,MAAM,MAAM,oBAAoB,CAAC,WAAW,IAAI,WAAW,SAAS,UAAU,CAC5E,MAAM,MAAM,EACZ,OAAO,CACR,GACG,MAAM,GACN,KAAK,CAAC;AAEV,cAAc;AACd,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAE1E;AAED,cAAc;AACd,wBAAgB,UAAU,CAAC,MAAM,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;AAcD,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,MAAM,EACxC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/observable/observable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EAER,aAAa,EAGd,MAAM,SAAS,CAAC;AAEjB,cAAc;AACd,MAAM,MAAM,oBAAoB,CAAC,WAAW,IAAI,WAAW,SAAS,UAAU,CAC5E,MAAM,MAAM,EACZ,OAAO,CACR,GACG,MAAM,GACN,KAAK,CAAC;AAEV,cAAc;AACd,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAE1E;AAED,cAAc;AACd,wBAAgB,UAAU,CAAC,MAAM,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;AAcD,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,MAAM,EACxC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,mBA8BxC;AA6BD,wBAAgB,yBAAyB,CAAC,MAAM,EAC9C,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,GACtC,aAAa,CAAC,MAAM,CAAC,CA+BvB"}
|
|
@@ -73,7 +73,6 @@ class ObservableAbortError extends Error {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
/** @internal */ function observableToPromise(observable) {
|
|
76
|
-
let abort;
|
|
77
76
|
const promise = new Promise((resolve, reject)=>{
|
|
78
77
|
let isDone = false;
|
|
79
78
|
function onDone() {
|
|
@@ -100,13 +99,8 @@ class ObservableAbortError extends Error {
|
|
|
100
99
|
onDone();
|
|
101
100
|
}
|
|
102
101
|
});
|
|
103
|
-
abort = onDone;
|
|
104
102
|
});
|
|
105
|
-
return
|
|
106
|
-
promise,
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
108
|
-
abort: abort
|
|
109
|
-
};
|
|
103
|
+
return promise;
|
|
110
104
|
}
|
|
111
105
|
/**
|
|
112
106
|
* @internal
|
|
@@ -71,7 +71,6 @@ class ObservableAbortError extends Error {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
/** @internal */ function observableToPromise(observable) {
|
|
74
|
-
let abort;
|
|
75
74
|
const promise = new Promise((resolve, reject)=>{
|
|
76
75
|
let isDone = false;
|
|
77
76
|
function onDone() {
|
|
@@ -98,13 +97,8 @@ class ObservableAbortError extends Error {
|
|
|
98
97
|
onDone();
|
|
99
98
|
}
|
|
100
99
|
});
|
|
101
|
-
abort = onDone;
|
|
102
100
|
});
|
|
103
|
-
return
|
|
104
|
-
promise,
|
|
105
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
106
|
-
abort: abort
|
|
107
|
-
};
|
|
101
|
+
return promise;
|
|
108
102
|
}
|
|
109
103
|
/**
|
|
110
104
|
* @internal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-issues-5851-take-two.469+30b7dd3bb",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"tslib": "^2.5.0",
|
|
142
142
|
"tsx": "^4.0.0",
|
|
143
143
|
"typescript": "^5.5.0",
|
|
144
|
-
"valibot": "^0.
|
|
144
|
+
"valibot": "^0.36.0",
|
|
145
145
|
"ws": "^8.0.0",
|
|
146
146
|
"yup": "^1.0.0",
|
|
147
147
|
"zod": "^3.0.0"
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"funding": [
|
|
150
150
|
"https://trpc.io/sponsor"
|
|
151
151
|
],
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "30b7dd3bbecced28be7e29f734bc55c4850c51e5"
|
|
153
153
|
}
|
|
@@ -102,7 +102,6 @@ class ObservableAbortError extends Error {
|
|
|
102
102
|
export function observableToPromise<TValue>(
|
|
103
103
|
observable: Observable<TValue, unknown>,
|
|
104
104
|
) {
|
|
105
|
-
let abort: () => void;
|
|
106
105
|
const promise = new Promise<TValue>((resolve, reject) => {
|
|
107
106
|
let isDone = false;
|
|
108
107
|
function onDone() {
|
|
@@ -129,13 +128,8 @@ export function observableToPromise<TValue>(
|
|
|
129
128
|
onDone();
|
|
130
129
|
},
|
|
131
130
|
});
|
|
132
|
-
abort = onDone;
|
|
133
131
|
});
|
|
134
|
-
return
|
|
135
|
-
promise,
|
|
136
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
137
|
-
abort: abort!,
|
|
138
|
-
};
|
|
132
|
+
return promise;
|
|
139
133
|
}
|
|
140
134
|
|
|
141
135
|
/**
|