react-ws-kit 1.0.0 → 1.0.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/LICENSE +1 -1
- package/README.md +1 -1
- package/package.json +4 -3
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 react-
|
|
3
|
+
Copyright (c) 2025 react-ws-kit contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ A production-quality, typed WebSocket hook for React with intelligent connection
|
|
|
10
10
|
- **Message Queuing**: Optional FIFO queue for offline message buffering
|
|
11
11
|
- **Auto-Reconnect**: Configurable linear backoff strategy
|
|
12
12
|
- **Kill Switch**: Programmatically close connections for all subscribers
|
|
13
|
-
- **Zero Dependencies**: Only peer dependency is React
|
|
13
|
+
- **Zero Dependencies**: Only peer dependency is React 16.8+ (hooks support)
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-ws-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Production-quality typed WebSocket hook for React with intelligent connection sharing, auto-reconnect, and message queuing",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
22
22
|
"prepublishOnly": "npm run build",
|
|
23
23
|
"test": "vitest run",
|
|
24
|
-
"test:watch": "vitest"
|
|
24
|
+
"test:watch": "vitest",
|
|
25
|
+
"test:coverage": "vitest run --coverage"
|
|
25
26
|
},
|
|
26
27
|
"repository": {
|
|
27
28
|
"type": "git",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@testing-library/react": "^14.1.2",
|
|
40
41
|
"@types/react": "^18.2.45",
|
|
42
|
+
"@vitest/coverage-v8": "^1.6.1",
|
|
41
43
|
"@vitest/ui": "^1.1.0",
|
|
42
44
|
"happy-dom": "^12.10.3",
|
|
43
45
|
"react": "^18.2.0",
|
|
@@ -65,4 +67,3 @@
|
|
|
65
67
|
"node": ">=18.0.0"
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
|
-
|