webpack-merge
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -0,1 +1,6 @@ | ||
0.8.4 / 2016-03-17 | ||
================== | ||
* Bug fix: *webpack-merge* should not mutate inputs. #12 | ||
0.8.3 / 2016-03-02 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -58,3 +58,3 @@ 'use strict'; | ||
if (isPlainObject(a) && isPlainObject(b)) { | ||
return merge(a, b, joinArrays.bind(null, customizer)); | ||
return merge({}, a, b, joinArrays.bind(null, customizer)); | ||
} | ||
@@ -61,0 +61,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Juho Vepsalainen <bebraw@gmail.com>", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"scripts": { | ||
@@ -8,0 +8,0 @@ "build": "babel src -d lib", |
@@ -52,3 +52,3 @@ const isArray = Array.isArray; | ||
if (isPlainObject(a) && isPlainObject(b)) { | ||
return merge(a, b, joinArrays.bind(null, customizer)); | ||
return merge({}, a, b, joinArrays.bind(null, customizer)); | ||
} | ||
@@ -55,0 +55,0 @@ |
17
test.js
@@ -531,2 +531,19 @@ /* eslint-env mocha */ | ||
it('should not mutate inputs', function () { | ||
const a = { | ||
output: { | ||
filename: 'bundle.js' | ||
} | ||
}; | ||
const b = { | ||
output: { | ||
path: 'path/b' | ||
} | ||
}; | ||
const aClone = JSON.parse(JSON.stringify(a)); | ||
merge({}, a, b); | ||
assert.deepEqual(a, aClone); | ||
}); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25489
626
0