Skip to content

v15.8.0 release proposal #37183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 82 commits into from
Feb 2, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
53a0bdf
crypto: experimental (Ed/X)25519/(Ed/X)448 support
jasnell Jan 10, 2021
c4cab1f
lib: refactor to use validateBoolean
Lxxyx Jan 18, 2021
96cec1e
benchmark: improve explanations in R script
tniessen Jan 19, 2021
0129a79
fs: add explicit note about undefined path when recursive
eps1lon Jan 20, 2021
56377d6
lib: support returning Safe collections from C++
ExE-Boss Jan 17, 2021
97fc7d8
fs: refactor to remove redundant validation
RaisinTen Jan 18, 2021
a29da64
lib: refactor to use validateNumber
Lxxyx Jan 19, 2021
d76400a
lib: refactor to use validateString
Lxxyx Jan 20, 2021
7b78c67
child_process: allow promisified exec to be cancel
metcoder95 Jul 7, 2020
4e757ea
readline: add support for the AbortController to the question method
mattiasrunge May 31, 2020
b533485
quic: remove duplicate checks
Lxxyx Jan 21, 2021
ab64d74
crypto: throw error on invalid object in diffieHellman()
Lxxyx Jan 21, 2021
36930e4
test: test mode passed as an options object in mkdir/mkdirSync
RaisinTen Jan 20, 2021
36cc8df
test: log error in test-fs-realpath-pipe
joyeecheung Jan 18, 2021
fef6ac7
doc: add missing ARIA label for button
Trott Jan 23, 2021
de6dca1
test: improve coverage of `SourceTextModule` getters
juanarbol Jan 21, 2021
4a1fc42
lib: refactor to use optional chaining in internal/options.js
RaisinTen Jan 15, 2021
175f6f0
fs: use throwIfNoEntry option on statSync calls
aduh95 Jan 17, 2021
2135618
test: increase timeout on ASAN Action
aduh95 Jan 20, 2021
2cfe795
doc: list Unsupported Directory Import resolve err
guybedford Jan 23, 2021
7512429
readline: add history event and option to set initial history
mattiasrunge May 30, 2020
3722c15
doc: add missing comma in tty
ma11hew28 Jan 23, 2021
94204f7
test: process.nextTick for before exit
ttzztztz Jan 21, 2021
4086b23
test: increase fs promise coverage
emilsivervik Jan 6, 2021
a7b6464
doc: `EventTarget` and `Event` are available to user code since v15.0.0
ExE-Boss Jan 25, 2021
ec22756
benchmark: make output RFC 4180 compliant
tniessen Jan 23, 2021
81e9acf
src: rename crypto_ecdh.(h|cc) to crypto_ec.(h|cc)
tniessen Jan 24, 2021
c79688f
doc: improve AsyncLocalStorage introduction
brillout Jan 15, 2021
2c7ad38
dgram: support AbortSignal in createSocket
Jan 22, 2021
074641c
test: improve assertion message for test-vm-memleak
Trott Jan 23, 2021
7ddfa81
doc: add tooltip for light/dark mode toggle
Trott Jan 24, 2021
b7c3f99
doc: add Zijian Liu to collaborators
Lxxyx Jan 26, 2021
110063d
crypto: add generatePrime/checkPrime
jasnell Jan 19, 2021
9c69ca5
test,doc,lib: adjust object literal newlines for lint rule
Trott Jan 23, 2021
d2d6121
tools: enable object-curly-newline in ESLint rules
Trott Jan 23, 2021
ef2b250
test: increase coverage for assert/calltracker
Lxxyx Jan 2, 2021
55407b8
test: update to improve terminology
mhdawson Jan 20, 2021
e4b88b5
buffer: avoid creating the backing store in the thread
jasnell Jan 24, 2021
34adf7f
lib: refactor to avoid unsafe array iteration
aduh95 Jan 23, 2021
1710016
doc: mention adding Fixes to collaborator onboarding PR
joyeecheung Jan 27, 2021
cb3b0ec
crypto: generateKeyPair('ec') should not support NODE-ED* and NODE-X*
panva Jan 25, 2021
c4193ba
crypto: fix encrypted private -> public import
tniessen Jan 24, 2021
da07eb6
test: increase read file abort coverage
shootermv Jan 1, 2021
5227c5e
lib: refactor to use validateFunction
Lxxyx Jan 24, 2021
10da5c1
test: skip tests consistently in parallel.status
Trott Jan 23, 2021
db38cf2
test: increase inspect coverage
emilsivervik Jan 3, 2021
6f54a14
fs: add validatePosition and use in read and readSync
RaisinTen Jan 24, 2021
dcd34b0
benchmark: add benchmark for NODE_V8_COVERAGE
Jan 22, 2021
67b58f6
lib: refactor to use validateObject
Lxxyx Jan 21, 2021
ed58065
lib: add `bound apply` variants of varargs `primordials`
ExE-Boss Jan 20, 2021
1f819ec
test: add tests for `bound apply` variants of varargs `primordials`
ExE-Boss Jan 22, 2021
ddee21b
doc: update BUILDING.md previous versions links
richardlau Jan 26, 2021
fe9f4fd
tools: remove commented code from stability.js
cjihrig Jan 27, 2021
3d64d2b
readline: check for null input in question()
cjihrig Jan 27, 2021
1714998
readline: replace _questionCancel with a symbol
cjihrig Jan 27, 2021
3187845
util: add internal createDeferredPromise()
cjihrig Jan 27, 2021
9c831c0
src: fix dead code in RandomPrimeTraits
tniessen Jan 26, 2021
0346043
deps: upgrade npm to 7.5.0
ruyadorno Jan 28, 2021
b79b82d
doc: update Buffer encoding option count
davecardwell Jan 27, 2021
02f1d2f
esm: deprecate legacy main lookup for modules
guybedford Jan 13, 2021
52ce1d5
Revert "deps: update patch and docs for openssl update"
jasnell Jan 25, 2021
6756130
Revert "deps: re-enable OPENSSL_NO_QUIC guards"
jasnell Jan 25, 2021
f74b376
Revert "deps: various quic patches from akamai/openssl"
jasnell Jan 25, 2021
11dd267
quic: remove quic
jasnell Jan 25, 2021
9d6fd45
deps: update openssl config
jasnell Jan 25, 2021
ae42658
doc: add missing deprecation code
cjihrig Jan 30, 2021
181719d
esm: update to correct deprecation code
cjihrig Jan 30, 2021
9b9a180
doc: remove TOC summary for pages with no TOC
Trott Jan 24, 2021
e55d3d0
doc: add example for test structure
wjabbour Sep 4, 2020
e712650
doc: clarify repl exception conditions
Trott Jan 30, 2021
7196ac1
http: refactor to avoid unsafe array iteration
aduh95 Jan 29, 2021
a778081
doc: clarify ERR_INVALID_REPL_INPUT usage
Trott Jan 30, 2021
8cecce3
doc: fix markup and alphabetization in errors.md
Trott Jan 30, 2021
ad12fef
fs: only use Buffer.concat in promises.readFile when necessary
addaleax Jan 29, 2021
6940252
fs: read full size if known in promises.readFile
addaleax Jan 29, 2021
634bedc
doc,test: fix prime generation description
tniessen Jan 26, 2021
602aaf2
async_hooks: refactor to avoid unsafe array iteration
aduh95 Jan 29, 2021
3c90771
doc: fix list format in Developer's Certificate of Origin
NegiAkash890 Jan 30, 2021
a26dfb3
src: expose BaseObject::kInternalFieldCount in post-mortem metadata
joyeecheung Jan 28, 2021
4551d14
deps: upgrade npm to 7.5.1
ruyadorno Feb 1, 2021
47bfde0
doc: fix color contrast on <kbd> elements
aduh95 Feb 2, 2021
bc1c428
2021-02-02, Version 15.8.0 (Current)
targos Feb 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
crypto: throw error on invalid object in diffieHellman()
PR-URL: #37016
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
Lxxyx authored and targos committed Feb 2, 2021
commit ab64d74791b043bfafab5f6693fc3f57fbc7ec20
3 changes: 1 addition & 2 deletions lib/internal/crypto/diffiehellman.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ function getFormat(format) {
const dhEnabledKeyTypes = new SafeSet(['dh', 'ec', 'x448', 'x25519']);

function diffieHellman(options) {
if (typeof options !== 'object')
throw new ERR_INVALID_ARG_TYPE('options', 'object', options);
validateObject(options, 'options');

const { privateKey, publicKey } = options;
if (!(privateKey instanceof KeyObject))
Expand Down
14 changes: 14 additions & 0 deletions test/parallel/test-crypto-dh-stateless.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ assert.throws(() => crypto.diffieHellman(), {
message: 'The "options" argument must be of type object. Received undefined'
});

assert.throws(() => crypto.diffieHellman(null), {
name: 'TypeError',
code: 'ERR_INVALID_ARG_TYPE',
message: 'The "options" argument must be of type object. Received null'
});

assert.throws(() => crypto.diffieHellman([]), {
name: 'TypeError',
code: 'ERR_INVALID_ARG_TYPE',
message:
'The "options" argument must be of type object. ' +
'Received an instance of Array',
});

function test({ publicKey: alicePublicKey, privateKey: alicePrivateKey },
{ publicKey: bobPublicKey, privateKey: bobPrivateKey },
expectedValue) {
Expand Down