@cervello/react 0.10.1 → 0.10.2

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 +9 -4
  2. package/package.json +7 -4
package/README.md CHANGED
@@ -11,10 +11,11 @@
11
11
 
12
12
 
13
13
  ## 🚀 **Features**
14
- - ⚛️ Truly reactive on item change
14
+ - ⚛️ Truly reactive on store change **_(nested properties too!!)_**
15
15
  - ✅ Super simple and minimalistic API
16
- - 🐨 Listen to attributes or items lazily
16
+ - 🐨 Listen properties lazily
17
17
  - 👌 No unnecessary re-renders
18
+ - 🔒 Immutable changes
18
19
  - 🔑 Typescript support
19
20
 
20
21
  ## 📦 **Install**
@@ -50,8 +51,12 @@ export const {
50
51
  useSelector, // The hook to use the selectors (part of the store)
51
52
  } = cervello({ count: 0 })
52
53
  ```
54
+ <br>
55
+ <br>
53
56
 
54
-
57
+ ------
58
+ ### `API Documentation`
59
+ ------
55
60
  ### 🟢 `store`
56
61
  The store object that you can use `inside or outside react components` to modify the store. It will automatically notify all the components listening for changes
57
62
 
@@ -148,7 +153,7 @@ const logger: UseFunction<typeof store> = ({ onChange, onPartialChange }): void
148
153
 
149
154
  ## 💡 Features out-of-the-box
150
155
  ### **`💠 Nested objects reactivity`**
151
- You can change a nested property of an object and it will be notified automatically
156
+ You can change a nested property of an object and it will be notified automatically as well without any problem
152
157
 
153
158
  ```jsx
154
159
  import { store } from './other-example'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cervello/react",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "🤯 Simplest and truly reactive state manager for React",
5
5
  "main": "./dist/cervello.cjs",
6
6
  "module": "./dist/cervello.esm.js",
@@ -28,7 +28,8 @@
28
28
  "types"
29
29
  ],
30
30
  "scripts": {
31
- "prepublish": "npm run build",
31
+ "release": "pnpx bumpp --push=false",
32
+ "prepublishOnly": "pnpm build",
32
33
  "build": "(rm -rf types & rm -rf dist) && microbundle --alias @observable-lib=../observable-lib/src/index.ts",
33
34
  "dev": "microbundle watch"
34
35
  },
@@ -38,11 +39,13 @@
38
39
  },
39
40
  "sideEffects": false,
40
41
  "keywords": [
41
- "state",
42
42
  "react",
43
+ "state",
43
44
  "manager",
45
+ "management",
46
+ "redux",
47
+ "zustand",
44
48
  "reactive",
45
- "immutable",
46
49
  "observable",
47
50
  "global",
48
51
  "local"