@storve/core 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +51 -0
  2. package/package.json +5 -1
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # @storve/core
2
+
3
+ > Framework-agnostic reactive store — works in React, Node, tests, or vanilla JS.
4
+
5
+ [![npm (scoped)](https://img.shields.io/npm/v/@storve/core.svg)](https://www.npmjs.com/package/@storve/core)
6
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
7
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue)](https://www.typescriptlang.org/)
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install @storve/core
13
+ # or
14
+ pnpm add @storve/core
15
+ # or
16
+ yarn add @storve/core
17
+ ```
18
+
19
+ ## Quick Start
20
+
21
+ ```ts
22
+ import { createStore } from '@storve/core'
23
+
24
+ const store = createStore({ count: 0 })
25
+ store.getState().count // 0
26
+ store.setState(s => ({ count: s.count + 1 }))
27
+ ```
28
+
29
+ ## Subpath Exports
30
+
31
+ | Import | Use when |
32
+ |--------|----------|
33
+ | `@storve/core` | Core store, `createStore`, `batch`, `compose` |
34
+ | `@storve/core/async` | Async state, `createAsync`, TTL, SWR |
35
+ | `@storve/core/computed` | Derived state with `computed()` |
36
+ | `@storve/core/persist` | Persistence with `withPersist` |
37
+ | `@storve/core/persist/adapters/localStorage` | localStorage adapter |
38
+ | `@storve/core/persist/adapters/sessionStorage` | sessionStorage adapter |
39
+ | `@storve/core/persist/adapters/indexedDB` | IndexedDB adapter |
40
+ | `@storve/core/persist/adapters/memory` | In-memory adapter (SSR/tests) |
41
+ | `@storve/core/signals` | Fine-grained `signal()` reactivity |
42
+ | `@storve/core/devtools` | Time-travel, Undo/Redo with `withDevtools` |
43
+ | `@storve/core/sync` | Cross-tab sync with `withSync` |
44
+
45
+ ## Documentation
46
+
47
+ Full docs, API reference, and examples: [GitHub - Nam1001/React-Flux](https://github.com/Nam1001/React-Flux)
48
+
49
+ ## License
50
+
51
+ MIT
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@storve/core",
3
- "version": "1.0.0",
3
+ "repository": {
4
+ "type": "git",
5
+ "url": "https://github.com/Nam1001/React-Flux.git"
6
+ },
7
+ "version": "1.0.1",
4
8
  "main": "dist/index.cjs",
5
9
  "module": "dist/index.mjs",
6
10
  "types": "dist/index.d.ts",