Skip to content

Commit fb24d25

Browse files
committedOct 28, 2020
Merge node 12.19.0
Merges the changes from the node v12.19.0 release into nodejs-mobile.
2 parents c8ed416 + d68bff2 commit fb24d25

File tree

2,905 files changed

+211060
-94641
lines changed

Some content is hidden

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

2,905 files changed

+211060
-94641
lines changed
 

‎.eslintrc.js

+2-45
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = {
5959
],
6060
rules: {
6161
// ESLint built-in rules
62-
// http://eslint.org/docs/rules
62+
// https://eslint.org/docs/rules/
6363
'accessor-pairs': 'error',
6464
'array-callback-return': 'error',
6565
'arrow-parens': ['error', 'always'],
@@ -129,6 +129,7 @@ module.exports = {
129129
'no-dupe-else-if': 'error',
130130
'no-duplicate-case': 'error',
131131
'no-duplicate-imports': 'error',
132+
'no-else-return': ['error', { allowElseIf: true }],
132133
'no-empty-character-class': 'error',
133134
'no-ex-assign': 'error',
134135
'no-extra-boolean-cast': 'error',
@@ -189,34 +190,6 @@ module.exports = {
189190
// as well to lib/.eslintrc.yaml.
190191
'no-restricted-syntax': [
191192
'error',
192-
{
193-
selector: "CallExpression[callee.property.name='deepStrictEqual'][arguments.2.type='Literal']",
194-
message: 'Do not use a literal for the third argument of assert.deepStrictEqual()',
195-
},
196-
{
197-
selector: "CallExpression[callee.property.name='doesNotThrow']",
198-
message: 'Do not use `assert.doesNotThrow()`. Write the code without the wrapper and add a comment instead.',
199-
},
200-
{
201-
selector: "CallExpression[callee.property.name='doesNotReject']",
202-
message: 'Do not use `assert.doesNotReject()`. Write the code without the wrapper and add a comment instead.',
203-
},
204-
{
205-
selector: "CallExpression[callee.property.name='rejects'][arguments.length<2]",
206-
message: '`assert.rejects()` must be invoked with at least two arguments.',
207-
},
208-
{
209-
selector: "CallExpression[callee.property.name='strictEqual'][arguments.2.type='Literal']",
210-
message: 'Do not use a literal for the third argument of assert.strictEqual()',
211-
},
212-
{
213-
selector: "CallExpression[callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])",
214-
message: 'Use an object as second argument of `assert.throws()`.',
215-
},
216-
{
217-
selector: "CallExpression[callee.property.name='throws'][arguments.length<2]",
218-
message: '`assert.throws()` must be invoked with at least two arguments.',
219-
},
220193
{
221194
selector: "CallExpression[callee.name='setTimeout'][arguments.length<2]",
222195
message: '`setTimeout()` must be invoked with at least two arguments.',
@@ -229,22 +202,6 @@ module.exports = {
229202
selector: 'ThrowStatement > CallExpression[callee.name=/Error$/]',
230203
message: 'Use `new` keyword when throwing an `Error`.',
231204
},
232-
{
233-
selector: "CallExpression[callee.property.name='notDeepStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
234-
message: 'The first argument should be the `actual`, not the `expected` value.',
235-
},
236-
{
237-
selector: "CallExpression[callee.property.name='notStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
238-
message: 'The first argument should be the `actual`, not the `expected` value.',
239-
},
240-
{
241-
selector: "CallExpression[callee.property.name='deepStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
242-
message: 'The first argument should be the `actual`, not the `expected` value.',
243-
},
244-
{
245-
selector: "CallExpression[callee.property.name='strictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
246-
message: 'The first argument should be the `actual`, not the `expected` value.',
247-
},
248205
{
249206
selector: "CallExpression[callee.name='isNaN']",
250207
message: 'Use Number.isNaN() instead of the global isNaN() function.',

‎.github/CODEOWNERS

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Node.js Project Codeowners
2+
3+
# 1. Codeowners must always be teams, never individuals
4+
# 2. Each codeowner team should contain at least one TSC member
5+
# 3. PRs touching any code with a codeowner must be signed off by at least one
6+
# person on the code owner team.
7+
8+
# tsc & commcomm
9+
10+
/.github/CODEOWNERS @nodejs/tsc
11+
/GOVERNANCE.md @nodejs/tsc
12+
/onboarding.md @nodejs/tsc
13+
/CODE_OF_CONDUCT.md @nodejs/tsc @nodejs/community-committee
14+
/CONTRIBUTING.md @nodejs/tsc @nodejs/community-committee
15+
/LICENSE @nodejs/tsc @nodejs/community-committee
16+
/doc/guides/contributing/code-of-conduct.md @nodejs/tsc @nodejs/community-committee
17+
# TODO(mmarchini): the bot doens't have a notion of precedence, that might
18+
# change when move the codeowners code to an Action, at which point we can
19+
# uncomment the line below
20+
# /doc/guides/contributing/*.md @nodejs/tsc
21+
/doc/guides/contributing/issues.md @nodejs/tsc
22+
/doc/guides/contributing/pull-requests.md @nodejs/tsc
23+
/doc/guides/collaborator-guide.md @nodejs/tsc
24+
/doc/guides/offboarding.md @nodejs/tsc
25+
/doc/guides/onboarding-extras.md @nodejs/tsc
26+
27+
# net
28+
29+
/deps/cares @nodejs/net
30+
/doc/api/dns.md @nodejs/net
31+
/doc/api/dgram.md @nodejs/net
32+
/doc/api/net.md @nodejs/net
33+
/lib/dgram.js @nodejs/net
34+
/lib/dns.js @nodejs/net
35+
/lib/net.js @nodejs/net @nodejs/quic
36+
/lib/internal/dgram.js @nodejs/net
37+
/lib/internal/dns/* @nodejs/net
38+
/lib/internal/net.js @nodejs/net
39+
/lib/internal/socket_list.js @nodejs/net
40+
/lib/internal/js_stream_socket.js @nodejs/net
41+
/src/cares_wrap.h @nodejs/net
42+
/src/connect_wrap.* @nodejs/net
43+
/src/connection_wrap.* @nodejs/net
44+
/src/node_sockaddr* @nodejs/net
45+
/src/tcp_wrap.* @nodejs/net
46+
/src/udp_wrap.* @nodejs/net
47+
48+
# tls/crypto
49+
50+
/lib/internal/crypto/* @nodejs/crypto
51+
/lib/internal/tls.js @nodejs/crypto @nodejs/net
52+
/lib/crypto.js @nodejs/crypto
53+
/lib/tls.js @nodejs/crypto @nodejs/net
54+
/src/node_crypto* @nodejs/crypto
55+
/src/node_crypto_common* @nodejs/crypto @nodejs/quic
56+
57+
# http
58+
59+
/deps/llhttp/* @nodejs/http @nodejs/net
60+
/doc/api/http.md @nodejs/http @nodejs/net
61+
/doc/api/http2.md @nodejs/http @nodejs/net
62+
/lib/_http_* @nodejs/http @nodejs/net
63+
/lib/http.js @nodejs/http @nodejs/net
64+
/lib/https.js @nodejs/crypto @nodejs/net @nodejs/http
65+
/src/node_http_common* @nodejs/http @nodejs/http2 @nodejs/quic @nodejs/net
66+
/src/node_http_parser.cc @nodejs/http @nodejs/net
67+
68+
# http2
69+
70+
/deps/nghttp2/* @nodejs/http2 @nodejs/net
71+
/doc/api/http2.md @nodejs/http2 @nodejs/net
72+
/lib/http2.js @nodejs/http2 @nodejs/net
73+
/lib/internal/http2/* @nodejs/http2 @nodejs/net
74+
/src/node_http2* @nodejs/http2 @nodejs/net
75+
/src/node_mem* @nodejs/http2
76+
77+
# modules
78+
79+
/doc/api/modules.md @nodejs/modules
80+
/doc/api/esm.md @nodejs/modules
81+
/doc/api/module.md @nodejs/modules
82+
/doc/api/packages.md @nodejs/modules
83+
/lib/module.js @nodejs/modules
84+
/lib/internal/modules/* @nodejs/modules
85+
/lib/internal/bootstrap/loaders.js @nodejs/modules
86+
/src/module_wrap* @nodejs/modules @nodejs/vm
87+
88+
# N-API
89+
90+
/src/node_api* @nodejs/n-api
91+
/src/js_native_api* @nodejs/n-api
92+
/doc/guides/adding-new-napi-api.md @nodejs/n-api
93+
/doc/api/n-api.md @nodejs/n-api
94+
95+
# WASI
96+
/deps/uvwasi/ @nodejs/wasi
97+
/doc/api/wasi.md @nodejs/wasi
98+
/lib/wasi.js @nodejs/wasi
99+
/src/node_wasi* @nodejs/wasi
100+
/test/wasi/ @nodejs/wasi
101+
/test/fixtures/wasi/ @nodejs/wasi

0 commit comments

Comments
 (0)
Failed to load comments.