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

[pull] master from nodejs:master #14

Closed
wants to merge 1,673 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1673 commits
Select commit Hold shift + click to select a range
3af175f
http2: refactor to use primordials instead of <string>.indexOf
rchougule Dec 29, 2020
96c3498
doc: clarify descriptions of _writev chunks argument
jasnell Jan 6, 2021
421279b
process: passing -1 to setuid/setgid should not abort
jasnell Jan 4, 2021
83b428a
domain: make node resilient to Array prototype tempering
aduh95 Dec 29, 2020
7dea99b
docs: add references to punycode.md
isaacl Jan 3, 2021
324a6c2
async_hooks: add thisArg to AsyncResource.bind
jasnell Jan 4, 2021
f5287a4
crypto: introduce X509Certificate API
jasnell Jan 5, 2021
6498e05
doc: clarify child_process.exec inherits cwd
ugultopu Jan 6, 2021
9574e5b
net: throw ERR_OUT_OF_RANGE if blockList.addSubnet prefix is NaN
Lxxyx Jan 2, 2021
d8f535b
timers: refactor to use optional chaining
Lxxyx Jan 4, 2021
5ae5ca9
doc: add http.IncomingMessage#connection
rexagod Jun 6, 2020
971bbb7
doc: update release key for Danielle Adams
danielleadams Dec 28, 2020
b9ffb82
doc: os.uptime() temporary bug notice
schamberg97 Dec 13, 2020
a3606f2
src: fix typo in crypto_aes.cc
eltociear Jan 1, 2021
7a6af02
zlib: refactor to use primordial instead of <string>.startsWith
rchougule Jan 1, 2021
28e9c10
doc: fix module syncBuiltinESMExports example
bmacnaughton Jul 10, 2020
88d8dde
lib: refactor to use mapping in cluster master
yashLadha Nov 24, 2020
7397c7e
console: refactor to avoid unsafe array iteration
aduh95 Jan 1, 2021
053abac
stream: lazy read ReadStream
mmomtchev Nov 26, 2020
1c4fa9a
benchmark: fix http2 benchmarks
Trott Jan 10, 2021
9883fe0
tools: update doc tool dependencies
targos Jan 8, 2021
6b18987
deps: update nghttp2 to 1.42.0
targos Jan 8, 2021
8e3f606
cluster: fix edge cases that throw ERR_INTERNAL_ASSERTION
oyyd Jan 4, 2021
44cf49e
build: refactor Makefile
RaisinTen Jan 4, 2021
eb8422c
events: refactor to use optional chaining
Lxxyx Jan 4, 2021
6520a87
tools: update all lint-md rollup dependencies
targos Jan 8, 2021
307b79d
tls: refactor to avoid unsafe array iteration
aduh95 Dec 31, 2020
7809c4f
deps: upgrade npm to 7.4.0
ruyadorno Jan 7, 2021
a4fce32
stream: fix .end() error propagation
ronag Jan 6, 2021
b4378aa
crypto: fixup bug in keygen error handling
jasnell Jan 8, 2021
03c0564
crypto: implement basic secure heap support
jasnell Jan 4, 2021
2ceb441
test: use faster variant for rss in test-vm-memleak.js
PoojaDurgad Jan 4, 2021
f4ef517
test: use faster variant for rss in test-crypto-dh-leak
PoojaDurgad Jan 4, 2021
52546c0
stream: finished waits for 'close' on OutgoingMessage
ronag Dec 27, 2020
2af43f6
doc: clarify event.isTrusted text
Trott Jan 7, 2021
1b669b2
http: don't cork noop .end()
ronag Dec 26, 2020
ec794f9
test: http complete response after socket double end
mitsos1os Jan 10, 2021
2e909c4
module: fix Windows folder exports deprecation warning
guybedford Jan 10, 2021
1a0c5d5
lib: simplify `primordials.uncurryThis`
ExE-Boss Jan 10, 2021
088a7e5
doc: define "browser", "production", "development"
guybedford Jan 9, 2021
6e3a832
test: disable test-crypto-secure-heap with asan
jasnell Jan 12, 2021
99580bd
doc: fix indentation on http2 doc entry
Trott Jan 10, 2021
72b678a
fs: allow `position` parameter to be a `BigInt` in read and readSync
RaisinTen Nov 20, 2020
6a7eb32
crypto: fix WebCrypto import of RSA-PSS keys
tniessen Jan 11, 2021
7c37e04
worker: refactor to avoid unsafe array iteration
aduh95 Dec 31, 2020
e70e793
vm: refactor to avoid unsafe array iteration
aduh95 Dec 31, 2020
3a44f37
lib: refactor source_map to avoid unsafe array iteration
aduh95 Dec 31, 2020
251a0ff
zlib: refactor to avoid unsafe array iteration
aduh95 Dec 31, 2020
e2b954b
lib: refactor source_map to use more primordials
aduh95 Dec 31, 2020
302060a
doc: change "it's" to "its" where necessary
tniessen Jan 13, 2021
8f32733
doc: update fs.l/statSync API history for throwIfNoEntry
amcasey Jan 12, 2021
1772ae7
crypto: add keyObject.asymmetricKeyDetails for asymmetric keys
panva Nov 20, 2020
2ba8728
doc: wrap TOC in a <details> tag
Jan 12, 2021
9886d5e
doc: remove unnecessary contributing.md section
Trott Jan 12, 2021
4db9854
crypto: fix randomInt bias
tniessen Jan 12, 2021
00cc39e
doc: update tls test to use better terminology
mhdawson Jan 8, 2021
0f78948
2021-01-14, Version 15.6.0 (Current)
danielleadams Jan 12, 2021
8cf5281
tls: use recently added matching SecureContext in default SNICallback
mkrawczuk Aug 5, 2020
d22f16d
doc: add miladfarca to collaborators
miladfarca Jan 14, 2021
0f57902
doc: add alternative version links to the packages page
panva Jan 13, 2021
ccc6776
test: fix variable name for non-RSA keys
tniessen Jan 13, 2021
d7b1866
test: check mustCall errors in test-fs-read-type
tniessen Jan 13, 2021
0fd9bbb
http2: refactor to avoid unsafe array iteration
aduh95 Dec 29, 2020
cd37535
doc: fixup typo in metadata entry
jasnell Jan 15, 2021
9237280
doc: add iansu to collaborators
iansu Jan 15, 2021
49f900e
tools: add support for top-level await syntax in linter
aduh95 Jan 8, 2021
88a5426
doc: use ESM syntax for WASI example
aduh95 Jan 8, 2021
2afbfb0
doc: remove resolving-a-bug-report from contributing docs
Trott Jan 13, 2021
f64ad30
doc: remove issue template duplication from contributing docs
Trott Jan 13, 2021
963dec3
http: cleanup ClientRequest oncreate
ronag Jan 10, 2021
e39a3f8
http: refactor ClientRequest destroy
ronag Jan 10, 2021
433afd9
test: fixup flaky test-crypto-x509 on windows
jasnell Jan 16, 2021
f658bd1
doc: fix invalid HTML in doc template
Trott Jan 14, 2021
7efada6
url: expose urlToHttpOptions utility
Jan 6, 2021
78ca54c
lib: refactor `primordials.makeSafe` to use more primordials
ExE-Boss Jan 10, 2021
983e922
lib: expose primordials object
aduh95 Jan 15, 2021
5716130
Revert "test: mark test-cluster-bind-privileged-port flaky on arm"
rvagg Jan 12, 2021
146f0fc
test: improve coverage at `lib/internal/vm/module.js`
juanarbol Jan 12, 2021
9566083
url: align url format behavior with browsers
Lxxyx Jan 13, 2021
d58b83d
doc: improve perf_hooks docs
juanarbol Jan 13, 2021
068efba
test: improve coverage on worker threads
juanarbol Jan 13, 2021
ac2c8c5
doc: fixup http.IncomingMessage deprecation code
guybedford Jan 13, 2021
887f199
test: skip internet for test-npm-install
ruyadorno Jan 14, 2021
b003643
doc: fix percentile range in perf_hooks.md
RaisinTen Jan 15, 2021
9e7d1a1
test: improve coverage for `Module` getters
juanarbol Jan 15, 2021
f8ab632
buffer: add base64url encoding option
panva Jan 15, 2021
1f287b0
deps: upgrade npm to 7.4.2
ruyadorno Jan 15, 2021
568b26a
tools: update ESLint to 7.18.0
cjihrig Jan 15, 2021
75a73c4
doc: fix grammar and link to QUIC in changelog
dandv Jan 16, 2021
51e77b3
doc: fix crypto.generateKeySync aes allowed length list
panva Jan 14, 2021
bd899bc
crypto: experimental (Ed/X)25519/(Ed/X)448 support
jasnell Jan 10, 2021
afd911c
deps: V8: cherry-pick fe191e8d05cc
bcoe Jan 16, 2021
9d7fb22
doc: fix module.isPreloading documentation
aduh95 Jan 15, 2021
06c4693
events: remove error listener on signal abort
Lxxyx Jan 16, 2021
a8d8ca3
doc: remove pull-requests.md preamble
Trott Jan 16, 2021
090f0cd
doc: clarify maxSockets option of http.Agent
PoojaDurgad Jan 15, 2021
88153dc
module: simplify tryStatSync with throwIfNoEntry option
aduh95 Jan 16, 2021
408e9d3
doc: add performance notes for fs.readFile
jasnell Jan 11, 2021
9a18bf2
repl: refactor to avoid unsafe array iteration
RaisinTen Dec 28, 2020
59af4e6
perf_hooks: throw ERR_INVALID_ARG_VALUE if histogram.percentile param…
Lxxyx Jan 15, 2021
c880965
test: remove unused ecdhPeerKey
danbev Jan 15, 2021
341bbd3
test: fix warning in test_environment.cc
RaisinTen Jan 8, 2021
cb2535e
os: performance improvement in vector allocation
yashLadha Jan 3, 2021
0aef78e
test: increase buffer list coverage
emilsivervik Dec 30, 2020
3dce4fb
test,benchmark: stop requiring URL and URLSearchParams
RaisinTen Jan 14, 2021
d4bea09
buffer: introduce Blob
jasnell Jan 5, 2021
7be7285
test: add wpt tests for Blob
targos Jan 6, 2021
708728d
http: abortIncoming only on socket close
ronag Jan 6, 2021
3ede3c2
src: use BaseObject::kInternalFieldCount in X509Certificate constructor
joyeecheung Jan 12, 2021
8354ca5
doc: fix typo in http.server.requestTimout docs
alexbs Jan 18, 2021
4ae3135
src: replace push_back with emplace_back in debug_utils
RaisinTen Jan 12, 2021
fc3f1c3
http: attach request as res.req
ianstormtaylor Dec 14, 2020
fef2128
build: fix compiling against openssl with no-psk
Jan 11, 2021
acbd3a4
lib: remove non used getter in `lib/perf_hooks.js`
juanarbol Jan 13, 2021
863ec7d
test: mark flaky tests on IBM i
richardlau Jan 18, 2021
b58fe52
doc: add @RaisinTen to collaborators
RaisinTen Jan 19, 2021
2bb42bf
tools,doc: list the stability status of each API
Lxxyx Nov 22, 2020
e9944e9
util: prefer `Reflect.ownKeys(…)`
ExE-Boss Jan 2, 2021
e3e054d
src: use BaseObject::kInteralFieldCount in Blob
joyeecheung Jan 19, 2021
5faffd8
deps: update ICU to 68.2
targos Jan 18, 2021
37e0a0d
doc: fix maintaining ICU guide
targos Jan 18, 2021
900c9f5
tools: cleanup old ICU version-specific fixes
targos Jan 18, 2021
e279304
lib: refactor to use validateArray
Lxxyx Jan 18, 2021
a35b32e
deps: upgrade npm to 7.4.3
ruyadorno Jan 21, 2021
96f3977
process: runtime deprecate changing process.config
jasnell Jan 12, 2021
cb5668b
lib: refactor to use validateBoolean
Lxxyx Jan 18, 2021
ea2e2df
benchmark: improve explanations in R script
tniessen Jan 19, 2021
432a571
fs: add explicit note about undefined path when recursive
eps1lon Jan 20, 2021
3ec7114
lib: support returning Safe collections from C++
ExE-Boss Jan 17, 2021
ae5e95f
fs: refactor to remove redundant validation
RaisinTen Jan 18, 2021
e884fd7
lib: refactor to use validateNumber
Lxxyx Jan 19, 2021
08dd4b1
lib: refactor to use validateString
Lxxyx Jan 20, 2021
2242cbb
child_process: allow promisified exec to be cancel
metcoder95 Jul 7, 2020
19981ed
readline: add support for the AbortController to the question method
mattiasrunge May 31, 2020
0e7e91f
quic: remove duplicate checks
Lxxyx Jan 21, 2021
dbdc14b
crypto: throw error on invalid object in diffieHellman()
Lxxyx Jan 21, 2021
3f4bfef
test: test mode passed as an options object in mkdir/mkdirSync
RaisinTen Jan 20, 2021
8aea886
test: log error in test-fs-realpath-pipe
joyeecheung Jan 18, 2021
835b85d
doc: add missing ARIA label for button
Trott Jan 23, 2021
6b62f70
test: improve coverage of `SourceTextModule` getters
juanarbol Jan 21, 2021
85e6089
lib: refactor to use optional chaining in internal/options.js
RaisinTen Jan 15, 2021
a87190b
fs: use throwIfNoEntry option on statSync calls
aduh95 Jan 17, 2021
1fe571a
src: inline AsyncCleanupHookHandle in headers
implausible Jan 19, 2021
bf79987
src: mark internally exported functions as explicitly internal
implausible Jan 20, 2021
90cae3a
test: increase timeout on ASAN Action
aduh95 Jan 20, 2021
efa6e1d
doc: list Unsupported Directory Import resolve err
guybedford Jan 23, 2021
d7640a3
readline: add history event and option to set initial history
mattiasrunge May 30, 2020
61f3b71
doc: add missing comma in tty
ma11hew28 Jan 23, 2021
1377163
test: process.nextTick for before exit
ttzztztz Jan 21, 2021
211cd04
test: increase fs promise coverage
emilsivervik Jan 6, 2021
cd1e73a
doc: `EventTarget` and `Event` are available to user code since v15.0.0
ExE-Boss Jan 25, 2021
9da3f21
benchmark: make output RFC 4180 compliant
tniessen Jan 23, 2021
7394311
src: rename crypto_ecdh.(h|cc) to crypto_ec.(h|cc)
tniessen Jan 24, 2021
63d978c
doc: improve AsyncLocalStorage introduction
brillout Jan 15, 2021
21c8c7e
dgram: support AbortSignal in createSocket
Jan 22, 2021
13ac5fb
test: improve assertion message for test-vm-memleak
Trott Jan 23, 2021
258d77a
doc: add tooltip for light/dark mode toggle
Trott Jan 24, 2021
ecb7818
doc: add Zijian Liu to collaborators
Lxxyx Jan 26, 2021
bb13469
crypto: add generatePrime/checkPrime
jasnell Jan 19, 2021
cef00ad
2021-01-26, Version 15.7.0 (Current)
ruyadorno Jan 22, 2021
c5f3565
2021-01-26, Version 10.23.2 'Dubnium' (LTS)
richardlau Jan 22, 2021
996b85b
test,doc,lib: adjust object literal newlines for lint rule
Trott Jan 23, 2021
3e54870
tools: enable object-curly-newline in ESLint rules
Trott Jan 23, 2021
7016c61
test: increase coverage for assert/calltracker
Lxxyx Jan 2, 2021
9603e4a
test: update to improve terminology
mhdawson Jan 20, 2021
da3a948
buffer: avoid creating the backing store in the thread
jasnell Jan 24, 2021
2e1e02a
lib: refactor to avoid unsafe array iteration
aduh95 Jan 23, 2021
4e833b6
process,doc: add missing deprecation code
cjihrig Jan 27, 2021
35fe310
doc: mention adding Fixes to collaborator onboarding PR
joyeecheung Jan 27, 2021
8b65004
crypto: generateKeyPair('ec') should not support NODE-ED* and NODE-X*
panva Jan 25, 2021
c9992a0
crypto: fix encrypted private -> public import
tniessen Jan 24, 2021
8c3cdce
test: increase read file abort coverage
shootermv Jan 1, 2021
064a707
lib: refactor to use validateFunction
Lxxyx Jan 24, 2021
e331046
test: skip tests consistently in parallel.status
Trott Jan 23, 2021
4abe50c
test: increase inspect coverage
emilsivervik Jan 3, 2021
0aaa804
fs: add validatePosition and use in read and readSync
RaisinTen Jan 24, 2021
8c9dc4e
benchmark: add benchmark for NODE_V8_COVERAGE
bcoe Jan 22, 2021
029d1fd
lib: refactor to use validateObject
Lxxyx Jan 21, 2021
728fee2
lib: add `bound apply` variants of varargs `primordials`
ExE-Boss Jan 20, 2021
742342f
test: add tests for `bound apply` variants of varargs `primordials`
ExE-Boss Jan 22, 2021
b9dfda9
doc: update BUILDING.md previous versions links
richardlau Jan 26, 2021
1b222f9
tools: remove commented code from stability.js
cjihrig Jan 27, 2021
b02030d
readline: check for null input in question()
cjihrig Jan 27, 2021
fec093b
readline: replace _questionCancel with a symbol
cjihrig Jan 27, 2021
17467d1
util: add internal createDeferredPromise()
cjihrig Jan 27, 2021
0a993e1
src: fix dead code in RandomPrimeTraits
tniessen Jan 26, 2021
d3906ae
deps: upgrade npm to 7.5.0
ruyadorno Jan 28, 2021
fd02dac
doc: update Buffer encoding option count
davecardwell Jan 27, 2021
255d633
esm: deprecate legacy main lookup for modules
guybedford Jan 13, 2021
1c52ce8
Revert "deps: update patch and docs for openssl update"
jasnell Jan 25, 2021
e63035c
Revert "deps: re-enable OPENSSL_NO_QUIC guards"
jasnell Jan 25, 2021
f763a80
Revert "deps: various quic patches from akamai/openssl"
jasnell Jan 25, 2021
c3d6d50
quic: remove quic
jasnell Jan 25, 2021
290ecb3
deps: update openssl config
jasnell Jan 25, 2021
71cb829
doc: add missing deprecation code
cjihrig Jan 30, 2021
d0a92e2
esm: update to correct deprecation code
cjihrig Jan 30, 2021
683754c
doc: remove TOC summary for pages with no TOC
Trott Jan 24, 2021
c746c40
doc: add example for test structure
wjabbour Sep 4, 2020
e30e035
doc: clarify repl exception conditions
Trott Jan 30, 2021
4a113be
http: refactor to avoid unsafe array iteration
aduh95 Jan 29, 2021
06d7495
doc: clarify ERR_INVALID_REPL_INPUT usage
Trott Jan 30, 2021
e6fbe48
doc: fix markup and alphabetization in errors.md
Trott Jan 30, 2021
419686c
stream: refactor to use more primordials
aduh95 Nov 16, 2020
4ad46e2
stream: refactor to avoid unsafe array iteration
aduh95 Jan 29, 2021
186feb4
fs: only use Buffer.concat in promises.readFile when necessary
addaleax Jan 29, 2021
a126cb5
fs: read full size if known in promises.readFile
addaleax Jan 29, 2021
814f971
doc,test: fix prime generation description
tniessen Jan 26, 2021
f8853dd
async_hooks: refactor to avoid unsafe array iteration
aduh95 Jan 29, 2021
b5f5c46
doc: fix list format in Developer's Certificate of Origin
NegiAkash890 Jan 30, 2021
638fb48
src: expose BaseObject::kInternalFieldCount in post-mortem metadata
joyeecheung Jan 28, 2021
3c0672e
deps: upgrade npm to 7.5.1
ruyadorno Feb 1, 2021
501ae0e
test: remove outdated V8 flag
targos Jan 30, 2021
271e04f
doc: improve promise terminology
benjamingr Feb 2, 2021
a0c0875
src: read exactly two tokens from Linux THP sysfs config
jayaddison Jan 25, 2021
b750f74
doc: fix color contrast on <kbd> elements
aduh95 Feb 2, 2021
84e41d2
test: split heap snapshot limit tests
Trott Feb 2, 2021
c973d50
tls: add ability to get cert/peer cert as X509Certificate object
jasnell Jan 26, 2021
211574b
2021-02-02, Version 15.8.0 (Current)
targos Feb 2, 2021
a8d7de1
crypto: add keyObject.export() 'jwk' format option
panva Jan 26, 2021
861a396
deps: upgrade npm to 7.5.2
ruyadorno Feb 2, 2021
03380bc
stream: improve Readable.from error handling
benjamingr Jan 31, 2021
3b40893
doc: fix 404 links in module.md
aduh95 Feb 3, 2021
b586c6a
doc: fix pr-url for DEP0148
aduh95 Feb 3, 2021
bc396c8
tools: update ESLint to 7.19.0
cjihrig Jan 31, 2021
8b14046
src: simplify calls to BN_bin2bn in prime gen
tniessen Feb 1, 2021
fefc639
timers: introduce setInterval async iterator
Linkgoron Jan 30, 2021
4f44cad
test: remove flaky designation for test-http2-large-file
Trott Jan 31, 2021
bc89048
doc: fix typo in cli.md
0xkalvin Feb 3, 2021
fe43bd8
http: fix ClientRequest unhandled errors
ronag Jan 16, 2021
c148c3a
src: fix warning in string_search.h
RaisinTen Jan 30, 2021
3b36320
doc: fix typo in globals.md
RaisinTen Feb 4, 2021
cfb2e06
timers: remove flaky setInterval test
Feb 4, 2021
703e566
repl: refactor to avoid unsafe array iteration
aduh95 Feb 2, 2021
62cd0eb
doc: fix CHANGELOG_ARCHIVE table of contents
aduh95 Feb 4, 2021
6385340
doc: fix version number for DEP006
aduh95 Feb 4, 2021
664cce9
fs: add AbortSignal support to watch
benjamingr Feb 2, 2021
9aeb836
src: refactor bookkeeping of bootstrap status
joyeecheung Jan 28, 2021
2e769a9
src: put (de)serialization code into node_snapshotable.h/cc
joyeecheung Jan 28, 2021
a6de951
doc: fix accommodate typos
cjihrig Feb 4, 2021
bf2f2b7
vm: add importModuleDynamically option to compileFunction
devsnek Sep 25, 2020
7d0f680
fs: use a default callback for fs.close()
jasnell Feb 1, 2021
29789f7
doc: fix webcrypto HMAC generateKey example
panva Feb 3, 2021
88be944
doc: mention CryptoKey in port.postMessage()
panva Feb 3, 2021
931c2d1
doc: consistent webcrypto `node.keyObject` format
panva Feb 3, 2021
e8286bb
doc: mark Certificate methods as static, add missing KeyObject.from
panva Feb 3, 2021
2ff1c83
crypto: remove webcrypto "DSA" JWK Key Type operations
panva Feb 3, 2021
4b7f23f
test: rename n-api to node-api
Feb 3, 2021
6b8b165
fs: allow passing negative zero fd
RaisinTen Jan 29, 2021
3aba6fe
repl: add auto‑completion for dynamic import calls
ExE-Boss Feb 2, 2021
c0e66e3
timers: fix unsafe array iteration
RaisinTen Feb 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
quote_type = single

[vcbuild.bat]
end_of_line = crlf
Expand Down
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
lib/internal/v8_prof_polyfill.js
lib/punycode.js
test/addons/??_*
test/fixtures
Expand Down
29 changes: 26 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
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,13 +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 @@ -148,6 +162,7 @@ module.exports = {
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
'no-new-require': 'error',
'no-new-symbol': 'error',
'no-nonoctal-decimal-escape': 'error',
'no-obj-calls': 'error',
'no-octal': 'error',
'no-path-concat': 'error',
Expand Down Expand Up @@ -224,6 +239,8 @@ module.exports = {
'no-unreachable': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'no-unsafe-optional-chaining': 'error',
'no-unused-expressions': ['error', { allowShortCircuit: true }],
'no-unused-labels': 'error',
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],
'no-use-before-define': ['error', {
Expand All @@ -241,6 +258,7 @@ module.exports = {
'no-void': 'error',
'no-whitespace-before-property': 'error',
'no-with': 'error',
'object-curly-newline': 'error',
'object-curly-spacing': ['error', 'always'],
'one-var': ['error', { initialized: 'never' }],
'one-var-declaration-per-line': 'error',
Expand Down Expand Up @@ -285,6 +303,11 @@ module.exports = {
BigInt: 'readable',
BigInt64Array: 'readable',
BigUint64Array: 'readable',
Event: 'readable',
EventTarget: 'readable',
MessageChannel: 'readable',
MessageEvent: 'readable',
MessagePort: 'readable',
TextEncoder: 'readable',
TextDecoder: 'readable',
queueMicrotask: 'readable',
Expand Down
150 changes: 92 additions & 58 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -5,79 +5,113 @@
# 3. PRs touching any code with a codeowner must be signed off by at least one
# person on the code owner team.

./.github/CODEOWNERS @nodejs/tsc
# tsc & commcomm

/.github/CODEOWNERS @nodejs/tsc
/GOVERNANCE.md @nodejs/tsc
/onboarding.md @nodejs/tsc
/CODE_OF_CONDUCT.md @nodejs/tsc @nodejs/community-committee
/CONTRIBUTING.md @nodejs/tsc @nodejs/community-committee
/LICENSE @nodejs/tsc @nodejs/community-committee
/doc/guides/contributing/code-of-conduct.md @nodejs/tsc @nodejs/community-committee
# TODO(mmarchini): the bot doens't have a notion of precedence, that might
# change when move the codeowners code to an Action, at which point we can
# uncomment the line below
# /doc/guides/contributing/*.md @nodejs/tsc
/doc/guides/contributing/issues.md @nodejs/tsc
/doc/guides/contributing/pull-requests.md @nodejs/tsc
/doc/guides/collaborator-guide.md @nodejs/tsc
/doc/guides/offboarding.md @nodejs/tsc
/doc/guides/onboarding-extras.md @nodejs/tsc

# streams

/lib/_stream* @nodejs/streams
/lib/stream.js @nodejs/streams
/lib/stream/* @nodejs/streams
/lib/internal/streams/* @nodejs/streams

# net

# ./deps/cares @nodejs/net
# ./doc/api/dns.md @nodejs/net
# ./doc/api/dgram.md @nodejs/net
# ./doc/api/net.md @nodejs/net
# ./lib/dgram.js @nodejs/net
# ./lib/dns.js @nodejs/net
# ./lib/net.js @nodejs/net @nodejs/quic
# ./lib/internal/dgram.js @nodejs/net
# ./lib/internal/dns/* @nodejs/net
# ./lib/internal/net.js @nodejs/net
# ./lib/internal/socket_list.js @nodejs/net
# ./lib/internal/js_stream_socket.js @nodejs/net
# ./src/cares_wrap.h @nodejs/net
# ./src/connect_wrap.* @nodejs/net
# ./src/connection_wrap.* @nodejs/net
# ./src/node_sockaddr* @nodejs/net
# ./src/tcp_wrap.* @nodejs/net
# ./src/udp_wrap.* @nodejs/net
/deps/cares @nodejs/net
/doc/api/dns.md @nodejs/net
/doc/api/dgram.md @nodejs/net
/doc/api/net.md @nodejs/net
/lib/dgram.js @nodejs/net
/lib/dns.js @nodejs/net
/lib/net.js @nodejs/net
/lib/internal/dgram.js @nodejs/net
/lib/internal/dns/* @nodejs/net
/lib/internal/net.js @nodejs/net
/lib/internal/socket_list.js @nodejs/net
/lib/internal/js_stream_socket.js @nodejs/net
/src/cares_wrap.cc @nodejs/net
/src/connect_wrap.* @nodejs/net
/src/connection_wrap.* @nodejs/net
/src/node_sockaddr* @nodejs/net
/src/tcp_wrap.* @nodejs/net
/src/udp_wrap.* @nodejs/net

# tls/crypto

# ./lib/internal/crypto/* @nodejs/crypto
# ./lib/internal/tls.js @nodejs/crypto @nodejs/net
# ./lib/crypto.js @nodejs/crypto
# ./lib/tls.js @nodejs/crypto @nodejs/net
# ./src/node_crypto* @nodejs/crypto
# ./src/node_crypto_common* @nodejs/crypto @nodejs/quic
/lib/internal/crypto/* @nodejs/crypto
/lib/internal/tls.js @nodejs/crypto @nodejs/net
/lib/crypto.js @nodejs/crypto
/lib/tls.js @nodejs/crypto @nodejs/net
/src/node_crypto* @nodejs/crypto
/src/crypto/* @nodejs/crypto

# http

# ./deps/llhttp/* @nodejs/http @nodejs/net
# ./doc/api/http.md @nodejs/http @nodejs/net
# ./doc/api/http2.md @nodejs/http @nodejs/net
# ./lib/_http_* @nodejs/http @nodejs/net
# ./lib/http.js @nodejs/http @nodejs/net
# ./lib/https.js @nodejs/crypto @nodejs/net @nodejs/http
# ./src/node_http_common* @nodejs/http @nodejs/http2 @nodejs/quic @nodejs/net
# ./src/node_http_parser.cc @nodejs/http @nodejs/net
/deps/llhttp/* @nodejs/http @nodejs/net
/doc/api/http.md @nodejs/http @nodejs/net
/lib/_http_* @nodejs/http @nodejs/net
/lib/http.js @nodejs/http @nodejs/net
/lib/https.js @nodejs/crypto @nodejs/net @nodejs/http
/src/node_http_common* @nodejs/http @nodejs/http2 @nodejs/net
/src/node_http_parser.cc @nodejs/http @nodejs/net

# http2

# ./deps/nghttp2/* @nodejs/http2 @nodejs/net
# ./doc/api/http2.md @nodejs/http2 @nodejs/net
# ./lib/http2.js @nodejs/http2 @nodejs/net
# ./lib/internal/http2/* @nodejs/http2 @nodejs/net
# ./src/node_http2* @nodejs/http2 @nodejs/net
# ./src/node_mem* @nodejs/http2

# quic

/deps/ngtcp2/ @nodejs/quic
/deps/nghttp3/ @nodejs/quic
/doc/api/quic.md @nodejs/quic
/lib/internal/quic/ @nodejs/quic
/src/node_bob* @nodejs/quic
/src/quic/ @nodejs/quic
/deps/nghttp2/* @nodejs/http2 @nodejs/net
/doc/api/http2.md @nodejs/http2 @nodejs/http @nodejs/net
/lib/http2.js @nodejs/http2 @nodejs/net
/lib/internal/http2/* @nodejs/http2 @nodejs/net
/src/node_http2* @nodejs/http2 @nodejs/net
/src/node_mem* @nodejs/http2

# modules

# ./doc/api/modules.md @nodejs/modules
# ./doc/api/esm.md @nodejs/modules
# ./lib/module.js @nodejs/modules
# ./lib/internal/modules/* @nodejs/modules
# ./lib/internal/bootstrap/loaders.js @nodejs/modules
# ./src/module_wrap* @nodejs/modules @nodejs/vm
/doc/api/modules.md @nodejs/modules
/doc/api/esm.md @nodejs/modules
/doc/api/module.md @nodejs/modules
/doc/api/packages.md @nodejs/modules
/lib/module.js @nodejs/modules
/lib/internal/modules/* @nodejs/modules
/lib/internal/bootstrap/loaders.js @nodejs/modules
/src/module_wrap* @nodejs/modules @nodejs/vm

# N-API

# /src/node_api* @nodejs/n-api
# /src/js_native_api* @nodejs/n-api
# /doc/guides/adding-new-napi-api.md @nodejs/n-api
# /doc/api/n-api.md @nodejs/n-api
/src/node_api* @nodejs/n-api
/src/js_native_api* @nodejs/n-api
/doc/guides/adding-new-napi-api.md @nodejs/n-api
/doc/api/n-api.md @nodejs/n-api

# WASI
/deps/uvwasi/ @nodejs/wasi
/doc/api/wasi.md @nodejs/wasi
/lib/wasi.js @nodejs/wasi
/src/node_wasi* @nodejs/wasi
/test/wasi/ @nodejs/wasi
/test/fixtures/wasi/ @nodejs/wasi

# Startup

/benchmark/misc/startup.js @nodejs/startup
/src/node.cc @nodejs/startup
/src/node_code_cache_stub.cc @nodejs/startup
/src/node_native_module* @nodejs/startup
/lib/internal/bootstrap/* @nodejs/startup
/tools/code_cache/* @nodejs/startup
/tools/snapshot/* @nodejs/startup
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1-bug-report.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ If you didn't find an answer in the resources above, try these unofficial
resources:

* [Questions tagged 'node.js' on Stack Overflow](https://stackoverflow.com/questions/tagged/node.js)
* [#nodejs](https://openjs-foundation.slack.com/archives/CK9Q4MB53) channel on the OpenJS Foundation Slack ([join here](https://slack-invite.openjsf.org/))
* [#node.js channel on chat.freenode.net](https://webchat.freenode.net?channels=node.js&uio=d4)
* [Node.js Slack Community](https://node-js.slack.com/)
* To register: [nodeslackers.com](https://www.nodeslackers.com/)
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/auto-start-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
name: Auto Start CI

on:
schedule:
# Runs every five minutes (fastest the scheduler can run). Five minutes is
# optimistic, it can take longer to run.
# To understand why `schedule` is used instead of other events, refer to
# ./doc/guides/commit-queue.md
- cron: "*/5 * * * *"

env:
NODE_VERSION: 14.x

jobs:
startCI:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Install dependencies
- name: Install Node.js
uses: actions/setup-node@v2-beta
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install node-core-utils
run: npm install -g node-core-utils

- name: Set variables
run: |
echo "REPOSITORY=$(echo ${{ github.repository }} | cut -d/ -f2)" >> $GITHUB_ENV
echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV

# Get Pull Requests
- name: Get Pull Requests
uses: octokit/[email protected]
id: get_prs_for_ci
with:
query: |
query prs($owner:String!, $repo:String!) {
repository(owner:$owner, name:$repo) {
pullRequests(labels: ["request-ci"], states: OPEN, last: 100) {
nodes {
number
}
}
}
}
owner: ${{ env.OWNER }}
repo: ${{ env.REPOSITORY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup node-core-utils
run: |
ncu-config set username ${{ secrets.JENKINS_USER }}
ncu-config set token none
ncu-config set jenkins_token ${{ secrets.JENKINS_TOKEN }}
ncu-config set owner ${{ env.OWNER }}
ncu-config set repo ${{ env.REPOSITORY }}

- name: Start CI
run: ./tools/actions/start-ci.sh ${{ secrets.GITHUB_TOKEN }} ${{ env.OWNER }} ${{ env.REPOSITORY }} $(echo '${{ steps.get_prs_for_ci.outputs.data }}' | jq '.repository.pullRequests.nodes | map(.number) | .[]')
Loading