Skip to content

Commit e38084c

Browse files
authored
Merge branch 'main' into improve-webstreams-adapters-coverage
2 parents d0aeccf + 3922d18 commit e38084c

File tree

6,081 files changed

+743234
-679115
lines changed

Some content is hidden

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

6,081 files changed

+743234
-679115
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ test/fixtures
55
test/message/esm_display_syntax_error.mjs
66
tools/icu
77
tools/lint-md/lint-md.mjs
8+
tools/github_reporter
89
benchmark/tmp
910
benchmark/fixtures
1011
doc/**/*.js

.eslintrc.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ module.exports = {
5353
overrides: [
5454
{
5555
files: [
56-
'test/es-module/test-esm-type-flag.js',
57-
'test/es-module/test-esm-type-flag-alias.js',
5856
'*.mjs',
5957
'test/es-module/test-esm-example-loader.js',
58+
'test/es-module/test-esm-type-flag.js',
59+
'test/es-module/test-esm-type-flag-alias.js',
6060
],
6161
parserOptions: { sourceType: 'module' },
6262
},
@@ -111,6 +111,22 @@ module.exports = {
111111
},
112112
] },
113113
},
114+
{
115+
files: [
116+
'lib/internal/modules/**/*.js',
117+
],
118+
rules: {
119+
'curly': 'error',
120+
},
121+
},
122+
{
123+
files: [
124+
'lib/internal/test_runner/**/*.js',
125+
],
126+
rules: {
127+
'node-core/set-proto-to-null-in-object': 'error',
128+
},
129+
},
114130
],
115131
rules: {
116132
// ESLint built-in rules
@@ -306,6 +322,7 @@ module.exports = {
306322
'jsdoc/newline-after-description': 'off',
307323
'jsdoc/require-returns-description': 'off',
308324
'jsdoc/valid-types': 'off',
325+
'jsdoc/no-defaults': 'off',
309326
'jsdoc/no-undefined-types': 'off',
310327
'jsdoc/require-param': 'off',
311328
'jsdoc/check-tag-names': 'off',
@@ -327,6 +344,7 @@ module.exports = {
327344
DecompressionStream: 'readable',
328345
fetch: 'readable',
329346
FormData: 'readable',
347+
navigator: 'readable',
330348
ReadableStream: 'readable',
331349
ReadableStreamDefaultReader: 'readable',
332350
ReadableStreamBYOBReader: 'readable',

.github/CODEOWNERS

Lines changed: 48 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,60 @@
1111
# tsc
1212

1313
/.github/CODEOWNERS @nodejs/tsc
14-
/GOVERNANCE.md @nodejs/tsc
15-
/onboarding.md @nodejs/tsc
14+
/.github/PULL_REQUEST_TEMPLATE.md @nodejs/tsc
15+
/.github/ISSUE_TEMPLATE/* @nodejs/tsc
1616
/CODE_OF_CONDUCT.md @nodejs/tsc
1717
/CONTRIBUTING.md @nodejs/tsc
18-
/LICENSE @nodejs/tsc
1918
/doc/contributing/*.md @nodejs/tsc
19+
/GOVERNANCE.md @nodejs/tsc
20+
/LICENSE @nodejs/tsc
21+
/onboarding.md @nodejs/tsc
22+
23+
# website
24+
/doc/api_assets @nodejs/website
25+
/doc/template.html @nodejs/website
26+
/tools/doc @nodejs/website
2027

2128
# streams
2229

2330
/lib/_stream* @nodejs/streams
31+
/lib/internal/streams/* @nodejs/streams
2432
/lib/stream.js @nodejs/streams
2533
/lib/stream/* @nodejs/streams
26-
/lib/internal/streams/* @nodejs/streams
2734

2835
# net
2936

3037
/deps/ada @nodejs/url
3138
/deps/cares @nodejs/net
32-
/doc/api/dns.md @nodejs/net
3339
/doc/api/dgram.md @nodejs/net
40+
/doc/api/dns.md @nodejs/net
3441
/doc/api/net.md @nodejs/net
3542
/lib/dgram.js @nodejs/net
3643
/lib/dns.js @nodejs/net
37-
/lib/net.js @nodejs/net
38-
/lib/url.js @nodejs/url
3944
/lib/internal/dgram.js @nodejs/net
4045
/lib/internal/dns/* @nodejs/net
46+
/lib/internal/js_stream_socket.js @nodejs/net
4147
/lib/internal/net.js @nodejs/net
4248
/lib/internal/socket_list.js @nodejs/net
43-
/lib/internal/js_stream_socket.js @nodejs/net
4449
/lib/internal/url.js @nodejs/url
45-
/src/node_url.* @nodejs/url
50+
/lib/net.js @nodejs/net
51+
/lib/url.js @nodejs/url
4652
/src/cares_wrap.cc @nodejs/net
4753
/src/connect_wrap.* @nodejs/net
4854
/src/connection_wrap.* @nodejs/net
4955
/src/node_sockaddr* @nodejs/net
56+
/src/node_url.* @nodejs/url
5057
/src/tcp_wrap.* @nodejs/net
5158
/src/udp_wrap.* @nodejs/net
5259

5360
# tls/crypto
5461

62+
/lib/crypto.js @nodejs/crypto
5563
/lib/internal/crypto/* @nodejs/crypto
5664
/lib/internal/tls/* @nodejs/crypto @nodejs/net
57-
/lib/crypto.js @nodejs/crypto
5865
/lib/tls.js @nodejs/crypto @nodejs/net
59-
/src/node_crypto* @nodejs/crypto
6066
/src/crypto/* @nodejs/crypto
67+
/src/node_crypto* @nodejs/crypto
6168

6269
# http
6370

@@ -80,23 +87,23 @@
8087

8188
# modules, including loaders
8289

83-
/doc/api/esm.md @nodejs/modules @nodejs/loaders
84-
/doc/api/module.md @nodejs/modules @nodejs/loaders
85-
/doc/api/modules.md @nodejs/modules @nodejs/loaders
86-
/doc/api/packages.md @nodejs/modules @nodejs/loaders
87-
/lib/internal/bootstrap/realm.js @nodejs/modules @nodejs/loaders
88-
/lib/internal/modules/* @nodejs/modules @nodejs/loaders
89-
/lib/internal/process/esm_loader.js @nodejs/modules @nodejs/loaders
90-
/lib/internal/process/execution.js @nodejs/modules @nodejs/loaders
91-
/lib/module.js @nodejs/modules @nodejs/loaders
92-
/src/module_wrap* @nodejs/modules @nodejs/loaders @nodejs/vm
90+
/doc/api/esm.md @nodejs/loaders
91+
/doc/api/module.md @nodejs/loaders
92+
/doc/api/modules.md @nodejs/loaders
93+
/doc/api/packages.md @nodejs/loaders
94+
/lib/internal/bootstrap/realm.js @nodejs/loaders
95+
/lib/internal/modules/* @nodejs/loaders
96+
/lib/internal/process/esm_loader.js @nodejs/loaders
97+
/lib/internal/process/execution.js @nodejs/loaders
98+
/lib/module.js @nodejs/loaders
99+
/src/module_wrap* @nodejs/loaders @nodejs/vm
93100

94101
# Node-API
95102

96-
/src/node_api* @nodejs/node-api
97-
/src/js_native_api* @nodejs/node-api
98-
/doc/contributing/adding-new-napi-api.md @nodejs/node-api
99103
/doc/api/n-api.md @nodejs/node-api
104+
/doc/contributing/adding-new-napi-api.md @nodejs/node-api
105+
/src/js_native_api* @nodejs/node-api
106+
/src/node_api* @nodejs/node-api
100107

101108
# gyp
102109

@@ -110,19 +117,19 @@
110117
/doc/api/wasi.md @nodejs/wasi
111118
/lib/wasi.js @nodejs/wasi
112119
/src/node_wasi* @nodejs/wasi
113-
/test/wasi/ @nodejs/wasi
114120
/test/fixtures/wasi/ @nodejs/wasi
121+
/test/wasi/ @nodejs/wasi
115122

116123
# Startup
117124

118-
/test/parallel/test-snapshot-* @nodejs/startup
119-
/test/parallel/test-bootstrap-* @nodejs/startup
120125
/benchmark/misc/startup.js @nodejs/startup
121-
/src/node.cc @nodejs/startup
122-
/src/node_realm* @nodejs/startup @nodejs/realm
126+
/lib/internal/bootstrap/* @nodejs/startup
123127
/src/node_builtins* @nodejs/startup
128+
/src/node_realm* @nodejs/startup @nodejs/realm
124129
/src/node_snapshot* @nodejs/startup
125-
/lib/internal/bootstrap/* @nodejs/startup
130+
/src/node.cc @nodejs/startup
131+
/test/parallel/test-bootstrap-* @nodejs/startup
132+
/test/parallel/test-snapshot-* @nodejs/startup
126133
/tools/snapshot/* @nodejs/startup
127134

128135
# V8
@@ -137,11 +144,12 @@
137144

138145
# Test runner
139146

140-
/test/parallel/test-runner-* @nodejs/test_runner
141147
/doc/api/test.md @nodejs/test_runner
142-
/lib/test.js @nodejs/test_runner
143148
/lib/internal/main/test_runner.js @nodejs/test_runner
144149
/lib/internal/test_runner/* @nodejs/test_runner
150+
/lib/test.js @nodejs/test_runner
151+
/lib/test/reporters.js @nodejs/test_runner
152+
/test/parallel/test-runner-* @nodejs/test_runner
145153

146154
# Single Executable Applications
147155
/deps/postject @nodejs/single-executable
@@ -154,6 +162,13 @@
154162
/tools/dep_updaters/update-postject.sh @nodejs/single-executable
155163

156164
# Permission Model
157-
/src/permission/* @nodejs/security-wg
158165
/doc/api/permissions.md @nodejs/security-wg
159166
/lib/internal/process/permission.js @nodejs/security-wg
167+
/src/permission/* @nodejs/security-wg
168+
169+
# Dependency Update Tools
170+
171+
/.github/workflows/tools.yml @nodejs/security-wg
172+
/.github/workflows/update-openssl.yml @nodejs/security-wg
173+
/.github/workflows/update-v8.yml @nodejs/security-wg @nodejs/v8-update
174+
/tools/dep_updaters/* @nodejs/security-wg

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<!--
2-
Before submitting a pull request, please read
3-
https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md.
2+
Before submitting a pull request, please read:
43
5-
Commit message formatting guidelines:
6-
https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines
4+
- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
5+
- the commit message formatting guidelines at
6+
https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines
77
88
For code changes:
99
1. Include tests for any bug fixes or new features.
1010
2. Update documentation if relevant.
1111
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.
1212
13+
If you believe this PR should be highlighted in the Node.js CHANGELOG
14+
please add the `notable-change` label.
15+
1316
Developer's Certificate of Origin 1.1
1417
1518
By making a contribution to this project, I certify that:

.github/workflows/auto-start-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
--label 'request-ci' \
3535
--json 'number' \
3636
-t '{{ range . }}{{ .number }} {{ end }}' \
37-
--limit 100)
37+
--limit 5)
3838
echo "numbers=$numbers" >> $GITHUB_OUTPUT
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -46,19 +46,19 @@ jobs:
4646
if: needs.get-prs-for-ci.outputs.numbers != ''
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
49+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
5050
with:
5151
persist-credentials: false
5252

5353
- name: Install Node.js
54-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
54+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
5555
with:
5656
node-version: ${{ env.NODE_VERSION }}
5757

58-
- name: Install node-core-utils
59-
run: npm install -g node-core-utils
58+
- name: Install @node-core/utils
59+
run: npm install -g @node-core/utils
6060

61-
- name: Setup node-core-utils
61+
- name: Setup @node-core/utils
6262
run: |
6363
ncu-config set username ${{ secrets.JENKINS_USER }}
6464
ncu-config set token "${{ secrets.GH_USER_TOKEN }}"

.github/workflows/build-tarball.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
if: github.event.pull_request.draft == false
4040
runs-on: ubuntu-latest
4141
steps:
42-
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
42+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4343
with:
4444
persist-credentials: false
4545
- name: Set up Python ${{ env.PYTHON_VERSION }}
46-
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4.6.0
46+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
4747
with:
4848
python-version: ${{ env.PYTHON_VERSION }}
4949
- name: Environment Information
@@ -65,11 +65,11 @@ jobs:
6565
needs: build-tarball
6666
runs-on: ubuntu-latest
6767
steps:
68-
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
68+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6969
with:
7070
persist-credentials: false
7171
- name: Set up Python ${{ env.PYTHON_VERSION }}
72-
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4.6.0
72+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
7373
with:
7474
python-version: ${{ env.PYTHON_VERSION }}
7575
- name: Environment Information
@@ -94,4 +94,4 @@ jobs:
9494
- name: Test
9595
run: |
9696
cd $TAR_DIR
97-
make run-ci -j2 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"
97+
make run-ci -j2 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9"

.github/workflows/build-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838
fail-fast: false
3939
runs-on: ${{ matrix.windows }}
4040
steps:
41-
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
41+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4242
with:
4343
persist-credentials: false
4444
- name: Set up Python ${{ env.PYTHON_VERSION }}
45-
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4.6.0
45+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
4646
with:
4747
python-version: ${{ env.PYTHON_VERSION }}
4848
- name: Install deps

.github/workflows/close-stale-feature-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
close-issue-message: ${{ env.CLOSE_MESSAGE }}
4949
stale-issue-message: ${{ env.WARN_MESSAGE }}
5050
only-labels: feature request
51-
exempt-pr-labels: never-stale
51+
exempt-issue-labels: never-stale
5252
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
5353
operations-per-run: 500
5454
remove-stale-when-updated: true
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Close stale pull requests
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
endDate:
6+
description: stop processing PRs after this date
7+
required: false
8+
type: string
9+
10+
# yamllint disable rule:empty-lines
11+
env:
12+
CLOSE_MESSAGE: >
13+
This pull request was opened more than a year ago and there has
14+
been no activity in the last 6 months. We value your contribution
15+
but since it has not progressed in the last 6 months it is being
16+
closed. If you feel closing this pull request is not the right thing
17+
to do, please leave a comment.
18+
19+
WARN_MESSAGE: >
20+
This pull request was opened more than a year ago and there has
21+
been no activity in the last 5 months. We value your contribution
22+
but since it has not progressed in the last 5 months it is being
23+
marked stale and will be closed if there is no progress in the
24+
next month. If you feel that is not the right thing to do please
25+
comment on the pull request.
26+
# yamllint enable
27+
28+
permissions:
29+
contents: read
30+
31+
jobs:
32+
stale:
33+
permissions:
34+
pull-requests: write # for actions/stale to close stale PRs
35+
if: github.repository == 'nodejs/node'
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Set default end date which is 1 year ago
39+
run: echo "END_DATE=$(date --date='525600 minutes ago' --rfc-2822)" >> "$GITHUB_ENV"
40+
- name: if date set in event override the default end date
41+
env:
42+
END_DATE_INPUT_VALUE: ${{ github.event.inputs.endDate }}
43+
if: ${{ github.event.inputs.endDate != '' }}
44+
run: echo "END_DATE=$END_DATE_INPUT_VALUE" >> "$GITHUB_ENV"
45+
- uses: mhdawson/stale@453d6581568dc43dbe345757f24408d7b451c651 # PR to add support for endDate
46+
with:
47+
repo-token: ${{ secrets.GITHUB_TOKEN }}
48+
end-date: ${{ env.END_DATE }}
49+
days-before-issue-stale: -1
50+
days-before-issue-close: -1
51+
days-before-stale: 150
52+
days-before-close: 30
53+
stale-issue-label: stale
54+
close-issue-message: ${{ env.CLOSE_MESSAGE }}
55+
stale-issue-message: ${{ env.WARN_MESSAGE }}
56+
exempt-pr-labels: never-stale
57+
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
58+
operations-per-run: 500
59+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)