trpc-uwebsockets 11.1.4 → 11.2.0

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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -10,6 +10,12 @@ npm install trpc-uwebsockets
10
10
 
11
11
  The versioning of the adapter follows the versioning scheme of trpc. For example, for the `@trpc/server` version of `11.0.0`, the npm package for `trpc-uwebsockets` will have version `11.0.X`, where X is incrementing library version. Ensure that the version of `@trpc/server` and `@trpc/client` matches the version of `trpc-uwebsockets`. Your package manager should provide warnings such as "incorrect peer dependency" if something is wrong.
12
12
 
13
+ ```bash
14
+ npm install uNetworking/uWebSockets.js#v20.51.0
15
+ ```
16
+
17
+ Installation of uWebSockets.js must be done separately, as it is a peer dependency of the project. Version 20.51.0 or higher is required.
18
+
13
19
  # Usage
14
20
 
15
21
  This full example can be found [here](src/readme.spec.ts).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trpc-uwebsockets",
3
3
  "description": "tRPC adapter for uWebSockets.js server",
4
- "version": "11.1.4",
4
+ "version": "11.2.0",
5
5
  "main": "./dist/index.js",
6
6
  "type": "commonjs",
7
7
  "types": "./types/index.d.ts",
@@ -28,8 +28,7 @@
28
28
  "prettier:dry": "prettier src/**/*.ts --config .prettierrc"
29
29
  },
30
30
  "dependencies": {
31
- "@trpc/server": "^11.1.4",
32
- "uWebSockets.js": "uNetworking/uWebSockets.js#v20.51.0"
31
+ "@trpc/server": "^11.2.0"
33
32
  },
34
33
  "peerDependencies": {
35
34
  "uWebSockets.js": "*"
@@ -37,7 +36,7 @@
37
36
  "devDependencies": {
38
37
  "@eslint/eslintrc": "^3.3.1",
39
38
  "@eslint/js": "^9.24.0",
40
- "@trpc/client": "^11.1.4",
39
+ "@trpc/client": "^11.2.0",
41
40
  "@types/node": "^20.11.5",
42
41
  "@types/node-fetch": "^2.6.12",
43
42
  "@types/ws": "^8.5.10",
@@ -56,6 +55,7 @@
56
55
  "rimraf": "^6.0.1",
57
56
  "ts-node": "^10.9.2",
58
57
  "typescript": "^5.8.3",
58
+ "uWebSockets.js": "uNetworking/uWebSockets.js#v20.51.0",
59
59
  "vite": "^6.2.5",
60
60
  "vitest": "^3.1.1",
61
61
  "ws": "^8.18.1",