Releases: axules/deep-mutation
Releases · axules/deep-mutation
Insert elements into array
Update dependencies
v3.2.3 3.2.3
Update dependencies
v3.2.2
Support search selectors for arrays
Examples of selector:
- arr.[=10]
- arr.[=id=10]
- arr.[=id=10].data.value
More in Readme.md
Support deep object merging
- add
mutate.deep
to deep merge two objects - add
deepPatch
helper to create deep patch
Support dot in path
More information in README
Mutate if it is needed
Comparison of new value and previous value was add. Now deep-mutation
before update and returns new object will check that new value isn't equal of previous. And if they are equal then will be return original object without change. It is important to optimize rendering of react application.
Deep-mutation like patch-function
v1.1.0 Merge branch 'dev_1.1.0'
IE11 support
- removed templates syntax (`lala${a}`)
- replaced arrow functions ( () => { ... } by function () { ... } )
- added Immutable comparison
Fix removing patch
In 1.0.2
mutate({}, [['a.aa.aaa']])
// returns {a: {aa: {}}}
In 1.0.3
mutate({}, [['a.aa.aaa']])
// returns {}