state-jet 1.2.1 → 1.2.3
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 +10 -10
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -55,17 +55,17 @@ function Counter() {
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
## ⚡ Comparison Table
|
|
58
|
+
| Feature | Redux | Recoil | MobX | Jotai | Zustand | state-jet |
|
|
59
|
+
|--------------------------|--------|--------|-------|--------|------------------------|----------------------|
|
|
60
|
+
| **Easy Setup** | ❌ No | ❌ No | ⚠️ No | ❌ No | ⚠️ Minimal | ✅ Ultra-Minimal |
|
|
61
|
+
| **Bundle Size** | 🚀 Large | 🚀 Medium | ⚡ Small | ⚡ Small | ⚡ Small | 🔥 Ultra-Small |
|
|
62
|
+
| **Reactivity** | ⚠️ Reducers | ✅ Atoms | ✅ Proxy-Based | ✅ Signals | ✅ Proxy-Based | ✅ Signal-Like |
|
|
63
|
+
| **Renders Only Affected** | ❌ No | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
|
|
64
|
+
| **Derived/Computed State** | ❌ No | ✅ Yes | ✅ Yes | ✅ Yes | ⚠️ Manual Selectors | ✅ Yes (Automatic) |
|
|
65
|
+
| **Optimistic Updates** | ❌ No | ❌ No | ❌ No | ❌ No | ⚠️ Requires Middleware | ✅ Built-in |
|
|
66
|
+
| **Undo/Redo** | ❌ No | ❌ No | ❌ No | ❌ No | ⚠️ Requires Middleware | ✅ Built-in |
|
|
67
|
+
| **CRDT Conflict Resolution** | ❌ No | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
|
|
58
68
|
|
|
59
|
-
| Feature | Redux | Recoil | MobX | Jotai | Zustand | state-jet |
|
|
60
|
-
| ------------------------ | ----------- | --------- | -------------- | ---------- | ---------------------- | ------------------ | --- |
|
|
61
|
-
| Easy Setup | ❌ No | ❌ No | ⚠️ No | ❌ No | ⚠️ Minimal | ✅ Ultra-Minimal |
|
|
62
|
-
| Bundle Size | 🚀 Large | 🚀 Medium | ⚡ Small | ⚡ Small | ⚡ Small | 🔥 Ultra-Small |
|
|
63
|
-
| Reactivity | ⚠️ Reducers | ✅ Atoms | ✅ Proxy-Based | ✅ Signals | ✅ Proxy-Based | ✅ Signal-Like |
|
|
64
|
-
| Renders Only Affected | ❌ No | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
|
|
65
|
-
| Derived/Computed State | ❌ No | ✅ Yes | ✅ Yes | ✅ Yes | ⚠️ Manual Selectors | ✅ Yes (Automatic) |
|
|
66
|
-
| Optimistic Updates | ❌ No | ❌ No | ❌ No | ❌ No | ⚠️ Requires Middleware | ✅ Built-in |
|
|
67
|
-
| Undo/Redo | ❌ No | ❌ No | ❌ No | ❌ No | ⚠️ Requires Middleware | ✅ Built-in | |
|
|
68
|
-
| CRDT Conflict Resolution | ❌ No | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
|
|
69
69
|
|
|
70
70
|
## ⚡ Why state-jet Is More Advanced Than Zustand
|
|
71
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "state-jet",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Ultra-lightweight global state management for React",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"format": "prettier --write .",
|
|
49
49
|
"release": "standard-version",
|
|
50
50
|
"postrelease": "git push --follow-tags",
|
|
51
|
-
"prepare": "npm run build",
|
|
52
|
-
"prepublishOnly": "npm run build"
|
|
51
|
+
"prepare": "npm run build",
|
|
52
|
+
"prepublishOnly": "npm run build"
|
|
53
53
|
},
|
|
54
54
|
"husky": {
|
|
55
55
|
"hooks": {
|
|
@@ -90,7 +90,14 @@
|
|
|
90
90
|
}
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
+
"commitlint": {
|
|
94
|
+
"extends": [
|
|
95
|
+
"@commitlint/config-conventional"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
93
98
|
"devDependencies": {
|
|
99
|
+
"@commitlint/cli": "^19.8.0",
|
|
100
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
94
101
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
95
102
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
96
103
|
"@rollup/plugin-terser": "^0.4.4",
|