maraj 1.0.2 → 1.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 +5 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -88,7 +88,7 @@ createImmutableUpdate(person,{
88
88
 
89
89
  ### spread
90
90
 
91
- Spreads its argument into the key provided in the createImmutableUpdate.
91
+ Spreads its argument into the key provided in the **createImmutableUpdate.**
92
92
  Works with objects(updates its keys) and arrays(adds new values to the array)
93
93
 
94
94
  ```js
@@ -102,10 +102,10 @@ createImmutableUpdate(person,{
102
102
 
103
103
  ### remove
104
104
 
105
- Removes the key of an object or the index of an array in the key provided in the createImmutableUpdate.
105
+ Removes the key of an object or the index of an array in the key provided in the **createImmutableUpdate.**
106
106
 
107
107
  ```js
108
- import {spread} from 'maraj'
108
+ import {remove} from 'maraj'
109
109
 
110
110
  createImmutableUpdate(person,{
111
111
  'additionalInfo': remove('info1') // returns new value (in this case "additionalInfo") without the provided key ("info1")
@@ -118,6 +118,8 @@ createImmutableUpdate(person,{
118
118
  Creates a store selector from provided string path. Usefull in cases like getting data from Redux, Zustand, and so on. stores.
119
119
 
120
120
  ```js
121
+ import {createSelectorFromStringPath} from 'maraj'
122
+
121
123
  const stringPath = 'projects.1.data.size'
122
124
 
123
125
  createSelectorFromStringPath(stringPath) // will behave as (store) => store[projects][1][data][size]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maraj",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A lightweight 600 bytes gzipped alternative for immutable updates while dealing with objects and arrays",
5
5
  "main": "index.js",
6
6
  "scripts": {