@trpc/server 11.0.0-rc.755 → 11.0.0-rc.761

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.
@@ -92,7 +92,7 @@ function createHeaders(incoming) {
92
92
  const ac = new AbortController();
93
93
  const onAbort = ()=>{
94
94
  res.off('close', onAbort);
95
- req.socket?.off?.('end', onAbort);
95
+ req.socket?.off?.('close', onAbort);
96
96
  // abort the request
97
97
  ac.abort();
98
98
  };
@@ -90,7 +90,7 @@ function createHeaders(incoming) {
90
90
  const ac = new AbortController();
91
91
  const onAbort = ()=>{
92
92
  res.off('close', onAbort);
93
- req.socket?.off?.('end', onAbort);
93
+ req.socket?.off?.('close', onAbort);
94
94
  // abort the request
95
95
  ac.abort();
96
96
  };
@@ -1,6 +1,6 @@
1
1
  {
2
- "bundleSize": 199016,
3
- "bundleOrigSize": 230677,
2
+ "bundleSize": 199018,
3
+ "bundleOrigSize": 230679,
4
4
  "bundleReduction": 13.73,
5
5
  "modules": [
6
6
  {
@@ -217,8 +217,8 @@
217
217
  },
218
218
  {
219
219
  "id": "/src/adapters/node-http/incomingMessageToRequest.ts",
220
- "size": 4047,
221
- "origSize": 4343,
220
+ "size": 4049,
221
+ "origSize": 4345,
222
222
  "renderedExports": [
223
223
  "createURL",
224
224
  "incomingMessageToRequest"
@@ -229,7 +229,7 @@
229
229
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
230
230
  ],
231
231
  "percent": 2.03,
232
- "reduction": 6.82
232
+ "reduction": 6.81
233
233
  },
234
234
  {
235
235
  "id": "/src/observable/operators.ts",
@@ -951,16 +951,6 @@
951
951
  "percent": 0,
952
952
  "reduction": 100
953
953
  },
954
- {
955
- "id": "/src/adapters/fetch/index.ts",
956
- "size": 0,
957
- "origSize": 64,
958
- "renderedExports": [],
959
- "removedExports": [],
960
- "dependents": [],
961
- "percent": 0,
962
- "reduction": 100
963
- },
964
954
  {
965
955
  "id": "/src/adapters/node-http/index.ts",
966
956
  "size": 0,
@@ -976,6 +966,16 @@
976
966
  ],
977
967
  "percent": 0,
978
968
  "reduction": 100
969
+ },
970
+ {
971
+ "id": "/src/adapters/fetch/index.ts",
972
+ "size": 0,
973
+ "origSize": 64,
974
+ "renderedExports": [],
975
+ "removedExports": [],
976
+ "dependents": [],
977
+ "percent": 0,
978
+ "reduction": 100
979
979
  }
980
980
  ],
981
981
  "moduleCount": 63
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-rc.755+358ea8ec7",
3
+ "version": "11.0.0-rc.761+b7174a4f2",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -118,7 +118,7 @@
118
118
  },
119
119
  "devDependencies": {
120
120
  "@fastify/websocket": "^10.0.1",
121
- "@tanstack/react-query": "^5.62.8",
121
+ "@tanstack/react-query": "^5.66.0",
122
122
  "@types/aws-lambda": "^8.10.137",
123
123
  "@types/express": "^5.0.0",
124
124
  "@types/hash-sum": "^1.0.0",
@@ -152,5 +152,5 @@
152
152
  "peerDependencies": {
153
153
  "typescript": ">=5.7.2"
154
154
  },
155
- "gitHead": "358ea8ec7a3c2408ca1271836cacfaa7a9027797"
155
+ "gitHead": "b7174a4f24e93ca1fc733ae56e534d45960b41ca"
156
156
  }
@@ -127,7 +127,7 @@ export function incomingMessageToRequest(
127
127
 
128
128
  const onAbort = () => {
129
129
  res.off('close', onAbort);
130
- req.socket?.off?.('end', onAbort);
130
+ req.socket?.off?.('close', onAbort);
131
131
 
132
132
  // abort the request
133
133
  ac.abort();