Packages

dset

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

Your version

3.1.0

24 Feb 2021Where it was published

3.1.4 is the newest release of 3.x.

In short

1 new2 internal

Security

2 advisories affect 3.1.0; 3.1.4 fixes them

Release note

Features

  • 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:

    // dset (main)
    target.key = { value: 'new value' };
    
    // dset/merge
    Object.assign(target.key, { value: 'new value' })

    See Merging and test/suites/objects.js for more information.

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.