Skip to content

v3.1.0

Compare
Choose a tag to compare
@lukeed lukeed released this 24 Feb 17:36
· 9 commits to master since this release

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.

Chores

  • Attach bundt multi-mode setup: 36a2529, 7932211
  • Separate test suites for composability & reuse: 9f337a8