Packages

dset

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

Upgrading dset From 2.1.0 to 3.1.4

6 releases in betweennotes for 5

Reading releases, release notes and advisories…

  1. 2.1.0yours
  2. 3.0.0major
  3. 3.1.0
  4. 3.1.1
  5. 3.1.2security
  6. 3.1.3
  7. 3.1.4target
3+
changes to make
2
advisories fixed
4+
new
1+
fix

Counted from 5 of 6 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

Security

Fixes 2 advisories affecting 2.1.0

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

    3.1.2

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'

9 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.