Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v14.17.0 proposal #38507

Merged
merged 597 commits into from May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
597 commits
Select commit Hold shift + click to select a range
8f580df
test: increase read file abort coverage
shootermv Jan 1, 2021
21e7b02
test: skip tests consistently in parallel.status
Trott Jan 23, 2021
db44b92
test: increase inspect coverage
emilsivervik Jan 3, 2021
d2770a5
benchmark: add benchmark for NODE_V8_COVERAGE
bcoe Jan 22, 2021
af313a8
doc: update BUILDING.md previous versions links
richardlau Jan 26, 2021
2e5994d
tools: remove commented code from stability.js
cjihrig Jan 27, 2021
b0c9b1f
doc: update Buffer encoding option count
davecardwell Jan 27, 2021
8099bfb
doc: remove TOC summary for pages with no TOC
Trott Jan 24, 2021
26ec20a
doc: add example for test structure
wjabbour Sep 4, 2020
d340dca
doc: clarify repl exception conditions
Trott Jan 30, 2021
6264ac1
doc: clarify ERR_INVALID_REPL_INPUT usage
Trott Jan 30, 2021
e582832
fs: only use Buffer.concat in promises.readFile when necessary
addaleax Jan 29, 2021
35cf86c
doc: fix list format in Developer's Certificate of Origin
NegiAkash890 Jan 30, 2021
1ecdb66
src: expose BaseObject::kInternalFieldCount in post-mortem metadata
joyeecheung Jan 28, 2021
11d3e71
doc: improve promise terminology
benjamingr Feb 2, 2021
00309ee
src: read exactly two tokens from Linux THP sysfs config
jayaddison Jan 25, 2021
e7ca9b6
doc: fix color contrast on <kbd> elements
aduh95 Feb 2, 2021
ad80e3d
doc: fix 404 links in module.md
aduh95 Feb 3, 2021
03752c0
test: remove flaky designation for test-http2-large-file
Trott Jan 31, 2021
ec7e5bc
src: fix warning in string_search.h
RaisinTen Jan 30, 2021
2959c65
doc: fix typo in globals.md
RaisinTen Feb 4, 2021
e7415c3
doc: fix CHANGELOG_ARCHIVE table of contents
aduh95 Feb 4, 2021
cb632e4
doc: fix version number for DEP006
aduh95 Feb 4, 2021
92348a9
fs: use a default callback for fs.close()
jasnell Feb 1, 2021
88d9676
src: use make_shared for safe allocation
yashLadha Jan 30, 2021
33ebf5d
src: rename binding_data_name to type_name in BindingData
joyeecheung Jan 28, 2021
f476c6d
src: refactor v8 binding
joyeecheung Jan 28, 2021
0eaeaea
doc: rename N-API to Node-API
Feb 7, 2021
2bfe185
util: use assert for unreachable code
Trott Feb 6, 2021
8cffab6
doc: use sentence case for headers in BUILDING.md
Trott Feb 6, 2021
281d75c
doc: use sentence case in README headers
Trott Feb 6, 2021
b2ee1af
doc: fix typo in console.md
marsonya Feb 8, 2021
981659c
tools: add GitHub Action linter for pr-url
aduh95 Feb 4, 2021
8c41bc9
doc: fix misnamed SHASUMS256.txt name in README.md
marsonya Feb 7, 2021
926bb4f
http: explain the unused argument in IncomingMessage._read
Ayase-252 Feb 8, 2021
105b863
http: explain the possibilty of refactor unused argument
Ayase-252 Feb 10, 2021
bf16d28
src: fix return type of method in string_search.h
RaisinTen Feb 1, 2021
b7c9366
doc: discourage error event
benjamingr Feb 7, 2021
a99456c
doc: fix description of hasSubscribers
tniessen Feb 11, 2021
4cdd9b6
module: make synthetic module evaluation steps return a Promise to su…
dandclark Feb 9, 2021
2ba6db3
tools: avoid pending deprecation in doc generator
targos Feb 7, 2021
af8b385
tools: fix lint-pr-url message
aduh95 Feb 10, 2021
b485a3e
doc: fix typo in /api/dns.md
marsonya Feb 10, 2021
5bc0a0d
doc: add version metadata for packages features
aduh95 Feb 9, 2021
5ade2fd
doc: fix typo in deprecations.md
marsonya Feb 8, 2021
7cf4a4b
doc: fix performanceEntry.flags style format
chengcyber Feb 8, 2021
569ad98
doc: apply sentence case to release doc headers
Trott Feb 13, 2021
f28a5c6
doc: apply sentence-consistently in C++ style guide
Trott Feb 13, 2021
debffd9
doc: use sentence case in benchmark doc
Trott Feb 13, 2021
d426143
doc: link PACKAGE_EXPORTS_RESOLVE to ESM section
ugultopu Jan 30, 2021
8b5e42e
doc: fix quotes in stream docs
tniessen Feb 8, 2021
2a3feff
doc: optimize HTML rendering
aduh95 Feb 9, 2021
506f1d4
policy: fix cascade getting scope
bmeck Feb 9, 2021
07130c0
doc: add dmabupt to collaborators
dmabupt Feb 15, 2021
fe47563
lib: simplify check in child_process
RaisinTen Feb 14, 2021
8386b88
test: fix test-doctool-html
aduh95 Feb 16, 2021
512ae7e
src: adjust THP sysfs config token retrieval and file closure
jayaddison Jan 28, 2021
4785755
doc: clarify that async_hook callbacks cannot be async
jasnell Feb 15, 2021
74f0760
doc: use HEAD in links where possible
mhdawson Feb 17, 2021
605cb4c
doc: fix typo in esm.md
tailorswift Feb 17, 2021
a3c564b
doc,child_process: `pid` can be `undefined` when `ENOENT`
dr-js Jan 25, 2021
51ef745
test,child_process: add check for `subProcess.pid`
dr-js Jan 25, 2021
776ef11
test: clarify usage of tmpdir.refresh()
RaisinTen Feb 15, 2021
8b60e66
doc: fix typo in doc/api/esm.md
marsonya Feb 16, 2021
39ef3bd
doc: fix alignment of parameters
mhdawson Feb 18, 2021
bb434a9
doc: use HEAD for links in api docs
mhdawson Feb 18, 2021
e6f804b
doc: alphabetize crypto Cipher class entries
Trott Feb 20, 2021
3e82263
doc: alphabetize vm Module class properties
Trott Feb 20, 2021
2f2f83f
test: remove FLAKY designation for test-http2-client-upload-reject
Trott Feb 20, 2021
a0bab69
doc: fix typo in doc/api/http2/md
marsonya Feb 22, 2021
099eef6
doc: apply sentence case to headers in doc/guides
marsonya Feb 22, 2021
d168cde
test: validate no debug info for http2
mhdawson Feb 19, 2021
bcc4f17
test: remove FLAKY for test-http2-compat-client-upload-reject
Trott Feb 20, 2021
2082f5b
doc: recommend queueMicrotask over process.nextTick
jasnell Feb 22, 2021
da2cd4a
doc: update CI requirements for landing pull requests
aduh95 Feb 10, 2021
52b3b54
doc: apply sentence case to guides headers
marsonya Feb 24, 2021
f2279f8
fs: fix writeFile signal does not close file
Feb 16, 2021
ff1990c
doc: add url.resolve replacement example
aduh95 Feb 24, 2021
64ed65e
doc: apply sentence case to headers in doc/guides
marsonya Feb 24, 2021
1b85146
doc: change links to use HEAD in top level docs
mhdawson Feb 23, 2021
adc7536
doc: revise premature disclosure text in collaborator guide
Trott Feb 26, 2021
c62a134
doc: revise objections section of collaborator guide
Trott Feb 26, 2021
fdc6a96
doc: revise CI text in collaborator guide
Trott Feb 26, 2021
52c0f0b
doc: revise LTS text in collaborator guide
Trott Feb 26, 2021
78ad8b4
workers: fix spawning from preload scripts
jasnell Feb 22, 2021
0726192
test: make status file names consistent
Trott Feb 27, 2021
097f638
test: remove FLAKY status for test-http2-multistream-destroy-on-read-tls
Trott Feb 27, 2021
0255ed7
doc: fix typo in doc/api/packages.md
marsonya Feb 27, 2021
13d972d
domain: show falsy names as anonymous for DEP0097
cjihrig Feb 28, 2021
bd38dfb
domain: add name to monkey-patched emit function
cjihrig Feb 28, 2021
77eb45a
tools: fix compiler warning in inspector_protocol
RaisinTen Mar 2, 2021
c21731b
doc: document that NODE_EXTRA_CA_CERTS is read only once
jasnell Mar 1, 2021
1dc7f42
doc: clarify that columnOffset applies only to the first line
jasnell Mar 1, 2021
183dba0
doc: add top-level await syntax in vm.md
aduh95 Jan 26, 2021
e4975d9
tools: fix object name in prefer-assert-methods.js
tniessen Feb 28, 2021
68d5cb8
doc: apply sentence case to headers in pull-requests.md
marsonya Mar 4, 2021
b192227
doc: add return type of readline.createInterface
RaisinTen Mar 4, 2021
df93cb4
test: fix wasi/test-return-on-exit on 32-bit systems
cjihrig Mar 1, 2021
ed30e52
test: clear FLAKY designation for test-http2-pipe
Trott Mar 6, 2021
102d12f
test: clear flaky designation for test-stream-pipeline-http2
Trott Mar 6, 2021
a91a200
test: remove FLAKY status for fixed test
Trott Mar 6, 2021
376fcc7
test: remove FLAKY status for test-async-hooks-http-parser-destroy
Trott Mar 6, 2021
27d4fed
test: improve error reporting in test-child-process-pipe-dataflow
Trott Mar 6, 2021
e299054
test: remove unnecessary V8 flag
aduh95 Mar 9, 2021
5ef2a8d
doc: document that module.evaluate fulfills as undefined
jasnell Mar 9, 2021
fc0d6e4
src: add error formatting support
devsnek Mar 4, 2021
dd1fe6d
fs: add promisified readFile benchmark
Linkgoron Mar 5, 2021
b0840ac
doc: fix typo in doc/guides/collaborator-guide.md
marsonya Mar 6, 2021
eea4f3b
lib: fix typo in lib/internal/bootstrap/loaders.js
marsonya Mar 6, 2021
c51a60c
doc: add localPort to http.request() options
lpinca Mar 3, 2021
ec5d7b1
src: fix variable name of OnCloseReceived callback
tniessen Feb 26, 2021
3a6e405
doc: use sentence case in README.md headers
marsonya Mar 6, 2021
85a293b
doc: fix typo in description of close event
tniessen Mar 8, 2021
7858de4
stream,util: fix "the the" typo in comments
lpinca Mar 9, 2021
02cd404
doc: fix link to googletest fixtures
tniessen Mar 10, 2021
a191bc7
benchmark: add benchmark for fsPromises.writeFile
Linkgoron Mar 5, 2021
9fb10dc
assert,util: fix commutativity edge case
BridgeAR Mar 11, 2021
b5c5bd1
util: inspect __proto__ key as written in object literal
addaleax Mar 11, 2021
5f2da5a
doc: add hints to http.request() options
lpinca Mar 13, 2021
6d7c7bc
doc: add marsonya as a triager
marsonya Mar 9, 2021
eb0faa1
src: add .note.GNU-stack section
jayaddison Mar 9, 2021
6229203
test: fix test-fs-utimes on non-Y2K38 file systems
Trott Mar 11, 2021
02916ed
test: add known_issues test for #13683
Trott Mar 13, 2021
fe0f6a5
doc: add gyp maintain info
gengjiawen Mar 16, 2021
bf2d9f2
buffer: implement btoa and atob
jasnell Mar 17, 2021
5c60087
test: app atob web platform tests
jasnell Mar 17, 2021
3f86dc1
test: improve test-arm-math-illegal-instruction
marsonya Mar 15, 2021
14a160a
doc: fix typo in stream docs
isker Mar 11, 2021
a27534e
doc: fix AbortError example for timers
dbachko Mar 13, 2021
13ac680
lib: fix typo in internal/modules/esm/module_job.js
marsonya Mar 16, 2021
b2d3ac8
doc: add @linkgoron to collaborators
Linkgoron Mar 19, 2021
e34aace
doc: add legacy status to stability index
jasnell Mar 17, 2021
c8383dd
doc: revoke deprecation of legacy url, change status to legacy
jasnell Mar 17, 2021
0d720a4
doc: apply style for legacy status
jasnell Mar 19, 2021
66502fc
doc: move Derek Lewis back to collaborators
DerekNonGeneric Mar 12, 2021
e6a7980
tools: update gitignore for CMake
gengjiawen Mar 18, 2021
d0115f1
http: add http.ClientRequest.getRawHeaderNames()
simov Mar 8, 2021
89418e8
doc: use sentence case in issues.md headers
marsonya Mar 10, 2021
1b83242
doc: add Ayase-252 to triagers
Ayase-252 Mar 17, 2021
08d32e1
test: remove skip for fixed test-benchmark-fs
Trott Mar 19, 2021
2e0266d
doc: use sentence-style capitlaztion in template header
Trott Mar 20, 2021
9166653
doc: fix legacy stability indicator display
Trott Mar 20, 2021
e57e532
test: relax Y2K38 check in test-fs-utimes-y2K38
richardlau Mar 20, 2021
2551bb1
tools: make genv8constants.py Python3-compatible
targos Mar 20, 2021
b31bb72
doc: clarify when child process 'spawn' event is *not* emitted
zenflow Mar 20, 2021
b858e12
test: remove duplicated test for eventtarget
himself65 Mar 21, 2021
7789159
doc: add examples for WHATWG URL objects
jasnell Mar 19, 2021
cd71199
test: fix flaky test-vm-timeout-escape-promise-module-2
Trott Mar 20, 2021
f533488
test: fix ibmi skip message
tniessen Mar 19, 2021
d89d55a
tty: validate file descriptor to avoid int32 overflow
aduh95 Mar 19, 2021
46ece20
crypto: fix DiffieHellman argument validation
aduh95 Mar 19, 2021
939f554
test: fix deprecation warning in test-doctool-html
aduh95 Mar 22, 2021
f055faf
tools: improve macos-firewall.sh output
Trott Mar 20, 2021
4c5eff9
test: increase wiggle room for memory in test-worker-resource-limits
Trott Mar 25, 2021
b51651c
doc: reduce header nesting in async_hooks.md
Trott Mar 20, 2021
eb6ea85
doc,tools: use only one level 1 header per page
Trott Mar 20, 2021
6aa1ed2
src: report idle time correctly
Qard Mar 22, 2021
585f111
doc: update GOVERNANCE.md for TSC Charter changes
Trott Mar 24, 2021
dd1c47b
doc: spell out ICU acronym on first occurrence
Trott Mar 27, 2021
7b0e4e2
test: fix typeof comparison
Trott Mar 26, 2021
4254315
tools: improve valid-typeof lint rule
Trott Mar 26, 2021
d0cb129
src: fix typo in src code guide
tniessen Mar 28, 2021
9f1f215
doc: add more commands for cherry-picking and changelog to release docs
danielleadams Mar 17, 2021
e4d1042
timers: fix arbitrary object clearImmediate errors
Linkgoron Mar 19, 2021
e4f6141
src: document newer values for --unhandled-rejections flag
glasser Mar 24, 2021
2a5f21f
doc: fix typos in lib/internal/bootstrap/pre_execution.js
marsonya Mar 8, 2021
e6c64bf
util: remove unreachable inspect code
Trott Mar 27, 2021
2e3305d
test: add DataView test case for v8 serdes
Trott Mar 28, 2021
35a382e
doc: add Windows-specific info to subprocess.kill()
joaolucasl Aug 21, 2020
571afd3
tools,doc: add "legacy" badge in the TOC
aduh95 Mar 27, 2021
a61fd37
lib: change wording in lib/internal/child_process comment
marsonya Mar 25, 2021
1d82693
lib: change wording in lib/domain.js comment
marsonya Mar 26, 2021
69c4bfd
doc: add distinctive color for code elements inside links
aduh95 Mar 27, 2021
abec939
test: improve clarity of ALS-enable-disable.js
PhakornKiong Mar 31, 2021
21bc5d4
doc: move psmarshall to collaborators emeriti
psmarshall Mar 31, 2021
8598745
fs: fix chown abort
RaisinTen Mar 31, 2021
d6346e1
test: deflake test-fs-read-optional-params
lpinca Mar 30, 2021
df54edc
doc: document how to unref stdin when using readline.Interface
AnupamaP Apr 1, 2021
079671d
module: improve error message for invalid data URL
aduh95 Mar 10, 2021
8590720
test: add extra space in test failure output
Ayase-252 Mar 28, 2021
ac59022
doc: fix asyncLocalStorage.run() description
PhakornKiong Apr 1, 2021
b0f8f8d
src: fix typo in node_mutex
tniessen Mar 31, 2021
5d2f0d0
doc: change wording in doc/api/domain.md comment
marsonya Mar 30, 2021
1cb3d89
test: fix flaky timeout-delayed-body and headers tests
Linkgoron Apr 2, 2021
8615fa1
doc: add parentheses to function and move reference
Trott Apr 4, 2021
4043275
doc,tools: allow stability table to be updated
richardlau Apr 2, 2021
56aaf70
doc: apply sentence case to backporting-to-release-lines.md headers
marsonya Mar 6, 2021
aff0cd3
doc: sending http request to localhost to avoid https redirect
hassaanp Apr 2, 2021
e9110d5
process: do not lazily load AsyncResource
targos Apr 2, 2021
6c970ba
doc: apply consistent punctuation to header contributing guide
marsonya Apr 2, 2021
ecc8551
doc: improve security text in collaborators guide
Trott Apr 6, 2021
d6ab9bf
test: fix flaky test-net-timeout
Trott Apr 3, 2021
f1aae43
test: correct test comment
evanlucas Apr 5, 2021
b6f4d79
worker: fix exit code for error thrown in handler
Linkgoron Mar 31, 2021
7d85617
test: fix skip message for test-macos-app-sandbox
tniessen Apr 6, 2021
dd8c9ad
test: skip test-crypto-dh-keys on armv6 and armv7
Trott Apr 4, 2021
079d90b
build: package release changelog for releases
richardlau Apr 1, 2021
b5ad655
lib: properly process JavaScript exceptions on async_hooks fatal error
legendecas Apr 6, 2021
8476537
test,http: check that http server is robust from handler abuse
Trott Mar 28, 2021
854a2a9
src: fix typo for initialization
yashLadha Mar 30, 2021
a6dba4d
deps: V8: cherry-pick 501482cbc704
cjihrig Apr 2, 2021
7162bea
test: add regression test for serdes readDouble()
cjihrig Apr 8, 2021
865046c
test: fix flaky test-zlib-unused-weak.js
oyyd Apr 8, 2021
6cec9da
test: remove unneeded m flag on regular expressions
Trott Apr 7, 2021
52be691
doc: add link to V8
VoltrexKeyva Apr 8, 2021
e9d8815
test: skip test-hash-seed on armv6 and armv7
Trott Apr 4, 2021
cd2e6b2
test: skip test-vm-memleak in ASAN
Trott Apr 6, 2021
6dfe658
build: don't run test workflow on doc dir on macOS
ycjcl868 Mar 31, 2021
a47691c
test: skip fs.watch() test on IBMi
Trott Apr 11, 2021
df8736f
doc: mention cryptographic prng in description of randomUUID
srknzl Apr 4, 2021
b1830b5
doc: update links in ICU guide
targos Apr 9, 2021
668c210
benchmark: improve compare.R output
mscdex Apr 6, 2021
3545b5e
doc: add command flag to import.meta.resolve
iguessitsokay Apr 9, 2021
22d39d3
doc: clarify child_process close event
Linkgoron Apr 10, 2021
48b5196
test: add undefined fatalException exit code test
Linkgoron Apr 6, 2021
f47171f
crypto: reduce range of size to int max
Ayase-252 Apr 5, 2021
850dbc5
test: fix typo in gtest-all.cc
eltociear Apr 13, 2021
54c3656
test: fix typo in comment in binding.c
tniessen Apr 12, 2021
8320e2f
doc: standardize command flag notes
iguessitsokay Apr 11, 2021
d6c04ce
util: add getSystemErrorMap() impl
eladkishon Apr 5, 2021
487fc31
typings: add JSDoc types to lib/path
Skn0tt Apr 10, 2021
553cd85
test: fix test-https-agent-additional-options.js
Trott Apr 11, 2021
b1084a4
test: add tests for missing https agent options
Trott Apr 11, 2021
2cbcffe
doc: revise TLS minVersion/maxVersion text
Trott Apr 11, 2021
fee39ea
typings: add JSDoc typings for assert
VoltrexKeyva Apr 10, 2021
27ebcb7
src: fix finalization crash
jasnell Apr 15, 2021
5b5597c
typings: add JSDoc typings for http
VoltrexKeyva Apr 10, 2021
f3a3263
doc: change "oject" to "object"
arkerone Apr 16, 2021
c659034
test: fixup failing test/internet/test-dns.js
jasnell Apr 14, 2021
0541e19
dns: refactor cares_wrap internals
jasnell Apr 8, 2021
581a083
doc: fix typo in repl.md
arkerone Apr 15, 2021
efaab98
buffer,errors: add missing n literal in range error string
cactysman Mar 14, 2021
546a28f
typings: add JSDoc Types to lib/querystring
Skn0tt Apr 10, 2021
505123c
typings: add JSDoc to os module functions
xavdid Apr 11, 2021
92f1e04
test: fix flaky test-dns and test-dns-lookup
Trott Apr 18, 2021
6067f95
src: cache some context in locals
XadillaX Feb 22, 2021
67de0f5
tools: skip macOS GitHub Actions test on doc-only changes
Trott Apr 19, 2021
b9cd835
doc: harmonize changes list ordering
aduh95 Oct 1, 2020
d71fd8b
tools: bump remark-lint-preset-node to 1.17.1
Trott Oct 16, 2020
7715fb4
tools: bump remark-lint-preset-node to 2.0.0
Trott Nov 1, 2020
daee82a
tools: update ini in tools/node-lint-md-cli-rollup
MylesBorins Dec 10, 2020
14681b9
tools: update all lint-md rollup dependencies
targos Jan 8, 2021
f15b11f
tools: bump remark-present-lint-node from 2.0.0 to 2.0.1
Trott Feb 8, 2021
cd5020c
tools: update remark-preset-lint-node to 2.1.1
Trott Mar 4, 2021
9645583
tools: update glob-parent to 5.1.2
Trott Mar 7, 2021
a67e689
test: change Fixes: to Refs:
Trott Jul 30, 2020
402ba0b
test: move buffer-as-path symlink test to its own test file
Trott Jul 30, 2020
5ede8ad
deps: V8: cherry-pick ab2340a9b994
targos Apr 30, 2021
f755fc4
deps: V8: cherry-pick 00245033cf75
targos Apr 30, 2021
aa15690
2021-05-11, Version 14.17.0 'Fermium' (LTS)
danielleadams May 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 18 additions & 4 deletions .eslintrc.js
Expand Up @@ -16,7 +16,9 @@ const ModuleFindPath = Module._findPath;
const hacks = [
'eslint-plugin-node-core',
'eslint-plugin-markdown',
'babel-eslint',
'@babel/eslint-parser',
'@babel/plugin-syntax-class-properties',
'@babel/plugin-syntax-top-level-await',
];
Module._findPath = (request, paths, isMain) => {
const r = ModuleFindPath(request, paths, isMain);
Expand All @@ -37,15 +39,25 @@ Module._findPath = (request, paths, isMain) => {
module.exports = {
root: true,
plugins: ['markdown', 'node-core'],
parser: 'babel-eslint',
parserOptions: { sourceType: 'script' },
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
plugins: [
Module._findPath('@babel/plugin-syntax-class-properties'),
Module._findPath('@babel/plugin-syntax-top-level-await'),
],
},
requireConfigFile: false,
sourceType: 'script',
},
overrides: [
{
files: [
'doc/api/esm.md',
'doc/api/module.md',
'doc/api/modules.md',
'doc/api/packages.md',
'doc/api/wasi.md',
'test/es-module/test-esm-type-flag.js',
'test/es-module/test-esm-type-flag-alias.js',
'*.mjs',
Expand Down Expand Up @@ -275,13 +287,15 @@ module.exports = {
'template-curly-spacing': 'error',
'unicode-bom': 'error',
'use-isnan': 'error',
'valid-typeof': 'error',
'valid-typeof': ['error', { requireStringLiterals: true }],

// Custom rules from eslint-plugin-node-core
'node-core/no-unescaped-regexp-dot': 'error',
'node-core/no-duplicate-requires': 'error',
},
globals: {
AbortController: 'readable',
AbortSignal: 'readable',
Atomics: 'readable',
BigInt: 'readable',
BigInt64Array: 'readable',
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1-bug-report.md
Expand Up @@ -15,7 +15,7 @@ repo. https://github.com/nodejs/help
Please fill in as much of the template below as you're able.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Platform: output of `uname -a` (UNIX), or output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in PowerShell console (Windows)
Subsystem: if known, please specify affected core module name
-->

Expand Down
22 changes: 8 additions & 14 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -1,21 +1,15 @@
<!--
Thank you for your pull request. Please provide a description above and review
the requirements below.
Before submitting a pull request, please read
https://github.com/nodejs/node/blob/master/CONTRIBUTING.md.

Bug fixes and new features should include tests and possibly benchmarks.
Commit message formatting guidelines:
https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#commit-message-guidelines

Contributors guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
-->

##### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

- [ ] `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes
- [ ] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [ ] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#commit-message-guidelines)

<!--
Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:
Expand Down
195 changes: 195 additions & 0 deletions .github/label-pr-config.yml
@@ -0,0 +1,195 @@
## Order of entries in this map *does* matter for the resolved labels
## earlier entries override later entries
subSystemLabels:
# src subsystems
/^src\/async-wrap/: c++, async_wrap
/^src\/(?:base64|node_buffer|string_)/: c++, buffer
/^src\/cares/: c++, cares
/^src\/(?:process_wrap|spawn_)/: c++, child_process
/^src\/(?:node_)?crypto/: c++, crypto
/^src\/(?:debug-|node_debug)/: c++, debugger
/^src\/udp_/: c++, dgram
/^src\/(?:fs_|node_file|node_stat_watcher)/: c++, fs
/^src\/node_http_parser/: c++, http_parser
/^src\/node_i18n/: c++, intl
/^src\/uv\./: c++, libuv
/^src\/(?:connect(?:ion)?|pipe|tcp)_/: c++, net
/^src\/node_os/: c++, os
/^src\/(?:node_main|signal_)/: c++, process
/^src\/timer_/: c++, timers
/^src\/(?:CNNICHashWhitelist|node_root_certs|tls_)/: c++, tls
/^src\/tty_/: c++, tty
/^src\/node_url/: c++, url-whatwg
/^src\/node_util/: c++, util
/^src\/(?:node_v8|v8abbr)/: c++, V8 Engine
/^src\/node_contextify/: c++, vm
/^src\/.*win32.*/: c++, windows
/^src\/node_zlib/: c++, zlib
/^src\/tracing/: c++, tracing
/^src\/node_api/: c++, n-api
/^src\/node_http2/: c++, http2, dont-land-on-v6.x
/^src\/node_report/: c++, report
/^src\/node_wasi/: c++, wasi
/^src\/node_worker/: c++, worker
/^src\/quic\/*/: c++, quic, dont-land-on-v14.x, dont-land-on-v12.x
/^src\/node_bob*/: c++, quic, dont-land-on-v14.x, dont-land-on-v12.x

# don't label python files as c++
/^src\/.+\.py$/: lib / src, needs-ci

# properly label changes to v8 inspector integration-related files
/^src\/inspector_/: c++, inspector, needs-ci

# don't want to label it a c++ update when we're "only" bumping the Node.js version
/^src\/(?!node_version\.h)/: c++
# BUILDING.md should be marked as 'build' in addition to 'doc'
/^BUILDING\.md$/: build, doc
# meta is a very specific label for things that are policy and or meta-info related
/^([A-Z]+$|CODE_OF_CONDUCT|ROADMAP|WORKING_GROUPS|GOVERNANCE|CHANGELOG|\.mail|\.git.+)/: meta
# things that edit top-level .md files are always a doc change
/^\w+\.md$/: doc
# different variants of *Makefile and build files
/^(tools\/)?(Makefile|BSDmakefile|create_android_makefiles|\.travis\.yml)$/: build, needs-ci
/^tools\/(install\.py|genv8constants\.py|getnodeversion\.py|js2c\.py|utils\.py|configure\.d\/.*)$/: build, needs-ci
/^vcbuild\.bat$/: build, windows, needs-ci
/^(android-)?configure|node\.gyp|common\.gypi$/: build, needs-ci
# more specific tools
/^tools\/gyp/: tools, build, needs-ci
/^tools\/doc\//: tools, doc
/^tools\/icu\//: tools, intl, needs-ci
/^tools\/(?:osx-pkg\.pmdoc|pkgsrc)\//: tools, macos, install
/^tools\/(?:(?:mac)?osx-)/: tools, macos
/^tools\/test-npm/: tools, test, npm
/^tools\/test/: tools, test
/^tools\/(?:certdata|mkssldef|mk-ca-bundle)/: tools, openssl, tls
/^tools\/msvs\//: tools, windows, install, needs-ci
/^tools\/[^/]+\.bat$/: tools, windows, needs-ci
/^tools\/make-v8/: tools, V8 Engine, needs-ci
/^tools\/(code_cache|snapshot|v8_gypfiles)/: needs-ci,
/^tools\/build-addons.js/: needs-ci,
# all other tool changes should be marked as such
/^tools\//: tools
/^\.eslint|\.remark|\.editorconfig/: tools

## Dependencies
# libuv needs an explicit mapping, as the ordinary /deps/ mapping below would
# end up as libuv changes labeled with "uv" (which is a non-existing label)
/^deps\/uv\//: libuv
/^deps\/v8\/tools\/gen-postmortem-metadata\.py/: V8 Engine, post-mortem
/^deps\/v8\//: V8 Engine
/^deps\/uvwasi\//: wasi
/^deps\/nghttp2\/nghttp2\.gyp/: build, http2, dont-land-on-v6.x
/^deps\/nghttp2\//: http2, dont-land-on-v6.x
/^deps\/ngtcp2\//: quic, dont-land-on-v14.x, dont-land-on-v12.x
/^deps\/nghttp3\//: quic, dont-land-on-v14.x, dont-land-on-v12.x
/^deps\/([^/]+)/: $1

## JS subsystems
# Oddities first
/^lib\/(punycode|\w+\/freelist|sys\.js)/: ''
/^lib\/constants\.js$/: lib / src
/^lib\/_(debug_agent|debugger)\.js$/: debugger
/^lib(\/\w+)?\/(_)?link(ed)?list/: timers
/^lib\/\w+\/bootstrap_node/: lib / src
/^lib\/\w+\/v8_prof_/: tools
/^lib\/\w+\/socket_list/: net
/^lib\/\w+\/streams$/: stream
/^lib\/.*http2/: http2, dont-land-on-v6.x
/^lib\/worker_threads.js$/: worker
/^lib\/internal\/url\.js$/: url-whatwg
/^lib\/internal\/modules\/esm/: ES Modules
/^lib\/internal\/quic\/*/: quic, dont-land-on-v14.x, dont-land-on-v12.x

# All other lib/ files map directly
/^lib\/_(\w+)_\w+\.js?$/: $1 # e.g. _(stream)_wrap
/^lib(\/internal)?\/(\w+)\.js?$/: $2 # other .js files
/^lib\/internal\/(\w+)(?:\/|$)/: $1 # internal subfolders

exlusiveLabels:
# more specific tests
/^test\/addons\//: test, addons
/^test\/debugger\//: test, debugger
/^test\/doctool\//: test, doc, tools
/^test\/timers\//: test, timers
/^test\/pseudo-tty\//: test, tty
/^test\/inspector\//: test, inspector
/^test\/cctest\/test_inspector/: test, inspector
/^test\/cctest\/test_url/: test, url-whatwg
/^test\/addons-napi\//: test, n-api
/^test\/async-hooks\//: test, async_hooks
/^test\/report\//: test, report
/^test\/fixtures\/es-module/: test, ES Modules
/^test\/es-module\//: test, ES Modules

/^test\//: test

# specific map for webcrypto.md as it should be labeled 'crypto'
/^doc\/api\/webcrypto.md$/: doc, crypto
# specific map for modules.md as it should be labeled 'module' not 'modules'
/^doc\/api\/modules.md$/: doc, module
# specific map for esm.md as it should be labeled 'ES Modules' not 'esm'
/^doc\/api\/esm.md$/: doc, ES Modules
# n-api is treated separately since it is not a JS core module but is still
# considered a subsystem of sorts
/^doc\/api\/n-api.md$/: doc, n-api
# quic
/^doc\/api\/quic.md$/: doc, quic, dont-land-on-v14.x, dont-land-on-v12.x
# add worker label to PRs that affect doc/api/worker_threads.md
/^doc\/api\/worker_threads.md$/: doc, worker
# automatically tag JS subsystem-specific API doc changes
/^doc\/api\/(\w+)\.md$/: doc, $1
# add deprecations label to PRs that affect doc/api/deprecations.md
/^doc\/api\/deprecations.md$/: doc, deprecations

/^doc\//: doc

# more specific benchmarks
/^benchmark\/buffers\//: benchmark, buffer
/^benchmark\/(?:arrays|es)\//: benchmark, V8 Engine
/^benchmark\/_http/: benchmark, http
/^benchmark\/(?:misc|fixtures)\//: benchmark
/^benchmark\/streams\//: benchmark, stream
/^benchmark\/([^/]+)\//: benchmark, $1

/^benchmark\//: benchmark

allJsSubSystems:
- assert
- async_hooks
- buffer
- child_process
- cluster
- console
- crypto
- debugger
- dgram
- dns
- domain
- events
- esm
- fs
- http
- https
- http2
- module
- net
- os
- path
- process
- querystring
- quic
- readline
- repl
- report
- stream
- string_decoder
- timers
- tls
- tty
- url
- util
- v8
- vm
- wasi
- worker
- zlib
1 change: 1 addition & 0 deletions .github/workflows/close-stalled.yml
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
stale:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/comment-stalled.yml
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
staleComment:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- name: Post comment
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/label-pr.yml
@@ -0,0 +1,14 @@
name: Label PRs

on:
pull_request_target:
types: [opened]

jobs:
label:
runs-on: ubuntu-latest

steps:
- uses: nodejs/node-pr-labeler@v1
with:
configuration-path: .github/label-pr-config.yml
3 changes: 2 additions & 1 deletion .github/workflows/license-builder.yml
Expand Up @@ -7,7 +7,8 @@ on:
workflow_dispatch:

jobs:
update_routes:
update_license:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/linters.yml
Expand Up @@ -77,6 +77,13 @@ jobs:
run: |
make lint-py-build || true
NODE=$(command -v node) make lint-py
lint-sh:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: shellcheck -V
- name: Lint Shell scripts
run: tools/lint-sh.js .

lint-codeowners:
runs-on: ubuntu-latest
Expand All @@ -85,3 +92,12 @@ jobs:
- uses: mszostok/codeowners-validator@v0.4.0
with:
checks: "files,duppatterns"
lint-pr-url:
if: ${{ github.event.pull_request }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
# GH Actions squashes all PR commits, HEAD^ refers to the base branch.
- run: git diff HEAD^ HEAD -G"pr-url:" -- "*.md" | ./tools/lint-pr-url.mjs ${{ github.event.pull_request.html_url }}
25 changes: 25 additions & 0 deletions .github/workflows/notify-force-push.yml
@@ -0,0 +1,25 @@
on:
push:
branches:
- master

name: Notify on Force Push
jobs:
slackNotification:
name: Slack Notification
if: ${{ github.event.forced && github.repository == 'nodejs/node' }}
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@master
env:
SLACK_COLOR: '#DE512A'
SLACK_ICON: https://github.com/nodejs.png?size=48
SLACK_TITLE: '${{ github.actor }} force-pushed to ${{ github.ref }}'
SLACK_MESSAGE: |
A commit was force-pushed to <https://github.com/${{ github.repository }}/tree/master|${{ github.repository }}@master> by <https://github.com/${{ github.actor }}|${{ github.actor }}>

Before: <https://github.com/${{ github.repository }}/commit/${{ github.event.before }}|${{ github.event.before }}>
After: <https://github.com/${{ github.repository }}/commit/${{ github.event.after }}|${{ github.event.after }}>
SLACK_USERNAME: nodejs-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}