deepmerge-json
Advanced tools
Changelog
[1.5.0] - 2022-02-08
merge
operation. It should be used instead of $replace
. It works like $replace
was before 1.4.0
. It merges objects when the index is found and add them when the index is missing.--
Changelog
[1.4.0] - 2022-02-08
replace
method now does what it suppose to do: it "replaces" individual array elements instead of merging the old ones with the new.Changelog
[1.3.2] - 2022-13-04
d.ts
file, keeping Typescript users happy effortlesslyclone
and multi
methodsd.ts
fileChangelog
[1.3.0] - 2022-12-04
clone
method which is a more meaninful named alias to the functionalitymerge.multi
an utility method to merge multiple objects at once, respecting their orderpos
parameter. This fix can be a breaking change if your code rely on this behavior. This was wrongly assuming that if you pass any falsey pos
parameter it meant you wanted to replace the entire pre
parameter with it. Now it works like this: if you pass nothing (undefined
) to the pos
parameter, the pre
parameter will be cloned as is. If you pass anything else, it will be used in the merge process as expected.Changelog
[1.2.0] - 2021-08-06
$insert
operationChangelog
[1.1.3] - 2021-08-05
$insert
$replace
accept string numeric keysChangelog
[1.1.1] - 2020-11-02
Changelog
[1.1.0] - 2020-03-27
$replace