Michaël Zasso
257d626a2c
Working on v16.5.1
...
PR-URL: https://github.com/nodejs/node/pull/39373
2021-07-14 11:06:35 +02:00
Michaël Zasso
eaca13ddc9
2021-07-14, Version 16.5.0 (Current)
...
Notable changes:
deps:
* upgrade npm to 7.19.1 (npm team) https://github.com/nodejs/node/pull/39225
fs:
* (SEMVER-MINOR) allow empty string for temp directory prefix (Voltrex) https://github.com/nodejs/node/pull/39028
stream:
* (SEMVER-MINOR) implement Web Streams API (James M Snell) https://github.com/nodejs/node/pull/39062
PR-URL: https://github.com/nodejs/node/pull/39373
2021-07-14 08:30:09 +02:00
Rich Trott
630266cba2
debugger: indicate server is ending
...
Currently, we say "listening" when we are ending the server. Change it
to "ending".
Fixes: https://github.com/nodejs/node/issues/39272
PR-URL: https://github.com/nodejs/node/pull/39334
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Yash Ladha <yash@yashladha.in >
2021-07-13 08:11:51 +02:00
Robert Nagy
dfe99d2aac
tls: move legacy code into own file
...
PR-URL: https://github.com/nodejs/node/pull/39333
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-07-13 08:11:48 +02:00
legendecas
63f87027e3
node-api: cctest on v8impl::Reference
...
PR-URL: https://github.com/nodejs/node/pull/38970
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com >
2021-07-11 09:46:22 +02:00
Joyee Cheung
29194d4f88
inspector: move inspector async hooks to environment
...
Since async hooks are per-environment and putting them in
the environment allows us to serialize them for the
snapshot automatically.
PR-URL: https://github.com/nodejs/node/pull/39112
Refs: https://github.com/nodejs/node/pull/38905
Refs: https://github.com/nodejs/node/issues/35711
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-07-11 09:46:18 +02:00
James M Snell
9af62a1357
stream: implement WHATWG streams
...
Experimental implementation of the WHATWG streams standard.
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/39062
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2021-07-11 09:43:56 +02:00
Shelley Vohr
4202274851
crypto: move OPENSSL_IS_BORINGSSL guard
...
PR-URL: https://github.com/nodejs/node/pull/39136
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-07-11 09:43:56 +02:00
Shelley Vohr
89f5a73ba5
crypto: use compatible ecdh function
...
PR-URL: https://github.com/nodejs/node/pull/39054
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-07-11 09:43:56 +02:00
XadillaX
683c995001
src,zlib: tighten up Z_*_WINDOWBITS macros
...
PR-URL: https://github.com/nodejs/node/pull/39115
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-07-11 09:43:56 +02:00
Shelley Vohr
30e878b603
crypto: add OPENSSL_IS_BORINGSSL guard
...
PR-URL: https://github.com/nodejs/node/pull/39138
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-07-11 09:43:55 +02:00
Joyee Cheung
6e46eb186c
bootstrap: support perf hooks in snapshot
...
PR-URL: https://github.com/nodejs/node/pull/38971
Refs: https://github.com/nodejs/node/issues/35711
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-11 09:43:54 +02:00
Joyee Cheung
7ea98fbccd
perf_hooks: refactor perf_hooks for snapshot building
...
- Move Performance and InternalPerformance to a new
lib/internal/perf/performance.js
- Move now() getMilestoneTimestamp() into
lib/internal/perf/utils.js
- Rename lib/internal/perf/perf.js to
lib/internal/perf/performance_entry.js
- Refresh time origin at startup (this means the
time origins could differ between snapshot building
time and snapshot creation time)
PR-URL: https://github.com/nodejs/node/pull/38971
Refs: https://github.com/nodejs/node/issues/35711
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-07-11 09:43:53 +02:00
Antoine du Hamel
a669a191a1
doc: use ASCII order for md refs
...
PR-URL: https://github.com/nodejs/node/pull/39170
Refs: https://github.com/nodejs/remark-preset-lint-node/pull/188
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2021-07-11 09:43:53 +02:00
Momtchil Momtchev
65b56b3774
build: fix building with external builtins
...
PR-URL: https://github.com/nodejs/node/pull/39091
Fixes: https://github.com/nodejs/node/issues/39090
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-11 09:43:52 +02:00
XadillaX
ea8d83bf59
src,crypto: fix 0-length output crash in webcrypto
...
Fixes: https://github.com/nodejs/node/issues/38883
PR-URL: https://github.com/nodejs/node/pull/38913
Refs: https://github.com/nodejs/node/issues/38883
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-07-11 09:43:51 +02:00
cjihrig
66553feeba
src: compare IPv4 addresses in host byte order
...
This commit updates compare_ipv4() to use the host byte
order.
PR-URL: https://github.com/nodejs/node/pull/39096
Fixes: https://github.com/nodejs/node/issues/39074
Reviewed-By: Khaidi Chu <i@2333.moe >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-07-11 09:43:49 +02:00
Beth Griggs
154349788e
Working on v16.4.3
...
PR-URL: https://github.com/nodejs/node/pull/39270
2021-07-05 18:07:52 +01:00
Beth Griggs
8d1d31178e
2021-07-05, Version 16.4.2 (Current)
...
Notable changes:
Node.js 16.4.1 introduced a regression in the Windows installer on
non-English locales that is being fixed in this release. There is no
need to download this release if you are not using the Windows
installer.
PR-URL: https://github.com/nodejs/node/pull/39270
2021-07-05 14:15:57 +01:00
Beth Griggs
e96c896688
Working on v16.4.2
...
PR-URL: https://github.com/nodejs-private/node-private/pull/271
2021-07-01 15:33:13 +01:00
Beth Griggs
4f0a4bf82e
2021-07-01, Version 16.4.1 (Current)
...
This is a security release.
Notable changes:
Vulnerabilities fixed:
- **CVE-2021-22918**: libuv upgrade - Out of bounds read (Medium)
- **CVE-2021-22921**: Windows installer - Node Installer Local Privilege Escalation (Medium)
PR-URL: https://github.com/nodejs-private/node-private/pull/271
2021-06-28 12:18:54 +01:00
Danielle Adams
26c6afe0e9
Working on v16.4.0
...
PR-URL: https://github.com/nodejs/node/pull/39031
2021-06-23 07:38:08 -04:00
Danielle Adams
4b2085feac
2021-06-23, Version 16.4.0 (Current)
...
Notable changes:
* async_hooks:
* stabilize part of AsyncLocalStorage (Vladimir de Turckheim) https://github.com/nodejs/node/pull/37675
* deps:
* upgrade npm to 7.18.1 (npm-robot) https://github.com/nodejs/node/pull/39065
* update V8 to 9.1.269.36 (Michaël Zasso) https://github.com/nodejs/node/pull/38273
* dns:
* allow `--dns-result-order` to change default dns verbatim (Ouyang Yadong) https://github.com/nodejs/node/pull/38099
PR-URL: https://github.com/nodejs/node/pull/39031
2021-06-22 23:09:07 -04:00
Bryan English
d2b972ee52
async_hooks: check for empty contexts before removing
...
This way we don't end up attempting to SetPromiseHooks on contexts that
have already been collected.
Fixes: https://github.com/nodejs/node/issues/39019
PR-URL: https://github.com/nodejs/node/pull/39095
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com >
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
2021-06-21 21:48:22 -04:00
Michaël Zasso and Anna Henningsen
3c7a7d9ee4
src: allow to negate boolean CLI flags
...
This change allows all boolean flags to be negated using the `--no-`
prefix.
Flags that are `true` by default (for example `--deprecation`) are
still documented as negations.
With this change, it becomes possible to easily flip the default
value of a boolean flag and to override the value of a flag passed
in the NODE_OPTIONS environment variable.
`process.allowedNodeEnvironmentFlags` contains both the negated and
non-negated versions of boolean flags.
Co-authored-by: Anna Henningsen <anna@addaleax.net >
PR-URL: https://github.com/nodejs/node/pull/39023
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2021-06-21 18:30:42 -04:00
Joyee Cheung
5f51729014
bootstrap: move event loop handle checking into snapshot builder
...
This is only necessary for the snapshot builder (because we
have no way to resurrect the handles at the moment). In addition,
print the handles if the debug flag is set or if the queues
are not empty after snapshot is created.
PR-URL: https://github.com/nodejs/node/pull/39007
Refs: https://github.com/nodejs/node/issues/35711
Refs: https://github.com/nodejs/node/pull/38905
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2021-06-21 11:08:09 -04:00
Joyee Cheung
9d100aa269
bootstrap: split NodeMainInstance::Run()
...
Split the running of the instance so that it can be reused
by the snapshot builder when we need to run the loop for
user code.
PR-URL: https://github.com/nodejs/node/pull/39007
Refs: https://github.com/nodejs/node/issues/35711
Refs: https://github.com/nodejs/node/pull/38905
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2021-06-21 11:08:09 -04:00
XadillaX
5d92c09bbf
src,url: separate some tables out of node_url.cc
...
The purpose of separating is for readability and maintainability.
PR-URL: https://github.com/nodejs/node/pull/38988
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2021-06-21 11:08:08 -04:00
legendecas
284d9c6228
src: cleanup uv_fs_t regardless of success or not
...
PR-URL: https://github.com/nodejs/node/pull/38996
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2021-06-21 11:08:08 -04:00
Darshan Sen
902bb858d7
src: refactor to use locale functions
...
This makes the code more readable.
Signed-off-by: Darshan Sen <raisinten@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/39014
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-06-14 19:31:05 -07:00
legendecas
4c6193fea1
report: generates report on threads with no isolates
...
PR-URL: https://github.com/nodejs/node/pull/38994
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-06-14 19:31:04 -07:00
Anna Henningsen
10370c5e8a
src: fix multiple AddLinkedBinding() calls
...
Singly-linked lists are extended at their tail, not their head.
This fixes using more than 2 linked addons at a time.
PR-URL: https://github.com/nodejs/node/pull/39012
Reviewed-By: Shelley Vohr <codebytere@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2021-06-14 13:34:39 +02:00
Gabriel Schulhof
f7724ab342
node-api: avoid crashing on passed-in null string
...
When `napi_create_string_*` receives a null pointer as its second
argument, it must null-check it before passing it into V8, otherwise a
crash will occur.
Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/38923
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-06-12 19:39:26 -07:00
Joyee Cheung
ff8313c3a5
src: throw error in LoadBuiltinModuleSource when reading fails
...
- Move the file reading code in LoadBuiltinModuleSource into
util.h so that it can be reused by other C++ code, and
return an error code from it when there is a failure for
the caller to generate an error.
- Throw an error when reading local builtins fails in
LoadBulitinModuleSource.
PR-URL: https://github.com/nodejs/node/pull/38904
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2021-06-11 07:25:00 +02:00
XadillaX
99161b09f6
url,src: simplify ipv6 logic by using uv_inet_pton
...
PR-URL: https://github.com/nodejs/node/pull/38842
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-06-11 07:24:59 +02:00
Joyee Cheung
9bf9ddb490
tools: refactor snapshot builder
...
This patch:
- Moves the snapshot building code to src/ so that we can reuse it
later when generating custom snapshots from an entry point accepted
by the node binary.
- Create a SnapshotData struct that incorporates all the data useful
for a snapshot blob, including both the V8 data and the Node.js
data.
PR-URL: https://github.com/nodejs/node/pull/38902
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
2021-06-11 07:24:59 +02:00
Michael Dawson
ec3e5b4c15
node-api: avoid SecondPassCallback crash
...
PR https://github.com/nodejs/node/pull/38000 added
indirection so that we could stop finalization in
cases where it had been scheduled in a second
pass callback but we were doing it in advance in
environment teardown.
Unforunately we missed that the code which tries
to clear the second pass parameter checked if
the pointer to the parameter (_secondPassParameter)
was nullptr and that when the second pass callback
was scheduled we set _secondPassParameter to nullptr
in order to avoid it being deleted outside of the second
pass callback. The net result was that we
would not clear the _secondPassParameter contents
and failed to avoid the Finalization in the second pass
callback.
This PR adds an additional boolean for deciding if
the secondPassParameter should be deleted outside
of the second pass callback instead of setting
secondPassParameter to nullptr thus avoiding the
conflict between the 2 ways it was being used.
See the discussion starting at:
https://github.com/nodejs/node/pull/38273#issuecomment-852403751
for how this was discovered on OSX while trying to
upgrade to a new V8 version.
Signed-off-by: Michael Dawson <mdawson@devrus.com >
PR-URL: https://github.com/nodejs/node/pull/38899
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-06-11 07:24:57 +02:00
Daniel Bevenius
08b2a4a138
src,test: raise error for --enable-fips when no FIPS
...
This commit moves the check for FIPS from the crypto module
initialization to process startup.
The motivation for this is that when OpenSSL is not FIPS enabled and the
command line options --enable-fips, or --force-fips are used, there will
only be an error raised if the crypto module is used. This can be
surprising and we have gotten feedback that users assumed that there
would be an error if these options were specified and FIPS is not
available.
PR-URL: https://github.com/nodejs/node/pull/38859
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <rlau@redhat.com >
2021-06-11 07:24:57 +02:00
Shelley Vohr
1799ea36f0
crypto: use compatible version of EVP_CIPHER_name
...
PR-URL: https://github.com/nodejs/node/pull/38925
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
2021-06-11 07:24:57 +02:00
Shelley Vohr
06afb8df65
src: make InitializeOncePerProcess more flexible
...
PR-URL: https://github.com/nodejs/node/pull/38888
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-06-11 07:24:55 +02:00
Shelley Vohr
6d5dc63ae4
crypto: fix label cast in EVP_PKEY_CTX_set0_rsa_oaep_label
...
PR-URL: https://github.com/nodejs/node/pull/38926
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-06-11 07:24:55 +02:00
Shelley Vohr
6e93c17bf5
crypto: use EVP_get_cipherbynid directly
...
PR-URL: https://github.com/nodejs/node/pull/38901
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-06-11 07:24:55 +02:00
legendecas
74f5e30d69
node-api: rtn pending excep on napi_new_instance
...
When there are any JavaScript exceptions pending,
`napi_pending_exception` should be returned.
PR-URL: https://github.com/nodejs/node/pull/38798
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-06-11 07:24:54 +02:00
Shelley Vohr
82c293959e
crypto: add missing rand.h include
...
PR-URL: https://github.com/nodejs/node/pull/38864
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Khaidi Chu <i@2333.moe >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
2021-06-11 07:23:52 +02:00
Anna Henningsen
db4b192113
src: add not-weak DCHECK to PersistentToLocal::Strong
...
Refs: https://github.com/nodejs/node/pull/38821#issuecomment-851644135
PR-URL: https://github.com/nodejs/node/pull/38875
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Bryan English <bryan@bryanenglish.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-06-11 07:23:52 +02:00
Anna Henningsen
f959cb3c68
worker: do not look up context twice in PostMessage
...
Refs: https://github.com/nodejs/node/issues/38780#issuecomment-846548949
PR-URL: https://github.com/nodejs/node/pull/38784
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com >
2021-06-11 07:23:51 +02:00
Ouyang Yadong
a71df7630e
dns: allow --dns-result-order to change default dns verbatim
...
Allow the `--dns-result-order` option to change the default value
of verbatim in `dns.lookup()`. This is useful when running
Node.js in ipv6-only environments to avoid possible ENETUNREACH
errors.
PR-URL: https://github.com/nodejs/node/pull/38099
Refs: https://github.com/nodejs/node/issues/31566
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-06-11 07:23:51 +02:00
Danielle Adams
84c39904cb
Working on v16.3.1
...
PR-URL: https://github.com/nodejs/node/pull/38874
2021-06-02 23:16:15 -04:00
Danielle Adams
e65a25c077
2021-06-02, Version 16.3.0 (Current)
...
Notable changes:
* cli:
* add -C alias for --conditions flag (Guy Bedford) (https://github.com/nodejs/node/pull/38755 )
* deps:
* add workspaces support to npm install commands (Ruy Adorno) (https://github.com/nodejs/node/pull/38750 )
PR-URL: https://github.com/nodejs/node/pull/38874
2021-06-02 13:45:04 -04:00
Bryan English
7ba305552f
src: set PromiseHooks by Environment
...
The new JS PromiseHooks introduced in the referenced PR are per
v8::Context. This meant that code depending on them, such as
AsyncLocalStorage, wouldn't behave correctly across vm.Context
instances.
PromiseHooks are now synchronized across the main Context and any
Context created via vm.Context.
Refs: https://github.com/nodejs/node/pull/36394
Fixes: https://github.com/nodejs/node/issues/38781
Signed-off-by: Bryan English <bryan@bryanenglish.com >
PR-URL: https://github.com/nodejs/node/pull/38821
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2021-06-02 13:22:17 -04:00