@trpc/server 11.0.0-rc.502 → 11.0.0-rc.521
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/getPlanner.d.ts.map +1 -1
- package/dist/bundle-analysis.json +43 -43
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.js +1 -0
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +1 -0
- package/dist/unstable-core-do-not-import/middleware.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPlanner.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/getPlanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EAClC,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAExE,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,iCAAiC,CAAC;AActC;;IAEI;AACJ,MAAM,MAAM,gBAAgB,CAAC,MAAM,IAAI,MAAM,SAAS,oBAAoB,GACtE,qBAAqB,GACrB,MAAM,SAAS,sBAAsB,GACrC,iCAAiC,GACjC,KAAK,CAAC;AA6IV,wBAAgB,UAAU,CAAC,MAAM,SAAS,WAAW,EAAE,KAAK,EAAE,MAAM;;;yBAtI7C,QAAQ
|
|
1
|
+
{"version":3,"file":"getPlanner.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/getPlanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EAClC,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAExE,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,iCAAiC,CAAC;AActC;;IAEI;AACJ,MAAM,MAAM,gBAAgB,CAAC,MAAM,IAAI,MAAM,SAAS,oBAAoB,GACtE,qBAAqB,GACrB,MAAM,SAAS,sBAAsB,GACrC,iCAAiC,GACjC,KAAK,CAAC;AA6IV,wBAAgB,UAAU,CAAC,MAAM,SAAS,WAAW,EAAE,KAAK,EAAE,MAAM;;;yBAtI7C,QAAQ;EA0K9B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 26.
|
|
2
|
+
"bundleSize": 135955,
|
|
3
|
+
"bundleOrigSize": 184951,
|
|
4
|
+
"bundleReduction": 26.49,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/unstable-core-do-not-import.ts"
|
|
16
16
|
],
|
|
17
|
-
"percent": 13.
|
|
17
|
+
"percent": 13.14,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -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": 12.
|
|
34
|
+
"percent": 12.92,
|
|
35
35
|
"reduction": 4.31
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependents": [
|
|
48
48
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
49
49
|
],
|
|
50
|
-
"percent": 11.
|
|
50
|
+
"percent": 11.57,
|
|
51
51
|
"reduction": 0
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"/src/unstable-core-do-not-import.ts",
|
|
63
63
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
64
64
|
],
|
|
65
|
-
"percent": 5.
|
|
65
|
+
"percent": 5.65,
|
|
66
66
|
"reduction": 0
|
|
67
67
|
},
|
|
68
68
|
{
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"/src/unstable-core-do-not-import.ts",
|
|
81
81
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
82
82
|
],
|
|
83
|
-
"percent": 4.
|
|
83
|
+
"percent": 4.69,
|
|
84
84
|
"reduction": 39.77
|
|
85
85
|
},
|
|
86
86
|
{
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"/src/unstable-core-do-not-import.ts",
|
|
96
96
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
97
97
|
],
|
|
98
|
-
"percent": 4.
|
|
98
|
+
"percent": 4.65,
|
|
99
99
|
"reduction": 60.09
|
|
100
100
|
},
|
|
101
101
|
{
|
|
@@ -206,9 +206,9 @@
|
|
|
206
206
|
"removedExports": [],
|
|
207
207
|
"dependents": [
|
|
208
208
|
"/src/unstable-core-do-not-import.ts",
|
|
209
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
209
210
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
210
|
-
"/src/unstable-core-do-not-import/router.ts"
|
|
211
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
211
|
+
"/src/unstable-core-do-not-import/router.ts"
|
|
212
212
|
],
|
|
213
213
|
"percent": 2.02,
|
|
214
214
|
"reduction": 45.94
|
|
@@ -332,16 +332,16 @@
|
|
|
332
332
|
"removedExports": [],
|
|
333
333
|
"dependents": [
|
|
334
334
|
"/src/unstable-core-do-not-import.ts",
|
|
335
|
-
"/src/unstable-core-do-not-import/middleware.ts",
|
|
336
|
-
"/src/unstable-core-do-not-import/router.ts",
|
|
337
335
|
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
338
336
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
337
|
+
"/src/unstable-core-do-not-import/middleware.ts",
|
|
338
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
339
339
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
340
340
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
341
341
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
342
342
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
343
343
|
],
|
|
344
|
-
"percent": 1.
|
|
344
|
+
"percent": 1.27,
|
|
345
345
|
"reduction": 19.47
|
|
346
346
|
},
|
|
347
347
|
{
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
],
|
|
367
367
|
"removedExports": [],
|
|
368
368
|
"dependents": [],
|
|
369
|
-
"percent": 1.
|
|
369
|
+
"percent": 1.18,
|
|
370
370
|
"reduction": 27.47
|
|
371
371
|
},
|
|
372
372
|
{
|
|
@@ -378,13 +378,13 @@
|
|
|
378
378
|
],
|
|
379
379
|
"removedExports": [],
|
|
380
380
|
"dependents": [],
|
|
381
|
-
"percent": 1.
|
|
381
|
+
"percent": 1.13,
|
|
382
382
|
"reduction": 26.94
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
"id": "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
386
|
-
"size":
|
|
387
|
-
"origSize":
|
|
386
|
+
"size": 1438,
|
|
387
|
+
"origSize": 1727,
|
|
388
388
|
"renderedExports": [
|
|
389
389
|
"getHTTPStatusCode",
|
|
390
390
|
"getHTTPStatusCodeFromError"
|
|
@@ -392,11 +392,11 @@
|
|
|
392
392
|
"removedExports": [],
|
|
393
393
|
"dependents": [
|
|
394
394
|
"/src/unstable-core-do-not-import.ts",
|
|
395
|
-
"/src/unstable-core-do-not-import/
|
|
396
|
-
"/src/unstable-core-do-not-import/
|
|
395
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
396
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
|
|
397
397
|
],
|
|
398
|
-
"percent": 1,
|
|
399
|
-
"reduction":
|
|
398
|
+
"percent": 1.06,
|
|
399
|
+
"reduction": 16.73
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
"id": "/src/unstable-core-do-not-import/parser.ts",
|
|
@@ -429,13 +429,13 @@
|
|
|
429
429
|
"removedExports": [],
|
|
430
430
|
"dependents": [
|
|
431
431
|
"/src/unstable-core-do-not-import.ts",
|
|
432
|
+
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
433
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
434
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
432
435
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
433
436
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
434
437
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
435
438
|
"/src/unstable-core-do-not-import/router.ts",
|
|
436
|
-
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
437
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
438
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
439
439
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
440
440
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
441
441
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
@@ -727,24 +727,24 @@
|
|
|
727
727
|
"reduction": 93.8
|
|
728
728
|
},
|
|
729
729
|
{
|
|
730
|
-
"id": "/src/
|
|
730
|
+
"id": "/src/http.ts",
|
|
731
731
|
"size": 0,
|
|
732
|
-
"origSize":
|
|
732
|
+
"origSize": 37,
|
|
733
733
|
"renderedExports": [],
|
|
734
734
|
"removedExports": [],
|
|
735
|
-
"dependents": [
|
|
735
|
+
"dependents": [
|
|
736
|
+
"/src/adapters/ws.ts"
|
|
737
|
+
],
|
|
736
738
|
"percent": 0,
|
|
737
739
|
"reduction": 100
|
|
738
740
|
},
|
|
739
741
|
{
|
|
740
|
-
"id": "/src/
|
|
742
|
+
"id": "/src/index.ts",
|
|
741
743
|
"size": 0,
|
|
742
|
-
"origSize":
|
|
744
|
+
"origSize": 32,
|
|
743
745
|
"renderedExports": [],
|
|
744
746
|
"removedExports": [],
|
|
745
|
-
"dependents": [
|
|
746
|
-
"/src/adapters/ws.ts"
|
|
747
|
-
],
|
|
747
|
+
"dependents": [],
|
|
748
748
|
"percent": 0,
|
|
749
749
|
"reduction": 100
|
|
750
750
|
},
|
|
@@ -813,16 +813,6 @@
|
|
|
813
813
|
"percent": 0,
|
|
814
814
|
"reduction": 100
|
|
815
815
|
},
|
|
816
|
-
{
|
|
817
|
-
"id": "/src/adapters/fetch/index.ts",
|
|
818
|
-
"size": 0,
|
|
819
|
-
"origSize": 64,
|
|
820
|
-
"renderedExports": [],
|
|
821
|
-
"removedExports": [],
|
|
822
|
-
"dependents": [],
|
|
823
|
-
"percent": 0,
|
|
824
|
-
"reduction": 100
|
|
825
|
-
},
|
|
826
816
|
{
|
|
827
817
|
"id": "/src/adapters/node-http/index.ts",
|
|
828
818
|
"size": 0,
|
|
@@ -837,6 +827,16 @@
|
|
|
837
827
|
],
|
|
838
828
|
"percent": 0,
|
|
839
829
|
"reduction": 100
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
833
|
+
"size": 0,
|
|
834
|
+
"origSize": 64,
|
|
835
|
+
"renderedExports": [],
|
|
836
|
+
"removedExports": [],
|
|
837
|
+
"dependents": [],
|
|
838
|
+
"percent": 0,
|
|
839
|
+
"reduction": 100
|
|
840
840
|
}
|
|
841
841
|
],
|
|
842
842
|
"moduleCount": 56
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHTTPStatusCode.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/getHTTPStatusCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAA2B,YAAY,EAAE,MAAM,QAAQ,CAAC;AAiCpE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"getHTTPStatusCode.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/getHTTPStatusCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAA2B,YAAY,EAAE,MAAM,QAAQ,CAAC;AAiCpE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,MAAM,CAuB7E;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,UAE1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlE,gBAAgB;AAChB,eAAO,MAAM,gBAAgB,EAAyB,kBAAkB,GAAG;IACzE,OAAO,EAAE,kBAAkB,CAAC;CAC7B,CAAC;AACF,KAAK,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AAEhD,UAAU,oBAAoB;IAC5B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,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
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
119
|
"@fastify/websocket": "^10.0.1",
|
|
120
|
-
"@tanstack/react-query": "^5.
|
|
120
|
+
"@tanstack/react-query": "^5.54.1",
|
|
121
121
|
"@types/aws-lambda": "^8.10.137",
|
|
122
122
|
"@types/express": "^4.17.17",
|
|
123
123
|
"@types/hash-sum": "^1.0.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"eslint": "^8.57.0",
|
|
130
130
|
"express": "^4.17.1",
|
|
131
131
|
"fastify": "^4.16.0",
|
|
132
|
-
"fastify-plugin": "^
|
|
132
|
+
"fastify-plugin": "^5.0.0",
|
|
133
133
|
"hash-sum": "^2.0.0",
|
|
134
134
|
"myzod": "^1.3.1",
|
|
135
135
|
"next": "^14.2.5",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"superstruct": "^2.0.0",
|
|
141
141
|
"tslib": "^2.5.0",
|
|
142
142
|
"tsx": "^4.0.0",
|
|
143
|
-
"typescript": "^5.
|
|
144
|
-
"valibot": "^0.
|
|
143
|
+
"typescript": "^5.6.2",
|
|
144
|
+
"valibot": "^0.42.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": "4a5e81a69ddc3171cae2a685c8dfd06c6bfe0eff"
|
|
153
153
|
}
|
|
@@ -53,7 +53,8 @@ export function getHTTPStatusCode(json: TRPCResponse | TRPCResponse[]): number {
|
|
|
53
53
|
|
|
54
54
|
const httpStatus = httpStatuses.values().next().value;
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
57
|
+
return httpStatus!;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
export function getHTTPStatusCodeFromError(error: TRPCError) {
|