state-jet 1.0.3 → 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 CHANGED
@@ -5,7 +5,7 @@ A zero-boilerplate, ultra-fast global state management library for React. No con
5
5
  ## 🚀 Why state-jet?
6
6
  - ✅ **No Context, No Providers** – Works outside React, reducing unnecessary re-renders.
7
7
  - ✅ **Automatic Re-Renders** – Only components using specific state values update.
8
- - ✅ **Super Lightweight** – Less than **1KB** minified!
8
+ - ✅ **Super Lightweight** – Ultra small!
9
9
  - ✅ **SSR & Next.js Support** – Works on both client and server.
10
10
 
11
11
  ## 🛠 Installation
@@ -25,12 +25,12 @@ function Counter() {
25
25
  }
26
26
  ```
27
27
 
28
- ## ⚡ Comparison with Zustand
28
+ ## ⚡ Comparison Table
29
29
 
30
30
  |Feature|Redux|Recoil|MobX|Jotai|state-jet|
31
31
  |:----|:----|:----|:----|:----|:----|
32
32
  |Setup Required|✅ Yes|✅ Yes|⚠️ Yes|❌ No|❌ No|
33
- |Bundle Size|🚀 Large|🚀 Medium|⚡ Small|⚡ Small|🔥 Ultra-Small (<1KB)|
33
+ |Bundle Size|🚀 Large|🚀 Medium|⚡ Small|⚡ Small|🔥 Ultra-Small|
34
34
  |Reactivity|⚠️ Reducers|✅ Atoms|✅ Proxy-Based|✅ Signals|✅ Signal-Like|
35
35
  |Renders Only Affected|❌ No|✅ Yes|✅ Yes|✅ Yes|✅ Yes|
36
36
  |Derived/Computed State|❌ No|✅ Yes|✅ Yes|✅ Yes|✅ Yes|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "state-jet",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Ultra-lightweight global state management for React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = App;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const index_1 = require("../src/index");
6
- const middleware_1 = require("../src/middleware");
7
- const counter = (0, index_1.useStateGlobal)("counter", 0, { middleware: [middleware_1.loggerMiddleware] });
8
- function App() {
9
- const { undo, redo } = counter;
10
- const count = counter.useStore();
11
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("button", { onClick: () => counter.set(count + 1), children: "+" }), (0, jsx_runtime_1.jsx)("button", { onClick: () => counter.set(count - 1), children: "-" }), (0, jsx_runtime_1.jsx)("button", { onClick: undo, children: "Undo" }), (0, jsx_runtime_1.jsx)("button", { onClick: redo, children: "Redo" }), (0, jsx_runtime_1.jsxs)("p", { children: ["Count: ", count] })] }));
12
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes