v3.1.0
Features
-
Added
dset/merge
submodule: 5aed5d1, 8d0224d, 8ee6d12
This is an opt-in module, inspired by GraphQL's upcoming@stream
and@defer
directives.
The purpose of this submodule is to merge mutations from multiple sources into a single payload. It will merge new values into existing/previous values, whereasdset
(main mode) will replace values at the specified key-path outright. In code, this difference roughly translates to this distinction:// dset (main) target.key = { value: 'new value' }; // dset/merge Object.assign(target.key, { value: 'new value' })
See Merging and
test/suites/objects.js
for more information.