Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v14.2.0 release proposal #33232

Merged
merged 62 commits into from
May 5, 2020
Merged

v14.2.0 release proposal #33232

merged 62 commits into from
May 5, 2020

Commits on May 4, 2020

  1. assert: port common.mustCall() to assert

    Fixes: #31392
    
    PR-URL: #31982
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Denys Otrishko <[email protected]>
    DavenportEmma authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    c87ed21 View commit details
    Browse the repository at this point in the history
  2. vm: throw error when duplicated exportNames in SyntheticModule

    Fixes: #32806
    
    PR-URL: #32810
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    himself65 authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    4423304 View commit details
    Browse the repository at this point in the history
  3. tools: update broken types in type parser

    The links for the ArrayBufferView and WebAssembly.Instance types
    appear to be broken. This commit updates them to point to the
    correct MDN locations.
    
    PR-URL: #33068
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    8c40ffc View commit details
    Browse the repository at this point in the history
  4. wasi: rename __wasi_unstable_reactor_start()

    Upstream WASI has renamed __wasi_unstable_reactor_start() to
    _initialize(). This commit updates Node's WASI implementation to
    reflect that change.
    
    PR-URL: #33073
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    cjihrig authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    8d5ac1b View commit details
    Browse the repository at this point in the history
  5. wasi: update start() behavior to match spec

    _start() and _initialize() shouldn't be called from the same
    function, as they have different behavior. Furthermore, Node
    should throw if both are provided. This commit updates the
    implementation, docs, and tests accordingly.
    
    PR-URL: #33073
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    cjihrig authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    d7d9960 View commit details
    Browse the repository at this point in the history
  6. deps: update to uvwasi 0.0.8

    This release focuses on improving the robustness of the path
    resolution and sandboxing, including adding support for relative
    preopen paths.
    
    PR-URL: #33078
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    cjihrig authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    8325c29 View commit details
    Browse the repository at this point in the history
  7. path: fix comment grammar

    PR-URL: #32942
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    thecodrr authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    ed45b51 View commit details
    Browse the repository at this point in the history
  8. v8: use AliasedBuffers for passing heap statistics around

    Instead of holding shared pointers to ArrayBuffers, simplify
    the code by using AliasedBuffers directly which allows the
    binding to own the buffers.
    
    PR-URL: #32929
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Franziska Hinkelmann <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    joyeecheung authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    ec24577 View commit details
    Browse the repository at this point in the history
  9. lib: fix validateport error message when allowZero is false

    PR-URL: #32861
    Fixes: #32857
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    rickyes authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    542da43 View commit details
    Browse the repository at this point in the history
  10. test: flaky test-stdout-close-catch on freebsd

    Refs: #28803
    
    PR-URL: #32849
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    sam-github authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    aced1f5 View commit details
    Browse the repository at this point in the history
  11. test: mark test flaky on freebsd

    Test name test-worker-message-port-message-before-close is too long for
    a commit message description.
    
    Refs: #31280
    
    PR-URL: #32849
    Refs: #28803
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    sam-github authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    f79ef96 View commit details
    Browse the repository at this point in the history
  12. http2,doc: minor fixes

    Some small fixes on HTTP/2 and its documentation:
    
     - Add a note that, on server streams, it's not necessary
       to start data flow.
    
     - Set EOF flag if we have marked all data for sending:
       there's no need to wait until the queue is
       actually empty (and send a separate, empty DATA).
    
       (Note that, even with this change, a separate DATA
       frame will always be sent, because the streams
       layer waits until data has been flushed before
       dispatching EOF)
    
    PR-URL: #28044
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    mildsunrise authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    3cb1713 View commit details
    Browse the repository at this point in the history
  13. cluster: fix error on worker disconnect/destroy

    Avoid sending multiple `exitedAfterDisconnect` messages when
    concurrently calling `disconnect()` and/or `destroy()` from the worker
    so `ERR_IPC_DISCONNECTED` errors are not generated.
    
    Fixes: #32106
    
    PR-URL: #32793
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    santigimeno authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    db293c4 View commit details
    Browse the repository at this point in the history
  14. crypto: key size must be int32 in DiffieHellman()

    The JS code accepted any value where `typeof sizeOrKey === 'number'`
    was true but the C++ code checked that `args[0]->IsInt32()` and
    subsequently aborted.
    
    Fixes: #32738
    
    PR-URL: #32739
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    637442f View commit details
    Browse the repository at this point in the history
  15. crypto: generator must be int32 in DiffieHellman()

    Validate the generator argument in `crypto.createDiffieHellman(key, g)`.
    When it's a number, it should be an int32.
    
    Fixes: #32748
    
    PR-URL: #32739
    Fixes: #32738
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    e07cca6 View commit details
    Browse the repository at this point in the history
  16. crypto: check DiffieHellman p and g params

    It's possible to pass in the prime and generator params as buffers
    but that mode of input wasn't as rigorously checked as numeric input.
    
    PR-URL: #32739
    Fixes: #32738
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    83e165b View commit details
    Browse the repository at this point in the history
  17. console: support console constructor groupIndentation option

    PR-URL: #32964
    Fixes: #32947
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    rickyes authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    c49e3ea View commit details
    Browse the repository at this point in the history
  18. src: remove unnecessary fully qualified names

    PR-URL: #33077
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    rickyes authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    10a87c8 View commit details
    Browse the repository at this point in the history
  19. tools: update [email protected]

    PR-URL: #33072
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Trott authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    12426f5 View commit details
    Browse the repository at this point in the history
  20. doc: fix markdown parsing on doc/api/os.md

    PR-URL: #33067
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    juanarbol authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    c5a2f9a View commit details
    Browse the repository at this point in the history
  21. n-api: simplify uv_idle wrangling

    uv_idle_init(), uv_idle_start() and uv_idle_stop() always succeed.
    Remove the superfluous error handling.
    
    Refs: libuv/libuv#2803
    
    PR-URL: #32997
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: David Carlier <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    bnoordhuis authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    466213d View commit details
    Browse the repository at this point in the history
  22. doc: don't check links in tmp dirs

    PR-URL: #32996
    Reviewed-By: Gerhard Stöbich <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    bnoordhuis authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    82e459d View commit details
    Browse the repository at this point in the history
  23. test: check args on SourceTextModule cachedData

    PR-URL: #32956
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    juanarbol authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    92c7e06 View commit details
    Browse the repository at this point in the history
  24. stream: let Duplex re-use Writable properties

    Instead of reimplementing Writable properties, fetch them
    from the Writable prototype.
    
    PR-URL: #33079
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    ronag authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    b183d0a View commit details
    Browse the repository at this point in the history
  25. doc: some grammar fixes

    PR-URL: #33081
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ChrisAHolland authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    289a5c8 View commit details
    Browse the repository at this point in the history
  26. doc: improve worker pool example

    In the worker pool example, the 'kWorkerFreedEvent' should be emitted
    in case of error as well. After adding new worker in the error handler,
    the pending tasks should be notified of an available worker.
    
    PR-URL: #33082
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    ranjan-purbey authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    de15edc View commit details
    Browse the repository at this point in the history
  27. test: correct typo in test name

    Fix the 'uncaugth' typo in the test name.
    
    PR-URL: #33083
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    cjihrig authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    3c2f608 View commit details
    Browse the repository at this point in the history
  28. worker: unify custom error creation

    Mostly, this introduces a pattern that makes sure that if a custom
    error is reported, `stopped_` will be set to `true` correctly in
    every cast, which was previously missing for the
    `NewContext().IsEmpty()` case (which led to a hard crash from the
    `Worker` destructor).
    
    This also leaves TODO comments for a few cases in which
    `ERR_WORKER_OUT_OF_MEMORY` was not used in accordance with the
    documentation for that error code (or according to its intention).
    Fixing that is semver-major.
    
    PR-URL: #33084
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    c6d632a View commit details
    Browse the repository at this point in the history
  29. worker: add stack size resource limit option

    Add `stackSizeMb` to the `resourceLimit` option group.
    
    Refs: #31593 (comment)
    
    PR-URL: #33085
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    bc9e413 View commit details
    Browse the repository at this point in the history
  30. stream: add null check in Readable.from

    Throws `ERR_STREAM_NULL_VALUES` error if a null value is passed to
    `Readable.from`. Also added docs for the same.
    
    Co-Authored-By: 扩散性百万甜面包 <[email protected]>
    Fixes: #32845
    PR-URL: #32873
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Robert Nagy <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    2 people authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    bc40ed3 View commit details
    Browse the repository at this point in the history
  31. doc: correct Nodejs to Node.js spelling

    PR-URL: #33088
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    nschonni authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    2396219 View commit details
    Browse the repository at this point in the history
  32. src: separate out NgLibMemoryManagerBase

    Extracted from the [QUIC PR](#32379)
    
    So far, this is only used by the QUIC PR directly but the change itself
    is independent of QUIC, even if not used directly by anything else yet.
    Separated out per request.
    
    Signed-off-by: James M Snell <[email protected]>
    
    PR-URL: #33104
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    jasnell authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    541ea03 View commit details
    Browse the repository at this point in the history
  33. lib: cosmetic change to builtinLibs list for maintainability

    This is a largely cosmetic change suggested for easier
    maintainability of the builtinLibs list. While the
    QUIC PR no longer modifies this list, the original version
    of the PR did and the fact that all of the entries were
    bundled up into the same lines meant that adding one
    forced a larger change to all. With this PR, when we
    want to add a new built-in, it won't impact any of the
    others.
    
    PR-URL: #33106
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    jasnell authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    eab4be1 View commit details
    Browse the repository at this point in the history
  34. src: crypto::UseSNIContext to use BaseObjectPtr

    Extracted from the QUIC PR. Not specific to QUIC.
    
    Signed-off-by: James M Snell <[email protected]>
    
    PR-URL: #33107
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    jasnell authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    f4e5ab1 View commit details
    Browse the repository at this point in the history
  35. src: return undefined when validation err == 0

    Extracted from the QUIC PR. Not specific to QUIC even if the
    behavior is currently only used there.
    
    Signed-off-by: James M Snell <[email protected]>
    
    PR-URL: #33107
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    jasnell authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    f61928b View commit details
    Browse the repository at this point in the history
  36. wasi: use free() to release preopen array

    As this is allocated with `Calloc()`, we cannot use `delete[]` here.
    
    PR-URL: #33110
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    3866dc1 View commit details
    Browse the repository at this point in the history
  37. src: use unique_ptr for CachedData in ContextifyScript::New

    This closes a memory leak.
    
    PR-URL: #33113
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gus Caplan <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    de643bc View commit details
    Browse the repository at this point in the history
  38. test: add missing calls to napi_async_destroy

    PR-URL: #33114
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Gerhard Stöbich <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    9ccb6b2 View commit details
    Browse the repository at this point in the history
  39. test: fix out-of-bound reads from invalid sizeof usage

    `sizeof(data)` does not return the correct result here, as it measures
    the size of the `data` variable, not what it points to.
    
    PR-URL: #33115
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    af7da46 View commit details
    Browse the repository at this point in the history
  40. build: add --error-on-warn configure flag

    This commit adds a configuration time flag named error-on-warn:
    $ ./configure --help | grep -A1 error-on-warn
      --error-on-warn       Turn compiler warnings into errors for node core
                            sources.
    
    The motivation for this is that CI jobs can use this flag to turn
    warnings into errors.
    
    PR-URL: #32685
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    danbev authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    f62d92b View commit details
    Browse the repository at this point in the history
  41. tools: fix redundant-move warning in inspector

    Currently, the following warning is generated from the inspector
    protocol:
    /out/Release/obj/gen/src/node/inspector/protocol/Protocol.cpp:
    In member function
    ‘virtual std::unique_ptr<node::inspector::protocol::Value>
        node::inspector::protocol::ListValue::clone() const’:
    /out/Release/obj/gen/src/node/inspector/protocol/Protocol.cpp:739:21:
    error: redundant move in return statement [-Werror=redundant-move]
      739 |     return std::move(result);
          |            ~~~~~~~~~^~~~~~~~
    
    This commit removes the move for DictionaryValue and ListValue.
    
    PR-URL: #32685
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    danbev authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    a87d371 View commit details
    Browse the repository at this point in the history
  42. module: no type module resolver side effects

    PR-URL: #33086
    Reviewed-By: Jan Krems <[email protected]>
    Reviewed-By: Geoffrey Booth <[email protected]>
    guybedford authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    5eccf1e View commit details
    Browse the repository at this point in the history
  43. stream: simplify Readable push/unshift logic

    PR-URL: #32899
    Reviewed-By: Robert Nagy <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    himself65 authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    4cfa7e0 View commit details
    Browse the repository at this point in the history
  44. vm: fix vm.measureMemory() and introduce execution option

    nodejs/node-v8#147 broke the
    `vm.measureMemory()` API. It only created a `MeasureMemoryDelegate` and
    without actually calling `v8::Isolate::MeasureMemory()` so the returned
    promise will never resolve. This was not caught by the tests because
    the promise resolvers were not wrapped with `common.mustCall()`.
    
    This patch migrates the API properly and also introduce the newly
    added execution option to the API. It also removes support for
    specifying contexts to measure - instead we'll just return the
    measurements for all contexts in the detailed mode, which is
    what the `performance.measureMemory()` prototype in V8 currently does.
    We can consider implementing our own `v8::MeasureMemoryDelegate`
    to select the target context in `ShouldMeasure()` in the future,
    but then we'll also need to implement `MeasurementComplete()`
    to assemble the result. For now it's probably too early to do that.
    
    Since this API is still experimental (and guarded with a warning),
    such breakage should be acceptable.
    
    Refs: nodejs/node-v8#147
    
    PR-URL: #32988
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    d39254a View commit details
    Browse the repository at this point in the history
  45. stream: fix stream.finished on Duplex

    finished would incorrectly believe that a Duplex is already
    closed if either the readable or writable side has completed.
    
    Fixes: #33130
    
    PR-URL: #33133
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    ronag authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    45032a3 View commit details
    Browse the repository at this point in the history
  46. test: move test-process-title to sequential

    This test can fail when run in parallel with test-process-title-cli,
    which also sets the process title, which is global state on Windows.
    
    Example failure (note that `foo` does not appear in test-process-title
    but in test-process-title-cli):
    
        not ok 1727 parallel/test-process-title
          ---
          duration_ms: 0.156
          severity: fail
          exitcode: 1
          stack: |-
            assert.js:103
              throw new AssertionError(obj);
              ^
    
            AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
            + actual - expected
    
            + 'foo'
            - 'd:\\a\\node\\node\\out\\Release\\node.exe'
                at Object.<anonymous> (d:\a\node\node\test\parallel\test-process-title.js:22:1)
                at Module._compile (internal/modules/cjs/loader.js:1176:30)
                at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
                at Module.load (internal/modules/cjs/loader.js:1040:32)
                at Function.Module._load (internal/modules/cjs/loader.js:929:14)
                at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
                at internal/main/run_main_module.js:17:47 {
              generatedMessage: true,
              code: 'ERR_ASSERTION',
              actual: 'foo',
              expected: 'd:\\a\\node\\node\\out\\Release\\node.exe',
              operator: 'strictEqual'
            }
          ...
    
    (from https://github.com/nodejs/node/runs/628144750?check_suite_focus=true)
    
    PR-URL: #33150
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Andrey Pechkurov <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    89ed7a5 View commit details
    Browse the repository at this point in the history
  47. deps: V8: backport e29c62b74854

    Original commit message:
    
        [arraybuffer] Clean up BackingStore even if it pointer to nullptr
    
        For a zero-length BackingStore allocation, it is valid for the
        underlying memory to be a null pointer. However, some cleanup
        is still necessary, since the BackingStore may hold a reference
        to the allocator itself, which needs to be released when destroying
        the `BackingStore` instance.
    
        Change-Id: I1f168079d39e4592d2fde31fbe5f705586690e85
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2169646
        Reviewed-by: Ulan Degenbaev <[email protected]>
        Commit-Queue: Ulan Degenbaev <[email protected]>
        Cr-Commit-Position: refs/heads/master@{#67420}
    
    Refs: v8/v8@e29c62b
    
    PR-URL: #33125
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    c5a4534 View commit details
    Browse the repository at this point in the history
  48. test: skip memory usage tests when ASAN is enabled

    Running tests with an ASAN build leads to increased memory usage,
    rendering the memory usage assumptions in the test invalid.
    
    Refs: #32776 (comment)
    
    PR-URL: #33129
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matheus Marchini <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    addaleax authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    e276524 View commit details
    Browse the repository at this point in the history
  49. http: set default timeout in agent keepSocketAlive

    Previous location of setting the timeout would override
    behaviour of custom HttpAgents' keepSocketAlive. Moving
    it into the default keepSocketAlive allows it to
    interoperate with custom agents.
    
    Fixes: #33111
    
    PR-URL: #33127
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Robert Nagy <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Andrey Pechkurov <[email protected]>
    omsmith authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    451993e View commit details
    Browse the repository at this point in the history
  50. doc: fix the spelling error in stream.md

    Change `64kb` to `64KB` in  `stream.md`
    
    PR-URL: #31561
    Reviewed-By: Robert Nagy <[email protected]>
    Reviewed-By: Andrey Pechkurov <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    yunnysunny authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    a990137 View commit details
    Browse the repository at this point in the history
  51. doc: clarify when not to run CI on docs

    Collaborators won't need to run CI on documentation-only changes.
    
    PR-URL: #33101
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Andrey Pechkurov <[email protected]>
    juanarbol authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    36d5002 View commit details
    Browse the repository at this point in the history
  52. doc: add util.types.isArrayBufferView()

    This function was added by #15663,
    but was never documented. This commit documents it.
    
    PR-URL: #33092
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Masashi Hirano <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Andrey Pechkurov <[email protected]>
    kevinoid authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    d02ced8 View commit details
    Browse the repository at this point in the history
  53. tools: bump remark-preset-lint-node to 1.15.0

    New version of remark-preset-lint-node includes prohibited string entry
    accidentally removed in the last version.
    
    PR-URL: #33157
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Trott authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    6734cc4 View commit details
    Browse the repository at this point in the history
  54. src: remove unused v8 Message namespace

    PR-URL: #33180
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Zeyu Yang <[email protected]>
    edsadr authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    bb2d2f6 View commit details
    Browse the repository at this point in the history
  55. doc: fix a typo in crypto.generateKeyPairSync()

    PR-URL: #33187
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    himself65 authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    7893bde View commit details
    Browse the repository at this point in the history
  56. http: simplify sending header

    unshifting into an empty array is the same
    as creating a new array.
    
    PR-URL: #33200
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    ronag authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    a4ec01c View commit details
    Browse the repository at this point in the history
  57. esm: improve commonjs hint on module not found

    Run CommonJS resolver only if `error.code` is ERR_MODULE_NOT_FOUND.
    Avoid using absolute paths in hint by:
    * using a parent-relative path if the specifier is a relative path
    * using a `pkg/x.js` format if the specifier is bare (e.g. `pkg/x`)
    
    PR-URL: #31906
    Reviewed-By: Guy Bedford <[email protected]>
    Reviewed-By: Myles Borins <[email protected]>
    dnlup authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    2174159 View commit details
    Browse the repository at this point in the history
  58. doc: add missing deprecation not

    PR-URL: #33203
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    ronag authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    413f5d3 View commit details
    Browse the repository at this point in the history
  59. test: update c8 ignore comment

    PR-URL: #33151
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    bcoe authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    60ebbc4 View commit details
    Browse the repository at this point in the history
  60. http: ensure client request emits close

    If socket creation failed then an error would be
    emitted on the client request object, but not
    'close' nor would destroyed be set to true.
    
    PR-URL: #33178
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    ronag authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    74b0e8c View commit details
    Browse the repository at this point in the history
  61. doc: mark assert.CallTracker experimental

    Some details might still change and it would be good to get feedback
    from users before we mark this as stable.
    
    Signed-off-by: Ruben Bridgewater <[email protected]>
    
    PR-URL: #33124
    Reviewed-By: Zeyu Yang <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    BridgeAR authored and targos committed May 4, 2020
    Configuration menu
    Copy the full SHA
    6925b35 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2020

  1. 2020-05-05, Version 14.2.0 (Current)

    Notable changes:
    
    * Track function calls with `assert.CallTracker` (experimental).
      #31982
    * Added a `groupIndentation` option to the `Console` constructor.
      #32964
    
    PR-URL: #33232
    targos committed May 5, 2020
    Configuration menu
    Copy the full SHA
    d68f78f View commit details
    Browse the repository at this point in the history