Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
da61e23
esm: add chaining to loaders
JakobJingleheimer May 4, 2022
254efd9
esm: fix http(s) import via custom loader
JakobJingleheimer May 25, 2022
50d64ed
esm: refactor responseURL handling
guybedford May 21, 2022
10bcad5
esm: fix chain advances when loader calls next<HookName> multiple times
JakobJingleheimer Jun 5, 2022
06c367e
tools: update lint-md-dependencies to rollup@2.75.6
nodejs-github-bot Jun 16, 2022
cbaf120
doc: add code examples to node test runner
manekinekko Jun 9, 2022
429e0f4
doc: update main branch name in doc/contributing/*
lpinca Jun 16, 2022
e0fedcf
doc: fixup after rename of primary nodejs branch
mhdawson Jun 16, 2022
3ee0bb8
crypto: fix webcrypto deriveBits for non-byte lengths
panva Jun 14, 2022
018f61c
crypto: fix webcrypto AES-KW keys accepting encrypt/decrypt usages
panva Jun 14, 2022
dedb22e
crypto: fix webcrypto RSA generateKey() use of publicExponent
panva Jun 14, 2022
64a9dd7
crypto: fix webcrypto digest() invalid algorithm
panva Jun 14, 2022
679f191
crypto: fix webcrypto generateKey() with empty usages
panva Jun 14, 2022
739d3a3
doc: update main branch name in onboarding.md
F3n67u Jun 16, 2022
9d61da0
doc: update main branch name in release guide
richardlau Jun 16, 2022
06fe60a
doc: update default branch name in `Makefile`
F3n67u Jun 17, 2022
7f406fd
doc: remove branch name mention in `src/README.md`
F3n67u Jun 17, 2022
752380a
tools: update main branch name
F3n67u Jun 17, 2022
02009b7
perf_hooks: fix miscounted gc performance entry starttime (#43066)
meixg Jun 17, 2022
58646ea
loader: make `require.resolve` throw for unknown builtin modules
zhmushan Jun 17, 2022
3948acc
test: make node-api/test_buffer/test_finalizer not flaky
mcollina Jun 14, 2022
2b55b60
Revert "test: mark test_buffer/test_finalizer flaky"
mcollina Jun 15, 2022
66ee1f1
src: register StreamBase while registering LibuvStreamWrap
RaisinTen Jun 17, 2022
a23051a
doc: add new useful V8 option
JialuZhang-intel Jun 17, 2022
038decf
doc: update default branch name in `test/**`
lpinca Jun 17, 2022
a1f581a
util: fix TypeError of symbol in template literals
cola119 Apr 20, 2022
34e8331
v8: add v8.startupSnapshot utils
joyeecheung Apr 18, 2022
48ae00c
test: improve coverage for load hooks
aduh95 Jun 18, 2022
5c0a24d
test: mark test-worker-http2-stream-terminate flaky on Windows
RaisinTen Jun 18, 2022
df50131
fs: don't end fs promises on Isolate termination
santigimeno Jun 18, 2022
d71ba32
http: fix http agent keep alive
theanarkh Jun 18, 2022
0bca7b7
dns: export error code constants from `dns/promises`
F3n67u Jun 18, 2022
b111331
doc: add ESM version examples to events api doc
F3n67u May 28, 2022
3b0703f
test: rename `test-eventtarget-whatwg-*.js`
daeyeon Jun 18, 2022
3247280
doc: update v8 doc link to v8.dev
F3n67u Jun 19, 2022
dda64dd
test_runner: add Subtest to tap protocol output
MoLow Jun 19, 2022
b1a7798
test: skip test-net-connect-reset-until-connected on SmartOS
panva Jun 19, 2022
a9ab41c
test: refactor to top-level await
meekdenzo Jun 19, 2022
cad6d99
child_process: speed up 'advanced' ipc receiving
CaramelFur Apr 30, 2022
3ca9e65
child_process: improve ipc write performance
CaramelFur Jun 15, 2022
1022c0d
test: fix flaky test-https-server-close- tests
santigimeno Jun 19, 2022
59d4da6
tools: update eslint to 8.18.0
nodejs-github-bot Jun 19, 2022
b9204c9
meta: update AUTHORS
nodejs-github-bot Jun 19, 2022
0659d5e
src: change FormatSize to actually accept a size_t
tniessen Jun 20, 2022
4e0afa4
src: remove CopyBuffer
tniessen Jun 20, 2022
d0c78d2
doc: update link of `ICU data slicer`
F3n67u Jun 20, 2022
9bd13bb
crypto: update Wrapping and unwrapping keys webcrypto example
panva Jun 20, 2022
2149acd
dns: make promise API fully constructed from `lib/internal/dns/promises`
F3n67u Jun 20, 2022
c8aafe2
doc: fix Visual Studio 2019 download link
F3n67u Jun 21, 2022
462e526
doc,test: clarify timingSafeEqual semantics
tniessen Jun 21, 2022
70d297c
test: replace gc(true) with gc({ type: 'minor' })
tniessen Jun 21, 2022
eece34c
test: add WPT tests for dom/events
nissy-dev Jun 22, 2022
491c761
http: defer reentrant execution of Parser::Execute
ShogunPanda Jun 10, 2022
47a2522
net: fix net.Server keepalive and noDelay
theanarkh Jun 22, 2022
2e799bc
doc: update link to MDN page about dynamic imports
jamesscottbrown Jun 22, 2022
7ca58b8
test: allow EOVERFLOW errors in fs position tests
richardlau Jun 22, 2022
08ed28c
doc: add Juan as a security steward
mhdawson Jun 20, 2022
60b949d
doc: move MylesBorins to TSC Emeritus
MylesBorins Jun 21, 2022
17b92f0
test: use unique file names in fs trace test
bnoordhuis Jun 22, 2022
9940dc3
test: skip test-v8-serialize-leak on IBM i
richardlau Jun 22, 2022
919c5ee
build: update main branch name in GH workflow
F3n67u Jun 23, 2022
bd91337
test: refactor to top-level await
meekdenzo Jun 23, 2022
0636f86
deps: upgrade npm to 8.13.1
npm-cli-bot Jun 25, 2022
bb326f7
crypto: handle webcrypto generateKey() usages edge case
panva Jun 25, 2022
b27856d
http: add perf_hooks detail for http request and client
theanarkh Jun 25, 2022
f8bdc53
net: prevent /32 ipv4 mask from matching all ips
supriyo-biswas Jun 25, 2022
ba9b2f0
wasi: use WasmMemoryObject handle for perf (#43544)
devsnek Jun 25, 2022
d3fc791
src: improve and update ByteSource description
tniessen Jun 25, 2022
a43928a
crypto: use ByteSource::Builder in To*Copy
tniessen Jun 25, 2022
d650c9c
meta: update AUTHORS
nodejs-github-bot Jun 26, 2022
4df96b5
crypto: don't disable TLS 1.3 without suites
AdamMajer Jun 27, 2022
f9c30ab
benchmark: forcefully close processes
ShogunPanda Jun 24, 2022
deaf4bb
lib: fix TODO in `freeze_intrinsics`
aduh95 Jun 27, 2022
b9198d9
lib: refactor to avoid unsafe regex primordials
aduh95 Jun 27, 2022
2233567
lib: use null-prototype objects for property descriptors
aduh95 Jun 27, 2022
8d14d6e
tools: fix CJS/ESM toggle on small screens
aduh95 Jun 27, 2022
1617a46
stream: pass error on legacy destroy
greguz Jun 28, 2022
e9574f3
readline: fix to not access a property on an undefined value
cola119 Jun 28, 2022
7c6f548
test: mark test-http-server-request-timeouts-mixed flaky on macOS
F3n67u Jun 28, 2022
705e85e
test: improve code coverage for SourceMap class
italojs Jun 1, 2022
dabccef
test: mark flaky tests on smartos
F3n67u Jun 28, 2022
d90a6f9
benchmark: fix fork detection
ShogunPanda Jun 28, 2022
4bda6e0
test_runner: expose `describe` and `it`
MoLow Jun 14, 2022
ad1d054
net: fix net keepalive and noDelay
theanarkh Jun 29, 2022
66fb059
events: improve `EventListener` validation
daeyeon Jun 29, 2022
0b432b9
src: fix compiler warning in src/heap_utils.cc
RaisinTen Jun 29, 2022
c6396c1
tools: update lint-md-dependencies
nodejs-github-bot Jun 29, 2022
54a8a0c
doc: add `backport-open-vN.x` step to backporting guide
LiviaMedeiros Jun 29, 2022
d834d21
perf_hooks: add initiatorType getter
RafaelGSS Jun 30, 2022
5ae30bf
src: remove a stale comment in `async_hooks`
daeyeon Jun 30, 2022
12a591a
fs: refactor realpath with Map and Set
LiviaMedeiros Jun 30, 2022
3ad4d37
module: also enable subpath imports in REPL
rayw000 Jun 30, 2022
48ee6b9
src,bootstrap: remove NodeMainInstance::registry_
RaisinTen Jun 30, 2022
23c5de3
doc: fix icu-small example
mhdawson Jun 27, 2022
a1f1d3a
url: update WHATWG URL parser to align with latest spec
F3n67u Jun 30, 2022
6ede1c2
doc: include CVSS mention
RafaelGSS Jun 30, 2022
79ea19e
errors: extract type detection & use in `ERR_INVALID_RETURN_VALUE`
JakobJingleheimer Jul 1, 2022
ac72f4e
test: mark test-worker-http2-stream-terminate flaky on all platforms
F3n67u Jul 1, 2022
a3659e3
doc: promote 0x to tier 4
tony-go Jul 1, 2022
2251242
doc: remove dtrace from tierlist
tony-go Jul 1, 2022
953fefe
esm: restore `next<HookName>`'s `context` as optional arg
JakobJingleheimer Jul 2, 2022
e718a6e
test: fix Buffer.from(ArrayBufferView) call
LiviaMedeiros Jun 29, 2022
043756d
test: fill DOMException names
LiviaMedeiros Jun 29, 2022
e6d4837
http: fix failing test
ShogunPanda Jul 2, 2022
e9ee7e4
build,test: increase stack size limit on Windows
tniessen Jul 2, 2022
a6e98df
doc: remove lttng from tierlist
tony-go Jun 28, 2022
350e6ae
doc: remove windows xperf from tierlist
tony-go Jun 28, 2022
7491469
deps: upgrade npm to 8.13.2
npm-cli-bot Jul 3, 2022
e914185
module: cjs-module-lexer WebAssembly fallback
guybedford Jul 3, 2022
6fc5a13
doc: add single executable application initiative
mhdawson Jul 3, 2022
0fe825a
doc: remove systemtap from tierlist
tony-go Jun 28, 2022
cb77b3e
doc: remove appmetrics from tierlist
tony-go Jun 28, 2022
508cbbc
meta: update AUTHORS
nodejs-github-bot Jul 4, 2022
2adf4e7
test: fix flaky test-perf-hooks-histogram
santigimeno Jul 4, 2022
99ffabf
tools: update eslint to 8.19.0
nodejs-github-bot Jul 4, 2022
b4b15b7
doc: add daeyeon to triagers
daeyeon Jul 4, 2022
0b49560
test: add test to ensure repl doesn't support --input-type
cola119 Jun 21, 2022
3a8edb3
doc: improve description of --input-type
cola119 Jun 21, 2022
46ad206
doc: fix typo in errors.md
Jul 5, 2022
267f66b
doc: fix default of duplex.allowHalfOpen
vweevers Jul 5, 2022
ca0fbfd
doc: add note regarding special case of 0 stat.size
dougwilson Jul 5, 2022
d46261c
doc: improve readability of `dns.md`
0xSanyam Jul 6, 2022
7679c77
doc: add Geoffrey Booth to TSC
Trott Jul 7, 2022
088b926
doc: remove extra 'in's
cjihrig Jul 7, 2022
ca5af0d
doc: update changelog-maker to the new flags
RafaelGSS Jul 5, 2022
aafdf12
tools: refactor `tools/license2rtf` to ESM
F3n67u May 29, 2022
482bd53
build: clarify missing clang-format tool
tniessen Jul 7, 2022
2e181f6
src,stream: change return type to `Maybe`
daeyeon Jul 7, 2022
061ed0e
events: improve `Event` compatibility
daeyeon Jul 8, 2022
c9f130e
test: improve code coverage for performance_entry
cola119 Jul 8, 2022
9d918d9
module: add isBuiltIn method
hemanth Jul 8, 2022
0783663
bootstrap: move global initialization to js
alenakhineika Jul 8, 2022
1f4f811
http2: log debug only when in debug mode
mabaasit Jul 8, 2022
e51d8c6
test_runner: wait for stderr and stdout to complete
MoLow Jul 8, 2022
ef174ea
assert: callTracker throw a specific error message when possible
MoLow Jul 8, 2022
ddf7518
test_runner: cancel on termination
MoLow Jul 8, 2022
7ee0be7
benchmark: fix output regression
mscdex Jun 30, 2022
80ced1a
esm: treat `307` and `308` as redirects in HTTPS imports
kidonng Jul 9, 2022
ebf962c
build: enable GitPod prebuilds
Trott Jul 9, 2022
baa22a7
util: avoid inline access to Symbol.iterator
cola119 Jul 9, 2022
4e6a844
src: delegate NodeArrayBufferAllocator to v8's allocator
nornagon Jul 9, 2022
c4d88b3
test: use Object for `tests` variable in fs trace test
F3n67u Jul 9, 2022
a0e7b99
net: add drop event for net server
theanarkh Jul 9, 2022
0f6d194
src: fix crash on FSReqPromise destructor
santigimeno Jul 9, 2022
40f51d8
test_runner: protect internals against prototype tampering
aduh95 Jul 9, 2022
6b16836
util: mark cwd grey while inspecting errors
BridgeAR Jun 25, 2022
bdca4d3
util: remove unnecessary template string
BridgeAR Jun 25, 2022
5a5c4be
util: add `AggregateError.prototype.errors` to inspect output
LiviaMedeiros Jul 9, 2022
bf4ac4c
net: remove redundant connecting assignment
oyyd Jul 9, 2022
bf62ffd
doc: remove node-report from support tiers
RafaelGSS Jul 8, 2022
a0b799f
test: add test for profile command of node inspect
cola119 Jul 9, 2022
3b08dfd
meta: update AUTHORS
nodejs-github-bot Jul 10, 2022
8a06b7b
tools: update lint-md-dependencies to rollup@2.76.0
nodejs-github-bot Jul 10, 2022
8c97f63
http: add diagnostics channel for http client
theanarkh Jul 10, 2022
428d03c
deps: update corepack to 0.12.0
nodejs-github-bot Jul 10, 2022
dc484b6
lib: implement safe alternatives to `Promise` static methods
aduh95 Jul 10, 2022
fa5c464
cluster, net: fix listen pipe with readable and writable in cluster
theanarkh Jul 10, 2022
5d8ee51
cluster: fix fd leak
theanarkh Jul 11, 2022
fe1f740
src: merge RunInThisContext() with RunInContext()
daeyeon Jul 11, 2022
b164848
test: fix typo in file name
aduh95 Jul 11, 2022
1bd5633
doc: remove openssl 1.x reference
RafaelGSS Jul 11, 2022
c8cbec4
lib: make `validateObject` less affected by prototype tampering
aduh95 Jul 11, 2022
0f07abc
stream: finish pipeline if dst closes before src
ronag Jul 11, 2022
38e92fd
test: mark test-gc-http-client-timeout as flaky on arm
legendecas Jul 10, 2022
61e6d78
lib,src: add source map support for global eval
legendecas Jun 13, 2022
f2f7d7b
test: remove unnecessary .toString() calls in HTTP tests
addaleax Jul 11, 2022
ce3a22a
cluster: fix closing dgram sockets in cluster workers throws errors
oyyd Jul 11, 2022
4569d6e
doc: add details for July 2022 security releases
BethGriggs Jul 8, 2022
c954bcd
tools: remove rpm build scripts
bnoordhuis Jul 11, 2022
7ffcd85
doc: include last security release date
RafaelGSS Jul 10, 2022
d6a9e93
deps: patch V8 to 10.2.154.13
targos Jul 11, 2022
294f0ef
test: mark test-net-connect-reset-until-connected flaky on freebsd
F3n67u Jul 12, 2022
e076955
doc: remove bullet point referring to Node.js 12
lpinca Jul 12, 2022
7fc075b
deps: update undici to 5.7.0
nodejs-github-bot Jul 13, 2022
cd17157
2022-07-13, Version 18.6.0 (Current)
targos Jul 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: update main branch name in doc/contributing/*
Refs: #33864

PR-URL: #43438
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Danielle Adams <adamzdanielle@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
lpinca authored and targos committed Jul 12, 2022
commit 429e0f433b1b3fbc8ca5112a52e1fdc1e802213e
2 changes: 1 addition & 1 deletion doc/contributing/backporting-to-release-lines.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For the active staging branches see the [Release Schedule][].

## What needs to be backported?

If a cherry-pick from master does not land cleanly on a staging branch, the
If a cherry-pick from `main` does not land cleanly on a staging branch, the
releaser will mark the pull request with a particular label for that release
line (e.g. `backport-requested-vN.x`), specifying to our tooling that this
pull request should not be included. The releaser will then add a comment
Expand Down
44 changes: 22 additions & 22 deletions doc/contributing/collaborator-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ in the form:

* `GIT_REMOTE_REF`: Change to the remote portion of git refspec.
To specify the branch this way, `refs/heads/BRANCH` is used
(e.g. for `master` -> `refs/heads/master`).
(e.g. for `main` -> `refs/heads/main`).
For pull requests, it will look like `refs/pull/PR_NUMBER/head`
(e.g. for pull request #42 -> `refs/pull/42/head`).
* `REBASE_ONTO`: Change that to `origin/master` so the pull request gets rebased
onto master. This can especially be important for pull requests that have been
* `REBASE_ONTO`: Change that to `origin/main` so the pull request gets rebased
onto `main`. This can especially be important for pull requests that have been
open a while.

Look at the list of jobs on the left hand side under "Build History" and copy
Expand Down Expand Up @@ -337,7 +337,7 @@ For undocumented APIs that are public, open a pull request documenting the API.
### Breaking changes

At least two TSC members must approve backward-incompatible changes to the
master branch.
`main` branch.

Examples of breaking changes include:

Expand Down Expand Up @@ -373,7 +373,7 @@ providing a Public API in such cases.
#### Unintended breaking changes

Sometimes, a change intended to be non-breaking turns out to be a breaking
change. If such a change lands on the master branch, a collaborator can revert
change. If such a change lands on the `main` branch, a collaborator can revert
it. As an alternative to reverting, the TSC can apply the semver-major label
after-the-fact.

Expand Down Expand Up @@ -462,7 +462,7 @@ duration.

Communicate pending deprecations and associated mitigations with the ecosystem
as soon as possible. If possible, do it before the pull request adding the
deprecation lands on the master branch.
deprecation lands on the `main` branch.

Use the `notable-change` label on pull requests that add or change the
deprecation level of an API.
Expand Down Expand Up @@ -554,15 +554,15 @@ $ git rebase --abort
Checkout proper target branch:

```text
$ git checkout master
$ git checkout main
```

Update the tree (assumes your repository is set up as detailed in
[CONTRIBUTING.md](./pull-requests.md#step-1-fork)):

```text
$ git fetch upstream
$ git merge --ff-only upstream/master
$ git merge --ff-only upstream/main
```

Apply external patches:
Expand All @@ -588,19 +588,19 @@ has landed since the CI run. You will have to ask the author to rebase.
Check and re-review the changes:

```text
$ git diff upstream/master
$ git diff upstream/main
```

Check the number of commits and commit messages:

```text
$ git log upstream/master...master
$ git log upstream/main...main
```

Squash commits and add metadata:

```text
$ git rebase -i upstream/master
$ git rebase -i upstream/main
```

This will open a screen like this (in the default shell editor):
Expand Down Expand Up @@ -670,19 +670,19 @@ for that commit. This is an opportunity to fix commit messages.
pull request.
* Protects against the assumption that GitHub will be around forever.

Other changes might have landed on master since the successful CI run. As a
Other changes might have landed on `main` since the successful CI run. As a
precaution, run tests (`make -j4 test` or `vcbuild test`).

Confirm that the commit message format is correct using
[core-validate-commit](https://github.com/nodejs/core-validate-commit).

```text
$ git rev-list upstream/master...HEAD | xargs core-validate-commit
$ git rev-list upstream/main...HEAD | xargs core-validate-commit
```

Optional: For your own commits, force push the amended commit to the pull
request branch. If your branch name is `bugfix`, then:
`git push --force-with-lease origin master:bugfix`. Don't close the pull
`git push --force-with-lease origin main:bugfix`. Don't close the pull
request. It will close after you push it upstream. It will have the purple
merged status rather than the red closed status. If you close the pull request
before GitHub adjusts its status, it will show up as a 0 commit pull
Expand All @@ -693,7 +693,7 @@ the issue with the red closed status.
Time to push it:

```text
$ git push upstream master
$ git push upstream main
```

Close the pull request with a "Landed in `<commit hash>`" comment. Even if
Expand All @@ -705,27 +705,27 @@ more than one commit.

### Troubleshooting

Sometimes, when running `git push upstream master`, you might get an error
Sometimes, when running `git push upstream main`, you might get an error
message like this:

```console
To https://github.com/nodejs/node
! [rejected] master -> master (fetch first)
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/nodejs/node'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
```

That means a commit has landed since your last rebase against `upstream/master`.
That means a commit has landed since your last rebase against `upstream/main`.
To fix this, pull with rebase from upstream, run the tests again, and (if the
tests pass) push again:

```bash
git pull upstream master --rebase
git pull upstream main --rebase
make -j4 test
git push upstream master
git push upstream main
```

### I made a mistake
Expand Down Expand Up @@ -755,7 +755,7 @@ the branch.
Each LTS release has a corresponding branch (v10.x, v8.x, etc.). Each also has a
corresponding staging branch (v10.x-staging, v8.x-staging, etc.).

Commits that land on master are cherry-picked to each staging branch as
Commits that land on `main` are cherry-picked to each staging branch as
appropriate. If a change applies only to the LTS branch, open the pull request
against the _staging_ branch. Commits from the staging branch land on the LTS
branch only when a release is being prepared. They might land on the LTS branch
Expand Down Expand Up @@ -901,7 +901,7 @@ We use labels to keep track of which branches a commit should land on:
* (for example semver-minor changes that need or should go into an LTS
release)
* `v?.x`
* Automatically applied to changes that do not target `master` but rather the
* Automatically applied to changes that do not target `main` but rather the
`v?.x-staging` branch

Once a release line enters maintenance mode, the corresponding labels do not
Expand Down
4 changes: 2 additions & 2 deletions doc/contributing/commit-queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Commit Queue is an experimental feature for the project which simplifies the
landing process by automating it via GitHub Actions. With it, collaborators can
land pull requests by adding the `commit-queue` label to a PR. All
checks will run via node-core-utils, and if the pull request is ready to land,
the Action will rebase it and push to master.
the Action will rebase it and push to `main`.

This document gives an overview of how the Commit Queue works, as well as
implementation details, reasoning for design choices, and current limitations.
Expand Down Expand Up @@ -108,7 +108,7 @@ forwarding stdout and stderr to a file. If any errors happen,
to the PR, as well as a comment with the output of `git node land`.

If no errors happen during `git node land`, the script will use the
`GITHUB_TOKEN` to push the changes to `master`, and then will leave a
`GITHUB_TOKEN` to push the changes to `main`, and then will leave a
`Landed in ...` comment in the PR, and then will close it. Iteration continues
until all PRs have done the steps above.

Expand Down
2 changes: 1 addition & 1 deletion doc/contributing/diagnostic-tooling-support-tiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the following tiers.
suite for the tool/API is not green. To be considered for inclusion
in this tier it must have a good test suite and that test suite and a job
must exist in the Node.js CI so that it can be run as part of the release
process. Tests on master will be run nightly when possible to provide
process. Tests on `main` will be run nightly when possible to provide
early warning of potential issues. No commit to the current and LTS
release branches should break this tool/API if the next major release
is within 1 month. In addition:
Expand Down
12 changes: 6 additions & 6 deletions doc/contributing/maintaining-V8.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ The rough outline of the process is:

```bash
# Assuming your fork of Node.js is checked out in $NODE_DIR
# and you want to update the Node.js master branch.
# and you want to update the Node.js main branch.
# Find the current (OLD) version in
# $NODE_DIR/deps/v8/include/v8-version.h
cd $NODE_DIR
git checkout master
git merge --ff-only origin/master
git checkout main
git merge --ff-only origin/main
git checkout -b V8_NEW_VERSION
curl -L https://github.com/v8/v8/compare/${V8_OLD_VERSION}...${V8_NEW_VERSION}.patch | git apply --directory=deps/v8
# You may want to amend the commit message to describe the nature of the update
Expand All @@ -345,13 +345,13 @@ to apply a minor update.

### Major updates

We upgrade the version of V8 in Node.js master whenever a V8 release goes stable
We upgrade the version of V8 in Node.js `main` whenever a V8 release goes stable
upstream, that is, whenever a new release of Chrome comes out.

Upgrading major versions would be much harder to do with the patch mechanism
above. A better strategy is to

1. Audit the current master branch and look at the patches that have been
1. Audit the current `main` branch and look at the patches that have been
floated since the last major V8 update.
2. Replace the copy of V8 in Node.js with a fresh checkout of the latest stable
V8 branch. Special care must be taken to recursively update the DEPS that V8
Expand Down Expand Up @@ -394,7 +394,7 @@ branches. This has several benefits:
* The history of the V8 branch in `nodejs/v8` becomes purer and it would make it
easier to pull in the V8 team for help with reviewing.
* It would make it simpler to setup an automated build that tracks Node.js
master + V8 lkgr integration build.
`main` + V8 lkgr integration build.

This would require some tooling to:

Expand Down
2 changes: 1 addition & 1 deletion doc/contributing/maintaining-cjs-module-lexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ implementation using WebAssembly which is generated from a
C based implementation. These two paths
resolve to the files in `deps/cjs-module-lexer` due to their
inclusion in the `deps_files` entry in
[node.gyp](https://github.com/nodejs/node/blob/master/node.gyp).
[node.gyp](https://github.com/nodejs/node/blob/main/node.gyp).

The two different versions of lexer.js are maintained in the
[nodejs/cjs-module-lexer][] project.
Expand Down
2 changes: 1 addition & 1 deletion doc/contributing/maintaining-npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Note: please ensure you are only making the updates that are changed by npm.
## Step 4: Apply whitespace fix

```console
$ git rebase --whitespace=fix master
$ git rebase --whitespace=fix main
```

## Step 5: Test the build
Expand Down
2 changes: 1 addition & 1 deletion doc/contributing/maintaining-openssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This document describes how to update `deps/openssl/`.
If you need to provide updates across all active release lines you will
currently need to generate four PRs as follows:

* a PR for master which is generated following the instructions
* a PR for `main` which is generated following the instructions
below for OpenSSL 3.x.x.
* a PR for 16.x following the instructions in the v16.x-staging version
of this guide.
Expand Down
10 changes: 5 additions & 5 deletions doc/contributing/maintaining-web-assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Support for [WebAssembly](https://webassembly.org/)
has been identified as one of the
[top technical priorities](https://github.com/nodejs/node/blob/master/doc/contributing/technical-priorities.md#webassembly)
[top technical priorities](https://github.com/nodejs/node/blob/main/doc/contributing/technical-priorities.md#webassembly)
for the future success of Node.js.

This document provides an overview of our high-level strategy for
Expand Down Expand Up @@ -76,7 +76,7 @@ The Node.js WASI implementation is maintained in the
[uvwasi](https://github.com/nodejs/uvwasi) repository in the
Node.js GitHub organization. As needed, an updated copy
is vendored into the Node.js deps in
[deps/uvwasi](https://github.com/nodejs/node/tree/master/deps/uvwasi).
[deps/uvwasi](https://github.com/nodejs/node/tree/main/deps/uvwasi).

To update the copy of uvwasi in the Node.js deps:

Expand All @@ -92,6 +92,6 @@ The documentation for this API is in

The implementation of the bindings and the public API is in:

* [src/node\_wasi.h](https://github.com/nodejs/node/blob/master/src/node_wasi.h)
* [src/node\_wasi.cc](https://github.com/nodejs/node/blob/master/src/node_wasi.cc)
* [lib/wasi.js](https://github.com/nodejs/node/blob/master/lib/wasi.js)
* [src/node\_wasi.h](https://github.com/nodejs/node/blob/main/src/node_wasi.h)
* [src/node\_wasi.cc](https://github.com/nodejs/node/blob/main/src/node_wasi.cc)
* [lib/wasi.js](https://github.com/nodejs/node/blob/main/lib/wasi.js)
12 changes: 6 additions & 6 deletions doc/contributing/writing-and-running-benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,17 @@ As an example on how to check for a possible performance improvement, the
an example. This pull request _claims_ to improve the performance of the
`node:string_decoder` module.

First build two versions of Node.js, one from the master branch (here called
`./node-master`) and another with the pull request applied (here called
First build two versions of Node.js, one from the `main` branch (here called
`./node-main`) and another with the pull request applied (here called
`./node-pr-5134`).

To run multiple compiled versions in parallel you need to copy the output of the
build: `cp ./out/Release/node ./node-master`. Check out the following example:
build: `cp ./out/Release/node ./node-main`. Check out the following example:

```console
$ git checkout master
$ git checkout main
$ ./configure && make -j4
$ cp ./out/Release/node ./node-master
$ cp ./out/Release/node ./node-main

$ git checkout pr-5134
$ ./configure && make -j4
Expand All @@ -276,7 +276,7 @@ $ cp ./out/Release/node ./node-pr-5134
The `compare.js` tool will then produce a csv file with the benchmark results.

```console
$ node benchmark/compare.js --old ./node-master --new ./node-pr-5134 string_decoder > compare-pr-5134.csv
$ node benchmark/compare.js --old ./node-main --new ./node-pr-5134 string_decoder > compare-pr-5134.csv
```

_Tips: there are some useful options of `benchmark/compare.js`. For example,
Expand Down
2 changes: 1 addition & 1 deletion doc/contributing/writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ will depend on what is being tested if this is required or not.
To generate a test coverage report, see the
[Test Coverage section of the Building guide][].

Nightly coverage reports for the Node.js master branch are available at
Nightly coverage reports for the Node.js `main` branch are available at
<https://coverage.nodejs.org/>.

[ASCII]: https://man7.org/linux/man-pages/man7/ascii.7.html
Expand Down