Skip to content

Commit 6f4c8dc

Browse files
Merge pull request #1005 from nodejs/main
Create a new pull request by comparing changes across two branches
2 parents 854385d + 014dad5 commit 6f4c8dc

File tree

621 files changed

+11255
-10623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

621 files changed

+11255
-10623
lines changed

.github/label-pr-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ subSystemLabels:
3333
/^src\/quic\/*/: c++, quic
3434
/^src\/node_bob*/: c++, quic
3535
/^src\/node_sea/: single-executable
36+
/^src\/node_sqlite.*/: c++, sqlite
3637

3738
# Properly label changes to V8 inspector integration-related files
3839
/^src\/inspector_/: c++, inspector, needs-ci

.github/workflows/test-asan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ permissions:
3838

3939
jobs:
4040
test-asan:
41-
if: github.event.pull_request.draft == false
41+
if: false # Temporarily disabled. References: https://github.com/nodejs/node/pull/52374, https://github.com/nodejs/node/pull/53651#issuecomment-2198510810
4242
runs-on: ubuntu-20.04
4343
env:
4444
CC: sccache clang

.github/workflows/tools.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ on:
3131
- lint-md-dependencies
3232
- llhttp
3333
- minimatch
34+
- nbytes
3435
- nghttp2
3536
- nghttp3
3637
- ngtcp2
@@ -220,6 +221,14 @@ jobs:
220221
cat temp-output
221222
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
222223
rm temp-output
224+
- id: nbytes
225+
subsystem: deps
226+
label: dependencies
227+
run: |
228+
./tools/dep_updaters/update-nbytes.sh > temp-output
229+
cat temp-output
230+
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
231+
rm temp-output
223232
- id: nghttp2
224233
subsystem: deps
225234
label: dependencies

.mailmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ xiaoyu <[email protected]>
586586
587587
588588
589-
Yagiz Nizipli <yagiz[email protected]> <yagiz@nizipli.com>
589+
Yagiz Nizipli <yagiz@nizipli.com> <yagiz.nizipli@sentry.io>
590590
591591
592592

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ release.
3838
</tr>
3939
<tr>
4040
<td valign="top">
41-
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.4.1">22.4.1</a></b><br/>
41+
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.5.0">22.5.0</a></b><br/>
42+
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.1">22.4.1</a><br/>
4243
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.0">22.4.0</a><br/>
4344
<a href="doc/changelogs/CHANGELOG_V22.md#22.3.0">22.3.0</a><br/>
4445
<a href="doc/changelogs/CHANGELOG_V22.md#22.2.0">22.2.0</a><br/>

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,3 +2378,28 @@ The externally maintained libraries used by Node.js are:
23782378
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23792379
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23802380
"""
2381+
2382+
- on-exit-leak-free, located at lib/internal/process/finalization, is licensed as follows:
2383+
"""
2384+
MIT License
2385+
2386+
Copyright (c) 2021 Matteo Collina
2387+
2388+
Permission is hereby granted, free of charge, to any person obtaining a copy
2389+
of this software and associated documentation files (the "Software"), to deal
2390+
in the Software without restriction, including without limitation the rights
2391+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2392+
copies of the Software, and to permit persons to whom the Software is
2393+
furnished to do so, subject to the following conditions:
2394+
2395+
The above copyright notice and this permission notice shall be included in all
2396+
copies or substantial portions of the Software.
2397+
2398+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2399+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2400+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2401+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2402+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2403+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2404+
SOFTWARE.
2405+
"""

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ else
10031003
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)
10041004
endif
10051005
BINARYTAR=$(BINARYNAME).tar
1006-
# OSX doesn't have xz installed by default, http://macpkg.sourceforge.net/
1006+
# macOS doesn't have xz installed by default, http://macpkg.sourceforge.net/
10071007
HAS_XZ ?= $(shell command -v xz > /dev/null 2>&1; [ $$? -eq 0 ] && echo 1 || echo 0)
10081008
# Supply SKIP_XZ=1 to explicitly skip .tar.xz creation
10091009
SKIP_XZ ?= 0

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,15 @@ For information about the governance of the Node.js project, see
164164

165165
* [aduh95](https://github.com/aduh95) -
166166
**Antoine du Hamel** <<[email protected]>> (he/him)
167+
* [anonrig](https://github.com/anonrig) -
168+
**Yagiz Nizipli** <<[email protected]>> (he/him)
167169
* [apapirovski](https://github.com/apapirovski) -
168170
**Anatoli Papirovski** <<[email protected]>> (he/him)
169171
* [benjamingr](https://github.com/benjamingr) -
170172
**Benjamin Gruenbaum** <<[email protected]>>
171173
* [BridgeAR](https://github.com/BridgeAR) -
172174
**Ruben Bridgewater** <<[email protected]>> (he/him)
173-
* [GeoffreyBooth](https://github.com/geoffreybooth) -
175+
* [GeoffreyBooth](https://github.com/GeoffreyBooth) -
174176
**Geoffrey Booth** <<[email protected]>> (he/him)
175177
* [gireeshpunathil](https://github.com/gireeshpunathil) -
176178
**Gireesh Punathil** <<[email protected]>> (he/him)
@@ -205,8 +207,6 @@ For information about the governance of the Node.js project, see
205207

206208
#### TSC regular members
207209

208-
* [anonrig](https://github.com/anonrig) -
209-
**Yagiz Nizipli** <<[email protected]>> (he/him)
210210
* [BethGriggs](https://github.com/BethGriggs) -
211211
**Beth Griggs** <<[email protected]>> (she/her)
212212
* [bnoordhuis](https://github.com/bnoordhuis) -
@@ -292,7 +292,7 @@ For information about the governance of the Node.js project, see
292292
* [aduh95](https://github.com/aduh95) -
293293
**Antoine du Hamel** <<[email protected]>> (he/him)
294294
* [anonrig](https://github.com/anonrig) -
295-
**Yagiz Nizipli** <<yagiz[email protected]>> (he/him)
295+
**Yagiz Nizipli** <<yagiz@nizipli.com>> (he/him)
296296
* [apapirovski](https://github.com/apapirovski) -
297297
**Anatoli Papirovski** <<[email protected]>> (he/him)
298298
* [atlowChemi](https://github.com/atlowChemi) -
@@ -329,7 +329,7 @@ For information about the governance of the Node.js project, see
329329
**Deokjin Kim** <<[email protected]>> (he/him)
330330
* [edsadr](https://github.com/edsadr) -
331331
**Adrian Estrada** <<[email protected]>> (he/him)
332-
* [erickwendel](https://github.com/erickwendel) -
332+
* [ErickWendel](https://github.com/ErickWendel) -
333333
**Erick Wendel** <<[email protected]>> (he/him)
334334
* [Ethan-Arrowood](https://github.com/Ethan-Arrowood) -
335335
**Ethan Arrowood** <<[email protected]>> (he/him)
@@ -343,7 +343,7 @@ For information about the governance of the Node.js project, see
343343
**Gabriel Schulhof** <<[email protected]>>
344344
* [gengjiawen](https://github.com/gengjiawen) -
345345
**Jiawen Geng** <<[email protected]>>
346-
* [GeoffreyBooth](https://github.com/geoffreybooth) -
346+
* [GeoffreyBooth](https://github.com/GeoffreyBooth) -
347347
**Geoffrey Booth** <<[email protected]>> (he/him)
348348
* [gireeshpunathil](https://github.com/gireeshpunathil) -
349349
**Gireesh Punathil** <<[email protected]>> (he/him)
@@ -379,7 +379,7 @@ For information about the governance of the Node.js project, see
379379
**Chengzhong Wu** <<[email protected]>> (he/him)
380380
* [lemire](https://github.com/lemire) -
381381
**Daniel Lemire** <<[email protected]>>
382-
* [linkgoron](https://github.com/linkgoron) -
382+
* [Linkgoron](https://github.com/Linkgoron) -
383383
**Nitzan Uziely** <<[email protected]>>
384384
* [LiviaMedeiros](https://github.com/LiviaMedeiros) -
385385
**LiviaMedeiros** <<[email protected]>>
@@ -405,8 +405,6 @@ For information about the governance of the Node.js project, see
405405
**Moshe Atlow** <<[email protected]>> (he/him)
406406
* [MrJithil](https://github.com/MrJithil) -
407407
**Jithil P Ponnan** <<[email protected]>> (he/him)
408-
* [MylesBorins](https://github.com/MylesBorins) -
409-
**Myles Borins** <<[email protected]>> (he/him)
410408
* [ovflowd](https://github.com/ovflowd) -
411409
**Claudio Wunder** <<[email protected]>> (he/they)
412410
* [panva](https://github.com/panva) -
@@ -445,7 +443,7 @@ For information about the governance of the Node.js project, see
445443
**Trivikram Kamat** <<[email protected]>>
446444
* [Trott](https://github.com/Trott) -
447445
**Rich Trott** <<[email protected]>> (he/him)
448-
* [UlisesGascon](https://github.com/ulisesgascon) -
446+
* [UlisesGascon](https://github.com/UlisesGascon) -
449447
**Ulises Gascón** <<[email protected]>> (he/him)
450448
* [vmoroz](https://github.com/vmoroz) -
451449
**Vladimir Morozov** <<[email protected]>> (he/him)
@@ -609,6 +607,8 @@ For information about the governance of the Node.js project, see
609607
**Chen Gang** <<[email protected]>>
610608
* [mscdex](https://github.com/mscdex) -
611609
**Brian White** <<[email protected]>>
610+
* [MylesBorins](https://github.com/MylesBorins) -
611+
**Myles Borins** <<[email protected]>> (he/him)
612612
* [not-an-aardvark](https://github.com/not-an-aardvark) -
613613
**Teddy Katz** <<[email protected]>> (he/him)
614614
* [ofrobots](https://github.com/ofrobots) -

benchmark/esm/require-esm.js

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
'use strict';
2+
3+
const common = require('../common');
4+
const fs = require('fs');
5+
const tmpdir = require('../../test/common/tmpdir');
6+
const path = require('path');
7+
const assert = require('assert');
8+
9+
const bench = common.createBenchmark(main, {
10+
type: ['all', 'access', 'load'],
11+
exports: ['default', 'named'],
12+
n: [1000],
13+
}, {
14+
flags: ['--experimental-require-module', '--no-warnings'],
15+
});
16+
17+
function prepare(count, useDefault) {
18+
tmpdir.refresh();
19+
const dir = tmpdir.resolve('modules');
20+
fs.mkdirSync(dir, { recursive: true });
21+
let mainSource = '';
22+
let useSource = 'exports.access = function() { return 0';
23+
for (let i = 0; i < count; ++i) {
24+
let modSource = `const value${i} = 1;\n`;
25+
if (useDefault) {
26+
modSource += `export default { value${i} }\n`;
27+
} else {
28+
modSource += `export { value${i} };\n`;
29+
}
30+
const filename = `mod${i}.mjs`;
31+
fs.writeFileSync(
32+
path.resolve(dir, filename),
33+
modSource,
34+
'utf8',
35+
);
36+
mainSource += `const mod${i} = require('./modules/${filename}');\n`;
37+
if (useDefault) {
38+
useSource += ` + mod${i}.default.value${i}`;
39+
} else {
40+
useSource += ` + mod${i}.value${i}`;
41+
}
42+
}
43+
useSource += '; };\n';
44+
const script = tmpdir.resolve('main.js');
45+
fs.writeFileSync(script, mainSource + useSource, 'utf8');
46+
return script;
47+
}
48+
49+
function main({ n, exports, type }) {
50+
const script = prepare(n, exports === 'default');
51+
switch (type) {
52+
case 'all': {
53+
bench.start();
54+
const result = require(script).access();
55+
bench.end(n);
56+
assert.strictEqual(result, n);
57+
break;
58+
}
59+
case 'access': {
60+
const { access } = require(script);
61+
bench.start();
62+
let result = access();
63+
for (let i = 0; i < 99; ++i) {
64+
result = access();
65+
}
66+
bench.end(n * 100);
67+
assert.strictEqual(result, n);
68+
break;
69+
}
70+
case 'load': {
71+
bench.start();
72+
const { access } = require(script);
73+
bench.end(n);
74+
const result = access();
75+
assert.strictEqual(result, n);
76+
break;
77+
}
78+
}
79+
}

configure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@
164164
dest="fully_static",
165165
default=None,
166166
help="Generate an executable without external dynamic libraries. This "
167-
"will not work on OSX when using the default compilation environment")
167+
"will not work on macOS when using the default compilation environment")
168168

169169
parser.add_argument("--partly-static",
170170
action="store_true",
171171
dest="partly_static",
172172
default=None,
173173
help="Generate an executable with libgcc and libstdc++ libraries. This "
174-
"will not work on OSX when using the default compilation environment")
174+
"will not work on macOS when using the default compilation environment")
175175

176176
parser.add_argument("--enable-vtune-profiling",
177177
action="store_true",
@@ -1744,7 +1744,7 @@ def without_ssl_error(option):
17441744
def configure_static(o):
17451745
if options.fully_static or options.partly_static:
17461746
if flavor == 'mac':
1747-
warn("Generation of static executable will not work on OSX "
1747+
warn("Generation of static executable will not work on macOS "
17481748
"when using the default compilation environment")
17491749
return
17501750

0 commit comments

Comments
 (0)