dset
3.1.4 · 9 Sep 2024MIT24.3M / weekRepositoryHomepagenpmAtom feed
Upgrading dset From 2.1.0 to 3.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Security
2 advisories still affect 3.0.0
- Prototype Pollution in dsetmoderate · GHSA-23wx-cgxq-vpwx
- dset Prototype Pollution vulnerabilityhigh · GHSA-f6v4-cf5j-vf3w
Upgrading to 3.1.4 clears them.
Release by release
- 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. - New
Add
"exports"map for native ESM support: fa7ab74 - New
Add support for keys with
numbertype (#12): 5b09e52 Previously,dset(input, ['foo', 1], 123)failed because1was a number. Now,['foo', 1]is treated the same as['foo', '1']and'foo.1'
- Breaking
5 internal lines (docs, tests, tooling) left out.
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.