Beth Griggs
b401aa24d7
2020-09-15, Version 10.22.1 'Dubnium' (LTS)
...
This is a security release.
Notable changes:
Vulnerabilities fixed:
- CVE-2020-8252: fs.realpath.native on may cause buffer overflow
(Medium).
PR-URL: https://github.com/nodejs-private/node-private/pull/222
v10.22.1
2020-09-09 01:13:33 +01:00
cjihrig
57badcf93e
deps: libuv: cherry-pick 0e6e8620
...
Original commit message:
unix: don't use _POSIX_PATH_MAX
Libuv was using _POSIX_PATH_MAX wrong. Bug introduced in commit b56d279b
("unix: do not require PATH_MAX to be defined") from September 2018.
_POSIX_PATH_MAX is the minimum max path size guaranteed by POSIX, not
the actual max path size of the system libuv runs on. _POSIX_PATH_MAX
is always 256, the real max is often much bigger.
This commit fixes buffer overruns when processing very long paths in
uv_fs_readlink() and uv_fs_realpath() because libuv was not allocating
enough memory to store the result.
Fixes: https://github.com/libuv/libuv/issues/2965
PR-URL: https://github.com/libuv/libuv/pull/2966
Backport-PR-URL: https://github.com/nodejs-private/node-private/pull/221
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jameson Nash <vtjnash@gmail.com >
2020-09-08 18:01:03 +01:00
Beth Griggs
f38bcc2b59
Working on v10.22.1
...
PR-URL: https://github.com/nodejs/node/pull/34170
2020-07-21 16:25:19 +01:00
Richard Lau
c5215d0b3d
2020-07-21, Version 10.22.0 'Dubnium' (LTS)
...
Notable changes:
- deps:
- upgrade npm to 6.14.6 (claudiahdz)
https://github.com/nodejs/node/pull/34246
- upgrade openssl sources to 1.1.1g (Hassaan Pasha)
https://github.com/nodejs/node/pull/32982
- n-api:
- add `napi_detach_arraybuffer` (legendecas)
https://github.com/nodejs/node/pull/29768
PR-URL: https://github.com/nodejs/node/pull/34170
v10.22.0
2020-07-15 11:27:18 -04:00
Sparsh Garg
00f04e3b79
doc: fix quotes in tls.md
...
Added the missing single quotes in minVersion and maxVersion of api/tls
doc before TLSv1.2.
PR-URL: https://github.com/nodejs/node/pull/33641
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-07-15 11:11:52 -04:00
Jeremiah Senkpiel
7a109febc4
test: remove timers-blocking-callback
...
If the bug this test is intented to catch is reintroduced, or if
5aac4c42da is effectively reverted, many
(50+) tests time out, rendering this test redundant and unnecessary.
in particular, the following timer tests catch an effective revert of
5aac4c42da :
not ok 21 parallel/test-timers-api-refs
not ok 22 parallel/test-timers-args
not ok 23 parallel/test-timers-destroyed
not ok 25 parallel/test-timers-nested
not ok 26 parallel/test-timers-interval-throw
not ok 28 parallel/test-timers-non-integer-delay
not ok 32 parallel/test-timers-ordering
not ok 33 parallel/test-timers-refresh
not ok 34 parallel/test-timers-refresh-in-callback
not ok 35 parallel/test-timers-reset-process-domain-on-throw
not ok 40 parallel/test-timers-timeout-to-interval
not ok 41 parallel/test-timers-uncaught-exception
not ok 42 parallel/test-timers-timeout-with-non-integer
not ok 43 parallel/test-timers-unenroll-unref-interval
not ok 44 parallel/test-timers-unref
not ok 45 parallel/test-timers-unref-active
not ok 46 parallel/test-timers-unrefd-interval-still-fires
not ok 47 parallel/test-timers-unrefed-in-callback
not ok 48 parallel/test-timers-user-call
not ok 49 parallel/test-timers-zero-timeout
Refs: https://github.com/nodejs/node/issues/21781
PR-URL: https://github.com/nodejs/node/pull/32870
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-07-15 10:18:30 -04:00
claudiahdz
97b59527c7
deps: upgrade npm to 6.14.6
...
PR-URL: https://github.com/nodejs/node/pull/34246
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2020-07-13 14:22:49 -04:00
Ruy Adorno
84fca3c691
deps: upgrade npm to 6.14.5
...
PR-URL: https://github.com/nodejs/node/pull/33239
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2020-07-13 14:22:40 -04:00
Paolo Insogna
069b6e14a4
http: disable headersTimeout check when set to zero
...
PR-URL: https://github.com/nodejs/node/pull/33307
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-07-02 07:20:22 -04:00
legendecas
5dab101b03
doc,n-api: mark napi_detach_arraybuffer as experimental
...
As its actual release stage.
PR-URL: https://github.com/nodejs/node/pull/30703
Backport-PR-URL: https://github.com/nodejs/node/pull/33061
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2020-07-01 14:55:14 -04:00
Denys Otrishko
b744ffd586
n-api: implement napi_is_detached_arraybuffer
...
This implements ArrayBuffer#IsDetachedBuffer operation as per ECMAScript
specification Section 24.1.1.2 https://tc39.es/ecma262/#sec-isdetachedbuffer
Closes: https://github.com/nodejs/node/issues/29955
PR-URL: https://github.com/nodejs/node/pull/30613
Backport-PR-URL: https://github.com/nodejs/node/pull/33061
Fixes: https://github.com/nodejs/node/issues/29955
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2020-07-01 14:54:50 -04:00
legendecas
961598b9be
n-api: add napi_detach_arraybuffer
...
As ArrayBuffer#detach is an ecma spec operation
([Section 24.1.1.3](https://tc39.es/ecma262/#sec-detacharraybuffer )),
it might be good to have it in N-API.
Fixes: https://github.com/nodejs/node/issues/29674
PR-URL: https://github.com/nodejs/node/pull/29768
Backport-PR-URL: https://github.com/nodejs/node/pull/33061
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
2020-07-01 14:53:26 -04:00
Luigi Pinca
3dbd8cd3a9
Revert "test: mark empty udp tests flaky on OS X"
...
This reverts commit 24a4f76709 .
PR-URL: https://github.com/nodejs/node/pull/32489
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
2020-07-01 12:32:13 -04:00
cjihrig
193d1d0e84
doc: document fs.watchFile() bigint option
...
This commit documents the bigint option to fs.watchFile(), which
has been supported since v10.5.0.
PR-URL: https://github.com/nodejs/node/pull/32128
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-07-01 12:23:41 -04:00
Jason Macgowan
74b00cca64
tls: allow empty subject even with altNames defined
...
Behavior described in https://github.com/nodejs/node/issues/11771
is still true even though the issue is closed.
This PR is to allow DNS and URI names, even when there is not a subject.
Refs: https://github.com/nodejs/node/issues/11771
PR-URL: https://github.com/nodejs/node/pull/22906
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-07-01 10:54:06 -04:00
Hassaan Pasha
745b329260
deps: update archs files for OpenSSL-1.1.1g
...
After an OpenSSL source update, all the config files need to be
regenerated and committed by:
$ cd deps/openssl/config
$ make
$ git add deps/openssl/config/archs
$ git add deps/openssl/openssl/include/crypto/bn_conf.h
$ git add deps/openssl/openssl/include/crypto/dso_conf.h
$ git add deps/openssl/openssl/include/openssl/opensslconf.h
$ git commit
PR-URL: https://github.com/nodejs/node/pull/32982
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-07-01 10:44:07 -04:00
Hassaan Pasha
94702c1560
deps: upgrade openssl sources to 1.1.1g
...
This updates all sources in deps/openssl/openssl by:
$ cd deps/openssl/
$ rm -rf openssl
$ tar zxf ~/tmp/openssl-1.1.1g.tar.gz
$ mv openssl-1.1.1g openssl
$ git add --all openssl
$ git commit openssl
PR-URL: https://github.com/nodejs/node/pull/32982
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-07-01 10:44:01 -04:00
Hassaan Pasha
ef9413be1a
deps: upgrade openssl sources to 1.1.1f
...
This updates all sources in deps/openssl/openssl by:
$ cd deps/openssl/
$ rm -rf openssl
$ tar zxf ~/tmp/openssl-1.1.1f.tar.gz
$ mv openssl-1.1.0h openssl
$ git add --all openssl
$ git commit openssl
Backport-PR-URL: https://github.com/nodejs/node/pull/32982
PR-URL: https://github.com/nodejs/node/pull/32583
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2020-07-01 10:41:40 -04:00
Ben Noordhuis
aaf2f827c6
inspector: more conservative minimum stack size
...
PTHREAD_STACK_MIN is 2 KB with musl, which is too small to safely
receive signals. PTHREAD_STACK_MIN + MINSIGSTKSZ is 8 KB on arm64,
which is the musl architecture with the biggest MINSIGSTKSZ so let's
use that as a lower bound and let's quadruple it just in case.
Backport-PR-URL: https://github.com/nodejs/node/pull/33720
PR-URL: https://github.com/nodejs/node/pull/27855
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-07-01 10:32:48 -04:00
Michaël Zasso
3acc89f8f2
deps: V8: backport cd21f71f9cb5
...
Original commit message:
[parser] Validate destructuring assignment pattern in correct classifier
Previously we'd first accumulate errors to the parent and validate the
destructuring pattern in the parent. In the case of ParseArguments this
will invalidly propagate binding pattern errors from one argument to the
next. The reason why ParseArguments keeps track of binding pattern errors
is because it could also be used to parse async arrow function parameters.
If we see async(a,b) we don't yet know whether this is the head of an
async arrow function, or a call to async with arguments a and b.
Bug: v8:8241
Change-Id: I670ab9a9c6f2e0bee399808b02a465ae1afa7c3f
Reviewed-on: https://chromium-review.googlesource.com/c/1296229
Commit-Queue: Toon Verwaest <verwaest@chromium.org >
Reviewed-by: Marja Hölttä <marja@chromium.org >
Cr-Commit-Position: refs/heads/master@{#56887}
Refs: https://github.com/v8/v8/commit/cd21f71f9cb592b2f9520b97c86eb5456e0e8e6d
Fixes: https://github.com/nodejs/node/issues/23142
PR-URL: https://github.com/nodejs/node/pull/33862
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-07-01 09:20:48 -04:00
Sam Roberts
89a306bca9
deps: fix V8 compiler error with clang++-11
...
Fixes: https://github.com/nodejs/node/issues/33040
error: type 'antlr4::tree::TerminalNode *' cannot be narrowed to
'bool' in initializer list [-Wc++11-narrowing]
ParameterList result{{}, {}, context->VARARGS(), {}};
Occurs twice:
../../deps/v8/src/torque/ast-generator.cc:123:32:
../../deps/v8/src/torque/ast-generator.cc:144:32:
PR-URL: https://github.com/nodejs/node/pull/33094
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-07-01 08:59:22 -04:00
Richard Lau
9915774d18
build: log detected compilers in --verbose mode
...
Log the versions of the detected compilers when the configure script
is run with `--verbose` to help verify which compiler is being used if
multiple toolchains are installed on the system.
Signed-off-by: Richard Lau <riclau@uk.ibm.com >
PR-URL: https://github.com/nodejs/node/pull/32715
Backport-PR-URL: https://github.com/nodejs/node/pull/32820
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-07-01 06:47:37 -04:00
Sam Roberts
543656928c
test: flaky test-stdout-close-catch on freebsd
...
Refs: https://github.com/nodejs/node/issues/28803
PR-URL: https://github.com/nodejs/node/pull/32849
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-07-01 06:05:14 -04:00
Richard Lau
145dcc2c1c
build: move doc versions JSON file out of out/doc
...
Move the generated previous doc versions JSON file out of `out/doc` to
prevent it being included in the distributed packages.
Signed-off-by: Richard Lau <riclau@uk.ibm.com >
PR-URL: https://github.com/nodejs/node/pull/32728
Fixes: https://github.com/nodejs/build/issues/2276
Reviewed-By: Shelley Vohr <codebytere@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2020-06-02 19:15:47 +01:00
Kamil Rytarowski
24b927ab66
build: allow clang 10+ in configure.py
...
Detected on NetBSD/amd64.
Fixes: https://github.com/nodejs/node/issues/29536
PR-URL: https://github.com/nodejs/node/pull/29541
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-06-02 19:15:43 +01:00
Beth Griggs
0bd44b4a88
Working on v10.21.1
...
PR-URL: https://github.com/nodejs-private/node-private/pull/211
2020-06-02 18:57:33 +01:00
Beth Griggs
23adb548a5
2020-06-02, Version 10.21.0 'Dubnium' (LTS)
...
This is a security release.
Vulnerabilities fixed:
- CVE-2020-8174: napi_get_value_string_*() allows various kinds of
memory corruption (High).
- CVE-2020-10531: ICU-20958 Prevent SEGV_MAPERR in append (High).
- CVE-2020-11080: HTTP/2 Large Settings Frame DoS (Low).
PR-URL: https://github.com/nodejs-private/node-private/pull/211
v10.21.0
2020-06-02 15:21:44 +01:00
Shigeki Ohtsu
0ad7970256
deps: fix OPENSSLDIR on Windows
...
Backslashes and spaces are need to be escaped to define OPENSSLDIR to
"C:\Program Files\Common Files\SSL".
PR-URL: https://github.com/nodejs/node/pull/29456
Refs: https://github.com/nodejs/node/pull/29455
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-06-02 15:03:31 +01:00
Richard Lau
bd78c6ea46
deps: backport ICU-20958 to fix CVE-2020-10531
...
Add floating patch for ICU 64.2 from https://github.com/unicode-org/icu/commit/18b212f235c8b1dea3b8bbd0accd57340b32ba55 .
Original commit message:
ICU-21032 Backport to 64.x: ICU-20958 Prevent SEGV_MAPERR in append
See #971
(cherry picked from commit b7d08bc04a4296982fcef8b6b8a354a9e4e7afca)
Refs: https://unicode-org.atlassian.net/browse/ICU-20958
Refs: https://github.com/unicode-org/icu/pull/1155
CVE-ID: CVE-2020-10531
PR-URL: https://github.com/nodejs/node/pull/33572
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: Steven R Loomis <srloomis@us.ibm.com >
2020-06-02 15:03:16 +01:00
James M Snell
881c244a4e
http2: implement support for max settings entries
...
Adds the maxSettings option to limit the number of settings
entries allowed per SETTINGS frame. Default 32
Signed-off-by: James M Snell <jasnell@gmail.com >
Fixes: https://hackerone.com/reports/446662
CVE-ID: CVE-2020-11080
PR-URL: https://github.com/nodejs-private/node-private/pull/204
Backport-PR-URL: https://github.com/nodejs-private/node-private/pull/207
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2020-06-02 14:59:31 +01:00
James M Snell
33e9a12241
deps: update nghttp2 to 1.41.0
...
Fixes: https://hackerone.com/reports/446662
CVE-ID: CVE-2020-11080
PR-URL: https://github.com/nodejs-private/node-private/pull/204
Backport-PR-URL: https://github.com/nodejs-private/node-private/pull/207
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2020-06-02 14:59:31 +01:00
Tobias Nießen
cd9827f105
napi: fix memory corruption vulnerability
...
Fixes: https://hackerone.com/reports/784186
CVE-ID: CVE-2020-8174
PR-URL: https://github.com/nodejs-private/node-private/pull/203
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2020-06-02 14:59:22 +01:00
Beth Griggs
ef2df6986b
Working on v10.20.2
...
PR-URL: https://github.com/nodejs/node/pull/32768
2020-04-12 13:49:01 +01:00
Beth Griggs
f08441edac
2020-04-12 Node.js v10.20.1 'Dubnium' (LTS) Release
...
Notable changes:
Due to release process failures, Node.js v10.20.0 shipped with source
and header tarballs that did not properly match the final release
commit that was used to build the binaries. We recommend that Node.js
v10.20.0 not be used, particularly in any applications using native
add-ons or where compiling Node.js from source is involved.
Node.js v10.20.1 is a clean release with the correct sources and is
strongly recommended in place of v10.20.0.
PR-URL: https://github.com/nodejs/node/pull/32768
v10.20.1
2020-04-12 12:48:28 +01:00
Beth Griggs
670f3dbecd
Working on v10.20.1
...
PR-URL: https://github.com/nodejs/node/pull/31984
2020-04-08 16:36:56 +01:00
Beth Griggs
246eedebec
2020-04-08, Version 10.20.0 'Dubnium' (LTS)
...
macOS package notarization and a change in builder configuration
The macOS binaries for this release, and future 10.x releases, are now
being compiled on macOS 10.15 (Catalina) with Xcode 11 to support
package notarization, a requirement for installing .pkg files on macOS
10.15 and later. Previous builds of Node.js 10.x were compiled on macOS
10.10 (Yosemite) with a minimum deployment target of macOS 10.7 (Lion).
As binaries are still being compiled to support a minimum of macOS 10.7
(Lion) we do not anticipate this having a negative impact on Node.js
10.x users with older versions of macOS.
Notable changes:
- buffer: add {read|write}Big\[U\]Int64{BE|LE} methods (garygsc)
[#19691 ](https://github.com/nodejs/node/pull/19691 )
- build: macOS package notarization (Rod Vagg)
[#31459 ](https://github.com/nodejs/node/pull/31459 )
- deps:
- update npm to 6.14.3 (Myles Borins)
[#32368 ](https://github.com/nodejs/node/pull/32368 )
- upgrade openssl sources to 1.1.1e (Hassaan Pasha)
[#32328 ](https://github.com/nodejs/node/pull/32328 )
- upgrade to libuv 1.34.2 (cjihrig)
[#31477 ](https://github.com/nodejs/node/pull/31477 )
- n-api:
- add napi\_get\_all\_property\_names (himself65)
[#30006 ](https://github.com/nodejs/node/pull/30006 )
- add APIs for per-instance state management (Gabriel Schulhof)
[#28682 ](https://github.com/nodejs/node/pull/28682 )
- define release 6
[#32058 ](https://github.com/nodejs/node/pull/32058 )
- turn NAPI\_CALL\_INTO\_MODULE into a function (Anna Henningsen)
[#26128 ](https://github.com/nodejs/node/pull/26128 )
- tls:
- expose keylog event on TLSSocket (Alba Mendez)
[#27654 ](https://github.com/nodejs/node/pull/27654 )
- support TLS min/max protocol defaults in CLI (Sam Roberts)
[#27946 ](https://github.com/nodejs/node/pull/27946 )
- url: handle quasi-WHATWG URLs in urlToOptions() (cjihrig)
[#26226 ](https://github.com/nodejs/node/pull/26226 )
PR-URL: https://github.com/nodejs/node/pull/31984
v10.20.0
2020-04-08 11:08:07 +01:00
Richard Lau
017909b847
test: fix tool path in test-doctool-versions.js
...
Path to the versions tool tested by test-doctool-versions.js would
be incorrect if the test temporary directory was redirected (e.g.
via NODE_TEST_DIR) outside of `test/`.
Signed-off-by: Richard Lau <riclau@uk.ibm.com >
Backport-PR-URL: https://github.com/nodejs/node/pull/32642
PR-URL: https://github.com/nodejs/node/pull/32645
Refs: https://github.com/nodejs/node/pull/32518
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Shelley Vohr <codebytere@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-06 22:38:41 +01:00
Richard Lau
a175b8d3a7
tools: only fetch previous versions when necessary
...
Refactor the logic for working out the previous versions of Node.js for
the API documentation so that the parsing (including the potential https
get) happens at most once per build (as opposed to the current once per
generated API doc).
Signed-off-by: Richard Lau <riclau@uk.ibm.com >
Backport-PR-URL: https://github.com/nodejs/node/pull/32642
PR-URL: https://github.com/nodejs/node/pull/32518
Fixes: https://github.com/nodejs/node/issues/32512
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2020-04-06 22:38:35 +01:00
Joyee Cheung
3756be8511
tools: add NODE_TEST_NO_INTERNET to the doc builder
...
At the moment the doc builder tries to access the internet
for CHANGELOG information and only falls back to local sources
after the connection fails or a 5 second timeout. This means
that the doc building could take at least 7 minutes on a
machine with hijacked connection to Github for useless network
attempts. This patch adds a NODE_TEST_NO_INTERNET environment
variable to directly bypass these attempts so that docs can be
built in reasonable time on a machine like that.
Backport-PR-URL: https://github.com/nodejs/node/pull/32642
PR-URL: https://github.com/nodejs/node/pull/31849
Fixes: https://github.com/nodejs/node/issues/29918
Reviewed-By: Matheus Marchini <mat@mmarchini.me >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-04-06 22:38:28 +01:00
Richard Lau
ac1ea7312a
tools: make doctool work if no internet available
...
Allow doctool to fallback to use local files if not building a release
build.
Backport-PR-URL: https://github.com/nodejs/node/pull/32642
PR-URL: https://github.com/nodejs/node/pull/30214
Fixes: https://github.com/nodejs/node/issues/29918
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2020-04-06 22:38:23 +01:00
Rich Trott
1ea70d641d
test: fix flaky doctool and test
...
Doctool tests have been failing a lot in CI on Win2008 R2. It appears
async functions and callback-based functions are being used in
combination such that the callback-based function cannot guarantee that
it will invoke its callback. Convert the callback-based functions to
async functions so we have one paradigm and reliable results.
Backport-PR-URL: https://github.com/nodejs/node/pull/32642
PR-URL: https://github.com/nodejs/node/pull/29979
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2020-04-06 22:38:13 +01:00
Richard Lau
0177464b0e
doc,tools: get altDocs versions from CHANGELOG.md
...
Parse `CHANGELOG.md` for versions of Node.js used by the documentation
feature `View another version` so that we don't have to manually update
the list when we cut a new version or transition a release to LTS.
Backport-PR-URL: https://github.com/nodejs/node/pull/32642
PR-URL: https://github.com/nodejs/node/pull/27661
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-04-06 22:38:06 +01:00
Dave Vandyke
2e3d511cff
doc: correct version metadata for Readable.from
...
PR-URL: https://github.com/nodejs/node/pull/32639
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-04-06 13:07:40 +01:00
Anna Henningsen
34c1c2a82b
doc: add missing version metadata for Readable.from
...
Fixes: https://github.com/nodejs/node/issues/28693
PR-URL: https://github.com/nodejs/node/pull/28695
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-04-06 13:07:15 +01:00
Gabriel Schulhof and legendecas
e9c590ea00
n-api: define release 6
...
Mark all N-APIs that have been added since version 5 as stable.
PR-URL: https://github.com/nodejs/node/pull/32058
Backport-PR-URL: https://github.com/nodejs/node/pull/32488
Fixes: https://github.com/nodejs/abi-stable-node/issues/393
Co-Authored-By: legendecas <legendecas@gmail.com >
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2020-04-06 11:39:06 +01:00
Gabriel Schulhof
239377b654
n-api: correct instance data tests
...
When instance data was backported, some of the tests ended up in a
location where they do not get run. This moves the tests into
test/addons-napi, merging them with existing tests therein, thereby
ensuring that they do get run.
PR-URL: https://github.com/nodejs/node/pull/32488
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2020-04-06 11:37:29 +01:00
Rod Vagg
8a0ed8f1ff
build: macOS package notarization
...
Includes hardened-runtime patch from gdams from
https://github.com/nodejs/node/issues/29216#issuecomment-546932966
Backport-PR-URL: https://github.com/nodejs/node/pull/32528
PR-URL: https://github.com/nodejs/node/pull/31459
Refs: https://github.com/nodejs/node/issues/29216
Reviewed-By: Christian Clauss <cclauss@me.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com >
Signed-off-by: Rod Vagg <rod@vagg.org >
2020-04-01 23:27:52 -04:00
Ruy Adorno
04cd67f85e
deps: upgrade npm to 6.14.4
...
Backport-PR-URL: https://github.com/nodejs/node/pull/32528
PR-URL: https://github.com/nodejs/node/pull/32495
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
2020-04-01 23:27:49 -04:00
Rod Vagg
8d85a43d99
deps: update term-size with signed version
...
Backport-PR-URL: https://github.com/nodejs/node/pull/32528
PR-URL: https://github.com/nodejs/node/pull/31459
Refs: https://github.com/nodejs/node/issues/29216
Refs: https://github.com/sindresorhus/macos-term-size/pull/3
Reviewed-By: Christian Clauss <cclauss@me.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com >
Signed-off-by: Rod Vagg <rod@vagg.org >
2020-04-01 23:27:37 -04:00
Myles Borins
aa7d369c72
doc: update releaser list in README.md
...
Moved emeritus members keys and fixed alphabetization issues
PR-URL: https://github.com/nodejs/node/pull/32577
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-01 19:12:12 -04:00