Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node
base: f72376d3230be7c968e392d59680bd01f8c20360
Choose a base ref
...
head repository: nodejs/node
compare: faf6654ff75e0f275afddfd980387235c3ddf103
Choose a head ref
  • 8 commits
  • 19 files changed
  • 3 contributors

Commits on May 9, 2017

  1. util: add internal bindings for promise handling

    Add methods for creating, resolving and rejecting promises
    using the V8 C++ API that does not require creation of extra
    `resolve` and `reject` functions to `process.binding('util')`.
    
    PR-URL: #12442
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    addaleax committed May 9, 2017
    Copy the full SHA
    059f296 View commit details
    Browse the repository at this point in the history
  2. util: add util.promisify()

    Add `util.promisify(function)` for creating promisified functions.
    Includes documentation and tests.
    
    Fixes: nodejs/CTC#12
    PR-URL: #12442
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    addaleax committed May 9, 2017
    6
    Copy the full SHA
    99da8e8 View commit details
    Browse the repository at this point in the history
  3. test: add a bunch of tests from bluebird

    Take tests from Bluebird's promisify's tests and adapted them to the
    format in use here.
    Add tests making sure things work with async functions.
    Add basic usability tests.
    
    PR-URL: #12442
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    MadaraUchiha authored and addaleax committed May 9, 2017
    Copy the full SHA
    3ea2301 View commit details
    Browse the repository at this point in the history
  4. test: add test for promisify customPromisifyArgs

    PR-URL: #12442
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    giltayar authored and addaleax committed May 9, 2017
    Copy the full SHA
    e965ed1 View commit details
    Browse the repository at this point in the history
  5. timers: add promisify support

    Add support for `util.promisify(setTimeout)` and
    `util.promisify(setImmediate)` as a proof-of-concept implementation.
    `clearTimeout()` and `clearImmediate()` do not work on those Promises.
    Includes documentation and tests.
    
    PR-URL: #12442
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    addaleax committed May 9, 2017
    Copy the full SHA
    e7c5145 View commit details
    Browse the repository at this point in the history
  6. fs: support util.promisify for fs.read/fs.write

    PR-URL: #12442
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    addaleax committed May 9, 2017
    Copy the full SHA
    fbcb4f5 View commit details
    Browse the repository at this point in the history
  7. child_process: support promisified exec(File)

    Author: Benjamin Gruenbaum <inglor@gmail.com>
    Author: Anna Henningsen <anna@addaleax.net>
    
    PR-URL: #12442
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    addaleax committed May 9, 2017
    Copy the full SHA
    fe5ca3f View commit details
    Browse the repository at this point in the history
  8. dns: support promisified lookup(Service)

    PR-URL: #12442
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Reviewed-By: William Kapke <william.kapke@gmail.com>
    Reviewed-By: Timothy Gu <timothygu99@gmail.com>
    Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
    addaleax committed May 9, 2017
    Copy the full SHA
    faf6654 View commit details
    Browse the repository at this point in the history