react-realtime-hooks 1.2.0 → 1.2.2
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 +14 -5
- package/dist/index.cjs +208 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +209 -102
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-realtime-hooks",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "React hooks for WebSocket, EventSource, reconnect, heartbeat, and online status.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"demo": "vite --config demo/vite.config.ts",
|
|
51
51
|
"demo:build": "vite build --config demo/vite.config.ts",
|
|
52
52
|
"dev": "tsup --watch",
|
|
53
|
-
"lint": "eslint .",
|
|
53
|
+
"lint": "eslint . --max-warnings=0",
|
|
54
54
|
"typecheck": "tsc --noEmit",
|
|
55
55
|
"test": "vitest run",
|
|
56
56
|
"test:watch": "vitest",
|
|
@@ -61,10 +61,12 @@
|
|
|
61
61
|
"prepublishOnly": "npm run lint && npm run typecheck && npm run test && npm run build && npm run publint"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"react": "^19.
|
|
64
|
+
"react": "^19.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@changesets/cli": "2.30.0",
|
|
68
|
+
"@emnapi/core": "1.10.0",
|
|
69
|
+
"@emnapi/runtime": "1.10.0",
|
|
68
70
|
"@eslint/js": "10.0.1",
|
|
69
71
|
"@testing-library/react": "16.3.2",
|
|
70
72
|
"@types/node": "25.5.0",
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
"@types/react-dom": "19.2.3",
|
|
73
75
|
"@vitejs/plugin-react": "6.0.1",
|
|
74
76
|
"eslint": "10.0.3",
|
|
77
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
75
78
|
"globals": "17.4.0",
|
|
76
79
|
"jsdom": "29.0.0",
|
|
77
80
|
"publint": "0.3.18",
|
|
@@ -80,7 +83,7 @@
|
|
|
80
83
|
"tsup": "8.5.1",
|
|
81
84
|
"typescript": "5.9.3",
|
|
82
85
|
"typescript-eslint": "8.57.0",
|
|
83
|
-
"vite": "8.0.
|
|
86
|
+
"vite": "8.0.10",
|
|
84
87
|
"vitest": "4.1.0"
|
|
85
88
|
}
|
|
86
89
|
}
|