Skip to content

Commit 7362f32

Browse files
committed
Merge branch 'node-v20.10.0-merge' into node-v20.x-nsolid-v5.x
2 parents f6fd580 + d8dbacc commit 7362f32

File tree

2,885 files changed

+81734
-66025
lines changed

Some content is hidden

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

2,885 files changed

+81734
-66025
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ tools/github_reporter
99
benchmark/tmp
1010
benchmark/fixtures
1111
doc/**/*.js
12+
doc/changelogs/CHANGELOG_v1*.md
13+
!doc/changelogs/CHANGELOG_v18.md
1214
!doc/api_assets/*.js
1315
!.eslintrc.js

.eslintrc.js

+13-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const hacks = [
1818
'eslint-plugin-jsdoc',
1919
'eslint-plugin-markdown',
2020
'@babel/eslint-parser',
21-
'@babel/plugin-syntax-import-assertions',
21+
'@babel/plugin-syntax-import-attributes',
2222
];
2323
Module._findPath = (request, paths, isMain) => {
2424
const r = ModuleFindPath(request, paths, isMain);
@@ -44,7 +44,7 @@ module.exports = {
4444
parserOptions: {
4545
babelOptions: {
4646
plugins: [
47-
Module._findPath('@babel/plugin-syntax-import-assertions'),
47+
Module._findPath('@babel/plugin-syntax-import-attributes'),
4848
],
4949
},
5050
requireConfigFile: false,
@@ -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,14 @@ module.exports = {
111111
},
112112
] },
113113
},
114+
{
115+
files: [
116+
'lib/internal/modules/**/*.js',
117+
],
118+
rules: {
119+
'curly': 'error',
120+
},
121+
},
114122
{
115123
files: [
116124
'lib/internal/test_runner/**/*.js',
@@ -248,7 +256,6 @@ module.exports = {
248256
message: 'Use `globalThis.crypto`.',
249257
},
250258
],
251-
'no-return-await': 'error',
252259
'no-self-compare': 'error',
253260
'no-tabs': 'error',
254261
'no-template-curly-in-string': 'error',
@@ -352,5 +359,6 @@ module.exports = {
352359
WritableStream: 'readable',
353360
WritableStreamDefaultWriter: 'readable',
354361
WritableStreamDefaultController: 'readable',
362+
WebSocket: 'readable',
355363
},
356364
};

.github/CODEOWNERS

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
/LICENSE @nodejs/tsc
2121
/onboarding.md @nodejs/tsc
2222

23-
# website
24-
/doc/api_assets @nodejs/website
25-
/doc/template.html @nodejs/website
26-
/tools/doc @nodejs/website
23+
# nodejs.org website
24+
/doc/api_assets @nodejs/nodejs-website
25+
/doc/template.html @nodejs/nodejs-website
26+
/tools/doc @nodejs/web-infra
2727

2828
# streams
2929

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
if: needs.get-prs-for-ci.outputs.numbers != ''
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
49+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
5050
with:
5151
persist-credentials: false
5252

.github/workflows/build-tarball.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: github.event.pull_request.draft == false
4040
runs-on: ubuntu-latest
4141
steps:
42-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
42+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4343
with:
4444
persist-credentials: false
4545
- name: Set up Python ${{ env.PYTHON_VERSION }}
@@ -57,15 +57,15 @@ jobs:
5757
mkdir tarballs
5858
mv *.tar.gz tarballs
5959
- name: Upload tarball artifact
60-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
60+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
6161
with:
6262
name: tarballs
6363
path: tarballs
6464
test-tarball-linux:
6565
needs: build-tarball
6666
runs-on: ubuntu-latest
6767
steps:
68-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
68+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
6969
with:
7070
persist-credentials: false
7171
- name: Set up Python ${{ env.PYTHON_VERSION }}

.github/workflows/build-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
fail-fast: false
3939
runs-on: ${{ matrix.windows }}
4040
steps:
41-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
41+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4242
with:
4343
persist-credentials: false
4444
- name: Set up Python ${{ env.PYTHON_VERSION }}

.github/workflows/commit-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: |
1818
echo "plusOne=$((${{ github.event.pull_request.commits }} + 1))" >> $GITHUB_OUTPUT
1919
echo "minusOne=$((${{ github.event.pull_request.commits }} - 1))" >> $GITHUB_OUTPUT
20-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
20+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2121
with:
2222
fetch-depth: ${{ steps.nb-of-commits.outputs.plusOne }}
2323
persist-credentials: false

.github/workflows/commit-queue.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
if: needs.get_mergeable_prs.outputs.numbers != ''
5959
runs-on: ubuntu-latest
6060
steps:
61-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
61+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
6262
with:
6363
# Needs the whole git history for ncu to work
6464
# See https://github.com/nodejs/node-core-utils/pull/486

.github/workflows/coverage-linux-without-intl.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.event.pull_request.draft == false
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
40+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4141
with:
4242
persist-credentials: false
4343
- name: Set up Python ${{ env.PYTHON_VERSION }}

.github/workflows/coverage-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.event.pull_request.draft == false
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
40+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4141
with:
4242
persist-credentials: false
4343
- name: Set up Python ${{ env.PYTHON_VERSION }}

.github/workflows/coverage-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: github.event.pull_request.draft == false
4040
runs-on: windows-2022
4141
steps:
42-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
42+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4343
with:
4444
persist-credentials: false
4545
- name: Set up Python ${{ env.PYTHON_VERSION }}

.github/workflows/daily-wpt-fyi.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
SHORT_SHA=$(node -p 'process.version.split(/-nightly\d{8}/)[1]')
5858
echo "NIGHTLY_REF=$(gh api /repos/nodejs/node/commits/$SHORT_SHA --jq '.sha')" >> $GITHUB_ENV
5959
- name: Checkout ${{ steps.setup-node.outputs.node-version }}
60-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
60+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
6161
with:
6262
persist-credentials: false
6363
ref: ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }}
@@ -73,7 +73,7 @@ jobs:
7373
run: rm -rf wpt
7474
working-directory: test/fixtures
7575
- name: Checkout epochs/daily WPT
76-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
76+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
7777
with:
7878
repository: web-platform-tests/wpt
7979
persist-credentials: false
@@ -98,7 +98,7 @@ jobs:
9898
run: rm -rf deps/undici
9999
- name: Checkout undici
100100
if: ${{ env.WPT_REPORT != '' }}
101-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
101+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
102102
with:
103103
repository: nodejs/undici
104104
persist-credentials: false
@@ -121,7 +121,7 @@ jobs:
121121
run: cp wptreport.json wptreport-${{ steps.setup-node.outputs.node-version }}.json
122122
- name: Upload GitHub Actions artifact
123123
if: ${{ env.WPT_REPORT != '' }}
124-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
124+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
125125
with:
126126
path: out/wpt/wptreport-*.json
127127
name: WPT Reports

.github/workflows/daily.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# not working on gcc-8 and gcc-9 see https://github.com/nodejs/node/issues/38570
1818
container: gcc:11
1919
steps:
20-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
20+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2121
with:
2222
persist-credentials: false
2323
- name: Use Node.js ${{ env.NODE_VERSION }}

.github/workflows/doc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if: github.event.pull_request.draft == false
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
27+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2828
with:
2929
persist-credentials: false
3030
- name: Use Node.js ${{ env.NODE_VERSION }}
@@ -35,7 +35,7 @@ jobs:
3535
run: npx envinfo
3636
- name: Build
3737
run: NODE=$(command -v node) make doc-only
38-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
38+
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
3939
with:
4040
name: docs
4141
path: out/doc

.github/workflows/find-inactive-collaborators.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
22+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2323
with:
2424
fetch-depth: 0
2525
persist-credentials: false
@@ -41,7 +41,10 @@ jobs:
4141
with:
4242
author: Node.js GitHub Bot <[email protected]>
4343
branch: actions/inactive-collaborators
44-
body: This PR was generated by tools/find-inactive-collaborators.yml.
44+
body: |
45+
This PR was generated by tools/find-inactive-collaborators.yml.
46+
47+
@nodejs/tsc Please follow up with the [offboarding tasks](https://github.com/nodejs/node/blob/main/doc/contributing/offboarding.md).
4548
commit-message: 'meta: move one or more collaborators to emeritus'
4649
labels: meta
4750
title: 'meta: move one or more collaborators to emeritus'

.github/workflows/find-inactive-tsc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020

2121
steps:
2222
- name: Checkout the repo
23-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
23+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2424
with:
2525
fetch-depth: 0
2626
persist-credentials: false
2727

2828
- name: Clone nodejs/TSC repository
29-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
29+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
3030
with:
3131
fetch-depth: 0
3232
path: .tmp

.github/workflows/license-builder.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: github.repository == 'nodejs/node'
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
20+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2121
with:
2222
persist-credentials: false
2323
- run: ./tools/license-builder.sh # Run the license builder tool

.github/workflows/linters.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: github.event.pull_request.draft == false
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
28+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2929
with:
3030
persist-credentials: false
3131
- name: Use Node.js ${{ env.NODE_VERSION }}
@@ -40,7 +40,7 @@ jobs:
4040
if: github.event.pull_request.draft == false
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
43+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4444
with:
4545
persist-credentials: false
4646
- name: Set up Python ${{ env.PYTHON_VERSION }}
@@ -55,7 +55,7 @@ jobs:
5555
if: ${{ github.event.pull_request && github.event.pull_request.draft == false && github.base_ref == github.event.repository.default_branch }}
5656
runs-on: ubuntu-latest
5757
steps:
58-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
58+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
5959
with:
6060
fetch-depth: 0
6161
persist-credentials: false
@@ -93,7 +93,7 @@ jobs:
9393
if: github.event.pull_request.draft == false
9494
runs-on: ubuntu-latest
9595
steps:
96-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
96+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
9797
with:
9898
persist-credentials: false
9999
- name: Use Node.js ${{ env.NODE_VERSION }}
@@ -118,7 +118,7 @@ jobs:
118118
if: github.event.pull_request.draft == false
119119
runs-on: ubuntu-latest
120120
steps:
121-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
121+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
122122
with:
123123
persist-credentials: false
124124
- name: Set up Python ${{ env.PYTHON_VERSION }}
@@ -136,7 +136,7 @@ jobs:
136136
if: github.event.pull_request.draft == false
137137
runs-on: ubuntu-latest
138138
steps:
139-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
139+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
140140
with:
141141
persist-credentials: false
142142
- run: shellcheck -V
@@ -146,7 +146,7 @@ jobs:
146146
if: ${{ github.event.pull_request }}
147147
runs-on: ubuntu-latest
148148
steps:
149-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
149+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
150150
with:
151151
fetch-depth: 2
152152
persist-credentials: false

.github/workflows/notify-on-push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
permissions:
3535
pull-requests: write
3636
steps:
37-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
37+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
3838
with:
3939
persist-credentials: false
4040
- name: Check commit message

.github/workflows/scorecard.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
3939

4040
- name: Checkout code
41-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
41+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4242
with:
4343
persist-credentials: false
4444

@@ -65,14 +65,14 @@ jobs:
6565
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6666
# format to the repository Actions tab.
6767
- name: Upload artifact
68-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
68+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
6969
with:
7070
name: SARIF file
7171
path: results.sarif
7272
retention-days: 5
7373

7474
# Upload the results to GitHub's code scanning dashboard.
7575
- name: Upload to code-scanning
76-
uses: github/codeql-action/upload-sarif@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
76+
uses: github/codeql-action/upload-sarif@ddccb873888234080b77e9bc2d4764d5ccaaccf9 # v2.21.9
7777
with:
7878
sarif_file: results.sarif

.github/workflows/test-asan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
CONFIG_FLAGS: --enable-asan
4848
ASAN: true
4949
steps:
50-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
50+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
5151
with:
5252
persist-credentials: false
5353
- name: Set up Python ${{ env.PYTHON_VERSION }}

.github/workflows/test-internet.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.repository == 'nodejs/node' || github.event_name != 'schedule'
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
43+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4444
with:
4545
persist-credentials: false
4646
- name: Set up Python ${{ env.PYTHON_VERSION }}

0 commit comments

Comments
 (0)