@trpc/server 11.0.0-next.326 → 11.0.0-next.327

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.
@@ -40,7 +40,7 @@ function fastifyTRPCPlugin(fastify, opts, done) {
40
40
  });
41
41
  fastify.get(prefix ?? '/', {
42
42
  websocket: true
43
- }, ({ socket }, req)=>onConnection(socket, req.raw));
43
+ }, (socket, req)=>onConnection(socket, req.raw));
44
44
  }
45
45
  done();
46
46
  }
@@ -38,7 +38,7 @@ function fastifyTRPCPlugin(fastify, opts, done) {
38
38
  });
39
39
  fastify.get(prefix ?? '/', {
40
40
  websocket: true
41
- }, ({ socket }, req)=>onConnection(socket, req.raw));
41
+ }, (socket, req)=>onConnection(socket, req.raw));
42
42
  }
43
43
  done();
44
44
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "bundleSize": 98633,
3
- "bundleOrigSize": 157790,
2
+ "bundleSize": 98628,
3
+ "bundleOrigSize": 157786,
4
4
  "bundleReduction": 37.49,
5
5
  "modules": [
6
6
  {
@@ -375,8 +375,8 @@
375
375
  },
376
376
  {
377
377
  "id": "/src/adapters/fastify/fastifyTRPCPlugin.ts",
378
- "size": 1486,
379
- "origSize": 2263,
378
+ "size": 1481,
379
+ "origSize": 2259,
380
380
  "renderedExports": [
381
381
  "fastifyTRPCPlugin"
382
382
  ],
@@ -384,8 +384,8 @@
384
384
  "dependents": [
385
385
  "/src/adapters/fastify/index.ts"
386
386
  ],
387
- "percent": 1.51,
388
- "reduction": 34.33
387
+ "percent": 1.5,
388
+ "reduction": 34.44
389
389
  },
390
390
  {
391
391
  "id": "/src/adapters/node-http/content-type/form-data/streamSlice.ts",
@@ -666,8 +666,8 @@
666
666
  ],
667
667
  "removedExports": [],
668
668
  "dependents": [
669
- "/src/adapters/node-http/content-type/form-data/index.ts",
670
- "/src/adapters/node-http/content-type/json/index.ts"
669
+ "/src/adapters/node-http/content-type/json/index.ts",
670
+ "/src/adapters/node-http/content-type/form-data/index.ts"
671
671
  ],
672
672
  "percent": 0.12,
673
673
  "reduction": 86.68
@@ -724,9 +724,9 @@
724
724
  "reduction": 100
725
725
  },
726
726
  {
727
- "id": "/src/rpc.ts",
727
+ "id": "/src/shared.ts",
728
728
  "size": 0,
729
- "origSize": 36,
729
+ "origSize": 653,
730
730
  "renderedExports": [],
731
731
  "removedExports": [],
732
732
  "dependents": [],
@@ -734,9 +734,9 @@
734
734
  "reduction": 100
735
735
  },
736
736
  {
737
- "id": "/src/shared.ts",
737
+ "id": "/src/rpc.ts",
738
738
  "size": 0,
739
- "origSize": 653,
739
+ "origSize": 36,
740
740
  "renderedExports": [],
741
741
  "removedExports": [],
742
742
  "dependents": [],
@@ -803,8 +803,8 @@
803
803
  "removedExports": [],
804
804
  "dependents": [
805
805
  "/src/adapters/express.ts",
806
- "/src/adapters/next.ts",
807
- "/src/adapters/standalone.ts"
806
+ "/src/adapters/standalone.ts",
807
+ "/src/adapters/next.ts"
808
808
  ],
809
809
  "percent": 0,
810
810
  "reduction": 100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-next.326+1bd1056c4",
3
+ "version": "11.0.0-next.327+1c757e8d3",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -126,7 +126,7 @@
126
126
  "access": "public"
127
127
  },
128
128
  "devDependencies": {
129
- "@fastify/websocket": "^7.1.2",
129
+ "@fastify/websocket": "^10.0.1",
130
130
  "@tanstack/react-query": "^5.25.0",
131
131
  "@types/aws-lambda": "^8.10.97",
132
132
  "@types/express": "^4.17.17",
@@ -140,7 +140,7 @@
140
140
  "devalue": "^4.0.0",
141
141
  "eslint": "^8.56.0",
142
142
  "express": "^4.17.1",
143
- "fastify": "^4.13.0",
143
+ "fastify": "^4.16.0",
144
144
  "fastify-plugin": "^4.5.0",
145
145
  "hash-sum": "^2.0.0",
146
146
  "myzod": "^1.3.1",
@@ -161,5 +161,5 @@
161
161
  "funding": [
162
162
  "https://trpc.io/sponsor"
163
163
  ],
164
- "gitHead": "1bd1056c4acdda9325321af80ec18b3f644dbc12"
164
+ "gitHead": "1c757e8d30578eb3172495c300383867a0307444"
165
165
  }
@@ -60,7 +60,7 @@ export function fastifyTRPCPlugin<TRouter extends AnyRouter>(
60
60
  ...(opts.trpcOptions as unknown as WSSHandlerOptions<TRouter>),
61
61
  });
62
62
 
63
- fastify.get(prefix ?? '/', { websocket: true }, ({ socket }, req) =>
63
+ fastify.get(prefix ?? '/', { websocket: true }, (socket, req) =>
64
64
  onConnection(socket, req.raw),
65
65
  );
66
66
  }