Packages

dset

3.1.4 · 9 Sep 2024MIT24.3M / weekRepositoryHomepagenpmAtom feed

Upgrading dset From 0.0.0 to 3.1.4

11 releases in betweennotes for 8

Reading releases, release notes and advisories…

1.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 0.0.0yours
  2. 1.0.0major
  3. 1 release
  4. 2.0.0major
  5. 1 release
  6. 2.1.0security
  7. 3.0.0major
  8. 2 releases
  9. 3.1.2security
  10. 1 release
  11. 3.1.4target
4+
changes to make
2
advisories fixed
5+
new
2+
fixes

Counted from 8 of 11 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 2 advisories affecting 0.0.0

  • (dset/merge): Prevent possible prototype pollution (#34): 2d156c7 Thank you @n1ru4l~!

    3.1.2
  • Protect against prototype pollution: a4b8a93 Skip assignments to keys named __proto__, constructor, or prototype. Versions between 1.0.0 and 2.0.1 (inclusive) are now marked as deprecated. Thank you @arjunshibu~!

    2.1.0

Release by release

  1. 3.1.4no release note

  2. 3.1.3

    25 Oct 20231 new
    • New

      Add "types" export conditions for TypeScript "nodenext"/"node16" resolution Thank you @Akkuma

  3. 3.1.2

    Security fix3 May 2022
    • Security

      (dset/merge): Prevent possible prototype pollution (#34): 2d156c7 Thank you @n1ru4l~!

  4. 3.1.1

    27 Oct 20211 fix
    • Fixed

      Use while loop (#29): fa0f75c Thank you @rohit2sharma95~!

  5. 3.1.0

    24 Feb 20211 new
    • New

      Added dset/merge submodule: 5aed5d1, 8d0224d, 8ee6d12 This is an opt-in module, inspired by GraphQL's upcoming @stream and @defer directives. 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, whereas dset (main mode) will replace values at the specified key-path outright. In code, this difference roughly translates to this distinction:

  6. 3.0.0

    Migration needed28 Jan 20212 new
    • Breaking

      Overwrites existing, non-object values as needed: 569955d Now dset is inline with lodash/set and set-value behaviors

    • Breaking

      Use named dset export instead of default export: 7ac17ed

    • Breaking

      Exit loop when unsafe key(s) encountered (#22): 0a11c8a Previously, as of v2.1.0, dset skipped over the offending key, but continued processing those after it. Now dset matches the lodash/set behavior, abandoning the current dset() execution entirely.

    • New

      Add "exports" map for native ESM support: fa7ab74

    • New

      Add support for keys with number type (#12): 5b09e52 Previously, dset(input, ['foo', 1], 123) failed because 1 was a number. Now, ['foo', 1] is treated the same as ['foo', '1'] and 'foo.1'

  7. 2.1.0

    Security fix27 Jan 20211 new
    • Security

      Protect against prototype pollution: a4b8a93 Skip assignments to keys named __proto__, constructor, or prototype. Versions between 1.0.0 and 2.0.1 (inclusive) are now marked as deprecated. Thank you @arjunshibu~!

    • New

      Added TypeScript definitions (#18, #19): e3a48de, bcbe1c1 Thank you @maraisr~!

  8. 2.0.1

    8 Sep 20181 fix
    • Fixed

      Prevent Array creation with Float-like keys (#11): 2b9ec49

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.