@everystate/core 1.0.4 → 1.0.5
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 +19 -10
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @everystate/core
|
|
1
|
+
# @everystate/core v1.0.5
|
|
2
2
|
|
|
3
3
|
**EveryState: Observable state management with dot-path addressing**
|
|
4
4
|
|
|
@@ -10,6 +10,8 @@ Every piece of state has a name. Every name is subscribable. Every operation is
|
|
|
10
10
|
npm install @everystate/core
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
> **Zero external dependencies** - Pure state management with no third-party packages required.
|
|
14
|
+
|
|
13
15
|
## Quick Start
|
|
14
16
|
|
|
15
17
|
```js
|
|
@@ -62,20 +64,17 @@ npm --prefix node_modules/@everystate/core run self-test
|
|
|
62
64
|
### Integration tests (@everystate/test)
|
|
63
65
|
|
|
64
66
|
The `tests/` folder contains a separate integration suite that uses
|
|
65
|
-
`@everystate/test` (
|
|
66
|
-
the **self-test** stays lightweight, while integration tests
|
|
67
|
-
for deeper validation.
|
|
67
|
+
`@everystate/test` (declared as `devDependency`). This is an intentional
|
|
68
|
+
tradeoff: the **self-test** stays lightweight, while integration tests
|
|
69
|
+
remain available for deeper validation.
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
**For end users** (after installing the package):
|
|
70
72
|
|
|
71
73
|
```bash
|
|
74
|
+
# Install test dependency
|
|
72
75
|
npm install @everystate/test
|
|
73
|
-
node node_modules/@everystate/core/tests/core.test.js
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Short form (from the package folder):
|
|
77
76
|
|
|
78
|
-
|
|
77
|
+
# Run from package folder
|
|
79
78
|
cd node_modules/@everystate/core
|
|
80
79
|
npm run test:integration
|
|
81
80
|
# or short alias
|
|
@@ -90,6 +89,16 @@ npm --prefix node_modules/@everystate/core run test:integration
|
|
|
90
89
|
npm --prefix node_modules/@everystate/core run test:i
|
|
91
90
|
```
|
|
92
91
|
|
|
92
|
+
**For package developers** (working in the source repo):
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Install dev dependencies first
|
|
96
|
+
npm install
|
|
97
|
+
|
|
98
|
+
# Run integration tests
|
|
99
|
+
npm run test:integration
|
|
100
|
+
```
|
|
101
|
+
|
|
93
102
|
## What is EveryState?
|
|
94
103
|
|
|
95
104
|
EveryState is a reactive state management library where:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everystate/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "EveryState: Lightweight event-driven state management with path-based subscriptions, wildcards, and async support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -45,5 +45,8 @@
|
|
|
45
45
|
"*.html",
|
|
46
46
|
"cli.js",
|
|
47
47
|
"tests/"
|
|
48
|
-
]
|
|
48
|
+
],
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@everystate/test": "^1.0.0"
|
|
51
|
+
}
|
|
49
52
|
}
|