merge-anything
Advanced tools
Comparing version
{ | ||
"name": "merge-anything", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Merge objects & other types recursively. A simple & small integration.", | ||
@@ -50,5 +50,5 @@ "main": "dist/index.cjs.js", | ||
"ava": "1.0.0-beta.8", | ||
"copy-anything": "^1.1.0", | ||
"copy-anything": "^1.1.1", | ||
"rollup": "^0.65.2", | ||
"rollup-plugin-typescript2": "^0.17.0", | ||
"rollup-plugin-typescript2": "^0.19.2", | ||
"typescript": "^3.0.3" | ||
@@ -55,0 +55,0 @@ }, |
@@ -134,3 +134,3 @@ # Merge anything 🥡 | ||
However, **there is a really easy solution**. We can just copy the merge result to get rid of any reactivity. For this we can use the [copy-anything](https://github.com/mesqueeb/copy-anything) library. This library makes sure that special class instances do not break, so you can use it without fear of breaking stuff! | ||
However, **there is a really easy solution**. We can just copy the merge result to get rid of any reactivity. For this we can use the [copy-anything](https://github.com/mesqueeb/copy-anything) library. This library also makes sure that _special class instances do not break_, so you can use it without fear of breaking stuff! | ||
@@ -148,5 +148,5 @@ See below how we integrate 'copy-anything': | ||
original.airport.airplane = '🛬' | ||
// `original` and `merged` are not linked anymore! | ||
// `original` and `mergedNotReactive` are not linked anymore! | ||
original.airport.airplane === '🛬' // true | ||
merged.airport.airplane === '🛫' // true | ||
mergedNotReactive.airport.airplane === '🛫' // true | ||
``` | ||
@@ -153,0 +153,0 @@ |
30970
-79.35%11
-8.33%