@trpc/server 11.0.0-rc.460 → 11.0.0-rc.465
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/ws.js +1 -1
- package/dist/adapters/ws.mjs +1 -1
- package/dist/bundle-analysis.json +16 -16
- package/package.json +2 -2
- package/src/adapters/ws.ts +1 -1
package/dist/adapters/ws.js
CHANGED
package/dist/adapters/ws.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
2
|
+
"bundleSize": 131661,
|
|
3
|
+
"bundleOrigSize": 181050,
|
|
4
4
|
"bundleReduction": 27.28,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"id": "/src/adapters/ws.ts",
|
|
39
|
-
"size":
|
|
40
|
-
"origSize":
|
|
39
|
+
"size": 14465,
|
|
40
|
+
"origSize": 13683,
|
|
41
41
|
"renderedExports": [
|
|
42
42
|
"getWSConnectionHandler",
|
|
43
43
|
"applyWSSHandler"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependents": [
|
|
47
47
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
48
48
|
],
|
|
49
|
-
"percent": 10.
|
|
49
|
+
"percent": 10.99,
|
|
50
50
|
"reduction": 0
|
|
51
51
|
},
|
|
52
52
|
{
|
|
@@ -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.8,
|
|
98
98
|
"reduction": 60.06
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -423,9 +423,9 @@
|
|
|
423
423
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
424
424
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
425
425
|
"/src/unstable-core-do-not-import/router.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,
|
|
@@ -732,12 +732,15 @@
|
|
|
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
|
},
|
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.465+461733492",
|
|
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": "461733492f066c6eea21149c857bf7f7890e55dd"
|
|
153
153
|
}
|
package/src/adapters/ws.ts
CHANGED
|
@@ -148,7 +148,7 @@ export function getWSConnectionHandler<TRouter extends AnyRouter>(
|
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
// close in next tick
|
|
151
|
-
(
|
|
151
|
+
(globalThis.setImmediate ?? globalThis.setTimeout)(() => {
|
|
152
152
|
client.close();
|
|
153
153
|
});
|
|
154
154
|
|