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

v18.11.0 proposal #44968

Merged
merged 106 commits into from
Oct 13, 2022
Merged

v18.11.0 proposal #44968

merged 106 commits into from
Oct 13, 2022

Commits on Oct 2, 2022

  1. cli: add --watch

    PR-URL: #44366
    Backport-PR-URL: #44815
    Fixes: #40429
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and danielleadams committed Oct 2, 2022
    Configuration menu
    Copy the full SHA
    2f5f41c View commit details
    Browse the repository at this point in the history
  2. test: split watch mode inspector tests to sequential

    PR-URL: #44551
    Backport-PR-URL: #44815
    Reviewed-By: Kohei Ueno <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Nitzan Uziely <[email protected]>
    MoLow authored and danielleadams committed Oct 2, 2022
    Configuration menu
    Copy the full SHA
    0c9f38f View commit details
    Browse the repository at this point in the history
  3. test: deflake watch mode tests

    PR-URL: #44621
    Backport-PR-URL: #44815
    Fixes: #44655
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    MoLow authored and danielleadams committed Oct 2, 2022
    Configuration menu
    Copy the full SHA
    3abd71a View commit details
    Browse the repository at this point in the history
  4. test: fix watch mode test flake

    PR-URL: #44739
    Backport-PR-URL: #44815
    Fixes: #44735
    Reviewed-By: Erick Wendel <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    MoLow authored and danielleadams committed Oct 2, 2022
    Configuration menu
    Copy the full SHA
    36227ed View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. test_runner: support using --inspect with --test

    PR-URL: #44520
    Backport-PR-URL: #44813
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and danielleadams committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    3c1e9d4 View commit details
    Browse the repository at this point in the history
  2. cluster: use inspector utils

    PR-URL: #44592
    Backport-PR-URL: #44813
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    MoLow authored and danielleadams committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    7fb9cc7 View commit details
    Browse the repository at this point in the history
  3. test: fix test-runner-inspect

    PR-URL: #44620
    Backport-PR-URL: #44813
    Fixes: #44600
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    MoLow authored and danielleadams committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    56c9c98 View commit details
    Browse the repository at this point in the history
  4. src: add detailed embedder process initialization API

    So far, process initialization has been a bit all over the place
    in Node.js. `InitializeNodeWithArgs()` is our main public API
    for this, but inclusion of items in it vs. `InitializeOncePerProcess()`
    and `PlatformInit()` has been random at best. Likewise,
    some pieces of initialization have been guarded by
    `NODE_SHARED_MODE`, but also fairly randomly and without
    any meaningful connection to shared library usage.
    
    This leaves embedders in a position to cherry-pick some of
    the initialization code into their own code to make their
    application behave like typical Node.js applications to the
    degree to which they desire it.
    
    Electron takes an alternative route and makes direct use of
    `InitializeOncePerProcess()` already while it is a private
    API, with a `TODO` to add it to the public API in Node.js.
    
    This commit addresses that `TODO`, and `TODO`s around the
    `NODE_SHARED_MODE` usage. Specifically:
    
    - `InitializeOncePerProcess()` and `TearDownOncePerProcess()`
      are added to the public API.
    - The `flags` option of these functions are merged with the
      `flags` option for `InitializeNodeWithArgs()`, since they
      essentially share the same semantics.
    - The return value of the function is made an abstract class,
      rather than a struct, for easier API/ABI stability.
    - Initialization code from `main()` is brought into these
      functions (since that makes sense in general).
    - Add a `TODO` for turning `InitializeNodeWithArgs()` into
      a small wrapper around `InitializeOncePerProcess()` and
      eventually removing it (at least one major release cycle
      each, presumably).
    - Remove `NODE_SHARED_MODE` guards and replace them with
      runtime options.
    
    PR-URL: #44121
    Backport-PR-URL: #44358
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    addaleax authored and danielleadams committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    f99f5d3 View commit details
    Browse the repository at this point in the history
  5. util: increase robustness with primordials

    (backported from #41212)
    
    Backport-PR-URL: #44797
    PR-URL: #41212
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    ljharb authored and danielleadams committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    576ccdf View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2022

  1. deps: V8: fix debug build

    This is a (very) partial cherry-pick of upstream change v8/v8@f8fddd6b13
    that fixes the following debug mode build error with clang:
    
        ../deps/v8/src/codegen/register.h:29:48: error: member reference
        base type 'RegListBase' is not a structure or union
          int num_different_regs = RegListBase{regs...}.Count();
    
    Fixes: #44371
    PR-URL: #44392
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Jiawen Geng <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    bnoordhuis authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    c892f35 View commit details
    Browse the repository at this point in the history
  2. tools: update lint-md-dependencies to [email protected]

    PR-URL: #44776
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    nodejs-github-bot authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    984b0b4 View commit details
    Browse the repository at this point in the history
  3. tools: update eslint to 8.24.0

    PR-URL: #44778
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    nodejs-github-bot authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    e9d572a View commit details
    Browse the repository at this point in the history
  4. path: change basename() argument from ext to suffix

    Closes: #44773
    PR-URL: #44774
    Fixes: #44773
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Trott authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    fd5c26b View commit details
    Browse the repository at this point in the history
  5. tools: update eslint-check.js to object style

    Updated rule from deprecated function-style
    format to object-style format.
    
    Refs: https://eslint.org/docs/latest/developer-guide/working-with-rules
    PR-URL: #44706
    Reviewed-By: Rich Trott <[email protected]>
    andiemontoyeah authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    3ad0fae View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4db72a6 View commit details
    Browse the repository at this point in the history
  7. test: use async/await in test-debugger-profile

    PR-URL: #44684
    Reviewed-By: Rich Trott <[email protected]>
    surbhirjain authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    0b2e8b1 View commit details
    Browse the repository at this point in the history
  8. test: use async/await in test-debugger-preserve-breaks

    PR-URL: #44696
    Reviewed-By: Stephen Belanger <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    poorvitusam authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    cca2535 View commit details
    Browse the repository at this point in the history
  9. test: update test-debugger-breakpoint-exists.js to use async/await

    PR-URL: #44682
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    archana-kamath authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    0fb669e View commit details
    Browse the repository at this point in the history
  10. test: upgrade all 1024 bit RSA keys to 2048 bits

    Ubuntu 22.04 Jammy rejects 1024 bit RSA Keys
    
    PR-URL: #44498
    Refs: #44497
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    mmomtchev authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    af30823 View commit details
    Browse the repository at this point in the history
  11. build: update timezone-update.yml

    Signed-off-by: sashashura <[email protected]>
    
    PR-URL: #44717
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Mestery <[email protected]>
    Reviewed-By: Tierney Cyren <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    sashashura authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    f92871a View commit details
    Browse the repository at this point in the history
  12. test: modify test-debugger-custom-port.js to use async-await

    PR-URL: #44680
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    pshastricb authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    9864bde View commit details
    Browse the repository at this point in the history
  13. doc: remove "currently" and comma splice from child_process.md

    Remove redundant use of "currently" and fix a comma splice.
    
    PR-URL: #44789
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Reviewed-By: Harshitha K P <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Trott authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    4efaf42 View commit details
    Browse the repository at this point in the history
  14. tools: refactor deprecated format in no-unescaped-regexp-dot

    PR-URL: #44763
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    sonimadhuri authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    ab22777 View commit details
    Browse the repository at this point in the history
  15. esm: fix duplicated test

    PR-URL: #44779
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    GeoffreyBooth authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    910fbd0 View commit details
    Browse the repository at this point in the history
  16. test: refactor to async/await

    PR-URL: #44694
    Reviewed-By: Stephen Belanger <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    DivyaMohan94 authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    f8b2d7a View commit details
    Browse the repository at this point in the history
  17. dns: support dns module in the snapshot

    For the initial iteration, only the default resolver can be
    serialized/deserialized. If `dns.setServers()` has been
    called, we'll preserve the configured DNS servers in the snapshot.
    We can consider exposing the serialization method if it becomes
    necessary for user-land snapshots.
    
    PR-URL: #44633
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    joyeecheung authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    9151439 View commit details
    Browse the repository at this point in the history
  18. bootstrap: update comments in bootstrap/node.js

    The comments in bootstrap/node.js are now out of date due to
    recent changes to the bootstrap process. Update them to reflect
    the current status.
    
    PR-URL: #44726
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    joyeecheung authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    4e82521 View commit details
    Browse the repository at this point in the history
  19. child_process: remove lookup of undefined property

    execSync() passes opts.args to checkExecSyncError(). There are
    two problems:
    
    1. opts.args appears to always be undefined.
    2. Even if it was defined, checkExecSyncError() would not use
       it since the command input is guaranteed to be defined.
    
    This commit updates the code to pass undefined instead.
    
    PR-URL: #44766
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    cjihrig authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    f85d347 View commit details
    Browse the repository at this point in the history
  20. fs: don't hard code name in validatePosition()

    The name of the position being validated by validatePosition()
    was not being used. Instead, the string 'position' was being
    used everywhere. It worked out because the only call sites were
    using the name 'position' as well.
    
    PR-URL: #44767
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Kohei Ueno <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    cjihrig authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    dc6379b View commit details
    Browse the repository at this point in the history
  21. test: add extra tests for basename with ext option

    PR-URL: #44772
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    connorjburton authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    5c63d14 View commit details
    Browse the repository at this point in the history
  22. test: use async/await in test-debugger-sb-before-load

    PR-URL: #44697
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    hopeolaide authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    eeabd23 View commit details
    Browse the repository at this point in the history
  23. test: change promises to async/await in test-debugger-backtrace.js

    PR-URL: #44677
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    zhangjuliet authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    e609a33 View commit details
    Browse the repository at this point in the history
  24. test: migrated from Promise chains to Async/Await

    PR-URL: #44674
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    rathi2016 authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    143c428 View commit details
    Browse the repository at this point in the history
  25. src: remove ParseIP() in cares_wrap.cc

    This function is only used in one place where the result argument is
    never nullptr, so remove special handling of that case. Also, instead
    of returning magic values 0/4/6 and then later translating those into
    error/AF_INET/AF_INET6, use AF_INET/AF_INET6 directly. Lastly, inline
    the function, which is simpler overall.
    
    PR-URL: #44771
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    tniessen authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    b27b336 View commit details
    Browse the repository at this point in the history
  26. test: use async/await in test-debugger-auto-resume

    PR-URL: #44675
    Reviewed-By: Rich Trott <[email protected]>
    samyuktaprabhu authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    117f068 View commit details
    Browse the repository at this point in the history
  27. crypto: use EVP_PKEY_CTX_set_dsa_paramgen_q_bits when available

    This matches the formulation described in the documentation:
    https://www.openssl.org/docs/man3.0/man3/EVP_PKEY_CTX_set_dsa_paramgen_q_bits.html
    
    It is also, starting OpenSSL 3.0, more type-safe because the wrapper
    macros were finally converted to real functions. In OpenSSL 3.0, it is
    also no longer quite a wrapper over EVP_PKEY_CTX_ctrl, so using this
    name saves some extra OSSL_PARAM <-> EVP_PKEY_CTRL conversions.
    
    Alas, it was only backported to OpenSSL 1.1.1e, so I've left a temporary
    compatibility define until you all decide to drop pre-1.1.1e releases of
    1.1.1.
    
    PR-URL: #44561
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    davidben authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    e0fbba0 View commit details
    Browse the repository at this point in the history
  28. test: use async/await in test-debugger-heap-profiler

    PR-URL: #44693
    Reviewed-By: Rich Trott <[email protected]>
    brindashar4 authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    ddf0297 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    d2f3616 View commit details
    Browse the repository at this point in the history
  30. test: use await in test-debugger-invalid-json

    Changes the promises to async/await in
    test/parallel/test-debugger-invalid-json.
    
    PR-URL: #44689
    Reviewed-By: Rich Trott <[email protected]>
    anjanakvellore authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    f4f08be View commit details
    Browse the repository at this point in the history
  31. test: update test-debugger-scripts to use await/async

    PR-URL: #44692
    Reviewed-By: Rich Trott <[email protected]>
    mmeenapriya authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    8033ad8 View commit details
    Browse the repository at this point in the history
  32. test: use async/await in test-debugger-help

    PR-URL: #44686
    Reviewed-By: Rich Trott <[email protected]>
    chanduMe authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    9f14625 View commit details
    Browse the repository at this point in the history
  33. test: use async/await in test-debugger-exceptions

    PR-URL: #44690
    Reviewed-By: Rich Trott <[email protected]>
    pete3249 authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    ee3c6a4 View commit details
    Browse the repository at this point in the history
  34. tools: fix typo in tools/update-authors.mjs

    The filename ends with an s.
    
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: #44780
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Daijiro Wachi <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    RaisinTen authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    131adec View commit details
    Browse the repository at this point in the history
  35. meta: update AUTHORS

    PR-URL: #44857
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    nodejs-github-bot authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    fd9feb3 View commit details
    Browse the repository at this point in the history
  36. doc: include last security release date

    PR-URL: #44794
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    vdeturckheim authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    2a5bce6 View commit details
    Browse the repository at this point in the history
  37. stream: handle enqueuing chunks when a pending BYOB pull request exists

    Signed-off-by: Daeyeon Jeong <[email protected]>
    PR-URL: #44770
    Refs: https://streams.spec.whatwg.org/#readable-byte-stream-controller-enqueue
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    daeyeon authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    f300f19 View commit details
    Browse the repository at this point in the history
  38. doc: update node prefix require.cache example

    PR-URL: #44724
    Reviewed-By: Geoffrey Booth <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    simoneb authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    7c5c19e View commit details
    Browse the repository at this point in the history
  39. meta: label test.js and test.md with test_runner label

    PR-URL: #44863
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    MoLow authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    2efe4d9 View commit details
    Browse the repository at this point in the history
  40. doc: add anchor link for --preserve-symlinks

    PR-URL: #44858
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cola119 authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    ccf31d8 View commit details
    Browse the repository at this point in the history
  41. test: check server status in test-tls-psk-client

    Add assertions to sequential/test-tls-psk-client to check if the
    spawned OpenSSL server has exited in any way except for the expected
    termination by the cleanUp() function. The added assertions will
    prevent the test from spinning forever trying to connect to the
    non-existent server in the case that the spawned process has exited.
    Include stderr and stdout in the assertion failure message to aid
    debugging.
    
    PR-URL: #44824
    Refs: #44821
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    richardlau authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    c54cee1 View commit details
    Browse the repository at this point in the history
  42. test: remove unused variable in addon test

    This fixes the compiler warning for the unused variable in the
    report-api addon test.
    
    PR-URL: #44809
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    8daceda View commit details
    Browse the repository at this point in the history
  43. doc: add extra step for reporter pre-approval

    As discussed in the #security-triagge (OpenJS channel).
    To avoid insufficient CVE fixes across Security Release,
    might make sense to request a reporter pre-approval.
    
    PR-URL: #44806
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    RafaelGSS authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    6ae9bc8 View commit details
    Browse the repository at this point in the history
  44. test: skip some binding tests on IBMi PASE

    IBM i PASE Node.js always links to shared openssl
    libraries. Skip recently added OpenSSL addons
    tests as we do for other OpenSSL addons tests on
    IBM i.
    
    Refs: #31967
    Refs: #44148
    PR-URL: #44810
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    richardlau authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    60a05d6 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    dc2af26 View commit details
    Browse the repository at this point in the history
  46. node-api: create reference only when needed

    Optimize napi_create_external() to create the reference for calling
    finalizer only if user actually provides a finalizer callback.
    
    PR-URL: #44827
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Flarna authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    a854bb3 View commit details
    Browse the repository at this point in the history
  47. build: convert V8 test JSON to JUnit XML

    This introduces some code to convert from V8's test JSON output to JUnit
    XML. We need this because V8's latest refactor of their test runner has
    made it difficult to float our JUnit reporter patch on top (see the
    referenced issue).
    
    I also think that there needs to be the same changes to vcbuild.bat, but
    I don't know how to do test those yet. I can create a Windows VM and
    test it if we decide to go with this approach.
    
    Refs: nodejs/node-v8#236
    PR-URL: #44049
    Fixes: nodejs/node-v8#236
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    kvakil authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    37808b3 View commit details
    Browse the repository at this point in the history
  48. test_runner: remove runtime experimental warning

    This commit removes the experimental warning that is emitted
    when the test runner is used. The test runner feature is still
    considered experimental, but this change makes its output
    easier to read.
    
    PR-URL: #44844
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    c7ece46 View commit details
    Browse the repository at this point in the history
  49. src: use OnScopeLeave instead of multiple free()

    This is not great either but it avoids having to call OPENSSL_free() in
    more than one branch, thus reducing the risk of memory leaks.
    
    PR-URL: #44852
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    tniessen authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    781ad96 View commit details
    Browse the repository at this point in the history
  50. doc: remove unnecessary leading commas

    There are several locations in the test_runner API docs where
    the optional first argument to a function was written with a
    leading comma. Since these are first arguments, the commas
    can be removed.
    
    PR-URL: #44854
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Moshe Atlow <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    cjihrig authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    780144c View commit details
    Browse the repository at this point in the history
  51. lib: add cause to DOMException

    PR-URL: #44703
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    flakey5 authored and danielleadams committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    67eaa30 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2022

  1. benchmark: add vm context global proxy benchmark

    PR-URL: #44796
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and danielleadams committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    27b4b78 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. doc: fix grammar in dns docs (#44850)

    Also removes some italics text, as requested
    in the pull request review.
    
    PR-URL: #44850
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    cjihrig authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    e92b074 View commit details
    Browse the repository at this point in the history
  2. test_runner: add --test-name-pattern CLI flag

    This commit adds support for running tests that match a
    regular expression.
    
    Fixes: #42984
    cjihrig authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    d762a34 View commit details
    Browse the repository at this point in the history
  3. tools: make utils.SearchFiles deterministic

    `glob.glob` on Linux returns files in the order returned by the
    filesystem driver, and the output from this function is stuffed by
    the Electron build process straight into the `config.gypi` header,
    causing non-reproducible builds.
    
    See this log for an example of the nondeterminism:
    https://rb.zq1.de/compare.factory-20220901/diffs/nodejs-electron-compare.out
    
    PR-URL: #44496
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Stewart X Addison <[email protected]>
    brjsp authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    fd99b17 View commit details
    Browse the repository at this point in the history
  4. src: avoid X509_free in loops in crypto_x509.cc

    Use X509Pointer objects for automatic memory management instead.
    
    PR-URL: #44855
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    tniessen authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    7ca77dd View commit details
    Browse the repository at this point in the history
  5. src: implement GetDetachedness() in MemoryRetainerNode

    This allows us to mark weak/detached references in the heap snapshot.
    Also mark weak/detached BaseObject with Detachedness::kDetached
    so that the state of the reference can be displayed by frontend
    consuming the heap snapshot.
    
    PR-URL: #44803
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    joyeecheung authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    daf3152 View commit details
    Browse the repository at this point in the history
  6. doc,crypto: add null length to crypto.subtle.deriveBits

    PR-URL: #44876
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    panva authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    70f5502 View commit details
    Browse the repository at this point in the history
  7. doc,crypto: add missing CFRG curve algorithms to supported lists

    PR-URL: #44876
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    panva authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    3c653cf View commit details
    Browse the repository at this point in the history
  8. src: deduplicate setting RSA OAEP label

    This bit unfortunately involves manual memory management, so it is best
    to only implement it once.
    
    PR-URL: #44849
    Reviewed-By: Filip Skokan <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    tniessen authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    0606f92 View commit details
    Browse the repository at this point in the history
  9. src: remove UncheckedMalloc(0) workaround

    Assuming that UncheckedMalloc(0) returns a non-nullptr is non-standard
    and we use other allocators as well (e.g., OPENSSL_malloc) that do not
    guarantee this behavior. It is the caller's responsibility to check that
    size != 0 implies UncheckedMalloc(size) != nullptr, and that's exactly
    what the checked variants (Malloc etc.) already do.
    
    The current behavior is also inconsistent with UncheckedRealloc(), which
    always returns a nullptr when the size is 0, and with the documentation
    in src/README.md as well as with multiple comments in the source code.
    
    This changes UncheckedMalloc(), UncheckedCalloc(), and
    UncheckedRealloc() to always return a nullptr when the size is 0 instead
    of doing fake allocations in UncheckedMalloc() and UncheckedCalloc()
    while returning a nullptr from UncheckedRealloc(). This is consistent
    with existing documentation and comments.
    
    Refs: #8571
    Refs: #8572
    PR-URL: #44543
    Reviewed-By: Rafael Gonzaga <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    tniessen authored and danielleadams committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    3abb607 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. http: add writeEarlyHints function to ServerResponse

    Co-Authored-By: Matteo Collina <[email protected]>
    Co-Authored-By: Livia Medeiros <[email protected]>
    PR-URL: #44180
    Reviewed-By: Robert Nagy <[email protected]>
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: LiviaMedeiros <[email protected]>
    3 people authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    4c869c8 View commit details
    Browse the repository at this point in the history
  2. src,worker: fix race of WorkerHeapSnapshotTaker

    Any WorkerHeapSnapshotTaker instance should be fully owned
    by main thread. Remove buggy access to it from the worker thread.
    
    PR-URL: #44745
    Fixes: #44515
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    ywave620 authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    a33cc22 View commit details
    Browse the repository at this point in the history
  3. doc,crypto: mark experimental algorithms more visually

    PR-URL: #44892
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    panva authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    3627616 View commit details
    Browse the repository at this point in the history
  4. http2: make early hints generic

    PR-URL: #44820
    Fixes: #44816
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rafael Gonzaga <[email protected]>
    anonrig authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    9c7e664 View commit details
    Browse the repository at this point in the history
  5. fs: improve promise based readFile performance for big files

    This significantly reduces the peak memory for the promise
    based readFile operation by reusing a single memory chunk after
    each read and strinigifying that chunk immediately.
    
    Signed-off-by: Ruben Bridgewater <[email protected]>
    PR-URL: #44295
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    BridgeAR authored and danielleadams committed Oct 11, 2022
    2 Configuration menu
    Copy the full SHA
    67fb765 View commit details
    Browse the repository at this point in the history
  6. http: be more aggressive to reply 400, 408 and 431

    As long as data of the in-flight response is not yet written
    to the socket, we can reply an error response without corrupting
    the client.
    
    PR-URL: #44818
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Ricky Zhou <[email protected]>
    ywave620 authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    eb19b1e View commit details
    Browse the repository at this point in the history
  7. doc: move release keys we don't use anymore in README

    Refs: https://github.com/nodejs/Release/blob/3cd3c6a65188d0e64017d0cee11b9834a5753fd5/GOVERNANCE.md#offboarding-releasers
    Refs: nodejs/Release#784
    PR-URL: #44899
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    Trott authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    b6b9c42 View commit details
    Browse the repository at this point in the history
  8. lib: require JSDoc in internal validators code

    Closes: #44893
    PR-URL: #44896
    Fixes: #44893
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Trott authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    ada7d82 View commit details
    Browse the repository at this point in the history
  9. test: check --test is disallowed in NODE_OPTIONS

    PR-URL: #44846
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Daeyeon Jeong <[email protected]>
    Reviewed-By: Tierney Cyren <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    cola119 authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    a080608 View commit details
    Browse the repository at this point in the history
  10. util: add default value option to parsearg

    Users can set a default
    value for every expected
    input argument
    
    PR-URL: #44631
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Eomm authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    db5aeed View commit details
    Browse the repository at this point in the history
  11. test: loosen test for negative timestamps in test-fs-stat-date

    PR-URL: #44707
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    LiviaMedeiros authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    fe91beb View commit details
    Browse the repository at this point in the history
  12. test: don't clobber RegExp.$_ on startup

    Some tests expect it to be empty so clear it again after running a
    regular expression against /proc/cpuinfo.
    
    It didn't cause test failures on any of the CI machines, to the best of
    my knowledge, because most of the time /proc/cpuinfo doesn't contain
    the string it was looking for.
    
    Fixes: #44840
    PR-URL: #44864
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Juan José Arboleda <[email protected]>
    bnoordhuis authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    2308b71 View commit details
    Browse the repository at this point in the history
  13. doc: fix typo in Node.js 12 changelog

    PR-URL: #42880
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Zeyu "Alex" Yang <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    lorand-horvath authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    d08b024 View commit details
    Browse the repository at this point in the history
  14. deps: update corepack to 0.14.2

    PR-URL: #44775
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Darshan Sen <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    nodejs-github-bot authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    aa68d40 View commit details
    Browse the repository at this point in the history
  15. doc: fix label name in collaborator guide

    PR-URL: #44920
    Reviewed-By: Geoffrey Booth <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Chengzhong Wu <[email protected]>
    Reviewed-By: Kohei Ueno <[email protected]>
    Trott authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    ddb5402 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    653c3b1 View commit details
    Browse the repository at this point in the history
  17. tools: update eslint to 8.25.0

    PR-URL: #44931
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    nodejs-github-bot authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    ad8b8ae View commit details
    Browse the repository at this point in the history
  18. meta: update AUTHORS

    PR-URL: #44930
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    nodejs-github-bot authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    0db86ee View commit details
    Browse the repository at this point in the history
  19. deps: update undici to 5.11.0

    PR-URL: #44929
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
    Reviewed-By: Tobias Nießen <[email protected]>
    nodejs-github-bot authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    a90386b View commit details
    Browse the repository at this point in the history
  20. doc: remove Legacy status from querystring

    Closes: #44911
    PR-URL: #44912
    Fixes: #44911
    Reviewed-By: Erick Wendel <[email protected]>
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    Reviewed-By: Gireesh Punathil <[email protected]>
    Trott authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    842bc64 View commit details
    Browse the repository at this point in the history
  21. fs: add FileHandle.prototype.readLines

    PR-URL: #42590
    Reviewed-By: LiviaMedeiros <[email protected]>
    aduh95 authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    11d1c23 View commit details
    Browse the repository at this point in the history
  22. doc: mention corepack prepare supports tag or range

    `corepack prepare pnpm@latest --activate` is a useful alternative to
    `corepack prepare [email protected] --activate`.
    
    PR-URL: #44646
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Akhil Marsonya <[email protected]>
    mrienstra authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    8c69da8 View commit details
    Browse the repository at this point in the history
  23. src: remove uid_t/gid_t casts

    If uid_t/gid_t are uint32_t, then the casts are unnecessary. This
    appears to be true in all recent versions of all supported platforms,
    so this change makes that assumption explicit and removes the casts.
    
    Conversely, if uid_t/gid_t are smaller unsigned integer types (such as
    uint16_t in earlier versions of Linux) or signed integer types (such as
    int32_t), then the casts are potentially dangerous because they might
    change the value of the uid/gid. If this happens on any platform, the
    added static_assert will fail, and additional bound checks should be
    introduced.
    
    PR-URL: #44914
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    tniessen authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    9f2dd48 View commit details
    Browse the repository at this point in the history
  24. process: fix uid/gid validation to avoid crash

    id |= 0 turns unsigned 32-bit integer values exceeding the unsigned
    31-bit range into negative integers, causing a crash. Use id >>>= 0
    instead, which works properly for all unsigned 32-bit integers.
    
    Refs: #36786
    PR-URL: #44910
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Erick Wendel <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    tniessen authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    803fbfb View commit details
    Browse the repository at this point in the history
  25. crypto: add causes to applicable webcrypto's OperationError

    PR-URL: #44890
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    panva authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    99a2c16 View commit details
    Browse the repository at this point in the history
  26. src,stream: improve DoWrite() and Write()

    Clarify StreamResource::DoWrite() interface definition.
    Fix error-prone Http2Stream::DoWrite().
    Change StreamBase::Write() to allow caller to avoid
    inefficient write behavior.
    
    PR-URL: #44434
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Stephen Belanger <[email protected]>
    ywave620 authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    281fd7a View commit details
    Browse the repository at this point in the history
  27. buffer: initialize TextDecoder once on blob.text()

    PR-URL: #44787
    Reviewed-By: Michaël Zasso <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Trivikram Kamat <[email protected]>
    anonrig authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    725be0e View commit details
    Browse the repository at this point in the history
  28. tools: fix timezone update tool

    The spawnSync call was previously silently failing with this error:
    ```sh
    icupkg: unable to open input file "icudt*.dat"
    ```
    because spawnSync doesn't support globbing. This change replaces the
    spawnSync call with execSync because that supports globbing.
    
    I have tested this workflow with some minor modifications in my fork and
    I can confirm that it works as expected now. The bot opened this PR -
    RaisinTen#2 which updates
    deps/icu-small/source/data/in/icudt71l.dat.bz2.
    
    Fixes: #44865
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: #44870
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    RaisinTen authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    19d8574 View commit details
    Browse the repository at this point in the history
  29. tools: remove faulty early termination logic from update-timezone.mjs

    We do not build Node.js in the workflow so
    https://github.com/nodejs/node/blob/f4815fcd7691364d8139b44c1295dbc46f6ee4a8/tools/update-timezone.mjs#L18
    is actually the version of `tzdata` in the Node.js in the runner instead
    of what's in `main`.
    
    The script is pretty fast even when the versions differ and there is an
    update, so this optimization doesn't seem to be worth having given the
    problem.
    
    Signed-off-by: Darshan Sen <[email protected]>
    PR-URL: #44870
    Fixes: #44865
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    RaisinTen authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    4bdef48 View commit details
    Browse the repository at this point in the history
  30. fs: fix opts.filter issue in cp async

    PR-URL: #44922
    Fixes: #44720
    Reviewed-By: Antoine du Hamel <[email protected]>
    Reviewed-By: Minwoo Jung <[email protected]>
    thoqbk authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    bc00f3b View commit details
    Browse the repository at this point in the history
  31. test: debug watch mode inspect

    PR-URL: #44861
    Refs: #44805
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Erick Wendel <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    MoLow authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    b9b671f View commit details
    Browse the repository at this point in the history
  32. doc: improve building doc for Android

    PR-URL: #44888
    Refs: #44207
    Reviewed-By: Feng Yu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    MeowShe authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    97df9b8 View commit details
    Browse the repository at this point in the history
  33. doc: add fsPromises.readFile() example

    Signed-off-by: Tierney Cyren <[email protected]>
    PR-URL: #40237
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    bnb authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    ce3cb29 View commit details
    Browse the repository at this point in the history
  34. lib: refactor transferable AbortSignal

    Co-authored-by: James M Snell <[email protected]>
    PR-URL: #44048
    Backport-PR-URL: #44941
    Reviewed-By: Matteo Collina <[email protected]>
    Reviewed-By: Stephen Belanger <[email protected]>
    Reviewed-By: Paolo Insogna <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    Reviewed-By: Antoine du Hamel <[email protected]>
    2 people authored and danielleadams committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    3f20e5b View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2022

  1. test: bump memory limit for abort fatal error

    PR-URL: #44984
    Reviewed-By: Richard Lau <[email protected]>
    Reviewed-By: Beth Griggs <[email protected]>
    danielleadams committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    9ac029e View commit details
    Browse the repository at this point in the history
  2. 2022-10-13, Version 18.11.0 (Current)

    watch mode (experimental):
    
    Running in 'watch' mode using `node --watch` restarts the process when an
    imported file is changed.
    
    Contributed by Moshe Atlow in #44366
    
    Other notable changes:
    
    * fs:
      * (SEMVER-MINOR) add `FileHandle.prototype.readLines` (Antoine du Hamel)
      #42590
    * http:
      * (SEMVER-MINOR) add writeEarlyHints function to ServerResponse (Wing)
      #44180
    * http2:
      * (SEMVER-MINOR) make early hints generic (Yagiz Nizipli) #44820
    * lib:
      * (SEMVER-MINOR) refactor transferable AbortSignal (flakey5) #44048
    * src:
      * (SEMVER-MINOR) add detailed embedder process initialization API (Anna
      Henningsen) #44121
    * util:
      * (SEMVER-MINOR) add default value option to parsearg (Manuel Spigolon)
      #44631
    
    PR-URL: #44968
    danielleadams committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    8c1dd95 View commit details
    Browse the repository at this point in the history