trpc-uwebsockets 11.1.4 → 11.3.1
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.
- package/README.md +6 -0
- package/package.json +5 -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
|
+
"version": "11.3.1",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"test:watch": "vitest",
|
|
17
17
|
"test:coverage": "vitest --coverage",
|
|
18
18
|
"test:publish": "yarn test && yarn build && yarn pack",
|
|
19
|
+
"bump-version": "node ./bumpVersion.js && yarn install && yarn test",
|
|
19
20
|
"publish:main": "yarn npm publish",
|
|
20
21
|
"publish:canary": "yarn npm publish --tag canary",
|
|
21
22
|
"prepack": "yarn build",
|
|
@@ -28,8 +29,7 @@
|
|
|
28
29
|
"prettier:dry": "prettier src/**/*.ts --config .prettierrc"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@trpc/server": "^11.1
|
|
32
|
-
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.51.0"
|
|
32
|
+
"@trpc/server": "^11.3.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"uWebSockets.js": "*"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@eslint/eslintrc": "^3.3.1",
|
|
39
39
|
"@eslint/js": "^9.24.0",
|
|
40
|
-
"@trpc/client": "^11.1
|
|
40
|
+
"@trpc/client": "^11.3.1",
|
|
41
41
|
"@types/node": "^20.11.5",
|
|
42
42
|
"@types/node-fetch": "^2.6.12",
|
|
43
43
|
"@types/ws": "^8.5.10",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"rimraf": "^6.0.1",
|
|
57
57
|
"ts-node": "^10.9.2",
|
|
58
58
|
"typescript": "^5.8.3",
|
|
59
|
+
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.51.0",
|
|
59
60
|
"vite": "^6.2.5",
|
|
60
61
|
"vitest": "^3.1.1",
|
|
61
62
|
"ws": "^8.18.1",
|