Permalink
Commits on Nov 16, 2017
  1. Batch multiple calls to module.prefetch into one install.fetch call.

    benjamn committed Nov 16, 2017
    By sharing the missing object across multiple calls to module.prefetch,
    and waiting until the next tick to call install.fetch, we can batch a
    rapid succession of module.prefetch calls into a single call to the
    install.fetch callback, potentially resulting in fewer HTTP requests.
  2. Remove unnecessary conditional.

    benjamn committed Sep 11, 2017
Commits on May 29, 2017
Commits on May 9, 2017
  1. chore(package): update reify to version 0.11.0 (#21)

    greenkeeper[bot] committed with benjamn May 9, 2017
Commits on May 7, 2017
  1. chore(package): update reify to version 0.10.0 (#20)

    greenkeeper[bot] committed with benjamn May 7, 2017
Commits on May 4, 2017
  1. Bump NPM version to 0.10.0 in preparation for publishing.

    benjamn committed May 4, 2017
    The minor version bump is due to a recent backwards-incompatible change to
    the options.wrapRequire API.
  2. Adjust setters test to reflect Reify improvements.

    benjamn committed May 4, 2017
    Not calling a setter with an uninitialized value is always safe, as long
    as the setter is eventually called with the correct final value.
Commits on May 2, 2017
  1. Move file.{contents,stub} check inside module.exports check.

    benjamn committed May 2, 2017
    If module.exports is defined, it should not matter whether file.contents
    is defined, and we should return module.exports instead of file.stub.
  2. Avoid referring to Promise outside Module.prototype.prefetch.

    benjamn committed May 2, 2017
    This prevents reference errors in very old JavaScript environments, such
    as PhantomJS.
  3. Ensure module.prefetch promises are resolved in order of calls.

    benjamn committed May 2, 2017
    Without limiting the async parallelism of install.fetch, we must still
    enforce that promises returned by module.prefetch are resolved in the same
    order as the original calls, since the resolution of a module.prefetch
    promise is intended to guarantee that all modules previously fetched have
    been installed.
Commits on May 1, 2017