@trpc/server 11.0.0-rc.460 → 11.0.0-rc.461

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
  {
@@ -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.08,
201
201
  "reduction": 45.94
@@ -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"
@@ -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/http/resolveResponse.ts",
397
- "/src/unstable-core-do-not-import/error/getErrorShape.ts"
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": 1.04,
400
400
  "reduction": 17.52
@@ -415,15 +415,15 @@
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
423
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
424
+ "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
425
+ "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
426
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
427
427
  "/src/unstable-core-do-not-import/http/contentType.ts",
428
428
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
429
429
  "/src/unstable-core-do-not-import/stream/jsonl.ts"
@@ -710,21 +710,19 @@
710
710
  "reduction": 93.8
711
711
  },
712
712
  {
713
- "id": "/src/http.ts",
713
+ "id": "/src/index.ts",
714
714
  "size": 0,
715
- "origSize": 37,
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/index.ts",
723
+ "id": "/src/rpc.ts",
726
724
  "size": 0,
727
- "origSize": 32,
725
+ "origSize": 36,
728
726
  "renderedExports": [],
729
727
  "removedExports": [],
730
728
  "dependents": [],
@@ -732,12 +730,14 @@
732
730
  "reduction": 100
733
731
  },
734
732
  {
735
- "id": "/src/rpc.ts",
733
+ "id": "/src/http.ts",
736
734
  "size": 0,
737
- "origSize": 36,
735
+ "origSize": 37,
738
736
  "renderedExports": [],
739
737
  "removedExports": [],
740
- "dependents": [],
738
+ "dependents": [
739
+ "/src/adapters/ws.ts"
740
+ ],
741
741
  "percent": 0,
742
742
  "reduction": 100
743
743
  },
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.461+f178d3fed",
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": "f178d3fed131c9036014603665a0803de0533c9a"
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