@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.
@@ -62,7 +62,7 @@ function getWSConnectionHandler(opts) {
62
62
  })
63
63
  });
64
64
  // close in next tick
65
- (global.setImmediate ?? global.setTimeout)(()=>{
65
+ (globalThis.setImmediate ?? globalThis.setTimeout)(()=>{
66
66
  client.close();
67
67
  });
68
68
  throw error;
@@ -60,7 +60,7 @@ function getWSConnectionHandler(opts) {
60
60
  })
61
61
  });
62
62
  // close in next tick
63
- (global.setImmediate ?? global.setTimeout)(()=>{
63
+ (globalThis.setImmediate ?? globalThis.setTimeout)(()=>{
64
64
  client.close();
65
65
  });
66
66
  throw error;
@@ -1,6 +1,6 @@
1
1
  {
2
- "bundleSize": 131653,
3
- "bundleOrigSize": 181042,
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": 14457,
40
- "origSize": 13675,
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.98,
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.81,
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/rpc.ts",
735
+ "id": "/src/unstable-core-do-not-import.ts",
736
736
  "size": 0,
737
- "origSize": 36,
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/unstable-core-do-not-import.ts",
758
+ "id": "/src/rpc.ts",
756
759
  "size": 0,
757
- "origSize": 2244,
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.460+ab0de4748",
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": "ab0de47480c1b0d52dc1774bc3b5e481f4f420d3"
152
+ "gitHead": "461733492f066c6eea21149c857bf7f7890e55dd"
153
153
  }
@@ -148,7 +148,7 @@ export function getWSConnectionHandler<TRouter extends AnyRouter>(
148
148
  });
149
149
 
150
150
  // close in next tick
151
- (global.setImmediate ?? global.setTimeout)(() => {
151
+ (globalThis.setImmediate ?? globalThis.setTimeout)(() => {
152
152
  client.close();
153
153
  });
154
154