Skip to content

Commit 2165341

Browse files
authored
Merge branch 'nodejs:main' into diangogav/test-tls-check-server-identity-coverage
2 parents de261b9 + 0817b40 commit 2165341

35 files changed

+532
-181
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ release.
5353
<a href="doc/changelogs/CHANGELOG_V24.md#24.0.0">24.0.0</a><br/>
5454
</td>
5555
<td valign="top">
56-
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.19.0">22.19.0</a></b><br/>
56+
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.20.0">22.20.0</a></b><br/>
57+
<a href="doc/changelogs/CHANGELOG_V22.md#22.19.0">22.19.0</a><br/>
5758
<a href="doc/changelogs/CHANGELOG_V22.md#22.18.0">22.18.0</a><br/>
5859
<a href="doc/changelogs/CHANGELOG_V22.md#22.17.1">22.17.1</a><br/>
5960
<a href="doc/changelogs/CHANGELOG_V22.md#22.17.0">22.17.0</a><br/>

benchmark/dgram/offset-length.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ const common = require('../common.js');
55
const dgram = require('dgram');
66
const PORT = common.PORT;
77

8-
// `num` is the number of send requests to queue up each time.
8+
// `n` is the number of send requests to queue up each time.
99
// Keep it reasonably high (>10) otherwise you're benchmarking the speed of
1010
// event loop cycles more than anything else.
1111
const bench = common.createBenchmark(main, {
12-
len: [1, 64, 256, 1024],
13-
num: [100],
12+
len: [1, 512, 1024],
13+
n: [100],
1414
type: ['send', 'recv'],
1515
dur: [5],
1616
});
1717

18-
function main({ dur, len, num, type }) {
18+
function main({ dur, len, n, type }) {
1919
const chunk = Buffer.allocUnsafe(len);
2020
let sent = 0;
2121
let received = 0;
2222
const socket = dgram.createSocket('udp4');
2323

2424
function onsend() {
25-
if (sent++ % num === 0) {
25+
if (sent++ % n === 0) {
2626
// The setImmediate() is necessary to have event loop progress on OSes
2727
// that only perform synchronous I/O on nonblocking UDP sockets.
2828
setImmediate(() => {
29-
for (let i = 0; i < num; i++) {
29+
for (let i = 0; i < n; i++) {
3030
socket.send(chunk, 0, chunk.length, PORT, '127.0.0.1', onsend);
3131
}
3232
});

benchmark/dgram/single-buffer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ const PORT = common.PORT;
1010
// event loop cycles more than anything else.
1111
const bench = common.createBenchmark(main, {
1212
len: [1, 64, 256, 1024],
13-
num: [100],
13+
n: [100],
1414
type: ['send', 'recv'],
1515
dur: [5],
1616
});
1717

18-
function main({ dur, len, num, type }) {
18+
function main({ dur, len, num: n, type }) {
1919
const chunk = Buffer.allocUnsafe(len);
2020
let sent = 0;
2121
let received = 0;
2222
const socket = dgram.createSocket('udp4');
2323

2424
function onsend() {
25-
if (sent++ % num === 0) {
25+
if (sent++ % n === 0) {
2626
// The setImmediate() is necessary to have event loop progress on OSes
2727
// that only perform synchronous I/O on nonblocking UDP sockets.
2828
setImmediate(() => {
29-
for (let i = 0; i < num; i++) {
29+
for (let i = 0; i < n; i++) {
3030
socket.send(chunk, PORT, '127.0.0.1', onsend);
3131
}
3232
});

benchmark/permission/permission-startup.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const bench = common.createBenchmark(main, {
1919
],
2020
prefixPath: ['/tmp'],
2121
nFiles: [10, 100, 1000],
22-
count: [30],
22+
n: [30],
2323
});
2424

2525
function spawnProcess(script, bench, state) {
2626
const cmd = process.execPath || process.argv[0];
27-
while (state.finished < state.count) {
27+
while (state.finished < state.n) {
2828
const child = spawnSync(cmd, script);
2929
if (child.status !== 0) {
3030
console.log('---- STDOUT ----');
@@ -39,13 +39,13 @@ function spawnProcess(script, bench, state) {
3939
bench.start();
4040
}
4141

42-
if (state.finished === state.count) {
43-
bench.end(state.count);
42+
if (state.finished === state.n) {
43+
bench.end(state.n);
4444
}
4545
}
4646
}
4747

48-
function main({ count, script, nFiles, prefixPath }) {
48+
function main({ n, script, nFiles, prefixPath }) {
4949
script = path.resolve(__dirname, '../../', `${script}.js`);
5050
const optionsWithScript = [
5151
'--permission',
@@ -54,6 +54,6 @@ function main({ count, script, nFiles, prefixPath }) {
5454
script,
5555
];
5656
const warmup = 3;
57-
const state = { count, finished: -warmup };
57+
const state = { n, finished: -warmup };
5858
spawnProcess(optionsWithScript, bench, state);
5959
}

benchmark/util/priority-queue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
66
n: [1e5],
77
}, { flags: ['--expose-internals'] });
88

9-
function main({ n, type }) {
9+
function main({ n }) {
1010
const PriorityQueue = require('internal/priority_queue');
1111
const queue = new PriorityQueue();
1212
bench.start();

doc/api/cli.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,9 @@ added:
659659
- v23.7.0
660660
- v22.14.0
661661
changes:
662-
- version: v24.8.0
662+
- version:
663+
- v24.8.0
664+
- v22.20.0
663665
pr-url: https://github.com/nodejs/node/pull/59707
664666
description: The option is no longer experimental.
665667
-->
@@ -981,7 +983,9 @@ It is possible to run code containing inline types unless the
981983
### `--experimental-addon-modules`
982984

983985
<!-- YAML
984-
added: v23.6.0
986+
added:
987+
- v23.6.0
988+
- v22.20.0
985989
-->
986990

987991
> Stability: 1.0 - Early development

doc/api/deprecations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3403,7 +3403,9 @@ Convert them to primitive strings.
34033403

34043404
<!-- YAML
34053405
changes:
3406-
- version: v24.8.0
3406+
- version:
3407+
- v24.8.0
3408+
- v22.20.0
34073409
pr-url: https://github.com/nodejs/node/pull/59758
34083410
description: Deprecation revoked.
34093411
- version:

doc/api/diagnostics_channel.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ added:
374374
- v15.1.0
375375
- v14.17.0
376376
changes:
377-
- version: v24.8.0
377+
- version:
378+
- v24.8.0
379+
- v22.20.0
378380
pr-url: https://github.com/nodejs/node/pull/59758
379381
description: Deprecation revoked.
380382
- version:
@@ -419,7 +421,9 @@ added:
419421
- v15.1.0
420422
- v14.17.0
421423
changes:
422-
- version: v24.8.0
424+
- version:
425+
- v24.8.0
426+
- v22.20.0
423427
pr-url: https://github.com/nodejs/node/pull/59758
424428
description: Deprecation revoked.
425429
- version:

doc/api/errors.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,9 @@ size is reached when the context is created.
831831
### `ERR_CPU_PROFILE_ALREADY_STARTED`
832832

833833
<!-- YAML
834-
added: v24.8.0
834+
added:
835+
- v24.8.0
836+
- v22.20.0
835837
-->
836838

837839
The CPU profile with the given name is already started.
@@ -841,7 +843,9 @@ The CPU profile with the given name is already started.
841843
### `ERR_CPU_PROFILE_NOT_STARTED`
842844

843845
<!-- YAML
844-
added: v24.8.0
846+
added:
847+
- v24.8.0
848+
- v22.20.0
845849
-->
846850

847851
The CPU profile with the given name is not started.
@@ -851,7 +855,9 @@ The CPU profile with the given name is not started.
851855
### `ERR_CPU_PROFILE_TOO_MANY`
852856

853857
<!-- YAML
854-
added: v24.8.0
858+
added:
859+
- v24.8.0
860+
- v22.20.0
855861
-->
856862

857863
There are too many CPU profiles being collected.

doc/api/globals.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ with the [`--no-experimental-websocket`][] CLI flag.
330330
<!-- YAML
331331
added: v18.0.0
332332
changes:
333-
- version: v24.7.0
333+
- version:
334+
- v24.7.0
335+
- v22.20.0
334336
pr-url: https://github.com/nodejs/node/pull/59464
335337
description: format now accepts `brotli` value.
336338
- version:
@@ -448,14 +450,16 @@ A browser-compatible implementation of {CustomEvent}.
448450
<!-- YAML
449451
added: v18.0.0
450452
changes:
451-
- version: v24.7.0
452-
pr-url: https://github.com/nodejs/node/pull/59464
453-
description: format now accepts `brotli` value.
454-
- version:
453+
- version:
454+
- v24.7.0
455+
- v22.20.0
456+
pr-url: https://github.com/nodejs/node/pull/59464
457+
description: format now accepts `brotli` value.
458+
- version:
455459
- v23.11.0
456460
- v22.15.0
457-
pr-url: https://github.com/nodejs/node/pull/57510
458-
description: Marking the API stable.
461+
pr-url: https://github.com/nodejs/node/pull/57510
462+
description: Marking the API stable.
459463
-->
460464

461465
A browser-compatible implementation of [`DecompressionStream`][].

0 commit comments

Comments
 (0)