@t8/react-store 1.2.7 → 1.2.8

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 +3 -5
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # T8 React Store
2
2
 
3
- A state management lib for React apps aligned with React's state pattern, condensed to the essentials
3
+ React app state management condensed to the essentials
4
4
 
5
- [![npm](https://img.shields.io/npm/v/@t8/react-store?labelColor=345&color=46e)](https://www.npmjs.com/package/@t8/react-store) ![Lightweight](https://img.shields.io/bundlephobia/minzip/@t8/react-store?label=minzip&labelColor=345&color=46e) ![CSR ✓](https://img.shields.io/badge/CSR-✓-345?labelColor=345) ![SSR ✓](https://img.shields.io/badge/SSR-✓-345?labelColor=345)
5
+ [![npm](https://img.shields.io/npm/v/@t8/react-store?labelColor=345&color=46e)](https://www.npmjs.com/package/@t8/react-store) ![Lightweight](https://img.shields.io/bundlephobia/minzip/@t8/react-store?label=minzip&labelColor=345&color=46e)
6
6
 
7
- **Why?** To get the shortest migration path from local state to shared state and a quick way to set up shared state from scratch, whether with SSR or without. Other approaches, like Redux Toolkit, Zustand, Jotai, MobX, depart from this picture to varying degrees.
8
-
9
- This picture is achieved here by (1) having a simple API introducing as few new entities as possible, (2) closely following the React's `useState()` pattern of initializing and manipulating the state to avoid boilerplate and sizable rewrites with the common task of migration from local state to shared state, (3) working smoothly with SSR with regular React Contexts without requiring a specifically designed setup and without internally making use of global stores or other global variables by default.
7
+ **Features:** Quickest migration from local state · Familiar useState pattern · CSR/SSR without workarounds · Integrable with Immer · Quickly pluggable persistence across page reloads
10
8
 
11
9
  <!-- docsgen-show-start --
12
10
  ```diff
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@t8/react-store",
3
- "version": "1.2.7",
4
- "description": "A state management lib for React apps aligned with React's state pattern, condensed to the essentials",
3
+ "version": "1.2.8",
4
+ "description": "React app state management condensed to the essentials",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "type": "module",
9
9
  "scripts": {
10
- "demo": "npx @t8/serve 3000 * tests/counter -b src/index.tsx",
10
+ "demo": "npx @t8/serve tests/counter --spa -b src/index.tsx",
11
+ "demo-t3": "npx @t8/serve tests/tic-tac-toe --spa -b src/index.tsx",
11
12
  "preversion": "npx npm-run-all shape test",
12
13
  "shape": "npx codeshape",
13
- "test": "npx playwright test --project=chromium",
14
- "tic-tac-toe": "npx @t8/serve 3000 * tests/tic-tac-toe -b src/index.tsx"
14
+ "test": "npx playwright test --project=chromium"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@playwright/test": "^1.56.0",
35
- "@t8/serve": "^0.1.39",
35
+ "@t8/serve": "^0.2.0",
36
36
  "@types/node": "^24.5.2",
37
37
  "@types/react": "^19.2.7",
38
38
  "@types/react-dom": "^19.2.3",