dset
3.1.4 · 9 Sep 2024MIT24.3M / weekRepositoryHomepagenpmAtom feed
Upgrading dset From 1.0.0 to 3.1.4
10 releases in betweennotes for 8
Reading releases, release notes and advisories…
Counted from 8 of 10 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking2.0.0
Security
Fixes 3 advisories affecting 1.0.0
- Prototype Pollution in dsetmoderate · GHSA-23wx-cgxq-vpwx
- dset Prototype Pollution vulnerabilityhigh · GHSA-f6v4-cf5j-vf3w
- dset vulnerable to prototype pollutioncritical · GHSA-q4xc-7cw8-cgfj
- 3.1.2
(
dset/merge): Prevent possible prototype pollution (#34): 2d156c7 Thank you @n1ru4l~! - 2.1.0
Protect against prototype pollution: a4b8a93 Skip assignments to keys named
__proto__,constructor, orprototype. Versions between1.0.0and2.0.1(inclusive) are now marked as deprecated. Thank you @arjunshibu~!
Release by release
3.1.4no release note
- New
Add
"types"export conditions for TypeScript"nodenext"/"node16"resolution Thank you @Akkuma
- New
- Security
(
dset/merge): Prevent possible prototype pollution (#34): 2d156c7 Thank you @n1ru4l~!
- Security
- Fixed
Use
whileloop (#29): fa0f75c Thank you @rohit2sharma95~!
- Fixed
- New
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:
- New
- 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
- Security
Protect against prototype pollution: a4b8a93 Skip assignments to keys named
__proto__,constructor, orprototype. Versions between1.0.0and2.0.1(inclusive) are now marked as deprecated. Thank you @arjunshibu~! - New
Added TypeScript definitions (#18, #19): e3a48de, bcbe1c1 Thank you @maraisr~!
- Security
- Fixed
Prevent Array creation with
Float-like keys (#11): 2b9ec49
- Fixed
17 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.