dset
3.1.4 · 9 Sep 2024MIT24.3M / weekRepositoryHomepagenpmAtom feed
3.1.4 is the newest release of 3.x.
In short
1 new2 internal
Security
2 advisories affect 3.1.0; 3.1.4 fixes them
- Highdset Prototype Pollution vulnerabilityGHSA-f6v4-cf5j-vf3w · 11 Sep 2024Fixed in 3.1.4
- ModeratePrototype Pollution in dsetGHSA-23wx-cgxq-vpwx · 3 May 2022Fixed in 3.1.2
Release note
Features
Added
dset/mergesubmodule: 5aed5d1, 8d0224d, 8ee6d12
This is an opt-in module, inspired by GraphQL's upcoming@streamand@deferdirectives.
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.jsfor more information.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.