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

v12.19.0 proposal #35401

Merged
merged 492 commits into from Oct 6, 2020
Merged

v12.19.0 proposal #35401

merged 492 commits into from Oct 6, 2020
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Sep 22, 2020

  1. doc: move addaleax to TSC emeritus

    PR-URL: #34809
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    Reviewed-By: Khaidi Chu <i@2333.moe>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    9d52480 View commit details
    Browse the repository at this point in the history
  2. process: correctly parse Unicode in NODE_OPTIONS

    Fixes an issue on Windows, where Unicode in NODE_OPTIONS was not parsed
    correctly.
    
    Fixes: #34399
    
    PR-URL: #34476
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    bzoz authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    53eae0d View commit details
    Browse the repository at this point in the history
  3. test: run REPL preview test regardless of terminal type

    PR-URL: #34798
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    cc98103 View commit details
    Browse the repository at this point in the history
  4. test: fix test-cluster-net-listen-relative-path.js to run in /

    test-cluster-net-listen-relative-path fails if run from the root
    directory on POSIX because the socket filename isn't quite long enough.
    Increase it by 2 so that the path length always exceeds 100 characters.
    
    PR-URL: #34820
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d016cdc View commit details
    Browse the repository at this point in the history
  5. deps: upgrade npm to 6.14.8

    PR-URL: #34834
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    ruyadorno authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    f87b6c0 View commit details
    Browse the repository at this point in the history
  6. n-api: handle weak no-finalizer refs correctly

    When deleting a weak reference that has no finalizer we must not defer
    deletion until the non-existent finalizer gets called.
    
    Fixes: #34731
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    
    PR-URL: #34839
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Gabriel Schulhof authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    a6b6556 View commit details
    Browse the repository at this point in the history
  7. doc: use 'console' info string for console output

    PR-URL: #34837
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    5f09f45 View commit details
    Browse the repository at this point in the history
  8. doc: adopt Microsoft Style Guide officially

    PR-URL: #34821
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3ea7e03 View commit details
    Browse the repository at this point in the history
  9. doc: fix ESM/CJS wrapper example

    PR-URL: #34853
    Refs: #34714
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    fox1t authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    da150f4 View commit details
    Browse the repository at this point in the history
  10. tls: enable renegotiation when using BoringSSL

    PR-URL: #34832
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    nornagon authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    c059d3d View commit details
    Browse the repository at this point in the history
  11. src: usage of modernize-use-equals-default

    Update the destructor and constructor calls to use the default member
    function. This will bascially enable the compiler to do better
    optimization as the functions as explicitly defined as trivial.
    
    Refs: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html
    
    PR-URL: #34807
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    yashLadha authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d953fa3 View commit details
    Browse the repository at this point in the history
  12. src: fix abort on uv_loop_init() failure

    Fixes: #34855
    
    PR-URL: #34874
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    bnoordhuis authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    26a596b View commit details
    Browse the repository at this point in the history
  13. doc: indicate the format of process.version

    PR-URL: #34872
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    dguo authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    26b060f View commit details
    Browse the repository at this point in the history
  14. doc,n-api: add link to n-api tutorial website

    PR-URL: #34870
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    jschlight authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    e8ddaa3 View commit details
    Browse the repository at this point in the history
  15. doc: improve fs doc intro

    Signed-off-by: James M Snell <jasnell@gmail.com>
    
    PR-URL: #34843
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    jasnell authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    961844d View commit details
    Browse the repository at this point in the history
  16. deps: upgrade to libuv 1.39.0

    Notable changes:
    
    - uv_metrics_idle_time() and UV_METRICS_IDLE_TIME have been added
      for measuring the amount of time the event loop spends idle.
    - uv_udp_using_recvmmsg() has been added to determine if a buffer
      is large enough for multiple datagrams should be allocated in
      the allocation callback of uv_udp_recvstart().
    - On MinGW, the installation location has been updated to match
      Unix systems rather than Windows.
    - uv_fs_copyfile() now tries to use copy_file_range() when
      possible.
    - The test suite is now reported to pass on Darwin ARM64 (Apple
      Silicon).
    - uv_{get,set}_process_title() now returns an error on platforms
      where uv_setup_args() is required, but has not yet been called.
    - The _POSIX_PATH_MAX constant is no longer used, which could
      lead to buffer overflows in uv_fs_readlink() and
      uv_fs_realpath().
    
    PR-URL: #34915
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    cjihrig authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    9b53b4d View commit details
    Browse the repository at this point in the history
  17. test: simplify test-vm-memleak

    PR-URL: #34881
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    76d991c View commit details
    Browse the repository at this point in the history
  18. doc: use "previous"/"preceding" instead of "above" as modifier

    Refs: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/above
    
    PR-URL: #34877
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    222fcb1 View commit details
    Browse the repository at this point in the history
  19. build,deps: add gen-openssl target

    This adds a new make target to generate platform dependent
    files for openssl on non-linux machines. The scripts we currently
    have in place require linux. This adds a Dockerfile that installs
    the necessary dependencies to be able to generate these files.
    
    Previously, it was necessary to run `make -C deps/openssl/config`
    on a linux machine. Now, as long as docker is installed and in
    your `PATH`, it is possible to run `make gen-openssl`.
    
    PR-URL: #34642
    Reviewed-By: James M Snell <jasnell@gmail.com>
    evanlucas authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    acf63b0 View commit details
    Browse the repository at this point in the history
  20. deps: add openssl support for arm64

    This adds the required files for supporting openssl
    on arm64.
    
    This uses the same configuration that can be found in
    openssl/openssl#12369 to generate the required
    files.
    
    PR-URL: #34238
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
    evanlucas authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    f6c0b27 View commit details
    Browse the repository at this point in the history
  21. build: add support for build on arm64

    Ref: nodejs/TSC#886
    Ref: #34043
    
    PR-URL: #34238
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
    evanlucas authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d2f44a7 View commit details
    Browse the repository at this point in the history
  22. meta: enable wasi for CODEOWNERS

    PR-URL: #34889
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    gengjiawen authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    36c705d View commit details
    Browse the repository at this point in the history
  23. errors: use ErrorPrototypeToString from primordials object

    PR-URL: #34891
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    ExE-Boss authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    5c968a0 View commit details
    Browse the repository at this point in the history
  24. tools,doc: remove "toc" anchor name

    The _name_ attribute is obsolete. Changing it to _id_ in the case of
    "toc" would result in a conflict with an existing id. However, there are
    no links to "#toc" in our docs. And if there were, it would be more
    appropriate to link to the id toc which is the toc for the individual
    documents. So remove the anchor name entirely.
    
    PR-URL: #34893
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    4a0c01e View commit details
    Browse the repository at this point in the history
  25. src,doc: rephrase for clarity

    PR-URL: #34879
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    wjabbour authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    302d389 View commit details
    Browse the repository at this point in the history
  26. src,doc: fix wording to refer to context, not environment

    PR-URL: #34880
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    wjabbour authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    2a7c65a View commit details
    Browse the repository at this point in the history
  27. doc: use consistent typography for node-addon-api

    Most of the instances of _node-addon-api_ are surrounded with backticks,
    but two aren't. Add backticks for consistency.
    
    PR-URL: #34910
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    f50fec6 View commit details
    Browse the repository at this point in the history
  28. doc: provide more guidance about process.version

    PR-URL: #34909
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    1b27f09 View commit details
    Browse the repository at this point in the history
  29. doc: fix CHANGELOG.md parsing issue

    PR-URL: #34923
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    juanarbol authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    533d00d View commit details
    Browse the repository at this point in the history
  30. doc: make minor fixes to maintaining-openssl.md

    PR-URL: #34926
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Evan Lucas <evanlucas@me.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    1e33bfc View commit details
    Browse the repository at this point in the history
  31. doc: simplify "make use of" to "use"

    PR-URL: #34861
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    a5b4526 View commit details
    Browse the repository at this point in the history
  32. deps: update brotli to v1.0.9

    Refs: https://github.com/google/brotli/releases/tag/v1.0.8
    Refs: https://github.com/google/brotli/releases/tag/v1.0.9
    
    PR-URL: #34937
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    481cced View commit details
    Browse the repository at this point in the history
  33. zlib: replace usage of internal stream state with public api

    Refs: #445
    
    PR-URL: #34884
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    lundibundi authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    cda459e View commit details
    Browse the repository at this point in the history
  34. net: replace usage of internal stream state with public api

    Refs: #445
    
    PR-URL: #34885
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    lundibundi authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3c4abe0 View commit details
    Browse the repository at this point in the history
  35. doc: make minor improvements to query string sentence in http2.md

    PR-URL: #34929
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    0695e24 View commit details
    Browse the repository at this point in the history
  36. test: make test-tls-reuse-host-from-socket pass without internet

    Start up a TLS server on localhost rather than using example.org.
    
    PR-URL: #34953
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    46f94f9 View commit details
    Browse the repository at this point in the history
  37. test: add readline test for escape sequence

    Tests do not cover a small piece of code in
    lib/internal/readline/utils.js for consuming an escape sequence.
    This adds a minimal test to cover the code.
    
    Refs: https://coverage.nodejs.org/coverage-0848f56cb3943209/lib/internal/readline/utils.js.html#L327
    
    PR-URL: #34952
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3fd7889 View commit details
    Browse the repository at this point in the history
  38. test: fix typo in test/parallel/test-icu-punycode.js

    coverter => converter
    
    PR-URL: #34934
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    watilde authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    327d009 View commit details
    Browse the repository at this point in the history
  39. stream: allow using .push()/.unshift() during once('data')

    Previously, the `.push()` or `.unshift()` call would just have jumped
    straight to emitting a `'data'` event, even if there were no listeners,
    effectively just silently dropping the chunk.
    
    PR-URL: #34957
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    d44b05b View commit details
    Browse the repository at this point in the history
  40. build: use latest node-core-utils from npm

    PR-URL: #34969
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    lundibundi authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    8d27998 View commit details
    Browse the repository at this point in the history
  41. build: use autorebase option for git node land

    This will allow to land commits with multiple commits and also properly
    handle proper `fixup` commits.
    
    Refs: nodejs/node-core-utils#473
    
    PR-URL: #34969
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    lundibundi authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    9bb6814 View commit details
    Browse the repository at this point in the history
  42. doc: fix typos in buffer doc

    * pluralize "strings" in hex encoding description.
    * fix typo in ascii encoding description
    * remove double "array"
    
    PR-URL: #34981
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    robhybrid authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    b575e63 View commit details
    Browse the repository at this point in the history
  43. doc: fix broken link to writableEnded in deprecations doc

    PR-URL: #34984
    Reviewed-By: Harshitha K P <harshitha014@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    4e2415f View commit details
    Browse the repository at this point in the history
  44. doc: fix broken link to response.finished in deprecations doc

    PR-URL: #34982
    Reviewed-By: Harshitha K P <harshitha014@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    23389a0 View commit details
    Browse the repository at this point in the history
  45. doc: fix broken link to response.writableFinished in deprecations doc

    PR-URL: #34983
    Reviewed-By: Harshitha K P <harshitha014@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    4d28435 View commit details
    Browse the repository at this point in the history
  46. doc: drop the --production flag for installing windows-build-tools

    This isn't needed, and was probably copy-pasted from
    windows-build-tools' README.md, which has since been changed
    to drop the `--production` flag from the install instructions.
    
    PR-URL: #34979
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    DeeDeeG authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    c68c6cd View commit details
    Browse the repository at this point in the history
  47. test: remove incorrect debug() in test-policy-integrity

    The instructions to use `test:policy-integrity:NUMBER` do not work, I'm
    afraid. This removes them.
    
    PR-URL: #34961
    Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    0bd1768 View commit details
    Browse the repository at this point in the history
  48. doc: change effected to affected

    PR-URL: #34989
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    wjabbour authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    e7c74eb View commit details
    Browse the repository at this point in the history
  49. doc,tools: remove malfunctioning Linux manpage linker

    The Linux manpage auto-linking is resulting in extraneous
    links with empty text in the docs. Remove it as the only thing it
    affects is linked explicitly in the one document that uses it.
    
    PR-URL: #34985
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3975dd3 View commit details
    Browse the repository at this point in the history
  50. build: close stalled issues and PRs with github action

    This introduces a GitHub Action workflow to close issues and PRs
    which has been labelled `stalled` 30 days ago (or more).
    
    `stale` labelling and unlabelling of issues and PRs are still done
    manually by collaborators.
    
    Refs nodejs/github-bot#261
    
    PR-URL: #34555
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    phillipj authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    60774c0 View commit details
    Browse the repository at this point in the history
  51. build: comment about auto close when stalled via with github action

    As part of automatically closing issues and PRs 30 days after they got
    labelled with `stalled`, these changes adds a GitHub Action workflow
    posting a comment information about what will happen in 30 days upon
    being labelled.
    
    PR-URL: #34555
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    phillipj authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    9107595 View commit details
    Browse the repository at this point in the history
  52. tools,doc: fix global table of content active element

    Assign active class to the correct HTML element when one nav-id is a
    subset of another one (E.G.: `nav-module` and `nav-modules`).
    
    Fixes: #34975
    
    PR-URL: #34976
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    aduh95 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    0ec3e61 View commit details
    Browse the repository at this point in the history
  53. doc: revise commit-queue.md

    Make minor fixes to the text.
    
    PR-URL: #35006
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    8cc7a73 View commit details
    Browse the repository at this point in the history
  54. tools,doc: allow page titles to contain inline code

    Previously the HTML title would be cut to the first text node only.
    
    PR-URL: #35003
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    aduh95 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    fed08a8 View commit details
    Browse the repository at this point in the history
  55. tools: update ESLint to 7.8.0

    Update ESLint to 7.8.0
    
    PR-URL: #35004
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    cjihrig authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    eeb8a4a View commit details
    Browse the repository at this point in the history
  56. tools: update ESLint to 7.8.1

    Update ESLint to 7.8.1
    
    PR-URL: #35004
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    cjihrig authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    0f61020 View commit details
    Browse the repository at this point in the history
  57. querystring: manage percent character at unescape

    Related: #33892
    Fixes: #35012
    
    PR-URL: #35013
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    watilde authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    6ccacdf View commit details
    Browse the repository at this point in the history
  58. tools: add banner to lint-md.js by rollup.config.js

    PR-URL: #34233
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    KuthorX authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    1dce35d View commit details
    Browse the repository at this point in the history
  59. src: disallow JS execution during exit()

    This is just an extra safeguard – no JS should run once we’ve
    decided that we are going to shutdown the process, but we’re opening
    a handle scope in order to access V8, so make sure that our operations
    do not lead to JS accidentally being run.
    
    PR-URL: #35020
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    00e020b View commit details
    Browse the repository at this point in the history
  60. src: add get/set pair for env context awareness

    PR-URL: #35024
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    codebytere authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    5eb1c9c View commit details
    Browse the repository at this point in the history
  61. doc: change color contrast for accessibility

    Change background color of Stability 1 banner. Previous color contrast
    of 3.61:1 fails WCAG AA. New color contrast of 4.50:1 passes.
    
    PR-URL: #35047
    Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    2529ba2 View commit details
    Browse the repository at this point in the history
  62. test: change var to let

    PR-URL: #34902
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Harshitha K P <harshitha014@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    PoojaDurgad authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    cd4b2aa View commit details
    Browse the repository at this point in the history
  63. test: use mustCall() in test-http-timeout

    PR-URL: #34996
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    PoojaDurgad authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    627e484 View commit details
    Browse the repository at this point in the history
  64. doc: fix malformed hashes in assert.md

    URL hashes cannot contain `#`. Use hashes for the locations that were
    intended.
    
    PR-URL: #35028
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    80fa1f5 View commit details
    Browse the repository at this point in the history
  65. doc: use consistent header typography

    Adding backticks to an entry that has them missing in the header, unlike
    the other entries.
    
    PR-URL: #35030
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d7989bd View commit details
    Browse the repository at this point in the history
  66. doc: fix certificate display in tls doc

    In one context, `<Buffer>` was being interpretted as an HTML tag and not
    displayed.
    
    PR-URL: #35032
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3c98411 View commit details
    Browse the repository at this point in the history
  67. doc: remove style for empty links

    PR-URL: #35034
    Refs: #34955
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    aduh95 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    1ce26fe View commit details
    Browse the repository at this point in the history
  68. doc: update syntax highlighting color for accessibility

    Previous contrast with background was 3.65, failing WCAG AA. This change
    brings contrast to 4.50, passing WCAG AA.
    
    PR-URL: #35063
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    08b5613 View commit details
    Browse the repository at this point in the history
  69. tools: fix doc build targets

    Adds doc output directory as order-only prerequisite for build target.
    
    PR-URL: #35060
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    aduh95 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    6d6c6fa View commit details
    Browse the repository at this point in the history
  70. doc: spruce up user journey to local docs browsing

    This patch improves the means by which the docs are viewed locally.
    
    * Remove extraneous code in the `docserve` Makefile target
    * Document the `docserve` task for all to know
    * Bring all code snippets in this section up to speed
    * Clarify the purpose of each documentation browsing method
    
    Fixes: #34977
    
    PR-URL: #34986
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Derek Lewis authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    fb1a133 View commit details
    Browse the repository at this point in the history
  71. tools: fix docopen target

    Adds to prerequisites the output file to open. Previously, this would
    open an out-of-date version of the file, or fail if it hasn't been built
    before.
    
    PR-URL: #35062
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    aduh95 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    a3c59d8 View commit details
    Browse the repository at this point in the history
  72. doc: add deprecated badge to legacy URL methods

    PR-URL: #34931
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    aduh95 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    7c947b2 View commit details
    Browse the repository at this point in the history
  73. bootstrap: correct --frozen-intrinsics override fix

    PR-URL: #35041
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    guybedford authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    7bc26c2 View commit details
    Browse the repository at this point in the history
  74. doc: change stablility-2 color for accessibility

    Current contrast ratio (2.51) does not pass WCAG AA. This PR increases
    the contrast to 4.50, which passes WCAG AA. The color, of course, is
    still green.
    
    PR-URL: #35061
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    ef8d373 View commit details
    Browse the repository at this point in the history
  75. doc: restore color for visited links

    A previous change altered the rendering of visited links. This restores
    it.
    
    PR-URL: #35108
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    65b7bf4 View commit details
    Browse the repository at this point in the history
  76. http: fix crash for sync write errors during header parsing

    Fix a crash that occurs when `parser.finish()` is called during
    `parser.execute()`. In this particular case, this happened because
    a 100 continue response is a place in which `.end()` can be called
    which can in turn lead to a write error, which is emitted
    synchronously, thus inside the outer `parser.execute()` call.
    
    Resolve that by delaying the `parser.finish()` call until after
    the `parser.execute()` call is done.
    
    This only affects v12.x, because on later versions, errors are not
    emitted synchronously.
    
    PR-URL: #34251
    Fixes: #15102
    Fixes: #34016
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    756ac65 View commit details
    Browse the repository at this point in the history
  77. test: add regression tests for HTTP parser crash

    Since the tests only crash on v12.x, this commit adds separate
    regression tests.
    
    PR-URL: #34251
    Refs: #15102
    Refs: #34016
    Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    867c451 View commit details
    Browse the repository at this point in the history
  78. http2: do not modify explicity set date headers

    Fixes: #30894
    Refs: #29829
    
    PR-URL: #33160
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    rexagod authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    4d0129a View commit details
    Browse the repository at this point in the history
  79. cli: add alias for report-directory to make it consistent

    Currently every other cli option uses "dir" to reference a directory
    so add an alias to allow for conistency.
    
    PR-URL: #33587
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    AshCripps authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    17a098b View commit details
    Browse the repository at this point in the history
  80. events: variable originalListener is useless

    PR-URL: #33596
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    fuxingZhang authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    5c3c8b3 View commit details
    Browse the repository at this point in the history
  81. doc: fix typo in cli.md for report-dir

    Add the missing backtick in `--report-dir`
    
    refs: #33587 (comment)
    
    PR-URL: #33725
    Refs: #33587
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    AshCripps authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    2302dff View commit details
    Browse the repository at this point in the history
  82. zlib: add maxOutputLength option

    Fixes: #27253
    
    PR-URL: #33516
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    rosaxxny authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    33b22d7 View commit details
    Browse the repository at this point in the history
  83. dgram: allow typed arrays in .send()

    PR-URL: #22413
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    SirR4T authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    be6aee9 View commit details
    Browse the repository at this point in the history
  84. http: expose host and protocol on ClientRequest

    Allow host and protocol to be inspected.
    
    PR-URL: #33803
    Fixes: #2461
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    wenningplus authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    388d125 View commit details
    Browse the repository at this point in the history
  85. http2: return this for Http2ServerRequest#setTimeout

    Fixes: #33993
    
    PR-URL: #33994
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    rexagod authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    7551a8b View commit details
    Browse the repository at this point in the history
  86. zlib: remove redundant variable in zlibBufferOnEnd

    PR-URL: #34072
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    puzpuzpuz authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    1b24d3a View commit details
    Browse the repository at this point in the history
  87. http: return this from IncomingMessage#destroy()

    This commit updates IncomingMessage#destroy() to return `this`
    for consistency with other readable streams.
    
    PR-URL: #32789
    Fixes: #32772
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    cjihrig authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    fb68487 View commit details
    Browse the repository at this point in the history
  88. src: add equality operators for BaseObjectPtr

    PR-URL: #33772
    Backport-PR-URL: #33965
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    19b55be View commit details
    Browse the repository at this point in the history
  89. tls: make 'createSecureContext' honor more options

    Added options: `ticketKeys` and `sessionTimeout`, that are honored by
    `createServer`, that calls `createSecureContext`.
    
    This also introduces a minor code simplification.
    
    PR-URL: #33974
    Fixes: #20908
    Reviewed-By: Alba Mendez <me@alba.sh>
    Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
    mkrawczuk authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    9b27933 View commit details
    Browse the repository at this point in the history
  90. src: allow setting a dir for all diagnostic output

    Add a flag that allows for the setting of a directory where all
    diagnostic output will be written to.
    e.g. --redirect-warnings
    
    Refs: #33010 (comment)
    
    PR-URL: #33584
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    AshCripps authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    403deb7 View commit details
    Browse the repository at this point in the history
  91. dgram: add IPv6 scope id suffix to received udp6 dgrams

    Add IPv6 link local scope ID suffix to the
    rinfo address in those received upd6 datagrams
    whose source address is a link local address.
    
    Add a new test case, test-dgram-udp6-link-local-address,
    to verify that IPv6 UDP datagrams received from a
    link-local source address do contain the scope ID
    suffix in the rinfo address field.
    
    When a packet is received from a link-local source
    address, if the address does not contain the scope
    ID suffix, it is impossible to reply back to the
    sender, as the kernel is not able to determine
    the right network interface to send the packet
    through and returns with an error.
    
    Ref: #1649
    PR-URL: #14500
    
    Refs: #1649
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Stewart X Addison <sxa@uk.ibm.com>
    pekkanikander authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    de174cd View commit details
    Browse the repository at this point in the history
  92. src: allow preventing SetPromiseRejectCallback

    PR-URL: #34387
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    codebytere authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    18e8687 View commit details
    Browse the repository at this point in the history
  93. n-api: support type-tagging objects

    `napi_instanceof()` is insufficient for reliably establishing the data
    type to which a pointer stored with `napi_wrap()` or
    `napi_create_external()` inside a JavaScript object points. Thus, we
    need a way to "mark" an object with a value that, when later retrieved,
    can unambiguously tell us whether it is safe to cast the pointer stored
    inside it to a certain structure.
    
    Such a check must survive loading/unloading/multiple instances of an
    addon, so we use UUIDs chosen *a priori*.
    
    Fixes: #28164
    Co-authored-by: Anna Henningsen <github@addaleax.net>
    PR-URL: #28237
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Gabriel Schulhof and addaleax committed Sep 22, 2020
    Copy the full SHA
    e7486d4 View commit details
    Browse the repository at this point in the history
  94. async_hooks: add AsyncResource.bind utility

    Creates an internal AsyncResource and binds a function to it,
    ensuring that the function is invoked within execution context
    in which bind was called.
    
    PR-URL: #34574
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    jasnell authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    45d2f4d View commit details
    Browse the repository at this point in the history
  95. async_hooks: improve property descriptors in als.bind

    The length property should be non enumerable to match behavior of
    normal functions.
    
    The asyncResource property is enumerable and therefore it should be
    also writable to avoid issues like there:
    #30932 (comment)
    
    Both properties should be configurable.
    
    Refs: #34574
    
    PR-URL: #34620
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Flarna authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    07968ac View commit details
    Browse the repository at this point in the history
  96. async_hooks: avoid unneeded AsyncResource creation

    Inspired by the callstack at #34556 (comment)
    
    If the wanted store is equal to the active store it's not needed to
    create an AsyncResource.
    
    Refs: #34556 (comment)
    
    PR-URL: #34616
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Flarna authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    0a44017 View commit details
    Browse the repository at this point in the history
  97. n-api,src: provide asynchronous cleanup hooks

    Sometimes addons need to perform cleanup actions, for example
    closing libuv handles or waiting for requests to finish, that
    cannot be performed synchronously.
    
    Add C++ API and N-API functions that allow providing such
    asynchronous cleanup hooks.
    
    Fixes: #34567
    
    PR-URL: #34572
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    2cf2316 View commit details
    Browse the repository at this point in the history
  98. async_hooks: avoid GC tracking of AsyncResource in ALS

    Manually destroy the AsyncResource created by AsyncLocalStore.run() to
    avoid unneeded GC tracking in case a destroy hooks is present.
    
    PR-URL: #34653
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Flarna authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    148383f View commit details
    Browse the repository at this point in the history
  99. n-api: fix use-after-free with napi_remove_async_cleanup_hook

    Fixes: #34657
    Refs: #34572
    
    PR-URL: #34662
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    c440748 View commit details
    Browse the repository at this point in the history
  100. doc: use _Class Method_ in async_hooks.md

    We use _Class Method_ rather than _static_ in documentation headers in
    buffer.md and crypto.md.  We use _static_ in one place in
    async_hooks.md. Change to _Class Method_ for consistency.
    
    PR-URL: #34626
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    5846bef View commit details
    Browse the repository at this point in the history
  101. doc: tidy some addons.md text

    PR-URL: #34654
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d05f615 View commit details
    Browse the repository at this point in the history
  102. doc: use _Static method_ instead of _Class Method_

    Our docs describe static methods as Class Methods which seems
    idiosyncratic for JavaScript. Align with MDN which calls them static
    methods.
    
    Refs: https://developer.mozilla.org/en-US/docs/MDN/Contribute/Structures/API_references/What_does_an_API_reference_need
    
    JSON format for our docs will still use the key name `classMethods` for
    this. I would like to change it to `staticMethods` but I don't know if
    that will break things for consumers. So, leaving it alone. It's a
    machine-consumable label more than a human-readable so I can live with
    that.
    
    PR-URL: #34659
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    14d4bfa View commit details
    Browse the repository at this point in the history
  103. timers: allow timers to be used as primitives

    This allows timers to be matched to numeric Ids and therefore used
    as keys of an Object, passed and stored without storing the Timer instance.
    
    clearTimeout/clearInterval is modified to support numeric/string Ids.
    
    Co-authored-by: Bradley Farias <bradley.meck@gmail.com>
    Co-authored-by: Anatoli Papirovski <apapirovski@mac.com>
    
    Refs: #21152
    
    Backport-PR-URL: #34482
    PR-URL: #34017
    Backport-PR-URL: #34482
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Signed-off-by: Denys Otrishko <shishugi@gmail.com>
    lundibundi authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    987e0cb View commit details
    Browse the repository at this point in the history
  104. buffer: alias UInt ➡️ Uint in buffer methods

    It’s *so* hard to remember that it’s `UintXArray` but not
    `(write|read)UintX`. Let’s fix that by just providing aliases. 😊
    
    PR-URL: #34729
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    9d07217 View commit details
    Browse the repository at this point in the history
  105. build: add build flag for OSS-Fuzz integration

    Refs: google/oss-fuzz#3860
    Fixes: #33724
    
    PR-URL: #34761
    Fixes: #33724
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    DavidKorczynski authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    06c5120 View commit details
    Browse the repository at this point in the history
  106. http2: fix Http2Response.sendDate

    The `sendDate` flag was not being respected
    by the current implementation and the `Date`
    header was being sent regardless of the config.
    This commit fixes that and adds tests for this case.
    
    Fixes: #34841
    
    PR-URL: #34850
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    joaolucasl authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    4079cdd View commit details
    Browse the repository at this point in the history
  107. meta: remove non-existent quic from CODEOWNERS

    quic support doesn't exist prior to Node.js 15 and is unlikely to
    due to requiring patches on top of openssl. Remove the entries
    from CODEOWNERS to fix the CODEOWNERS linting, which currently fails
    as it refers to non-existent paths.
    
    PR-URL: #34947
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    richardlau authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    2b3d4bd View commit details
    Browse the repository at this point in the history
  108. doc: improve link-local text in dgram.md

    Minor improvements.
    
    PR-URL: #34868
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    b117467 View commit details
    Browse the repository at this point in the history
  109. perf_hooks: add idleTime and event loop util

    Use uv_metrics_idle_time() to return a high resolution millisecond timer
    of the amount of time the event loop has been idle since it was
    initialized.
    
    Include performance.eventLoopUtilization() API to handle the math of
    calculating the idle and active times. This has been added to prevent
    accidental miscalculations of the event loop utilization. Such as not
    taking into consideration offsetting nodeTiming.loopStart or timing
    differences when being called from a Worker thread.
    
    PR-URL: #34938
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Adrian Estrada <edsadr@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    trevnorris authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    2c409a2 View commit details
    Browse the repository at this point in the history
  110. crypto: add randomInt function

    PR-URL: #34600
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    olalonde authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    53c9975 View commit details
    Browse the repository at this point in the history
  111. crypto: align parameter names with documentation

    Change _cb_ to _callback_ to align with documentation. This is so that
    stack traces and error messages align with the documentation. If the
    documentation says "callback", then the stack traces and error messages
    should indicate that "callback" needs to be function or whatever, rather
    than "cb".
    
    PR-URL: #35054
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    921129c View commit details
    Browse the repository at this point in the history
  112. doc: format exponents better

    The `2^n` notation is common in mathematics, but even then it often
    requires parentheses or braces. In JavaScript and C++, the `^` operator
    stands for bitwise xor, and should be avoided in the docs. In code tags,
    the JavaScript operator `**` can be used. Otherwise, the `sup` tag can
    be used for formatting.
    
    PR-URL: #35050
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    tniessen authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    8ed4ab5 View commit details
    Browse the repository at this point in the history
  113. doc: add link to safe integer definition

    Refs: #34600
    Co-authored-by: Rich Trott <rtrott@gmail.com>
    
    PR-URL: #35049
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    tniessen authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    bf39354 View commit details
    Browse the repository at this point in the history
  114. crypto: fix randomInt range check

    Refs: #34600
    
    PR-URL: #35052
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    tniessen authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    5ef9ee4 View commit details
    Browse the repository at this point in the history
  115. crypto: improve randomInt out-of-range error message

    Previously, the crypto.randomInt() message when "max" was less than or
    equal to "min" made it sound like the lower bound for "max" was
    hard-coded. Make it clear that it is instead dynamic based on the value
    of "min".
    
    For crypto.randomInt(10,0):
    
    Before:
    RangeError [ERR_OUT_OF_RANGE]: The value of "max" is out of range. It
    must be > 10. Received 0
    
    After:
    
    RangeError [ERR_OUT_OF_RANGE]: The value of "max" is out of range. It
    must be greater than the value of "min" (10). Received 0
    
    PR-URL: #35088
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    bf5a85b View commit details
    Browse the repository at this point in the history
  116. crypto: improve invalid arg type message for randomInt()

    Use "must be a safe integer" rather than "must be safe integer". I
    believe the former is more easily understood/clear.
    
    PR-URL: #35089
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    2b7273b View commit details
    Browse the repository at this point in the history
  117. test: remove setMaxListeners in test-crypto-random

    This appears to be a remnant from
    413d38c.
    
    PR-URL: #35079
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    tniessen authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d60c487 View commit details
    Browse the repository at this point in the history
  118. doc: add note about path.basename on Windows

    PR-URL: #35065
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    tniessen authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3954b8f View commit details
    Browse the repository at this point in the history
  119. test: revise test-policy-integrity

    * eliminate unneeded Set deletion/cleanup
    * use number of CPUs as limit for processes spawned rather than
      hard-coding the limit
    
    PR-URL: #35101
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    43c0174 View commit details
    Browse the repository at this point in the history
  120. doc: fix broken links in deprecations.md

    PR-URL: #35109
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    55b8caa View commit details
    Browse the repository at this point in the history
  121. doc: fix broken link in fs.md

    PR-URL: #35111
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    ec5a0ad View commit details
    Browse the repository at this point in the history
  122. doc: fix broken link in http2.md

    PR-URL: #35112
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    1e39820 View commit details
    Browse the repository at this point in the history
  123. doc: fix broken link in perf_hooks.md

    PR-URL: #35113
    Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    255d47a View commit details
    Browse the repository at this point in the history
  124. doc,test: specify and test CLI option precedence rules

    Refs: #35098 (comment)
    
    PR-URL: #35106
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    b47172d View commit details
    Browse the repository at this point in the history
  125. doc: update security process

    - update security process to reflect current way
      to request tweet/retweet of security release
    
    Signed-off-by: Michael Dawson <mdawson@devrus.com>
    
    PR-URL: #35107
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
    Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    mhdawson authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    f0b9866 View commit details
    Browse the repository at this point in the history
  126. doc: add missing changes entry for breakEvalOnSigint REPL option

    PR-URL: #35143
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax committed Sep 22, 2020
    Copy the full SHA
    0f9908b View commit details
    Browse the repository at this point in the history
  127. doc: update my email address

    Update email address to reflect move to
    Red Hat
    
    Signed-off-by: Michael Dawson <mdawson@devrus.com>
    
    PR-URL: #35121
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    mhdawson authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    f3f72fd View commit details
    Browse the repository at this point in the history
  128. meta: update my collab entry

    PR-URL: #35160
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    devsnek authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    c7eb462 View commit details
    Browse the repository at this point in the history
  129. doc: update contact info for Ash Cripps

    PR-URL: #35139
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Ash Cripps authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    745987e View commit details
    Browse the repository at this point in the history
  130. doc: fix left nav color contrast

    I believe this is the last change to make in the docs for color contrast
    accessibility per WCAG AA.
    
    Currently, the current item in the nav is #43853d on a #333333
    background for a color contrast of 2.8:1, failing WCAG AA. This swaps in
    removes a confusing bottom border on the item, replacing it with
    bolding to preserve the item's highlighting.
    
    PR-URL: #35141
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    23dcfe5 View commit details
    Browse the repository at this point in the history
  131. meta: add links to OpenJSF Slack

    The OpenJS Foundation has an official Slack, and the Node.js project has
    many channels there for working groups as well as for general
    discussions. Add links to the workspace and channels for folks who want
    to join.
    
    PR-URL: #35128
    Reviewed-By: Michael Dawson <midawson@redhat.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    mmarchini authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    09100ce View commit details
    Browse the repository at this point in the history
  132. doc: fix minor punctuation issue in path.md

    PR-URL: #35127
    Reviewed-By: Michael Dawson <midawson@redhat.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    amilajack authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    62436e6 View commit details
    Browse the repository at this point in the history
  133. build: filter issues & PRs to auto close by matching on stalled label

    The auto closing of issues & PRs labelled with `stalled` doesn't seem
    to be working as expected. The GitHub Action UI gives the impression
    the stale action tries to execute more operations than it is allowed to
    do.
    
    Previously there was no filtering on issues & PRs. So when it tries to
    fetch all the currently open issues, checking whether or not they should
    be get closed, it would have to perform quite a few requests pagination
    requests to get the information needed.
    
    Knowing that we only care about issues & PRs already labelled `stalled`,
    we can provide the [`only-labels`](https://github.com/actions/stale/blob/13b324e4b28a2708236aadb11361fa65af60d201/action.yml#L38)
    option to make sure we only fetch relevant issues.
    
    Refs #35144
    
    PR-URL: #35159
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    phillipj authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    ff0b100 View commit details
    Browse the repository at this point in the history
  134. doc: perform cleanup on security-release-process.md

    These are exceedingly minor, but I'm doing them anyway for consistency
    across our docs (whether internal process docs or user-facing docs).
    
    * ASCII order for references
    * Minor punctuation adjustments
    * Use product capitalization for Twitter and Slack
    * Sentence-case for header
    
    PR-URL: #35154
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    799fad7 View commit details
    Browse the repository at this point in the history
  135. doc: add missing copyFile change history

    PR-URL: #35056
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    codebytere authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    52eba5b View commit details
    Browse the repository at this point in the history
  136. doc: update process.release

    `process.release` documentation is out of date. This commit makes it up
    to date.
    
    PR-URL: #35167
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    schamberg97 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d94dac4 View commit details
    Browse the repository at this point in the history
  137. tools: update ESLint to 7.9.0

    Update ESLint to 7.9.0
    
    PR-URL: #35170
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    cjihrig authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    55ed2d2 View commit details
    Browse the repository at this point in the history
  138. doc: remove problematic auto-linking of curl man pages

    The only instance of curl man page linking is in repl.md and it is
    explicit. The magic autolinking in html.js creates a superfluous empty
    link. Remove it.
    
    Before, two adjacent links generated, with the first one having no text:
    
    ```html
    <a href="https://curl.haxx.se/docs/manpage.html"></a>
    <a href="https://curl.haxx.se/docs/manpage.html"><code>curl(1)</code></a>
    ```
    
    After, just one link:
    
    ```html
    <a href="https://curl.haxx.se/docs/manpage.html"><code>curl(1)</code></a>
    ```
    
    PR-URL: #35174
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    4af4a80 View commit details
    Browse the repository at this point in the history
  139. test: improve pummel/test-timers.js

    * use Date.now() instead of new Date() because only the timestamp is
      ever used, so we don't need the full Date object
    * use separate start times recorded for the two different test cases
    * improve assertion messages
    
    PR-URL: #35175
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    942551e View commit details
    Browse the repository at this point in the history
  140. doc: fix broken link in crypto.md

    URL that lacks a scheme gets treated as a relative URL. Add missing
    `https://`.
    
    PR-URL: #35181
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Harshitha K P <harshitha014@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    2b86032 View commit details
    Browse the repository at this point in the history
  141. doc: fix deprecation documentation inconsistencies

    PR-URL: #35082
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    aduh95 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3094ace View commit details
    Browse the repository at this point in the history
  142. doc: fix missing word in dgram.md

    The word "cannot" is missing from this sentence
    
    PR-URL: #35231
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Nibbler999 authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    c606ed7 View commit details
    Browse the repository at this point in the history
  143. doc: replace "you should do X" with "do X"

    PR-URL: #35194
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    3ffaf66 View commit details
    Browse the repository at this point in the history
  144. doc: remove "end user"

    We use "end user" in ambiguous ways. Sometimes we mean the developer,
    and sometimes we mean the application user. Use "developer" where
    developer is meant.
    
    Refs: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/u/user-end-user
    
    PR-URL: #35200
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    ee1bcdb View commit details
    Browse the repository at this point in the history
  145. doc: add technical values document

    As part of the [next-10](https://github.com/nodejs/next-10) we found
    we needed to capture the project's technical values/priorities as
    a starting point before discussing key technologies/areas for the
    next 10 years of Node.js
    
    This is a first cut that the team put together. The discussion
    took place in a few meetings as well as this
    [PR](nodejs/next-10#11). We believe the doc
    should live in the core node repository as it is intended to
    reflect the agreement of the collaborator base.
    
    I think this is a good starting point but we also
    acknowledge that only a small subset of the Node.js collaborators
    have participated/commented so far. This PR should be a good
    way to get additional review/input from the larger set
    of Node.js collaborators.
    
    Signed-off-by: Michael Dawson <mdawson@devrus.com>
    
    PR-URL: #35145
    Reviewed-By: Christopher Hiller <boneskull@boneskull.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: Ruy Adorno <ruyadorno@github.com>
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Ash Cripps <acripps@redhat.com>
    Reviewed-By: Ben Coe <bencoe@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: Pranshu Srivastava <rexagod@gmail.com>
    mhdawson authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    d81db1d View commit details
    Browse the repository at this point in the history
  146. build: increase API requests for stale action

    The second attempt at getting the auto closing of issues & PRs to work
    as expected without hitting a maximum operations allowed error we've
    been seeing.
    
    Recently discovered that the mentioned error is actually self imposed
    by the stale action itself. It keeps track of how many outgoing GitHub
    API requests it performs, and if that count exceeds the configured
    `operations-per-run` option, it exits to avoid hitting API rate limits.
    
    Default `operations-per-run` value is set to `30`.
    
    That's a very low limit and we're not at all concerned hitting that
    rate limit as of now, so we're bumping `operations-per-run` to `500`
    with these changes.
    
    Refs #35144
    
    PR-URL: #35235
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    phillipj authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    8f2d2aa View commit details
    Browse the repository at this point in the history
  147. doc: fix small grammatical issues in timers.md

    PR-URL: #35203
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    wjabbour authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    f050ecc View commit details
    Browse the repository at this point in the history
  148. doc: add issue labels sections to release guide

    PR-URL: #35224
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    targos authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    e21d1cd View commit details
    Browse the repository at this point in the history
  149. doc: update attributes used by n-api samples (#35220)

    Update n-api samples to create object properties matching to the JS defaults.
    
    Using non configurable, non writable properties has its usecases but
    the JS default for class methods is `configurable` and `writable`.
    Js properties set by JS code `obj.prop = val` are `configurable`, `writable`
    and `enumerable`.
    Flarna authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    89636e3 View commit details
    Browse the repository at this point in the history
  150. doc: clarify use of NAPI_EXPERIMENTAL

    We've had a few questions about APIs not being available which
    were related to not having specified `NAPI_EXPERIMENTAL`.
    
    Add some additional documentation to explain this common
    issue:
    
    Refs: nodejs/node-addon-api#810
    
    Signed-off-by: Michael Dawson <mdawson@devrus.com>
    
    PR-URL: #35195
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    mhdawson authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    6669eff View commit details
    Browse the repository at this point in the history
  151. doc: sort repl references in ASCII order

    PR-URL: #35230
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Masashi Hirano <shisama07@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    e026ce9 View commit details
    Browse the repository at this point in the history
  152. doc: remove excessive formatting in dgram.md

    PR-URL: #35234
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    1018e52 View commit details
    Browse the repository at this point in the history
  153. test: improve assertions in pummel/test-timers

    * Timers should not fire early. Check for that.
    * Allow the wiggle-room to increase on subsequent iterations of
      intervals.
    
    PR-URL: #35216
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    5a6bdd0 View commit details
    Browse the repository at this point in the history
  154. doc: revise stability section of values doc

    Make the section a bit shorter and comply with minor elements of
    Microsoft Style Guide.
    
    PR-URL: #35242
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    746517a View commit details
    Browse the repository at this point in the history
  155. doc: standardize on _backward_

    We use _backward incompatible_ and _backwards incompatible_ with no
    discernible pattern in the docs. Follow Chicago Manual of Style and also
    our standardization on US English and favor _backward_.
    
    PR-URL: #35243
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Michael Dawson <midawson@redhat.com>
    Trott authored and addaleax committed Sep 22, 2020
    Copy the full SHA
    55dc7aa View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. src: use enum for refed flag on native immediates

    Refs: #33320 (comment)
    
    PR-URL: #33444
    Backport-PR-URL: #34263
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    1d3638b View commit details
    Browse the repository at this point in the history
  2. src: make FreeEnvironment() perform all necessary cleanup

    Make the calls `stop_sub_worker_contexts()`, `RunCleanup()`
    part of the public API for easier embedding.
    
    (Note that calling `RunAtExit()` is idempotent because the
    at-exit callback queue is cleared after each call.)
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    7d92ac7 View commit details
    Browse the repository at this point in the history
  3. src: fix memory leak in CreateEnvironment when bootstrap fails

    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    9a5cec3 View commit details
    Browse the repository at this point in the history
  4. src: move worker_context from Environment to IsolateData

    Workers are fully in control of their Isolates, and this helps
    avoid a problem with later changes to `CreateEnvironment()`
    because now we can run the boostrapping code inside the latter.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    b7350e8 View commit details
    Browse the repository at this point in the history
  5. src: associate is_main_thread() with worker_context()

    In our codebase, the assumption generally is that `!is_main_thread()`
    means that the current Environment belongs to a Node.js Worker thread.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    e809a5c View commit details
    Browse the repository at this point in the history
  6. src: align worker and main thread code with embedder API

    This addresses some long-standing TODOs by Joyee and me about
    making the embedder API more powerful and us less reliant on
    internal APIs for creating the main thread and Workers.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    808dedc View commit details
    Browse the repository at this point in the history
  7. src: provide a variant of LoadEnvironment taking a callback

    This allows embedders to flexibly control how they start JS code
    rather than using `third_party_main`.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    c5aa3f4 View commit details
    Browse the repository at this point in the history
  8. src: add LoadEnvironment() variant taking a string

    Allow passing a string as the main module rather than using
    the callback variant.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    4a6748d View commit details
    Browse the repository at this point in the history
  9. test: re-enable cctest that was commented out

    Refs: #31910
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    f325c95 View commit details
    Browse the repository at this point in the history
  10. src: add unique_ptr equivalent of CreatePlatform

    This makes this bit of the embedder situation a bit easier to use.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    8005e63 View commit details
    Browse the repository at this point in the history
  11. src: make InitializeNodeWithArgs() official public API

    This is a decent replacement for the to-be-deprecated Init() API.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    a770a35 View commit details
    Browse the repository at this point in the history
  12. src: add ability to look up platform based on Environment*

    This should eventually remove any necessity to use the global-state
    `GetMainThreadMultiIsolatePlatform()`.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    9b84ee6 View commit details
    Browse the repository at this point in the history
  13. src: allow non-Node.js TracingControllers

    We do not need a Node.js-provided `v8::TracingController`, generally.
    Loosen that restriction in order to make it easier for embedders
    to provide their own subclass of `v8::TracingController`,
    or none at all.
    
    Refs: electron/electron@9c36576
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    2f8f767 View commit details
    Browse the repository at this point in the history
  14. src: fix what a dispose without checking

    If created platform with CreatePlatform, the crash occurs because
    it does not check if it was initialized to v8_platform
    when DisposePlatform was called.
    
    Backport-PR-URL: #35241
    Refs: #31260
    Co-authored-by: Anna Henningsen <anna@addaleax.net>
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Jichan and addaleax committed Sep 23, 2020
    Copy the full SHA
    a28c990 View commit details
    Browse the repository at this point in the history
  15. src: shutdown platform from FreePlatform()

    There is currently no way to properly do this.
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    b8c9048 View commit details
    Browse the repository at this point in the history
  16. src,test: add full-featured embedder API test

    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    4af336d View commit details
    Browse the repository at this point in the history
  17. doc: add basic embedding example documentation

    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    1a70820 View commit details
    Browse the repository at this point in the history
  18. test: add extended embedder cctest

    Add an embedder cctest that also covers a multi-Environment situation,
    including worker_threads-style inspector support.
    
    Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
    
    Backport-PR-URL: #35241
    PR-URL: #30467
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    cb635c2 View commit details
    Browse the repository at this point in the history
  19. test: wait for message from parent in embedding cctest

    I’ve seen this fail a few times in CI, presumably because the
    inspector commmand did not reach the child thread in time.
    Explicitly waiting seems to solve that.
    
    Refs: #30467
    
    Backport-PR-URL: #35241
    PR-URL: #32563
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    61eec0c View commit details
    Browse the repository at this point in the history
  20. embedding: provide hook for custom process.exit() behaviour

    Embedders may not want to terminate the process when `process.exit()`
    is called. This provides a hook for more flexible handling of that
    situation.
    
    Refs: #30467 (comment)
    
    Backport-PR-URL: #35241
    PR-URL: #32531
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    ff0a036 View commit details
    Browse the repository at this point in the history
  21. embedding: make Stop() stop Workers

    This makes sense given that terminating execution of the parent thread
    this way likely also is supposed to stop all running Worker threads
    spawned by it.
    
    Backport-PR-URL: #35241
    PR-URL: #32531
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    7a8f59f View commit details
    Browse the repository at this point in the history
  22. test: use InitializeNodeWithArgs in cctest

    Refs: d7f1107
    Fixes: #30257
    
    Backport-PR-URL: #35241
    PR-URL: #32406
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    bdf6d41 View commit details
    Browse the repository at this point in the history
  23. test: use common.buildType in embedding test

    This un-breaks testing in the case of `./configure --debug-node`.
    
    Backport-PR-URL: #35241
    PR-URL: #32422
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    bd71cdf View commit details
    Browse the repository at this point in the history
  24. src: initialize inspector before RunBootstrapping()

    This is necessary for `--inspect-brk-node` to work, and for the
    inspector to be aware of scripts created before bootstrapping.
    
    Fixes: #32648
    Refs: #30467 (comment)
    
    Backport-PR-URL: #35241
    PR-URL: #32672
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
    Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    1066341 View commit details
    Browse the repository at this point in the history
  25. worker: unify custom error creation

    Mostly, this introduces a pattern that makes sure that if a custom
    error is reported, `stopped_` will be set to `true` correctly in
    every cast, which was previously missing for the
    `NewContext().IsEmpty()` case (which led to a hard crash from the
    `Worker` destructor).
    
    This also leaves TODO comments for a few cases in which
    `ERR_WORKER_OUT_OF_MEMORY` was not used in accordance with the
    documentation for that error code (or according to its intention).
    Fixing that is semver-major.
    
    Backport-PR-URL: #35241
    PR-URL: #33084
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    18ecaeb View commit details
    Browse the repository at this point in the history
  26. src: make Environment::interrupt_data_ atomic

    Otherwise this potentially leads to race conditions when used in a
    multi-threaded environment (i.e. when used for its very purpose).
    
    Backport-PR-URL: #35241
    PR-URL: #32523
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    4513b6a View commit details
    Browse the repository at this point in the history
  27. src: fix cleanup hook removal for InspectorTimer

    Fix this to account for the fact that `Stop()` may already have been
    called from a cleanup hook when the `inspector::Agent` is deleted
    along with the `Environment`, at which point cleanup hooks are no
    longer available.
    
    Backport-PR-URL: #35241
    PR-URL: #32523
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    4704e58 View commit details
    Browse the repository at this point in the history
  28. src: use env->RequestInterrupt() for inspector io thread start

    This cleans up `Agent::RequestIoThreadStart()` significantly.
    
    Backport-PR-URL: #35241
    PR-URL: #32523
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    2e4536e View commit details
    Browse the repository at this point in the history
  29. src: use env->RequestInterrupt() for inspector MainThreadInterface

    This simplifies the code significantly, and removes the dependency of
    the inspector code on the availability of a `MultiIsolatePlatform`
    (by removing the dependency on a platform altogether).
    
    It also fixes a memory leak that occurs when `RequestInterrupt()`
    is used, but the interrupt handler is never called before the Isolate
    is destroyed.
    
    One downside is that this leads to a slight change in timing, because
    inspector messages are not dispatched in a re-entrant way. This means
    having to harden one test to account for that possibility by making
    sure that the stack is always clear through a `setImmediate()`.
    This does not affect the assertion made by the test, which is that
    messages will not be delivered synchronously while other code is
    executing.
    
    #32415
    
    Backport-PR-URL: #35241
    PR-URL: #32523
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    29620c4 View commit details
    Browse the repository at this point in the history
  30. src: flush V8 interrupts from Environment dtor

    This avoids an edge-case memory leak.
    
    Refs: #32523 (comment)
    
    Backport-PR-URL: #35241
    PR-URL: #32523
    Reviewed-By: Matheus Marchini <mat@mmarchini.me>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    1474405 View commit details
    Browse the repository at this point in the history
  31. src: add callback scope for native immediates

    This ensures that microtasks scheduled by native immediates are run
    after the tasks are done. In particular, this affects the inspector
    integration since 6f9f546.
    
    Fixes: #33002
    Refs: #32523
    
    Backport-PR-URL: #35241
    PR-URL: #34366
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    7e2cd72 View commit details
    Browse the repository at this point in the history
  32. test,doc: add missing uv_setup_args() calls

    libuv 1.39.0 will begin requiring uv_setup_args() to be called
    before attempting to access the process title. This commit adds
    uv_setup_args() calls that were missing in order for the test
    suite to pass (and updates the documentation).
    
    Backport-PR-URL: #35241
    PR-URL: #34751
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    cjihrig authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    26ede7f View commit details
    Browse the repository at this point in the history
  33. deps: V8: cherry-pick 71736859756b2bd0444bdb0a87a

    Original commit message:
    
        [heap] Add large_object_threshold to AllocateRaw
    
        This commit adds a check in Heap::AllocateRaw when setting the
        large_object variable, when the AllocationType is of type kCode, to
        take into account the size of the CodeSpace's area size.
    
        The motivation for this change is that without this check it is
        possible that size_in_bytes is less than 128, and hence not considered
        a large object, but it might be larger than the available space
        in code_space->AreaSize(), which will cause the object to be created
        in the CodeLargeObjectSpace. This will later cause a segmentation fault
        when calling the following chain of functions:
    
           if (!large_object) {
              MemoryChunk::FromHeapObject(heap_object)
                  ->GetCodeObjectRegistry()
                  ->RegisterNewlyAllocatedCodeObject(heap_object.address());
           }
    
        We (Red Hat) ran into this issue when running Node.js v12.16.1 in
        combination with yarn on aarch64 (this was the only architecture that
        this happed on).
    
        Bug: v8:10808
        Change-Id: I0c396b0eb64bc4cc91d9a3be521254f3130eac7b
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2390665
        Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
        Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#69876}
    
    Refs: v8/v8@7173685
    PR-URL: #35205
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    danbev authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    57564eb View commit details
    Browse the repository at this point in the history
  34. deps: V8: backport 3f071e3e7e15

    Original commit message:
    
        PPC: Optimize clearing higher bits of mulhw/mulhwu
    
        Change-Id: Ie3e14a6ef4531349e81a8ae741bc7470c7e547ca
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2349468
        Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
        Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
        Cr-Commit-Position: refs/heads/master@{#69343}
    
    Refs: v8/v8@3f071e3
    
    Backport-PR-URL: #35305
    PR-URL: #35305
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Ash Cripps <acripps@redhat.com>
    miladfarca authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    e9e3390 View commit details
    Browse the repository at this point in the history
  35. Forces Powershell to use tls1.2

    Powershell defaults to tls 1.0 - This forces powershell to use tls 1.2
    Tls 1.2 is supported in all current microsoft operating systems and
    needed to download chocolatey.
    
    Fixes: #33140
    PR-URL: #33609
    Backport-PR-URL: #34462
    Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    bzoz authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    27ceec0 View commit details
    Browse the repository at this point in the history
  36. doc: mark assert.CallTracker experimental

    Some details might still change and it would be good to get feedback
    from users before we mark this as stable.
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    
    PR-URL: #33124
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    BridgeAR authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    4277d95 View commit details
    Browse the repository at this point in the history
  37. meta: update module pages in CODEOWNERS

    PR-URL: #34932
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    aduh95 authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    d1be44c View commit details
    Browse the repository at this point in the history
  38. test: verify threadId in reports

    PR-URL: #31556
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Dylan Coakley authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    b0c1aca View commit details
    Browse the repository at this point in the history
  39. worker: add stack size resource limit option

    Add `stackSizeMb` to the `resourceLimit` option group.
    
    Refs: #31593 (comment)
    
    PR-URL: #33085
    Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    9173b09 View commit details
    Browse the repository at this point in the history
  40. test: add non-ASCII character embedding test

    Add a test that verifies that non-ASCII characters may be used
    in the source code provided to `LoadEnvironment()`.
    
    PR-URL: #33972
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    4cd7f5f View commit details
    Browse the repository at this point in the history
  41. src: allow embedders to disable esm loader

    PR-URL: #34060
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    codebytere authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    5e28660 View commit details
    Browse the repository at this point in the history
  42. lib: always initialize esm loader callbackMap

    PR-URL: #34127
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Gus Caplan <me@gus.host>
    codebytere authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    efd46e3 View commit details
    Browse the repository at this point in the history
  43. worker: fix --abort-on-uncaught-exception handling

    The `set_abort_on_uncaught_exception(false)` line was supposed to
    prevent aborting when running Workers in
    `--abort-on-uncaught-exception` mode, but it was incorrectly set
    and not checked properly in the should-abort callback.
    
    PR-URL: #34724
    Backport-PR-URL: #34815
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    5e9f0cf View commit details
    Browse the repository at this point in the history
  44. src: shutdown libuv before exit()

    This ensures that no operations will be running on the libuv
    threadpool, which is important because they may run into race
    conditions with the global destructors being triggered from
    `exit()`, such as in the added test example here.
    
    PR-URL: #35021
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    addaleax committed Sep 23, 2020
    Copy the full SHA
    b7e4d5f View commit details
    Browse the repository at this point in the history
  45. deps: V8: cherry-pick eec10a2fd8fa

    Original commit message:
    
        [promisehook] Add before/after hooks to thenable tasks
    
        This will allow Node.js to properly track async context in thenables.
    
        Change-Id: If441423789a78307a57ad7e645daabf551cddb57
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2215624
        Reviewed-by: Camillo Bruni <cbruni@chromium.org>
        Reviewed-by: Sathya Gunasekaran  <gsathya@chromium.org>
        Commit-Queue: Gus Caplan <me@gus.host>
        Cr-Commit-Position: refs/heads/master@{#68207}
    
    Refs: v8/v8@eec10a2
    Backport-PR-URL: #34776
    PR-URL: #33778
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Qard authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    5db8b35 View commit details
    Browse the repository at this point in the history
  46. test: AsyncLocalStorage works with thenables

    This adds a test to verify that AsyncLocalStorage works with thenables.
    
    Backport-PR-URL: #34776
    PR-URL: #34008
    Refs: #33778
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Flarna authored and addaleax committed Sep 23, 2020
    Copy the full SHA
    232f6e1 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2020

  1. fs: implement lutimes

    PR-URL: #33399
    Backport-PR-URL: #35320
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
    arcanis authored and addaleax committed Sep 25, 2020
    Copy the full SHA
    a19933f View commit details
    Browse the repository at this point in the history
  2. src: add public APIs to manage v8::TracingController

    We added a hack for this a while ago for Electron, so let’s remove
    that hack and make this an official API.
    
    Refs: #28724
    Refs: #33800
    
    PR-URL: #33850
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    addaleax committed Sep 25, 2020
    Copy the full SHA
    0affe86 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2020

  1. test: add common/udppair utility

    Extracted from the QUIC PR. This adds a utility used to
    deterministically test UDP traffic. It is currently only
    used by the experimental QUIC implementation. Separated
    out on request to make review easier.
    
    PR-URL: #33380
    Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
    jasnell authored and addaleax committed Sep 26, 2020
    Copy the full SHA
    8545fb2 View commit details
    Browse the repository at this point in the history
  2. n-api: re-implement async env cleanup hooks

    * Avoid passing core `void*` and function pointers into add-on.
    * Document `napi_async_cleanup_hook_handle` type.
    * Render receipt of the handle mandatory from the point where the
      hook gets called. Removal of the handle remains mandatory.
    
    Fixes: #34715
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Co-authored-by: Anna Henningsen <github@addaleax.net>
    PR-URL: #34819
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Zeyu Yang <himself65@outlook.com>
    Gabriel Schulhof and addaleax committed Sep 26, 2020
    Copy the full SHA
    a5aa3dd View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2020

  1. src: add option to track unmanaged file descriptors

    Add the ability to track “raw” file descriptors, i.e. integers returned
    by `fs.open()`, and close them on `Environment` shutdown, to match the
    behavior for all other resource types (which are also closed on
    shutdown).
    
    PR-URL: #34303
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 27, 2020
    Copy the full SHA
    3e21dd9 View commit details
    Browse the repository at this point in the history
  2. worker: add option to track unmanaged file descriptors

    Add a public option for Workers which adds tracking for raw
    file descriptors, as currently, those resources are not cleaned
    up, unlike e.g. `FileHandle`s.
    
    PR-URL: #34303
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 27, 2020
    Copy the full SHA
    b4819db View commit details
    Browse the repository at this point in the history
  3. src: introduce BaseObject base FunctionTemplate

    PR-URL: #33772
    Backport-PR-URL: #33965
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 27, 2020
    Copy the full SHA
    667d520 View commit details
    Browse the repository at this point in the history
  4. worker: allow transferring/cloning generic BaseObjects

    Extend support for transferring objects à la `MessagePort` to other
    types of `BaseObject` subclasses, as well as implement cloning
    support for cases in which destructive transferring is not needed
    or optional.
    
    PR-URL: #33772
    Backport-PR-URL: #33965
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 27, 2020
    Copy the full SHA
    8e1698a View commit details
    Browse the repository at this point in the history
  5. worker: allow passing JS wrapper objects via postMessage

    Enable JS wrapper objects to be used as transferable or cloneable
    objects in `postMessage()` calls, by having them extend a C++-backed
    class.
    
    This requires a few internal changes:
    - This commit adds the possibility for transferred objects to
      read/write JS values at the end of the serialization/deserialization
      phases.
    - This commit adds the possibility for transferred objects to list
      sub-transferables, e.g. typically the public JS wrapper class
      would list its C++ handle in there.
    - This commit adds usage of `BaseObject` in a few more places, because
      now during deserialization weakly held objects can also be involved,
      in addition to `MessagePort`s.
    
    PR-URL: #33772
    Backport-PR-URL: #33965
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 27, 2020
    Copy the full SHA
    0d35eaa View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2020

  1. worker,fs: make FileHandle transferable

    Allow passing `FileHandle` instances in the transfer list
    of a `.postMessage()` call.
    
    PR-URL: #33772
    Backport-PR-URL: #33965
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    dd51ba3 View commit details
    Browse the repository at this point in the history
  2. worker: emit 'messagerror' events for failed deserialization

    This is much nicer than just treating exceptions as uncaught, and
    enables reporting of exceptions from the internal C++ deserialization
    machinery.
    
    PR-URL: #33772
    Backport-PR-URL: #33965
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    dafa380 View commit details
    Browse the repository at this point in the history
  3. src: rename internal key handles to KeyObjectHandle

    PR-URL: #33360
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    9197882 View commit details
    Browse the repository at this point in the history
  4. src: add NativeKeyObject base class

                 +---------------------+
                 |     BaseObject      |
                 +---------------------+
                            |
                            |
                            |
                 +---------------------+
                 |   NativeKeyObject   |
                 +---------------------+
                            |
                            |
                            |
                 +---------------------+
                 |      KeyObject      |
                 +---------------------+
                   /                 \
                  /                   \
                 /                     \
                /                       \
    +---------------------+    +---------------------+
    |   SecretKeyObject   |    | AsymmetricKeyObject |
    +---------------------+    +---------------------+
                                 /                 \
                                /                   \
                               /                     \
                              /                       \
                  +---------------------+   +---------------------+
                  |   PublicKeyObject   |   |   PrivateKeyObject  |
                  +---------------------+   +---------------------+
    
    PR-URL: #33360
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    bf3aaa3 View commit details
    Browse the repository at this point in the history
  5. src: store key data in separate class

    This separates key handles from the actual key data:
    
    +-----------------+
    | NativeKeyObject |
    +-----------------+
            ^
         extends
            |
    +-----------------+    +-----------------+    +---------------+
    | KeyObject  (JS) | -> | KeyObjectHandle | -> | KeyObjectData |
    +-----------------+    +-----------------+    +---------------+
    
    PR-URL: #33360
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    50b1cde View commit details
    Browse the repository at this point in the history
  6. crypto: allow KeyObjects in postMessage

    This change allows sharing KeyObjects between threads via postMessage.
    The receiver acquires a new KeyObject and a new KeyObjectHandle, but
    refers to the same KeyObjectData:
    
    +-------------------+
    | NativeKeyObject 1 | ------------------------------------------+
    +-------------------+                                           |
            ^                                                       |
         extends                                                    |
            |                                                       |
    +-------------------+    +-------------------+                  |
    | KeyObject 1  (JS) | -> | KeyObjectHandle 1 | --------------+  |
    +-------------------+    +-------------------+               |  |
                                                                 |  |
                                                                 |  |
                                                                 |  |
                                                                 |  |
                                                                 |  |
    +-------------------+                                        |  |
    | NativeKeyObject 2 | ------------------------------------+  |  |
    +-------------------+                                     |  |  |
            ^                                                 |  |  |
         extends                                              |  |  |
            |                                                 |  |  |
    +-------------------+    +-------------------+            |  |  |
    | KeyObject 2  (JS) | -> | KeyObjectHandle 2 | --------+  |  |  |
    +-------------------+    +-------------------+         |  |  |  |
                                                           |  |  |  |
                                                           |  |  |  |
                                                           |  |  |  |
                                                           |  |  |  |
                                                           |  |  |  |
    +-------------------+                                  |  |  |  |
    | NativeKeyObject 3 | ------------------------------+  |  |  |  |
    +-------------------+                               |  |  |  |  |
            ^                                           |  |  |  |  |
         extends                                        |  |  |  |  |
            |                                           v  v  v  v  v
    +-------------------+    +-------------------+    +---------------+
    | KeyObject 3  (JS) | -> | KeyObjectHandle 3 | -> | KeyObjectData |
    +-------------------+    +-------------------+    +---------------+
    
    Co-authored-by: Anna Henningsen <anna@addaleax.net>
    
    PR-URL: #33360
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    tniessen authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    b828560 View commit details
    Browse the repository at this point in the history
  7. src: fix minor comment typo in KeyObjectData

    PR-URL: #34167
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    danbev authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    090f869 View commit details
    Browse the repository at this point in the history
  8. crypto: simplify KeyObject constructor

    Inline a function that only gets called in the constructor. Make call to
    `super()` more straightforward in the process by removing conditional
    involving the function as it only ever returns `undefined` or else
    throws. That made the code a little hard to understand, as without
    looking at the function, one would likely expect it to return `true`
    on success rather than `undefined`.
    
    PR-URL: #35064
    Reviewed-By: Tobias Nießen <tniessen@tnie.de>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Trott authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    ed72d83 View commit details
    Browse the repository at this point in the history
  9. worker: do not crash when JSTransferable lists untransferable value

    This can currently be triggered when posting a closing FileHandle.
    
    Refs: #34746 (comment)
    
    PR-URL: #34766
    Backport-PR-URL: #34814
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: David Carlier <devnexen@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    44864d7 View commit details
    Browse the repository at this point in the history
  10. worker: add public method for marking objects as untransferable

    We currently mark a number of `ArrayBuffer`s as not transferable,
    including the `Buffer` pool and ones with finalizers provided
    by C++ addons.
    
    There is no good reason to assume that userland code might not
    encounter similar problems, for example when doing `ArrayBuffer`
    pooling similar to ours. Therefore, provide an API that lets
    userland code also mark objects as not transferable.
    
    PR-URL: #33979
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Gus Caplan <me@gus.host>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    139442c View commit details
    Browse the repository at this point in the history
  11. buffer: also alias BigUInt methods

    These were overlooked in 5864fca because of the extra
    `Big` in the name. :)
    
    Refs: #34729
    
    PR-URL: #34960
    Reviewed-By: Richard Lau <riclau@uk.ibm.com>
    Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    6ee800f View commit details
    Browse the repository at this point in the history
  12. src: fix ParseEncoding

    "utf-16LE" was parsed "UNKNOWN", this fixes to "UCS2"
    "utf-buffer" was parsed "BUFFER", this fixes to "UNKNOWN"
    "utf-16leNOT" was parsed "UCS2", this fixes to "UNKNOWN"
    
    PR-URL: #33957
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sapics authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    63cd05b View commit details
    Browse the repository at this point in the history
  13. deps: V8: cherry-pick e06ace6b5cdb

    Original commit message:
    
        [api] Fix empty Maybe crash in GetRealNamedPropertyAttributes
    
        `Object::GetRealNamedPropertyAttributes()` can crash if an empty
        `Maybe` is returned by `JSReceiver::GetPropertyAttributes()` because
        it was not checking for that. Fix that.
    
        Refs: #34606
        Change-Id: Ic83f904ba7134786bcd8f786eb2ce98adb4fea1e
        Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2335057
        Commit-Queue: Leszek Swirski <leszeks@chromium.org>
        Reviewed-by: Leszek Swirski <leszeks@chromium.org>
        Cr-Commit-Position: refs/heads/master@{#69258}
    
    Refs: v8/v8@e06ace6
    
    PR-URL: #34673
    Fixes: #34606
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    4ff6c77 View commit details
    Browse the repository at this point in the history
  14. test: add vm crash regression test

    Refs: #34606
    PR-URL: #34673
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    3598056 View commit details
    Browse the repository at this point in the history
  15. lib: improve debuglog() performance

    PR-URL: #32260
    Reviewed-By: James M Snell <jasnell@gmail.com>
    mscdex authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    9f16b7f View commit details
    Browse the repository at this point in the history
  16. internal: rename error-serdes for consistency

    All other JavaScript files in lib use snake case, so make this
    one consistent.
    
    PR-URL: #33793
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    evanlucas authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    4a2accb View commit details
    Browse the repository at this point in the history
  17. util: restrict custom inspect function + vm.Context interaction

    When `util.inspect()` is called on an object with a custom inspect
    function, and that object is from a different `vm.Context`,
    that function will not receive any arguments that access
    context-specific data anymore.
    
    PR-URL: #33690
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    addaleax committed Sep 28, 2020
    Copy the full SHA
    8d0c21f View commit details
    Browse the repository at this point in the history
  18. doc: specify how fs.WriteStream/ReadStreams are created

    Alternative to #33841
    
    Co-authored-by: zombieleet <zombieleetnca@gmail.com>
    
    PR-URL: #34188
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    jasnell authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    cef9921 View commit details
    Browse the repository at this point in the history
  19. doc: replace http to https of link urls

    PR-URL: #34158
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    sapics authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    ed055c0 View commit details
    Browse the repository at this point in the history
  20. doc: document behavior for once(ee, 'error')

    Fixes: #31244
    
    PR-URL: #34225
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    jasnell authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    a9f0fc9 View commit details
    Browse the repository at this point in the history
  21. doc: add note about multiple sync events and once

    Fixes: #32431
    
    PR-URL: #34220
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    jasnell authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    831328b View commit details
    Browse the repository at this point in the history
  22. doc: remove errors that were never released

    Refs: #33764 (comment)
    
    PR-URL: #34197
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Trott authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    05da376 View commit details
    Browse the repository at this point in the history
  23. test: add arrayOfStreams to pipeline

    PR-URL: #34156
    Backport-PR-URL: #35388
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    rickyes authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    2f67e99 View commit details
    Browse the repository at this point in the history
  24. n-api: create N-API version 7

    Mark `napi_detach_arraybuffer` and `napi_is_detached_arraybuffer` as
    stable.
    
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    PR-URL: #35199
    Backport-PR-URL: #35337
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    Reviewed-By: Michael Dawson <mdawson@devrus.com>
    Gabriel Schulhof authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    b9d0f73 View commit details
    Browse the repository at this point in the history
  25. http: add maxTotalSockets to agent class

    Add maxTotalSockets to determine how many sockets an agent can open.
    Unlike maxSockets, The maxTotalSockets does not count by per origin.
    
    PR-URL: #33617
    Backport-PR-URL: #35396
    Fixes: #31942
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    rickyes authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    3d1bdc2 View commit details
    Browse the repository at this point in the history
  26. doc: Add maxTotalSockets option to agent constructor

    PR-URL: #34013
    Backport-PR-URL: #35396
    Refs: #33617
    Reviewed-By: Robert Nagy <ronagy@icloud.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    
    PR-URL: #33617
    Fixes: #31942
    rickyes authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    1a8669d View commit details
    Browse the repository at this point in the history
  27. repl: support --loader option in builtin REPL

    Fixes: #33435
    
    PR-URL: #33437
    Backport-PR-URL: #35394
    Reviewed-By: Gus Caplan <me@gus.host>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    targos authored and addaleax committed Sep 28, 2020
    Copy the full SHA
    b7be751 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2020

  1. module: package "imports" field

    PR-URL: #34117
    Backport-PR-URL: #35385
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    guybedford authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    d065334 View commit details
    Browse the repository at this point in the history
  2. module: self referential modules in repl or -r

    Load self referential modules from the repl and using the preload flag
    `-r`. In both cases the base path used for resolution is the current
    `process.cwd()`. Also fixes an internal cycle bug in the REPL exports
    resolution.
    
    PR-URL: #32261
    Backport-PR-URL: #35385
    Fixes: #31595
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    dnlup authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    00aa935 View commit details
    Browse the repository at this point in the history
  3. module: use cjsCache over esm injection

    PR-URL: #34605
    Backport-PR-URL: #35385
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    guybedford authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    3ad146d View commit details
    Browse the repository at this point in the history
  4. module: custom --conditions flag option

    PR-URL: #34637
    Backport-PR-URL: #35385
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    guybedford authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    d9857fd View commit details
    Browse the repository at this point in the history
  5. module: share CJS/ESM resolver fns, refactoring

    PR-URL: #34744
    Backport-PR-URL: #35385
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    guybedford authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    cecc193 View commit details
    Browse the repository at this point in the history
  6. module: fix check for package.json at volume root

    This patch converts the "read package scope" algorithm's while loop
    into a do-while loop enabling items at the filesystem root dir to
    be considered within the scope of a sibling package.json also at the
    filesystem root dir.
    
    Fixes: #33438
    
    Co-authored-by: Guy Bedford <guybedford@gmail.com>
    
    PR-URL: #34595
    Backport-PR-URL: #35385
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Mary Marchini <oss@mmarchini.me>
    Derek Lewis authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    740c958 View commit details
    Browse the repository at this point in the history
  7. module: drop -u alias for --conditions

    Old versions of mocha break after #34637.
    
    This was a bug in mocha, but since this is a widely used module
    we can expect ecosystem breakage until modules are updated to
    the latest version of mocha. Drop the conflicting `-u` alias --
    we can potentially bring it back once modules have been updated.
    
    PR-URL: #34935
    Backport-PR-URL: #35385
    Refs: mochajs/mocha#4417
    Refs: #34637
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Shelley Vohr <codebytere@gmail.com>
    richardlau authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    fc93cc9 View commit details
    Browse the repository at this point in the history
  8. esm: improve error message of ERR_UNSUPPORTED_ESM_URL_SCHEME

    Refs: #34765
    
    PR-URL: #34795
    Backport-PR-URL: #35385
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
    Reviewed-By: Jan Krems <jan.krems@gmail.com>
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    lundibundi authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    551be2a View commit details
    Browse the repository at this point in the history
  9. esm: shorten ERR_UNSUPPORTED_ESM_URL_SCHEME message

    I know it just got modified to include new information, but this
    shortens the message a bit without (I hope) losing clarity or meaning.
    
    PR-URL: #34836
    Backport-PR-URL: #35385
    Reviewed-By: Guy Bedford <guybedford@gmail.com>
    Reviewed-By: Denys Otrishko <shishugi@gmail.com>
    Trott authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    9159649 View commit details
    Browse the repository at this point in the history
  10. esm: better package.json parser errors

    PR-URL: #35117
    Backport-PR-URL: #35385
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    guybedford authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    bf7b796 View commit details
    Browse the repository at this point in the history
  11. module: use isURLInstance instead of instanceof

    PR-URL: #34951
    Backport-PR-URL: #35385
    Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
    Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
    aduh95 authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    89a58f6 View commit details
    Browse the repository at this point in the history
  12. module: fix crash on multiline named cjs imports

    The node process crashes when trying to parse a multiline import
    statement for named exports of a CommonJS module:
    
        TypeError: Cannot read property '0' of null
              at ModuleJob._instantiate (internal/modules/esm/module_job.js:112:77)
              at async ModuleJob.run (internal/modules/esm/module_job.js:137:5)
              at async Loader.import (internal/modules/esm/loader.js:165:24)
              at async rejects.name (file:///***/node/test/es-module/test-esm-cjs-named-error.mjs:56:3)
              at async waitForActual (assert.js:721:5)
              at async rejects (assert.js:830:25),
    
    The reason is that the regexp that is currently used to decorate the
    original error fails for multi line import statements.
    
    Unfortunately the undecorated error stack only contains the single line
    which causes the import to fail:
    
        file:///***/node/test/fixtures/es-modules/package-cjs-named-error/multi-line.mjs:2
          comeOn,
          ^^^^^^
        SyntaxError: The requested module './fail.cjs' does not provide an export named 'comeOn'
            at ModuleJob._instantiate (internal/modules/esm/module_job.js:98:21)
            at async ModuleJob.run (internal/modules/esm/module_job.js:141:5)
            at async Loader.import (internal/modules/esm/loader.js:165:24)
            at async rejects.name (file:///***/node/test/es-module/test-esm-cjs-named-error.mjs:56:3)
            at async waitForActual (assert.js:721:5)
            at async rejects (assert.js:830:25)
    
    Hence, for multiline import statements we cannot create an equivalent
    piece of code that uses default import followed by an object
    destructuring assignment.
    
    In any case the node process should definitely not crash. So until we
    have a more sophisticated way of extracting the entire problematic
    multiline import statement, show the code example only for single-line
    imports where the current regexp approach works well.
    
    Refs: #35259
    
    PR-URL: #35275
    Backport-PR-URL: #35385
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Myles Borins <myles.borins@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    ctavan authored and codebytere committed Oct 1, 2020
    Copy the full SHA
    ed3278d View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. 2020-10-06, Version 12.19.0 'Erbium' (LTS)

    Notable changes:
    
    assert:
      * (SEMVER-MINOR) port common.mustCall() to assert (ConorDavenport) #31982
    async_hooks:
      * (SEMVER-MINOR) add AsyncResource.bind utility (James M Snell) #34574
    buffer:
      * (SEMVER-MINOR) also alias BigUInt methods (Anna Henningsen) #34960
      * (SEMVER-MINOR) alias UInt ➡️ Uint in buffer methods (Anna Henningsen) #34729
    build:
      * (SEMVER-MINOR) add build flag for OSS-Fuzz integration (davkor) #34761
    cli:
      * (SEMVER-MINOR) add alias for report-directory to make it consistent (Ash Cripps) #33587
    crypto:
      * (SEMVER-MINOR) allow KeyObjects in postMessage (Tobias Nießen) #33360
      * (SEMVER-MINOR) add randomInt function (Oli Lalonde) #34600
    deps:
      * upgrade to libuv 1.39.0 (Colin Ihrig) #34915
      * upgrade npm to 6.14.7 (claudiahdz) #34468
      * upgrade to libuv 1.38.1 (Colin Ihrig) #34187
    dgram:
      * (SEMVER-MINOR) add IPv6 scope id suffix to received udp6 dgrams (Pekka Nikander) #14500
      * (SEMVER-MINOR) allow typed arrays in .send() (Sarat Addepalli) #22413
    doc:
      * (SEMVER-MINOR) Add maxTotalSockets option to agent constructor (rickyes) #33617
      * (SEMVER-MINOR) add basic embedding example documentation (Anna Henningsen) #30467
      * add Ricky Zhou to collaborators (rickyes) #34676
      * add release key for Ruy Adorno (Ruy Adorno) #34628
      * add DerekNonGeneric to collaborators (Derek Lewis) #34602
      * add AshCripps to collaborators (Ash Cripps) #34494
      * add HarshithaKP to collaborators (Harshitha K P) #34417
      * add rexagod to collaborators (Pranshu Srivastava) #34457
      * add release key for Richard Lau (Richard Lau) #34397
      * add danielleadams to collaborators (Danielle Adams) #34360
      * add sxa as collaborator (Stewart X Addison) #34338
      * add ruyadorno to collaborators (Ruy Adorno) #34297
      * (SEMVER-MAJOR) deprecate process.umask() with no arguments (Colin Ihrig) #32499
    embedding:
      * (SEMVER-MINOR) make Stop() stop Workers (Anna Henningsen) #32531
      * (SEMVER-MINOR) provide hook for custom process.exit() behaviour (Anna Henningsen) #32531
    fs:
      * (SEMVER-MINOR) implement lutimes (Maël Nison) #33399
    http:
      * (SEMVER-MINOR) add maxTotalSockets to agent class (rickyes) #33617
      * (SEMVER-MINOR) return this from IncomingMessage#destroy() (Colin Ihrig) #32789
      * (SEMVER-MINOR) expose host and protocol on ClientRequest (wenningplus) #33803
    http2:
      * (SEMVER-MINOR) return this for Http2ServerRequest#setTimeout (Pranshu Srivastava) #33994
      * (SEMVER-MINOR) do not modify explicity set date headers (Pranshu Srivastava) #33160
    module:
      * (SEMVER-MINOR) named exports for CJS via static analysis (Guy Bedford) #35249
      * (SEMVER-MINOR) exports pattern support (Guy Bedford) #34718
      * (SEMVER-MINOR) package "imports" field (Guy Bedford) #34117
      * (SEMVER-MINOR) deprecate module.parent (Antoine du HAMEL) #32217
    n-api:
      * (SEMVER-MINOR) create N-API version 7 (Gabriel Schulhof) #35199
      * (SEMVER-MINOR) support type-tagging objects (Gabriel Schulhof) #28237
    n-api,src:
      * (SEMVER-MINOR) provide asynchronous cleanup hooks (Anna Henningsen) #34572
    perf_hooks:
      * (SEMVER-MINOR) add idleTime and event loop util (Trevor Norris) #34938
    timers:
      * (SEMVER-MINOR) allow timers to be used as primitives (Denys Otrishko) #34017
    tls:
      * (SEMVER-MINOR) make 'createSecureContext' honor more options (Mateusz Krawczuk) #33974
    worker:
      * (SEMVER-MINOR) add public method for marking objects as untransferable (Anna Henningsen) #33979
      * (SEMVER-MINOR) emit `'messagerror'` events for failed deserialization (Anna Henningsen) #33772
      * (SEMVER-MINOR) allow passing JS wrapper objects via postMessage (Anna Henningsen) #33772
      * (SEMVER-MINOR) allow transferring/cloning generic BaseObjects (Anna Henningsen) #33772
      * (SEMVER-MINOR) add option to track unmanaged file descriptors (Anna Henningsen) #34303
      * (SEMVER-MINOR) add stack size resource limit option (Anna Henningsen) #33085
    worker,fs:
      * (SEMVER-MINOR) make FileHandle transferable (Anna Henningsen) #33772
    zlib:
      * (SEMVER-MINOR) add `maxOutputLength` option (unknown) #33516
      * switch to lazy init for zlib streams (Andrey Pechkurov) #34048
    
    PR-URL: #35401
    codebytere committed Oct 6, 2020
    Copy the full SHA
    d68bff2 View commit details
    Browse the repository at this point in the history