Rich Trott
f658bd1e8f
doc: fix invalid HTML in doc template
...
Move the script tag for dark mode support inside the body tag.
PR-URL: https://github.com/nodejs/node/pull/36930
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-01-16 19:11:58 -08:00
James M Snell
433afd9e39
test: fixup flaky test-crypto-x509 on windows
...
PR-URL: https://github.com/nodejs/node/pull/36966
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-01-17 00:19:36 +01:00
Robert Nagy
e39a3f86bf
http: refactor ClientRequest destroy
...
PR-URL: https://github.com/nodejs/node/pull/36863
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2021-01-16 17:07:35 +01:00
Robert Nagy
963dec304d
http: cleanup ClientRequest oncreate
...
PR-URL: https://github.com/nodejs/node/pull/36862
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Daniele Belardi <dwon.dnl@gmail.com >
2021-01-16 16:32:13 +01:00
Rich Trott
f64ad30c35
doc: remove issue template duplication from contributing docs
...
The replicated issue template is out of date. There isn't much reason to
replicate it here anyway, so let's remove it and describe what the user
should do briefly.
PR-URL: https://github.com/nodejs/node/pull/36908
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-15 21:24:24 -08:00
Rich Trott
2afbfb0ac2
doc: remove resolving-a-bug-report from contributing docs
...
This section isn't particularly useful in this context and contributes
to making the document longer and less effective. This is part of a
larger effort to make the contributing docs brief, informative, and
friendly.
Refs: https://github.com/nodejs/TSC/issues/864#issuecomment-628646560
PR-URL: https://github.com/nodejs/node/pull/36905
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-01-15 21:22:03 -08:00
Antoine du Hamel
88a5426e9c
doc: use ESM syntax for WASI example
...
PR-URL: https://github.com/nodejs/node/pull/36848
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Guy Bedford <guybedford@gmail.com >
2021-01-16 00:32:41 +01:00
Antoine du Hamel
49f900e42d
tools: add support for top-level await syntax in linter
...
PR-URL: https://github.com/nodejs/node/pull/36911
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2021-01-16 00:31:43 +01:00
Ian Sutherland
9237280559
doc: add iansu to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/36951
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2021-01-15 12:48:19 -07:00
James M Snell
cd37535d2c
doc: fixup typo in metadata entry
...
PR-URL: https://github.com/nodejs/node/pull/36947
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-15 19:25:43 +01:00
Antoine du Hamel
0fd9bbbb24
http2: refactor to avoid unsafe array iteration
...
PR-URL: https://github.com/nodejs/node/pull/36700
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-01-15 19:23:32 +01:00
Tobias Nießen
d7b18662c6
test: check mustCall errors in test-fs-read-type
...
PR-URL: https://github.com/nodejs/node/pull/36914
Refs: https://github.com/nodejs/node/pull/36190
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-01-15 18:13:25 +01:00
Tobias Nießen
ccc6776527
test: fix variable name for non-RSA keys
...
PR-URL: https://github.com/nodejs/node/pull/36912
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-01-15 18:11:43 +01:00
Filip Skokan
0f57902118
doc: add alternative version links to the packages page
...
PR-URL: https://github.com/nodejs/node/pull/36915
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
2021-01-15 17:16:24 +01:00
Milad Fa
d22f16d6e7
doc: add miladfarca to collaborators
...
PR-URL: https://github.com/nodejs/node/pull/36934
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
2021-01-15 09:28:16 -05:00
Mateusz Krawczuk
8cf5281da2
tls: use recently added matching SecureContext in default SNICallback
...
PR-URL: https://github.com/nodejs/node/pull/36072
Fixes: https://github.com/nodejs/node/issues/34110
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2021-01-15 04:48:41 -08:00
Danielle Adams
0f789488d4
2021-01-14, Version 15.6.0 (Current)
...
PR-URL: https://github.com/nodejs/node/pull/36889
Notable changes:
* child_process:
* add 'overlapped' stdio flag (Thiago Padilha) (https://github.com/nodejs/node/pull/29412 )
* support AbortSignal in fork (Benjamin Gruenbaum) (https://github.com/nodejs/node/pull/36603 )
* crypto:
* implement basic secure heap support (James M Snell) (https://github.com/nodejs/node/pull/36779 )
* fixup bug in keygen error handling (James M Snell) (https://github.com/nodejs/node/pull/36779 )
* introduce X509Certificate API (James M Snell) (https://github.com/nodejs/node/pull/36804 )
* implement randomuuid (James M Snell) (https://github.com/nodejs/node/pull/36729 )
* doc:
* update release key for Danielle Adams (Danielle Adams) (https://github.com/nodejs/node/pull/36793 )
* add dnlup to collaborators (Daniele Belardi) (https://github.com/nodejs/node/pull/36849 )
* add panva to collaborators (Filip Skokan) (https://github.com/nodejs/node/pull/36802 )
* add yashLadha to collaborator (Yash Ladha) (https://github.com/nodejs/node/pull/36666 )
* http:
* set lifo as the default scheduling strategy in Agent (Matteo Collina) (https://github.com/nodejs/node/pull/36685 )
* net:
* support abortSignal in server.listen (Nitzan Uziely) (https://github.com/nodejs/node/pull/36623 )
* process:
* add direct access to rss without iterating pages (Adrien Maret) (https://github.com/nodejs/node/pull/34291 )
* v8:
* fix native constructors (ExE Boss) (https://github.com/nodejs/node/pull/36549 )
2021-01-14 19:58:43 -05:00
Michael Dawson
00cc39ec44
doc: update tls test to use better terminology
...
Given the effort to change the master branch to main,
this may make sense as part of removing other references
to the offending wording as well.
Signed-off-by: Michael Dawson <mdawson@devrus.com >
PR-URL: https://github.com/nodejs/node/pull/36851
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-01-14 18:30:08 -05:00
Tobias Nießen and Andrey Pechkurov
4db9854d6e
crypto: fix randomInt bias
...
Co-authored-by: Andrey Pechkurov <apechkurov@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36894
Refs: https://github.com/nodejs/node/pull/34600
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-14 22:21:55 +01:00
Rich Trott
9886d5ebf9
doc: remove unnecessary contributing.md section
...
Remove "How to Contribute in Issues". This is not Node.js-specific and
is likely to cause many readers to tune out. If we want to include this
kind of how-all-issue-trackers-are-intended-to-work information, let's
link to an external source. But I think it's OK to simply remove it.
Refs: https://github.com/nodejs/TSC/issues/864#issuecomment-628646560
PR-URL: https://github.com/nodejs/node/pull/36891
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
2021-01-14 09:03:54 -08:00
Mattia Pontonio
2ba8728b9f
doc: wrap TOC in a <details> tag
...
PR-URL: https://github.com/nodejs/node/pull/36896
Fixes: https://github.com/nodejs/node/issues/36885
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-14 16:35:59 +01:00
Filip Skokan
1772ae7029
crypto: add keyObject.asymmetricKeyDetails for asymmetric keys
...
This API exposes key details. It is conceptually different from the
previously discussed keyObject.fields property since it does not give
access to information that could compromise the security of the key, and
the obtained information cannot be used to uniquely identify a key.
The intended purpose is to determine "security properties" of keys, e.g.
to generate a new key pair with the same parameters, or to decide
whether a key is secure enough.
closes #30045
PR-URL: https://github.com/nodejs/node/pull/36188
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-01-14 14:24:48 +01:00
Andrew Casey
8f327338d3
doc: update fs.l/statSync API history for throwIfNoEntry
...
PR-URL: https://github.com/nodejs/node/pull/36882
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-13 16:09:58 -08:00
Tobias Nießen
302060a648
doc: change "it's" to "its" where necessary
...
PR-URL: https://github.com/nodejs/node/pull/36913
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2021-01-13 23:29:02 +01:00
Antoine du Hamel
e2b954b149
lib: refactor source_map to use more primordials
...
PR-URL: https://github.com/nodejs/node/pull/36733
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-13 20:59:39 +01:00
Antoine du Hamel
251a0ffd80
zlib: refactor to avoid unsafe array iteration
...
PR-URL: https://github.com/nodejs/node/pull/36722
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
2021-01-13 15:52:07 +01:00
Antoine du Hamel
3a44f37ef6
lib: refactor source_map to avoid unsafe array iteration
...
PR-URL: https://github.com/nodejs/node/pull/36734
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
2021-01-13 15:50:53 +01:00
Antoine du Hamel
e70e793404
vm: refactor to avoid unsafe array iteration
...
PR-URL: https://github.com/nodejs/node/pull/36752
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-13 15:49:28 +01:00
Antoine du Hamel
7c37e046eb
worker: refactor to avoid unsafe array iteration
...
PR-URL: https://github.com/nodejs/node/pull/36735
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-13 15:43:00 +01:00
Tobias Nießen
6a7eb32c5b
crypto: fix WebCrypto import of RSA-PSS keys
...
This patch changes GetRsaKeyDetail to work in older supported versions
of OpenSSL.
Refs: https://github.com/openssl/openssl/pull/10217
PR-URL: https://github.com/nodejs/node/pull/36877
Refs: https://github.com/nodejs/node/pull/36188
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2021-01-13 15:34:06 +01:00
raisinten
72b678a0b3
fs: allow position parameter to be a BigInt in read and readSync
...
Fixes: https://github.com/nodejs/node/issues/36185
PR-URL: https://github.com/nodejs/node/pull/36190
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-13 15:19:50 +01:00
Rich Trott
99580bd311
doc: fix indentation on http2 doc entry
...
PR-URL: https://github.com/nodejs/node/pull/36869
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
Reviewed-By: Harshitha K P <harshitha014@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
2021-01-13 04:41:49 -08:00
James M Snell
6e3a8327fc
test: disable test-crypto-secure-heap with asan
...
The asan checks don't play well currently with persistent secure
heap allocations.
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36900
Refs: https://github.com/nodejs/node/pull/36881
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2021-01-12 23:51:31 +01:00
Guy Bedford
088a7e5247
doc: define "browser", "production", "development"
...
Defines the above exports conditions by convention
as well as some guidance for further conditions
definitions in future
PR-URL: https://github.com/nodejs/node/pull/36856
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com >
2021-01-12 16:50:11 -05:00
ExE Boss
1a0c5d57aa
lib: simplify primordials.uncurryThis
...
PR-URL: https://github.com/nodejs/node/pull/36866
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
2021-01-12 14:47:37 +01:00
Guy Bedford
2e909c4fcc
module: fix Windows folder exports deprecation warning
...
PR-URL: https://github.com/nodejs/node/pull/36859
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2021-01-12 14:45:51 +01:00
Dimitris Halatsis
ec794f9796
test: http complete response after socket double end
...
PR-URL: https://github.com/nodejs/node/pull/36633
Fixes: https://github.com/nodejs/node/issues/36620
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
2021-01-12 11:00:04 +01:00
Robert Nagy
1b669b2c12
http: don't cork noop .end()
...
Calling .end() a second time should be a noop and not
leave the socket corked.
Fixes: https://github.com/nodejs/node/issues/36620
PR-URL: https://github.com/nodejs/node/pull/36633
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com >
2021-01-12 11:00:02 +01:00
Rich Trott
2af43f6505
doc: clarify event.isTrusted text
...
PR-URL: https://github.com/nodejs/node/pull/36827
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-11 14:26:31 -08:00
Robert Nagy
52546c091d
stream: finished waits for 'close' on OutgoingMessage
...
Don't invoke finished callback until OutgoingMessagehas
emitted 'close'.
PR-URL: https://github.com/nodejs/node/pull/36648
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-11 11:39:33 -08:00
Pooja D P
f4ef517deb
test: use faster variant for rss in test-crypto-dh-leak
...
PR-URL: https://github.com/nodejs/node/pull/36766
Refs: https://github.com/nodejs/node/pull/34291
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-11 11:37:03 -08:00
Pooja D P
2ceb44120b
test: use faster variant for rss in test-vm-memleak.js
...
PR-URL: https://github.com/nodejs/node/pull/36769
Refs: https://github.com/nodejs/node/pull/34291
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-11 11:35:12 -08:00
James M Snell
03c056401f
crypto: implement basic secure heap support
...
Adds two new command line arguments:
* `--secure-heap=n`, which causes node.js to initialize
an openssl secure heap of `n` bytes on openssl initialization.
* `--secure-heap-min=n`, which specifies the minimum allocation
from the secure heap.
* A new method `crypto.secureHeapUsed()` that returns details
about the total and used secure heap allocation.
The secure heap is an openssl feature that allows certain kinds
of potentially sensitive information (such as private key
BigNums) to be allocated from a dedicated memory area that is
protected against pointer over- and underruns.
The secure heap is a fixed size, so it's important that users
pick a large enough size to cover the crypto operations they
intend to utilize.
The secure heap is disabled by default.
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36779
Refs: https://github.com/nodejs/node/pull/36729
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-01-11 10:39:00 -08:00
James M Snell
b4378aa38a
crypto: fixup bug in keygen error handling
...
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36779
Refs: https://github.com/nodejs/node/pull/36729
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2021-01-11 10:38:58 -08:00
Robert Nagy
a4fce32eab
stream: fix .end() error propagation
...
PR-URL: https://github.com/nodejs/node/pull/36817
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2021-01-11 17:57:05 +01:00
Ruy Adorno
7809c4ff80
deps: upgrade npm to 7.4.0
...
PR-URL: https://github.com/nodejs/node/pull/36829
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2021-01-11 12:47:18 +01:00
Antoine du Hamel
307b79d2be
tls: refactor to avoid unsafe array iteration
...
PR-URL: https://github.com/nodejs/node/pull/36772
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-01-11 12:44:41 +01:00
Michaël Zasso
6520a874eb
tools: update all lint-md rollup dependencies
...
PR-URL: https://github.com/nodejs/node/pull/36843
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-01-11 12:08:34 +01:00
ZiJian Liu and Antoine du Hamel
eb8422c022
events: refactor to use optional chaining
...
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36763
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-11 11:38:54 +01:00
raisinten and Antoine du Hamel
44cf49e376
build: refactor Makefile
...
* add character classes
* replace echo -n with printf
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36759
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-11 11:37:19 +01:00