dset
3.1.4 · 9 Sep 2024MIT24.3M / weekRepositoryHomepagenpmAtom feed
Your version
2.1.0 is the newest release of 2.x.
npm marks 2.0.0 as deprecated: Please use dset@2.1.0 or later for an important security patch
In short
1 breaking1 internal
- Breaking
NEW Write into or create new Arrays with numeric path segments (#9): e6fea6f
Security
3 advisories affect 2.0.0; 3.1.4 fixes them
- Criticaldset vulnerable to prototype pollutionGHSA-q4xc-7cw8-cgfj · 24 May 2022Fixed in 2.0.1
- 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
Major Changes
- Breaking
NEW Write into or create new Arrays with numeric path segments (#9): e6fea6f
Thank you @bwendt-mylo 🎉
let qux = {}; dset(qux, 'a.0.b.0', 1); dset(qux, 'a.0.b.1', 2); //=> { a: [{ b: [1, 2] }] }
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.