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
Ouyang Yadong
8e3f606779
cluster: fix edge cases that throw ERR_INTERNAL_ASSERTION
...
Some cases use both `cluster` and `net`/`cluser` will throw
ERR_INTERNAL_ASSERTION when `listen`/`bind` to the port of `0`. This
PR maitains a separate map of the index to fix the issue. See the new
tests added for the detail cases.
PR-URL: https://github.com/nodejs/node/pull/36764
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-11 11:26:46 +01:00
Michaël Zasso
6b18987033
deps: update nghttp2 to 1.42.0
...
Refs: https://github.com/nghttp2/nghttp2/releases/tag/v1.42.0
PR-URL: https://github.com/nodejs/node/pull/36842
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2021-01-11 08:15:16 +01:00
Michaël Zasso
9883fe0114
tools: update doc tool dependencies
...
PR-URL: https://github.com/nodejs/node/pull/36844
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-11 08:13:23 +01:00
Rich Trott
1c4fa9a48a
benchmark: fix http2 benchmarks
...
Fixes: https://github.com/nodejs/node/issues/36746
PR-URL: https://github.com/nodejs/node/pull/36871
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2021-01-10 20:26:54 -08:00
Momtchil Momtchev
053abac02b
stream: lazy read ReadStream
...
Using stream._construct would cause the Readable
to incorrectly greedily start reading.
Fixes: https://github.com/nodejs/node/issues/36251
PR-URL: https://github.com/nodejs/node/pull/36823
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2021-01-10 19:06:06 +01:00
Antoine du Hamel
7397c7e4a3
console: refactor to avoid unsafe array iteration
...
PR-URL: https://github.com/nodejs/node/pull/36753
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-10 13:02:28 +01:00
Yash Ladha
88d8dde479
lib: refactor to use mapping in cluster master
...
Cluster master message handler is basically doing the same thing for
different message actions which can be avoided. Thus move to method
mapping object and doing a single lookup to find the function to execute
and it doesnot exists, skip the execution chain.
PR-URL: https://github.com/nodejs/node/pull/36250
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-10 12:50:56 +01:00
Bruce A. MacNaughton
28e9c10003
doc: fix module syncBuiltinESMExports example
...
Fix failing code and add explanations of each assert.
PR-URL: https://github.com/nodejs/node/pull/34284
Reviewed-By: Guy Bedford <guybedford@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
2021-01-10 10:37:11 +01:00
Rohan Chougule
7a6af022e6
zlib: refactor to use primordial instead of <string>.startsWith
...
PR-URL: https://github.com/nodejs/node/pull/36718
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
2021-01-10 14:26:48 +05:30
Ikko Ashimine
a3606f25dc
src: fix typo in crypto_aes.cc
...
concatentated -> concatenated
PR-URL: https://github.com/nodejs/node/pull/36717
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
Reviewed-By: Michael Dawson <midawson@redhat.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
2021-01-10 06:58:42 +05:30
Nicholas Schamberg
b9ffb82f9b
doc: os.uptime() temporary bug notice
...
Makes it clear that os.uptime() is unreliable in some virtualization
cases.
PR-URL: https://github.com/nodejs/node/pull/36503
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-09 15:41:54 -08:00
Danielle Adams
971bbb7461
doc: update release key for Danielle Adams
...
PR-URL: https://github.com/nodejs/node/pull/36793
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Beth Griggs <bgriggs@redhat.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <rlau@redhat.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-09 15:35:55 -08:00
Pranshu Srivastava
5ae5ca90ef
doc: add http.IncomingMessage#connection
...
Refs: https://github.com/nodejs/node/issues/33715
* link message.socket
* deprecate
* update doc/api/http.md
PR-URL: https://github.com/nodejs/node/pull/33768
Reviewed-By: Robert Nagy <ronagy@icloud.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2021-01-09 15:24:02 -08:00
ZiJian Liu
d8f535b025
timers: refactor to use optional chaining
...
PR-URL: https://github.com/nodejs/node/pull/36767
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-09 15:18:34 -08:00
ZiJian Liu
9574e5b632
net: throw ERR_OUT_OF_RANGE if blockList.addSubnet prefix is NaN
...
Fixes: https://github.com/nodejs/node/issues/36731
PR-URL: https://github.com/nodejs/node/pull/36732
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-09 14:16:38 -08:00
ugultopu
6498e054a1
doc: clarify child_process.exec inherits cwd
...
PR-URL: https://github.com/nodejs/node/pull/36809
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Pooja D P <Pooja.D.P@ibm.com >
Reviewed-By: Yash Ladha <yash@yashladha.in >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-09 12:13:23 -08:00
James M Snell
f5287a4b7b
crypto: introduce X509Certificate API
...
Introduces the `crypto.X509Certificate` object.
```js
const { X509Certificate } = require('crypto');
const x509 = new X509Certificate('{pem encoded cert}');
console.log(x509.subject);
```
Fixes: https://github.com/nodejs/node/issues/29181
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36804
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Filip Skokan <panva.ip@gmail.com >
2021-01-09 12:04:23 -08:00
James M Snell
324a6c235a
async_hooks: add thisArg to AsyncResource.bind
...
Semver-major
Support setting the `thisArg` for AsyncResource.bind and
AsyncResource.prototype.bind. If `thisArg` is not set,
then `this` will be set to the `AsyncResource` instance.
Fixes: https://github.com/nodejs/node/issues/36051
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/36782
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2021-01-09 11:22:35 -08:00
Isaac Levy
7dea99b1e6
docs: add references to punycode.md
...
Add references to related `url` functions in punycode.md. These provide
guidance to users who may be investigating the punycode module for URL
encoding.
PR-URL: https://github.com/nodejs/node/pull/36761
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com >
Reviewed-By: Yash Ladha <yash@yashladha.in >
Reviewed-By: James M Snell <jasnell@gmail.com >
2021-01-09 08:56:59 -08:00