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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v12.18.0
Choose a base ref
...
head repository: nodejs/node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v12.18.1
Choose a head ref

Commits on Jun 2, 2020

  1. Working on v12.18.1

    targos committed Jun 2, 2020
    Copy the full SHA
    feed95c View commit details

Commits on Jun 6, 2020

  1. stream: make all streams error in a pipeline

    This changes makes all stream in a pipeline emit 'error' in
    case of an abnormal termination of the pipeline. If the last stream
    is currently being async iterated, this change will make the iteration
    reject accordingly.
    
    See: #30861
    Fixes: #28194
    
    PR-URL: #30869
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    mcollina authored and codebytere committed Jun 6, 2020
    Copy the full SHA
    194789f View commit details

Commits on Jun 7, 2020

  1. src: use basename(argv0) for --trace-uncaught suggestion

    Refs: #32797 (comment)
    
    PR-URL: #32798
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    addaleax authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    edf75e4 View commit details
  2. test: add tests for options.fs in fs streams

    PR-URL: #33185
    Reviewed-By: Adrian Estrada <edsadr@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    julianduque authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    1766514 View commit details
  3. doc: fix style and grammer in buffer.md

    PR-URL: #33194
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    seishun authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    e572cf9 View commit details
  4. doc: explicitly doc package.exports is breaking

    If package authors don't explicitly include all previously supported
    entry points introducing package.exports will be a Semver-Major change.
    
    Add a warning about this behavior and offer two potential solutions
    for module authors.
    
    Refs: then/is-promise#20
    
    PR-URL: #33074
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    MylesBorins authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    c6cf048 View commit details
  5. Revert "src: add aliased-buffer-overflow abort test"

    This reverts commit babeb58.
    
    PR-URL: #33196
    Refs: #31740
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    richardlau authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    b43fc64 View commit details
  6. Revert "src: add test/abort build tasks"

    This reverts commit e08ac09.
    
    PR-URL: #33196
    Refs: #31740
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    richardlau authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    c054834 View commit details
  7. doc: doc and test URLSearchParams discrepancy

    The WHATWG URL spec is not going to change this behavior so
    let's document it
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    Fixes: #33037
    
    PR-URL: #33236
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    jasnell authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    ea3a68f View commit details
  8. doc: update napi_async_init documentation

    Fixes: #33153
    
    Change documentation to make async_resource required
    as opposed to optional in napi-async_init.
    
    Changes over time mean this parameter is required for
    proper operation of async hooks (which are still experimental).
    This changes the documentation to document what
    callers should do. We are doing this only in the doc
    in order to avoid a breaking change in N-API. We could
    create a new version of the method for which the
    parametrer is enforced as mandatory but we should only
    do that once async hooks is no longer experimental. In
    that case we could deprecate (but not remove this version
    of the method).
    
    Signed-off-by: Michael Dawson <michael_dawson@ca.ibm.com>
    
    PR-URL: #33181
    Reviewed-By: Gerhard StΓΆbich <deb2001-github@yahoo.de>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    mhdawson authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    033bc96 View commit details
  9. stream: make from read one at a time

    Currently from will eagerly buffer up items
    which means that errors are also eagerly
    encountered and items which are buffer when
    an error occurs will be discarded, which is
    inconsistent with how generators work.
    
    Fixes: #29428
    
    PR-URL: #33201
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ronag authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    4294d92 View commit details
  10. n-api: add uint32 test for -1

    Adds a test to ensure that napi_get_value_uint32 returns 0xffffffff for
    -1.
    
    Re: #33117
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Gabriel Schulhof authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    82da74b View commit details
  11. doc: add warnings about transferring Buffers and ArrayBuffer

    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    PR-URL: #33252
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Mathias Buus <mathiasbuus@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    jasnell authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    ac5cdd6 View commit details
  12. doc: remove AsyncWrap mentions from async_hooks.md

    AsyncWrap is a private API and should not be mentioned
    in the documentation.
    
    PR-URL: #33249
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: MichaΓ«l Zasso <targos@protonmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Gerhard StΓΆbich <deb2001-github@yahoo.de>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    puzpuzpuz authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    2262962 View commit details
  13. doc: add troubleshooting guide for AsyncLocalStorage

    PR-URL: #33248
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Gerhard StΓΆbich <deb2001-github@yahoo.de>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    puzpuzpuz authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    ad7a890 View commit details
  14. wasi: prevent syscalls before start

    PR-URL: #33235
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    tniessen authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    33aacbe View commit details
  15. doc: specify unit of time passed to fs.utimes

    PR-URL: #33230
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    SimenB authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    4a58420 View commit details
  16. doc: add Uint8Array to end and write

    PR-URL: #33217
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    rexagod authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    8b44be9 View commit details
  17. doc: update Buffer(size) documentation

    It returns zero-filled memory since v8.0.0.
    
    PR-URL: #33198
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    seishun authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    9038620 View commit details
  18. doc: removed unnecessary util imports from vm examples

    PR-URL: #33179
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    WalasPrime authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    0cee4c3 View commit details
  19. doc: mention python3-distutils dependency in BUILDING.md

    Ran into #30189, solved by this comment:
    #30189 (comment)
    
    Refs: #30189
    PR-URL: #33174
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Christian Clauss <cclauss@me.com>
    osher authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    59619b0 View commit details
  20. lib: fix grammar in internal/bootstrap/loaders.js

    PR-URL: #33211
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    szTheory authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    9017bce View commit details
  21. test: skip some console tests on dumb terminal

    Add capabilities to common test module to detect and skip tests
    on dumb terminals.
    
    In some of our build environments, like s390x, the terminal
    is a dumb terminal meaning it has very rudimentary capabilities.
    These in turn prevent some of the tests from completing with errors
    as below.
    
        not ok 1777 parallel/test-readline-tab-complete
          ---
          duration_ms: 0.365
          severity: fail
          exitcode: 1
          stack: |-
            assert.js:103
              throw new AssertionError(obj);
              ^
    
            AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
    
            '\t' !== ''
    
                at /home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:63:14
                at Array.forEach (<anonymous>)
                at /home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:18:17
                at Array.forEach (<anonymous>)
                at Object.<anonymous> (/home/abuild/rpmbuild/BUILD/node-git.8698dd98bb/test/parallel/test-readline-tab-complete.js:17:3)
                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) {
              generatedMessage: true,
              code: 'ERR_ASSERTION',
              actual: '\t',
              expected: '',
              operator: 'strictEqual'
            }
          ...
    
    PR-URL: #33165
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    AdamMajer authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    139eb6b View commit details
  22. test: rename test-lookupService-promises

    PR-URL: #33100
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    rickyes authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    0177cbf View commit details
  23. doc: correct description of decipher.setAuthTag in crypto.md

    Calling `decipher.setAuthTag` after `decipher.update` will result in
    an error like `Unsupported state or unable to authenticate data`.
    The example code in
    [CCM mode](https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_ccm_mode)
    is correct, but to demonstrate the mistake in the documentation you
    can take the same example and move the `setAuthTag` call to in between
    `update` and `final` you will see the error.
    jbuhacoff authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    0c7cf24 View commit details
  24. src: clean up large pages code

    * Initialize structure members.
    * Factor out common `Debug()` prefix.
    * Remove unused `text_region` field.
    
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    PR-URL: #33255
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Gabriel Schulhof authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    ed62d43 View commit details
  25. wasi: fix poll_oneoff memory interface

    The WASM memory interfacing logic was wrong (particularly around
    the size of __wasi_subscription_t). This commit fixes the logic.
    
    PR-URL: #33250
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    cjihrig authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    22f2c2c View commit details
  26. doc: add warning for socket.connect reuse

    PR-URL: #33204
    Refs: #25969
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    ronag authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    9dde1db View commit details
  27. module: better error for named exports from cjs

    We do not support importing named exports from a CJS module.
    This change decorates the error message for missing named exports in
    the case where the module being imported is expected to be CJS by the
    ESM loader.
    
    Signed-off-by: Myles Borins <myles.borins@gmail.com>
    
    PR-URL: #33256
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: MichaΓ«l Zasso <targos@protonmail.com>
    MylesBorins authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    77caf92 View commit details
  28. src: split out callback queue implementation from Environment

    This isn’t conceptually tied to anything Node.js-specific at all.
    
    PR-URL: #33272
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    a5e8c5c View commit details
  29. lib: refactored scheduling policy assignment

    In previous implementation it was clubbed into declaration of scheduling
    policies and fetching the schedulingPolicy. Now they are separate
    variables, so that in future if one want to add new scheduling policy.
    It is much simpler and not obsfucated.
    
    PR-URL: #32663
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    yashLadha authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    6881410 View commit details
  30. meta: add issue template for API reference docs

    Prior to this commit, there was no GitHub issue template guiding
    users to open issues about gaps in the API reference docs.
    
    Refs: #31123
    PR-URL: #32944
    Fixes: nodejs/nodejs.org#2866
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Derek Lewis authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    d64dbfa View commit details
  31. src: fix invalid windowBits=8 gzip segfault

    `{ windowBits: 8 }` is legal for deflate streams but not gzip streams.
    Fix a nullptr dereference when formatting the error message.
    
    Bug introduced in commit c34eae5 ("zlib: refactor zlib internals")
    from September 2018.
    
    PR-URL: #33045
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gerhard StΓΆbich <deb2001-github@yahoo.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    bnoordhuis authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    642f813 View commit details
  32. zlib: reject windowBits=8 when mode=GZIP

    It's also handled in C++ land now, per the previous commit, but
    intercepting it in JS land makes for prettier error messages.
    
    PR-URL: #33045
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gerhard StΓΆbich <deb2001-github@yahoo.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    bnoordhuis authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    631e433 View commit details
  33. http2: add bytesWritten test for Http2Stream

    note that this is for the `Http2Server` class. I'll soon be
    adding one for `Http2SecureServer` as well.
    
    Refs: #29829
    
    PR-URL: #33162
    Reviewed-By: James M Snell <jasnell@gmail.com>
    rexagod authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    66dbaff View commit details
  34. buffer: improve copy() performance

    There is no need to create a slice when sourceEnd is out of bounds.
    
    PR-URL: #33214
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    seishun authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    964adfa View commit details
  35. deps: upgrade npm to 6.14.5

    PR-URL: #33239
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: MichaΓ«l Zasso <targos@protonmail.com>
    ruyadorno authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    4d6f56a View commit details
  36. perf_hooks: fix error message for invalid entryTypes

    Will now print a more meaningful value instead of always [object Object]
    
    PR-URL: #33285
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    targos authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    68551d2 View commit details
  37. test: add hr-time Web platform tests

    Refs: #32790
    
    PR-URL: #33287
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    targos authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    cd92052 View commit details
  38. tools: add eslint rule to only pass through 'test' to debuglog

    This makes sure all usages of `util.debuglog()` must contain the
    string 'test' as argument.
    
    PR-URL: #32161
    Refs: #32078
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: MichaΓ«l Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    5d5e66c View commit details
  39. tools: remove obsolete no-restricted-syntax eslint rules

    These rules only apply for the test folder and will already be
    checked for.
    
    PR-URL: #32161
    Refs: #32078
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: MichaΓ«l Zasso <targos@protonmail.com>
    BridgeAR authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    cdd7d3a View commit details
  40. src: remove unnecessary Isolate::GetCurrent() calls

    These calls are unnecessary in Release mode but would still have
    been included, so move them to the `DebugSealHandleScope` constructor.
    
    PR-URL: #33298
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    addaleax authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    b630079 View commit details
  41. lib: fix typo in timers insert function comment

    PR-URL: #33301
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: MichaΓ«l Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    danbev authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    59769c4 View commit details
  42. tools: update ESLint to 7.0.0

    Update ESLint to 7.0.0
    
    PR-URL: #33316
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    2645b1c View commit details
  43. test: fix test-net-throttle

    Repeat writes until data is queued in memory, rather than assuming that
    it will happen by a certain point.
    
    Fixes: #33135
    
    PR-URL: #33329
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    Trott authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    c459832 View commit details
  44. src: fix typo in comment in async_wrap.cc

    PR-URL: #33350
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    danbev authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    f27ae6e View commit details
  45. doc: fix typo in n-api.md

    This commit fixes what I think is a typo, even though the section in
    question does talk about a environment (env).
    
    PR-URL: #33319
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    danbev authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    30c9cb5 View commit details
  46. doc: add note about clientError writable handling

    PR-URL: #33308
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    ShogunPanda authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    318fcf8 View commit details
  47. src: use MaybeLocal.ToLocal instead of IsEmpty

    This commit suggest using MaybeLocal.ToLocal and passing in the
    Local<Function> fn.
    
    The motivation for doing this is that the following
    MaybeLocal.ToLocalChecked call can then be avoided.
    
    PR-URL: #33312
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Juan JosΓ© Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    danbev authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    548672d View commit details
  48. src: delete unused variables to resolve compile time print warning

    PR-URL: #33358
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    rickyes authored and codebytere committed Jun 7, 2020
    Copy the full SHA
    82c43d1 View commit details
Showing 486 changed files with 20,266 additions and 7,949 deletions.
44 changes: 0 additions & 44 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -189,34 +189,6 @@ module.exports = {
// as well to lib/.eslintrc.yaml.
'no-restricted-syntax': [
'error',
{
selector: "CallExpression[callee.property.name='deepStrictEqual'][arguments.2.type='Literal']",
message: 'Do not use a literal for the third argument of assert.deepStrictEqual()',
},
{
selector: "CallExpression[callee.property.name='doesNotThrow']",
message: 'Do not use `assert.doesNotThrow()`. Write the code without the wrapper and add a comment instead.',
},
{
selector: "CallExpression[callee.property.name='doesNotReject']",
message: 'Do not use `assert.doesNotReject()`. Write the code without the wrapper and add a comment instead.',
},
{
selector: "CallExpression[callee.property.name='rejects'][arguments.length<2]",
message: '`assert.rejects()` must be invoked with at least two arguments.',
},
{
selector: "CallExpression[callee.property.name='strictEqual'][arguments.2.type='Literal']",
message: 'Do not use a literal for the third argument of assert.strictEqual()',
},
{
selector: "CallExpression[callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])",
message: 'Use an object as second argument of `assert.throws()`.',
},
{
selector: "CallExpression[callee.property.name='throws'][arguments.length<2]",
message: '`assert.throws()` must be invoked with at least two arguments.',
},
{
selector: "CallExpression[callee.name='setTimeout'][arguments.length<2]",
message: '`setTimeout()` must be invoked with at least two arguments.',
@@ -229,22 +201,6 @@ module.exports = {
selector: 'ThrowStatement > CallExpression[callee.name=/Error$/]',
message: 'Use `new` keyword when throwing an `Error`.',
},
{
selector: "CallExpression[callee.property.name='notDeepStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
message: 'The first argument should be the `actual`, not the `expected` value.',
},
{
selector: "CallExpression[callee.property.name='notStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
message: 'The first argument should be the `actual`, not the `expected` value.',
},
{
selector: "CallExpression[callee.property.name='deepStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
message: 'The first argument should be the `actual`, not the `expected` value.',
},
{
selector: "CallExpression[callee.property.name='strictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
message: 'The first argument should be the `actual`, not the `expected` value.',
},
{
selector: "CallExpression[callee.name='isNaN']",
message: 'Use Number.isNaN() instead of the global isNaN() function.',
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/3-api-ref-docs-problem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: "\U0001F4D7 Open an issue regarding the Node.js API reference docs"
about: Let us know about any problematic API reference documents
title: "doc: "
labels: doc
---

# πŸ“— API Reference Docs Problem

<!------------------------------------------------------------------------------
Thank you for wanting to make nodejs.org better!
This template is for issues with the Node.js API reference docs.
For more general support, please open an issue in
our help repo at β€œhttps://github.com/nodejs/help”.
For the issue title, enter a one-line summary after β€œdoc: ”.
The β€œβœοΈβ€ signifies a request for input. If unsure, do the best you can.
If you found a problem with nodejs.org beyond the API reference docs, please
open an issue in our website repo at β€œhttps://github.com/nodejs/nodejs.org”.
------------------------------------------------------------------------------->

<!--
Version: output of β€œnode -v”
Platform: output of β€œuname -a” (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify affected core module name
-->

- **Version**: ✍️
- **Platform**: ✍️
- **Subsystem**: ✍️

## Location

_Section of the site where the content exists_

Affected URL(s):
- https://nodejs.org/api/✍️

## Problem description

_Concise explanation of what you found to be problematic_

<!-- If applicable, include any screenshots that may help solve the problem. -->

✍️

---

<!-- Use β€œ[x]” to check the box below if interested in contributing. -->

- [ ] I would like to work on this issue and submit a pull request.
2 changes: 2 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
@@ -255,6 +255,8 @@ Installation via Linux package manager can be achieved with:

FreeBSD and OpenBSD users may also need to install `libexecinfo`.

Python 3 users may also need to install `python3-distutils`.

#### macOS prerequisites

* Xcode Command Line Tools >= 8 for macOS
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -28,7 +28,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.18.0">12.18.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V12.md#12.18.1">12.18.1</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.18.0">12.18.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.17.0">12.17.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.3">12.16.3</a><br/>
<a href="doc/changelogs/CHANGELOG_V12.md#12.16.2">12.16.2</a><br/>
53 changes: 6 additions & 47 deletions Makefile
Original file line number Diff line number Diff line change
@@ -292,7 +292,7 @@ v8:
tools/make-v8.sh $(V8_ARCH).$(BUILDTYPE_LOWER) $(V8_BUILD_OPTIONS)

.PHONY: jstest
jstest: build-addons build-abort-tests build-js-native-api-tests build-node-api-tests ## Runs addon tests and JS tests
jstest: build-addons build-js-native-api-tests build-node-api-tests ## Runs addon tests and JS tests
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) \
--skip-tests=$(CI_SKIP_TESTS) \
$(CI_JS_SUITES) \
@@ -316,7 +316,6 @@ test: all ## Runs default tests, linters, and builds docs.
$(MAKE) -s tooltest
$(MAKE) -s test-doc
$(MAKE) -s build-addons
$(MAKE) -s build-abort-tests
$(MAKE) -s build-js-native-api-tests
$(MAKE) -s build-node-api-tests
$(MAKE) -s cctest
@@ -325,7 +324,6 @@ test: all ## Runs default tests, linters, and builds docs.
.PHONY: test-only
test-only: all ## For a quick test, does not run linter or build docs.
$(MAKE) build-addons
$(MAKE) build-abort-tests
$(MAKE) build-js-native-api-tests
$(MAKE) build-node-api-tests
$(MAKE) cctest
@@ -335,7 +333,6 @@ test-only: all ## For a quick test, does not run linter or build docs.
# Used by `make coverage-test`
test-cov: all
$(MAKE) build-addons
$(MAKE) build-abort-tests
$(MAKE) build-js-native-api-tests
$(MAKE) build-node-api-tests
$(MAKE) cctest
@@ -455,31 +452,6 @@ test/node-api/.buildstamp: $(ADDONS_PREREQS) \
# TODO(bnoordhuis) Force rebuild after gyp or node-gyp update.
build-node-api-tests: | $(NODE_EXE) test/node-api/.buildstamp

ABORT_BINDING_GYPS := \
$(filter-out test/abort/??_*/binding.gyp, \
$(wildcard test/abort/*/binding.gyp))

ABORT_BINDING_SOURCES := \
$(filter-out test/abort/??_*/*.c, $(wildcard test/abort/*/*.c)) \
$(filter-out test/abort/??_*/*.cc, $(wildcard test/abort/*/*.cc)) \
$(filter-out test/abort/??_*/*.h, $(wildcard test/abort/*/*.h))

# Implicitly depends on $(NODE_EXE), see the build-node-api-tests rule for rationale.
test/abort/.buildstamp: $(ADDONS_PREREQS) \
$(ABORT_BINDING_GYPS) $(ABORT_BINDING_SOURCES) \
src/node_api.h src/node_api_types.h src/js_native_api.h \
src/js_native_api_types.h src/js_native_api_v8.h src/js_native_api_v8_internals.h
@$(call run_build_addons,"$$PWD/test/abort",$@)

.PHONY: build-abort-tests
# .buildstamp needs $(NODE_EXE) but cannot depend on it
# directly because it calls make recursively. The parent make cannot know
# if the subprocess touched anything so it pessimistically assumes that
# .buildstamp is out of date and need a rebuild.
# Just goes to show that recursive make really is harmful...
# TODO(bnoordhuis) Force rebuild after gyp or node-gyp update.
build-abort-tests: | $(NODE_EXE) test/abort/.buildstamp

BENCHMARK_NAPI_BINDING_GYPS := $(wildcard benchmark/napi/*/binding.gyp)

BENCHMARK_NAPI_BINDING_SOURCES := \
@@ -500,14 +472,12 @@ clear-stalled:
echo $${PS_OUT} | xargs kill -9; \
fi

test-build: | all build-addons build-abort-tests build-js-native-api-tests build-node-api-tests
test-build: | all build-addons build-js-native-api-tests build-node-api-tests

test-build-js-native-api: all build-js-native-api-tests

test-build-node-api: all build-node-api-tests

test-build-abort: all build-abort-tests

.PHONY: test-all
test-all: test-build ## Run default tests with both Debug and Release builds.
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=debug,release
@@ -520,7 +490,7 @@ test-all-suites: | clear-stalled test-build bench-addons-build doc-only ## Run a
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) test/*

# CI_* variables should be kept synchronized with the ones in vcbuild.bat
CI_NATIVE_SUITES ?= addons js-native-api node-api abort
CI_NATIVE_SUITES ?= addons js-native-api node-api
CI_JS_SUITES ?= default
ifeq ($(node_use_openssl), false)
CI_DOC := doctool
@@ -532,7 +502,7 @@ endif
# Build and test addons without building anything else
# Related CI job: node-test-commit-arm-fanned
test-ci-native: LOGLEVEL := info
test-ci-native: | test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp test/abort/.buildstamp
test-ci-native: | test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
--mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
$(TEST_CI_ARGS) $(CI_NATIVE_SUITES)
@@ -554,7 +524,7 @@ test-ci-js: | clear-stalled
.PHONY: test-ci
# Related CI jobs: most CI tests, excluding node-test-commit-arm-fanned
test-ci: LOGLEVEL := info
test-ci: | clear-stalled build-addons build-abort-tests build-js-native-api-tests build-node-api-tests doc-only
test-ci: | clear-stalled build-addons build-js-native-api-tests build-node-api-tests doc-only
out/Release/cctest --gtest_output=xml:out/junit/cctest.xml
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
--mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
@@ -659,17 +629,8 @@ test-node-api-clean:
$(RM) -r test/node-api/*/build
$(RM) test/node-api/.buildstamp

.PHONY: test-abort
test-abort: test-build-abort
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) test-abort

.PHONY: test-abort-clean
test-abort-clean:
$(RM) -r test/abort/*/build
$(RM) test/abort/.buildstamp

.PHONY: test-addons
test-addons: test-build test-js-native-api test-node-api test-abort
test-addons: test-build test-js-native-api test-node-api
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) addons

.PHONY: test-addons-clean
@@ -679,7 +640,6 @@ test-addons-clean:
$(RM) test/addons/.buildstamp test/addons/.docbuildstamp
$(MAKE) test-js-native-api-clean
$(MAKE) test-node-api-clean
$(MAKE) test-abort-clean

test-async-hooks:
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) async-hooks
@@ -688,7 +648,6 @@ test-with-async-hooks:
$(MAKE) build-addons
$(MAKE) build-js-native-api-tests
$(MAKE) build-node-api-tests
$(MAKE) build-abort-tests
$(MAKE) cctest
NODE_TEST_WITH_ASYNC_HOOKS=1 $(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) \
$(CI_JS_SUITES) \
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.37',
'v8_embedder_string': '-node.38',

##### V8 defaults for Node.js #####

2 changes: 1 addition & 1 deletion deps/npm/.npmignore
Original file line number Diff line number Diff line change
@@ -24,5 +24,5 @@ html/*.png

*.pyc


Session.vim
.nyc_output
3 changes: 0 additions & 3 deletions deps/npm/.travis.yml
Original file line number Diff line number Diff line change
@@ -12,9 +12,6 @@ node_js:

env: "DEPLOY_VERSION=testing"

notifications:
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8

install:
- "node . install"

4 changes: 4 additions & 0 deletions deps/npm/AUTHORS
Original file line number Diff line number Diff line change
@@ -691,3 +691,7 @@ Vitaliy Markitanov <9357021+vit100@users.noreply.github.com>
simon_s <simon_s@afimilk.co.il>
John Kennedy <john.kennedy.9147@gmail.com>
Bernard Kitchens <bernard@npmjs.com>
Jarda Snajdr <jsnajdr@gmail.com>
Naix Geng <1308363651@qq.com>
Dylan Treisman <dylanzt@gmail.com>
mum-never-proud <abhuz@hotmail.com>
15 changes: 15 additions & 0 deletions deps/npm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 6.14.5 (2020-05-01)

### BUG FIXES

* [`33ec41f18`](https://github.com/npm/cli/commit/33ec41f18f557146607cb14a7a38c707fce6d42c) [#758](https://github.com/npm/cli/pull/758) fix: relativize file links when inflating shrinkwrap ([@jsnajdr](https://github.com/jsnajdr))
* [`94ed456df`](https://github.com/npm/cli/commit/94ed456dfb0b122fd4192429024f034d06c3c454) [#1162](https://github.com/npm/cli/pull/1162) fix: npm init help output ([@mum-never-proud](https://github.com/mum-never-proud))

### DEPENDENCIES

* [`5587ac01f`](https://github.com/npm/cli/commit/5587ac01ffd0d2ea830a6bbb67bb34a611ffc409) `npm-registry-fetch@4.0.4`
* [`fc5d94c39`](https://github.com/npm/npm-registry-fetch/commit/fc5d94c39ca218d78df77249ab3a6bf1d9ed9db1) fix: removed default timeout
* [`07a4d8884`](https://github.com/npm/cli/commit/07a4d8884448359bac485a49c05fd2d23d06834b) `graceful-fs@4.2.4`
* [`8228d1f2e`](https://github.com/npm/cli/commit/8228d1f2e427ad9adee617266108acd1ee39b4a5) `mkdirp@0.5.5`
* [`e6d208317`](https://github.com/npm/cli/commit/e6d20831740a84aea766da2a2913cf82a4d56ada) `nopt@4.0.3`

## 6.14.4 (2020-03-24)

### DEPENDENCIES
6 changes: 3 additions & 3 deletions deps/npm/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ All interactions in the npm repository are covered by the [npm Code of Conduct](
# Make sure you install the dependencies first before running tests.
$ npm install
# Run tests for the CLI (it could take awhile).
# Run tests for the CLI (it could take a while).
$ npm run test
```

@@ -97,7 +97,7 @@ $ make link
#################
# ALTERNATIVELY
#################
# If ou're working on a feature or bug, you can run the same command on your
# If you're working on a feature or bug, you can run the same command on your
# working branch and link that code.
# Create new branch to work from (there are many ways)
@@ -130,7 +130,7 @@ let you know that it's sent the request to start the benchmark suite.

![image](https://user-images.githubusercontent.com/2818462/72312698-e2e57f80-3656-11ea-9fcf-4a8f6b97b0d1.png)

If you've updated your pull-reuqest and you'd like to run the the benchmark suite again, simple update your original comment, by adding `test this please βœ…` again, or simply just adding another emoji to the **end**. _(The trigger is the phrase "test this please βœ…" at the beginning of a comment. Updates will trigger as well, so long as the phrase stays at the beginning.)_.
If you've updated your pull-request and you'd like to run the the benchmark suite again, simple update your original comment, by adding `test this please βœ…` again, or simply just adding another emoji to the **end**. _(The trigger is the phrase "test this please βœ…" at the beginning of a comment. Updates will trigger as well, so long as the phrase stays at the beginning.)_.

![image](https://user-images.githubusercontent.com/2818462/72313006-ec231c00-3657-11ea-9bd9-227634d67362.png)

10 changes: 5 additions & 5 deletions deps/npm/docs/content/cli-commands/npm.md
Original file line number Diff line number Diff line change
@@ -57,14 +57,14 @@ on a preinstalled git.

If one of the packages npm tries to install is a native node module and
requires compiling of C++ Code, npm will use
[node-gyp](https://github.com/TooTallNate/node-gyp) for that task.
For a Unix system, [node-gyp](https://github.com/TooTallNate/node-gyp)
[node-gyp](https://github.com/nodejs/node-gyp) for that task.
For a Unix system, [node-gyp](https://github.com/nodejs/node-gyp)
needs Python, make and a buildchain like GCC. On Windows,
Python and Microsoft Visual Studio C++ are needed. Python 3 is
not supported by [node-gyp](https://github.com/TooTallNate/node-gyp).
not supported by [node-gyp](https://github.com/nodejs/node-gyp).
For more information visit
[the node-gyp repository](https://github.com/TooTallNate/node-gyp) and
the [node-gyp Wiki](https://github.com/TooTallNate/node-gyp/wiki).
[the node-gyp repository](https://github.com/nodejs/node-gyp) and
the [node-gyp Wiki](https://github.com/nodejs/node-gyp/wiki).

### Directories

Loading