Skip to content

Commit 851e3e5

Browse files
Merge pull request #1020 from nodejs/main
Create a new pull request by comparing changes across two branches
2 parents 42c165f + 1399d4e commit 851e3e5

File tree

63 files changed

+1200
-208
lines changed

Some content is hidden

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

63 files changed

+1200
-208
lines changed

.github/ISSUE_TEMPLATE/1-bug-report.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ body:
1313
- type: input
1414
attributes:
1515
label: Version
16-
description: Output of `node -v`
16+
description: |
17+
Output of `node -v`.
18+
Please verify that you are reproducing the issue in a [currently-supported version](https://github.com/nodejs/Release/blob/HEAD/README.md#release-schedule) of Node.js.
1719
- type: textarea
1820
attributes:
1921
label: Platform

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Consult previous versions of this document for older versions of Node.js:
226226

227227
### Prerequisites
228228

229-
* Python support: the Node.js project supports Python >= 3.6 for building and testing.
229+
* [A supported version of Python][Python versions] for building and testing.
230230
* Memory: at least 8GB of RAM is typically required when compiling with 4 parallel jobs (e.g: `make -j4`)
231231

232232
### Unix and macOS

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ coverage-clean:
241241
$(RM) -r node_modules
242242
$(RM) -r gcovr
243243
$(RM) -r coverage/tmp
244-
$(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \
245-
-type f -exec $(RM) {} \;
244+
@if [ -d "out/Release/obj.target" ]; then \
245+
$(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \
246+
-type f -exec $(RM) {};\
247+
fi
246248

247249
.PHONY: coverage
248250
# Build and test with code coverage reporting. HTML coverage reports will be
@@ -266,7 +268,9 @@ coverage-build-js:
266268

267269
.PHONY: coverage-test
268270
coverage-test: coverage-build
269-
$(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {} \;
271+
@if [ -d "out/Release/obj.target" ]; then \
272+
$(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {}; \
273+
fi
270274
-NODE_V8_COVERAGE=coverage/tmp \
271275
TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS)
272276
$(MAKE) coverage-report-js

android-configure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
88
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
99
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
1010
command -v python3.8 >/dev/null && exec python3.8 "$0" "$@"
11-
command -v python3.7 >/dev/null && exec python3.7 "$0" "$@"
12-
command -v python3.6 >/dev/null && exec python3.6 "$0" "$@"
1311
command -v python3 >/dev/null && exec python3 "$0" "$@"
1412
exec python "$0" "$@"
1513
''' "$0" "$@"
@@ -23,7 +21,7 @@ except ImportError:
2321
from distutils.spawn import find_executable as which
2422

2523
print('Node.js android configure: Found Python {}.{}.{}...'.format(*sys.version_info))
26-
acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6))
24+
acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8))
2725
if sys.version_info[:2] in acceptable_pythons:
2826
import android_configure
2927
else:

benchmark/url/whatwg-url-to-and-from-path.js

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,46 @@ const common = require('../common.js');
33
const { fileURLToPath, pathToFileURL } = require('node:url');
44
const isWindows = process.platform === 'win32';
55

6-
const bench = common.createBenchmark(main, {
7-
input: isWindows ? [
8-
'file:///c/',
9-
] : [
10-
'file:///dev/null',
11-
'file:///dev/null?key=param&bool',
12-
'file:///dev/null?key=param&bool#hash',
13-
],
14-
method: isWindows ? [
15-
'fileURLToPath',
16-
] : [
17-
'fileURLToPath',
18-
'pathToFileURL',
19-
],
20-
n: [5e6],
21-
});
6+
const inputs = isWindows ? [
7+
'C:\\foo',
8+
'C:\\Program Files\\Music\\Web Sys\\main.html?REQUEST=RADIO',
9+
'\\\\nas\\My Docs\\File.doc',
10+
'\\\\?\\UNC\\server\\share\\folder\\file.txt',
11+
'file:///C:/foo',
12+
'file:///C:/dir/foo?query=1',
13+
'file:///C:/dir/foo#fragment',
14+
] : [
15+
'/dev/null',
16+
'/dev/null?key=param&bool',
17+
'/dev/null?key=param&bool#hash',
18+
'file:///dev/null',
19+
'file:///dev/null?key=param&bool',
20+
'file:///dev/null?key=param&bool#hash',
21+
];
2222

23-
function main({ n, input, method }) {
24-
method = method === 'fileURLOrPath' ? fileURLToPath : pathToFileURL;
23+
const bench = common.createBenchmark(
24+
main,
25+
{
26+
method: ['pathToFileURL', 'fileURLToPath'],
27+
input: Object.values(inputs),
28+
n: [5e6],
29+
},
30+
{
31+
combinationFilter: (p) => (
32+
(isWindows ?
33+
(!p.input.startsWith('file://') && p.method === 'pathToFileURL') :
34+
p.method === 'pathToFileURL'
35+
) ||
36+
(p.input.startsWith('file://') && p.method === 'fileURLToPath')
37+
),
38+
},
39+
);
40+
41+
function main({ method, input, n }) {
42+
const methodFunc = method === 'fileURLToPath' ? fileURLToPath : pathToFileURL;
2543
bench.start();
2644
for (let i = 0; i < n; i++) {
27-
method(input);
45+
methodFunc(input);
2846
}
2947
bench.end(n);
3048
}

configure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
1010
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
1111
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
1212
command -v python3.8 >/dev/null && exec python3.8 "$0" "$@"
13-
command -v python3.7 >/dev/null && exec python3.7 "$0" "$@"
14-
command -v python3.6 >/dev/null && exec python3.6 "$0" "$@"
1513
command -v python3 >/dev/null && exec python3 "$0" "$@"
1614
exec python "$0" "$@"
1715
''' "$0" "$@"
@@ -25,7 +23,7 @@ except ImportError:
2523
from distutils.spawn import find_executable as which
2624

2725
print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
28-
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6))
26+
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8))
2927
if sys.version_info[:2] in acceptable_pythons:
3028
import configure
3129
else:

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,7 @@ def make_bin_override():
21262126
if sys.platform == 'win32':
21272127
raise Exception('make_bin_override should not be called on win32.')
21282128
# If the system python is not the python we are running (which should be
2129-
# python 3), then create a directory with a symlink called `python` to our
2129+
# python 3.8+), then create a directory with a symlink called `python` to our
21302130
# sys.executable. This directory will be prefixed to the PATH, so that
21312131
# other tools that shell out to `python` will use the appropriate python
21322132

deps/amaro/dist/index.js

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/amaro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amaro",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "Node.js TypeScript wrapper",
55
"license": "MIT",
66
"type": "commonjs",

doc/api/cli.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ Use this flag to disable top-level await in REPL.
16531653
added: v22.0.0
16541654
-->
16551655

1656-
Use this flag to disable experimental [`WebSocket`][] support.
1656+
Disable exposition of [`WebSocket`][] on the global scope.
16571657

16581658
### `--no-extra-info-on-fatal-exception`
16591659

@@ -2218,6 +2218,17 @@ concurrently. If `--experimental-test-isolation` is set to `'none'`, this flag
22182218
is ignored and concurrency is one. Otherwise, concurrency defaults to
22192219
`os.availableParallelism() - 1`.
22202220

2221+
### `--test-coverage-branches=threshold`
2222+
2223+
<!-- YAML
2224+
added: REPLACEME
2225+
-->
2226+
2227+
> Stability: 1 - Experimental
2228+
2229+
Require a minimum percent of covered branches. If code coverage does not reach
2230+
the threshold specified, the process will exit with code `1`.
2231+
22212232
### `--test-coverage-exclude`
22222233

22232234
<!-- YAML
@@ -2235,6 +2246,17 @@ This option may be specified multiple times to exclude multiple glob patterns.
22352246
If both `--test-coverage-exclude` and `--test-coverage-include` are provided,
22362247
files must meet **both** criteria to be included in the coverage report.
22372248

2249+
### `--test-coverage-functions=threshold`
2250+
2251+
<!-- YAML
2252+
added: REPLACEME
2253+
-->
2254+
2255+
> Stability: 1 - Experimental
2256+
2257+
Require a minimum percent of covered functions. If code coverage does not reach
2258+
the threshold specified, the process will exit with code `1`.
2259+
22382260
### `--test-coverage-include`
22392261

22402262
<!-- YAML
@@ -2252,6 +2274,17 @@ This option may be specified multiple times to include multiple glob patterns.
22522274
If both `--test-coverage-exclude` and `--test-coverage-include` are provided,
22532275
files must meet **both** criteria to be included in the coverage report.
22542276

2277+
### `--test-coverage-lines=threshold`
2278+
2279+
<!-- YAML
2280+
added: REPLACEME
2281+
-->
2282+
2283+
> Stability: 1 - Experimental
2284+
2285+
Require a minimum percent of covered lines. If code coverage does not reach
2286+
the threshold specified, the process will exit with code `1`.
2287+
22552288
### `--test-force-exit`
22562289

22572290
<!-- YAML
@@ -3017,8 +3050,11 @@ one is included in the list below.
30173050
* `--secure-heap-min`
30183051
* `--secure-heap`
30193052
* `--snapshot-blob`
3053+
* `--test-coverage-branches`
30203054
* `--test-coverage-exclude`
3055+
* `--test-coverage-functions`
30213056
* `--test-coverage-include`
3057+
* `--test-coverage-lines`
30223058
* `--test-name-pattern`
30233059
* `--test-only`
30243060
* `--test-reporter-destination`

0 commit comments

Comments
 (0)