@plasius/react-state 1.2.1 → 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 +11 -0
- package/package.json +17 -8
package/README.md
CHANGED
|
@@ -32,6 +32,17 @@ npm install @plasius/react-state
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
+
## Demo
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm run build
|
|
39
|
+
node demo/example.mjs
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
See `demo/README.md` for the local sanity-check scaffold.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
35
46
|
## Usage Example
|
|
36
47
|
|
|
37
48
|
### Accessing the store
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/react-state",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Tiny, testable, typesafe React Scoped Store helper.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -51,22 +51,28 @@
|
|
|
51
51
|
"test:watch": "vitest",
|
|
52
52
|
"lint": "eslint .",
|
|
53
53
|
"prepare": "npm run build",
|
|
54
|
-
"clean": "rimraf dist"
|
|
54
|
+
"clean": "rimraf dist",
|
|
55
|
+
"test:coverage": "vitest run --coverage",
|
|
56
|
+
"pack:check": "node scripts/verify-public-package.cjs",
|
|
57
|
+
"prepublishOnly": "npm run build && npm run pack:check"
|
|
55
58
|
},
|
|
56
59
|
"devDependencies": {
|
|
60
|
+
"@testing-library/dom": "^10.4.1",
|
|
57
61
|
"@testing-library/jest-dom": "^6.8.0",
|
|
58
62
|
"@testing-library/react": "^16.3.0",
|
|
59
63
|
"@types/node": "^24.5.2",
|
|
60
64
|
"@types/react": "^19.1.13",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
62
|
-
"@typescript-eslint/parser": "^8.
|
|
63
|
-
"@vitest/coverage-v8": "^
|
|
64
|
-
"eslint": "^
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
66
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
67
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
68
|
+
"eslint": "^10.0.1",
|
|
65
69
|
"jsdom": "^27.0.0",
|
|
70
|
+
"react": "19.2.4",
|
|
71
|
+
"react-dom": "19.2.4",
|
|
66
72
|
"tsup": "^8.5.0",
|
|
67
73
|
"tsx": "^4.20.5",
|
|
68
74
|
"typescript": "^5.9.2",
|
|
69
|
-
"vitest": "^
|
|
75
|
+
"vitest": "^4.0.18"
|
|
70
76
|
},
|
|
71
77
|
"publishConfig": {
|
|
72
78
|
"access": "public"
|
|
@@ -85,6 +91,9 @@
|
|
|
85
91
|
}
|
|
86
92
|
],
|
|
87
93
|
"dependencies": {
|
|
88
|
-
"@plasius/nfr": "^1.0.
|
|
94
|
+
"@plasius/nfr": "^1.0.4"
|
|
95
|
+
},
|
|
96
|
+
"overrides": {
|
|
97
|
+
"minimatch": "^10.2.1"
|
|
89
98
|
}
|
|
90
99
|
}
|