mol_mutable 0.0.2 → 0.0.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -9,10 +9,10 @@ const prev = {
9
9
  }
10
10
 
11
11
  const mut = $mol_mutable( data )
12
- mut.foo[1] = 7
12
+ mut.foo[1]( v => -v )
13
13
  const next = mut()
14
14
 
15
15
  // prev !== next
16
- // next.foo == [ 1, 7, 3 ]
16
+ // next.foo == [ 1, -2, 3 ]
17
17
  // prev.bar === next.bar
18
18
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_mutable",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "main": "node.js",
5
5
  "module": "node.esm.js",
6
6
  "browser": "web.js",