Shelley Vohr
cfcd57182b
src: fix -Wunreachable-code-return error
...
PR-URL: https://github.com/nodejs/node/pull/40034
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-09-22 00:26:52 +01:00
Tobias Nießen
6d399e11e9
doc: fix CCM cipher example in MJS
...
The original example used 'return' to terminate the current control
flow, which is valid in CommonJS. When the example was copied and
modified to use MJS syntax, the 'return' statement was left in but is
not allowed.
Refs: https://github.com/nodejs/node/pull/37594
PR-URL: https://github.com/nodejs/node/pull/39949
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-09-22 00:26:52 +01:00
Dominic Elm
9f3a015b60
src: add option to disable loading native addons
...
PR-URL: https://github.com/nodejs/node/pull/39977
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Bradley Farias <bradley.meck@gmail.com >
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-22 00:26:22 +01:00
Tobias Nießen
d657ae6f8a
crypto: fix RSA-PSS default saltLength
...
PR-URL: https://github.com/nodejs/node/pull/39999
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2021-09-21 19:14:08 +01:00
Tobias Nießen
fc45cbe7a8
crypto: fix default MGF1 hash for OpenSSL 3
...
Refs: https://github.com/nodejs/node/pull/39999
PR-URL: https://github.com/nodejs/node/pull/40031
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2021-09-21 19:14:08 +01:00
Rich Trott
a71579b05e
meta: add more mailmap entries for bajtos
...
PR-URL: https://github.com/nodejs/node/pull/40023
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-09-21 19:14:07 +01:00
Jiawen Geng
67759585a0
deps: patch for v8 on windows
...
PR-URL: https://github.com/nodejs/node/pull/40010
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-21 19:14:03 +01:00
Michaël Zasso
f03bae7c82
tools: update remark-html to v13.0.2
...
PR-URL: https://github.com/nodejs/node/pull/40043
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-09-21 19:13:39 +01:00
Mestery
d6124d8259
repl: fix top level await with surrogate characters
...
Fixes: https://github.com/nodejs/node/issues/39929
PR-URL: https://github.com/nodejs/node/pull/39931
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Shingo Inoue <leko.noor@gmail.com >
2021-09-21 19:13:39 +01:00
null
edcfffeaea
lib: use standard property names
...
The standard property names that aren't strings can be used where
appropiate, this is one of them.
PR-URL: https://github.com/nodejs/node/pull/39981
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: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:39 +01:00
Christian Boehlke
d426ee9b17
doc: fix property name 'detail' of performanceEntry
...
PR-URL: https://github.com/nodejs/node/pull/40019
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-09-21 19:13:38 +01:00
Anna Henningsen
570bef1710
Revert "src: skip test_fatal/test_threads for Debug builds"
...
This reverts commit 1fc4d43a32 .
PR-URL: https://github.com/nodejs/node/pull/39954
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2021-09-21 19:13:38 +01:00
Anna Henningsen
842f936e04
src: use Isolate::TryGetCurrent where appropriate
...
In two places, we call `Isolate::GetCurrent()` even though that is
technically invalid usage of the function.
Now that V8 exposes `Isolate::TryGetCurrent()`, we can do this
in a proper way.
PR-URL: https://github.com/nodejs/node/pull/39954
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2021-09-21 19:13:38 +01:00
Michaël Zasso
98f56d179c
deps: update Acorn to v8.5.0
...
PR-URL: https://github.com/nodejs/node/pull/40015
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-21 19:13:38 +01:00
JckXia
fe920b6cbf
src: make napi_create_reference accept symbol
...
PR-URL: https://github.com/nodejs/node/pull/39926
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-21 19:13:37 +01:00
Alexey Ten
846e7e880e
doc: fix list indentation in corepack.md
...
PR-URL: https://github.com/nodejs/node/pull/40029
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Shingo Inoue <leko.noor@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-09-21 19:13:37 +01:00
Filip Skokan
105c9e6d3b
crypto: check webcrypto asymmetric key types during importKey
...
PR-URL: https://github.com/nodejs/node/pull/39962
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-21 19:13:37 +01:00
Rich Trott
7bddaecbf4
build: add YAML linting to GitHub Actions
...
PR-URL: https://github.com/nodejs/node/pull/40007
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2021-09-21 19:13:37 +01:00
Rich Trott
5a20f9055c
build: add YAML linting
...
PR-URL: https://github.com/nodejs/node/pull/40007
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2021-09-21 19:13:36 +01:00
Rich Trott
99af21292f
tools,build: update YAML files in preparation for linting
...
Fix indentation, traiiling spaces, and missing newline issues in
preparation for linting.
PR-URL: https://github.com/nodejs/node/pull/40007
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2021-09-21 19:13:36 +01:00
Rich Trott
0b30867c08
build: run AUTHORS update weekly
...
PR-URL: https://github.com/nodejs/node/pull/40004
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-09-21 19:13:36 +01:00
Michaël Zasso
67bbfeb7e1
test: make tests pass on Windows with Unix EOL
...
It is possible on Windows to configure Git to checkout line-endings
"as-is", which for Node.js means Unix-style.
This change makes the tests that rely on line endings pass in that case.
PR-URL: https://github.com/nodejs/node/pull/40002
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-09-21 19:13:36 +01:00
Michaël Zasso
73aa4e34ff
src: fix C4805 MSVC warning
...
'==' : unsafe mix of type 'bool' and type 'int' in operation
PR-URL: https://github.com/nodejs/node/pull/39998
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-09-21 19:13:36 +01:00
XadillaX
640353af86
lib,repl: ignore non-canBeRequiredByUsers built-in
...
e.g. `wasi` under no `--experimental-wasi-unstable-preview1` flag
shouldn't be pre-required.
PR-URL: https://github.com/nodejs/node/pull/39942
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com >
2021-09-21 19:13:35 +01:00
Rich Trott
29104f5e64
meta: consolidate AUTHORS entries for mithunsasidharan
...
PR-URL: https://github.com/nodejs/node/pull/40003
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-09-21 19:13:35 +01:00
Antoine du Hamel
b6dd2ea930
doc: fix missing history version in fs.md
...
Refs: https://github.com/nodejs/node/pull/33716
Refs: https://github.com/nodejs/node/pull/35993
Refs: https://github.com/nodejs/node/pull/35911
PR-URL: https://github.com/nodejs/node/pull/39972
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-09-21 19:13:19 +01:00
Joyee Cheung
826eee363c
src: register external references of PipeWrap for snapshot
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:18 +01:00
Joyee Cheung
7a17cbfdea
src: register external references of TTYWrap for snapshot
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:18 +01:00
Joyee Cheung
00cca48081
src: register external references of TCPWrap for snapshot
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:18 +01:00
Joyee Cheung
6095fb07b6
src: register external references of SignalWrap for snapshot
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:18 +01:00
Joyee Cheung
db75711c5c
src: register missing process methods external references
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:17 +01:00
Joyee Cheung
b4e074c295
src: register missing stream wrap external references
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:17 +01:00
Joyee Cheung
a2c1c3ef64
src: register external references of BaseObject for snapshot
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:17 +01:00
Joyee Cheung
6fdf02523e
src: register external references of node-report for snapshot
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:17 +01:00
Joyee Cheung
bef78a2f88
src: register external references of dtrace for snapshot
...
PR-URL: https://github.com/nodejs/node/pull/39961
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-09-21 19:13:16 +01:00
Node.js GitHub Bot
381293f54a
meta: update AUTHORS
...
PR-URL: https://github.com/nodejs/node/pull/39957
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-10 20:34:39 +01:00
Filip Skokan
fb226ff2ee
crypto: add rsa-pss keygen parameters
...
PR-URL: https://github.com/nodejs/node/pull/39927
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-10 20:34:38 +01:00
Jesse Chan
22a78a75ee
build: preserves symbols during LTO with macOS linker
...
man ld -export_dynamic:
```
Preserves all global symbols in main executables during LTO.
Without this option, Link Time Optimization is allowed to inline
and remove global functions.
This option is used when a main executable may load a plug-in which
requires certain symbols from the main executable.
```
Bug: vercel/pkg#1155
Signed-off-by: Jesse Chan <jc@linux.com >
PR-URL: https://github.com/nodejs/node/pull/39839
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-10 20:34:38 +01:00
Robert Nagy
97f3072ceb
stream: add signal support to pipeline generators
...
Generators in pipeline must be able to be aborted or pipeline
can deadlock.
PR-URL: https://github.com/nodejs/node/pull/39067
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-10 20:34:38 +01:00
Richard Lau
450da99b9b
Working on v16.9.2
...
PR-URL: https://github.com/nodejs/node/issues/40069
2021-09-10 20:32:28 +01:00
Richard Lau
711e073596
2021-09-10, Version 16.9.1 (Current)
...
Notable changes:
This release fixes a regression introduced by the V8 9.3 update in Node.js 16.9.0.
PR-URL: https://github.com/nodejs/node/issues/40069
v16.9.1
2021-09-10 11:23:47 -04:00
Jiawen Geng
04f1943109
deps: V8: cherry-pick 9a607043cb31
...
Original commit message:
[compiler] Gracefully handle an unsupported situation
... by skipping the optimization instead of CHECK-failing.
Bug: v8:12188
Change-Id: I6709bf1c55506f3d12886efbfbb9934788cd02ce
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3148132
Auto-Submit: Georg Neis <neis@chromium.org >
Commit-Queue: Jakob Gruber <jgruber@chromium.org >
Reviewed-by: Jakob Gruber <jgruber@chromium.org >
Cr-Commit-Position: refs/heads/main@{#76741}
Refs: https://github.com/v8/v8/commit/9a607043cb3161f8ceae1583807bece595388108
PR-URL: https://github.com/nodejs/node/pull/40046
Fixes: https://github.com/nodejs/node/issues/40030
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2021-09-10 11:15:04 -04:00
Michaël Zasso
b51b55ca9e
Working on v16.9.1
...
PR-URL: https://github.com/nodejs/node/pull/40011
2021-09-07 11:59:40 +02:00
Michaël Zasso
b7c0d64878
2021-09-07, Version 16.9.0 (Current)
...
Notable changes:
crypto:
* (SEMVER-MINOR) add RSA-PSS params to asymmetricKeyDetails (Tobias Nießen) https://github.com/nodejs/node/pull/39851
deps:
* (SEMVER-MINOR) add corepack (Maël Nison) https://github.com/nodejs/node/pull/39608
* (SEMVER-MINOR) update V8 to 9.3.345.16 (Michaël Zasso) https://github.com/nodejs/node/pull/39947
module:
* (SEMVER-MINOR) support pattern trailers (Guy Bedford) https://github.com/nodejs/node/pull/39635
stream:
* (SEMVER-MINOR) add stream.compose (Robert Nagy) https://github.com/nodejs/node/pull/39029
PR-URL: https://github.com/nodejs/node/pull/40011
v16.9.0
2021-09-06 10:15:24 +02:00
Robert Nagy
cb44781371
stream: add stream.compose
...
Refs: #32020
PR-URL: https://github.com/nodejs/node/pull/39029
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Backport-PR-URL: https://github.com/nodejs/node/pull/39563
2021-09-06 09:23:53 +02:00
Luigi Pinca
9e782eb758
doc: remove {C,Dec}ompressionStream documentation
...
Documentation for `CompressionStream` and `DecompressionStream` was
erroneously added in https://github.com/nodejs/node/commit/f57a0e4d8b .
Fixes: https://github.com/nodejs/node/issues/39895
PR-URL: https://github.com/nodejs/node/pull/39899
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2021-09-06 09:21:22 +02:00
Antoine du Hamel
d92bd9a982
tools: add support for import assertions in linter
...
PR-URL: https://github.com/nodejs/node/pull/39924
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Bradley Farias <bradley.meck@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com >
2021-09-06 09:19:25 +02:00
Darshan Sen
879dc4658e
src: remove usage of AllocatedBuffer from src/node_buffer.cc
...
Since AllocatedBuffer is just a thin wrapper around v8::BackingStore, we
should prefer using v8::BackingStore directly.
Refs: https://github.com/nodejs/node/blob/52abf271c563ddffdc93b444ea05e5347a7f2784/src/allocated_buffer.h#L30-L31
Signed-off-by: Darshan Sen <darshan.sen@postman.com >
PR-URL: https://github.com/nodejs/node/pull/39941
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-09-06 09:19:25 +02:00
Ray
7857e9cc77
doc: add descriptions about when options.mode is ignored
...
PR-URL: https://github.com/nodejs/node/pull/39881
Fixes: https://github.com/nodejs/node/issues/39859
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Darshan Sen <raisinten@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
2021-09-06 09:19:25 +02:00
Rich Trott
402071bc45
meta: remove duplicate AUTHORS entry for NigelKibodeaux
...
PR-URL: https://github.com/nodejs/node/pull/39967
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-09-06 09:19:25 +02:00