dset
3.1.4 · 9 Sep 2024MIT24.3M / weekRepositoryHomepagenpmAtom feed
3.1.4 is the newest release of 3.x.
In short
3 breaking2 new5 internal
- Breaking
Overwrites existing, non-object values as needed: 569955d Now
dsetis inline withlodash/setandset-valuebehaviors - Breaking
Use named
dsetexport instead ofdefaultexport: 7ac17ed - Breaking
Exit loop when unsafe key(s) encountered (#22): 0a11c8a Previously, as of v2.1.0,
dsetskipped over the offending key, but continued processing those after it. Nowdsetmatches thelodash/setbehavior, abandoning the currentdset()execution entirely.
Security
2 advisories affect 3.0.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
Breaking
- Breaking
Overwrites existing, non-object values as needed: 569955d
Nowdsetis inline withlodash/setandset-valuebehaviorslet input = { foo: 123 }; dset(input, 'foo.bar', 456); console.log(input); //=> (Before) { foo: 123 } -- no change //=> (After) { foo: { bar: 456 } } -- convert "foo" to object - Breaking
Use named
dsetexport instead ofdefaultexport: 7ac17ed-import dset from 'dset'; +import { dset } from 'dset'; - Breaking
Exit loop when unsafe key(s) encountered (#22): 0a11c8a
Previously, as of v2.1.0,dsetskipped over the offending key, but continued processing those after it.
Nowdsetmatches thelodash/setbehavior, abandoning the currentdset()execution entirely.
Features
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.