Skip to content

Releases: axules/deep-mutation

Insert elements into array

31 Jul 00:35
Compare
Choose a tag to compare

Update dependencies

22 Aug 17:13
Compare
Choose a tag to compare
v3.2.3

3.2.3

Update dependencies

08 Nov 21:22
Compare
Choose a tag to compare

Support search selectors for arrays

19 Jul 17:27
Compare
Choose a tag to compare

Examples of selector:

  • arr.[=10]
  • arr.[=id=10]
  • arr.[=id=10].data.value

More in Readme.md

Support deep object merging

24 Feb 17:25
Compare
Choose a tag to compare
  • add mutate.deep to deep merge two objects
  • add deepPatch helper to create deep patch

Support dot in path

10 May 21:15
Compare
Choose a tag to compare

More information in README

Mutate if it is needed

20 Jan 21:15
839b868
Compare
Choose a tag to compare

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

20 Jan 21:16
Compare
Choose a tag to compare
v1.1.0

Merge branch 'dev_1.1.0'

IE11 support

25 Aug 12:21
Compare
Choose a tag to compare
  • removed templates syntax (`lala${a}`)
  • replaced arrow functions ( () => { ... } by function () { ... } )
  • added Immutable comparison

Fix removing patch

12 Aug 17:04
Compare
Choose a tag to compare

In 1.0.2

mutate({}, [['a.aa.aaa']])
// returns {a: {aa: {}}}

In 1.0.3

mutate({}, [['a.aa.aaa']])
// returns {}