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

V12.x staging #29032

Closed
wants to merge 992 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
992 commits
Select commit Hold shift + click to select a range
0a0832f
doc: address missing paren
cjihrig Jun 30, 2019
ec9ba4b
doc: remove unnecessary stability specifiers
cjihrig Jun 30, 2019
59aaee4
doc: format try...catch consistently
cjihrig Jun 30, 2019
68ed32f
doc: fix link from bootstrap README to BUILDING
rvagg Jul 2, 2019
f3f51e4
src: use thread_local to declare modpending
Jun 27, 2019
e4f1e90
test: increase test-resource-usage.js validation
cjihrig Jul 1, 2019
6fbad8b
src: configure v8 isolate with uv_get_constrained_memory
kjin May 17, 2019
e6e98af
readline: fix position computation
BenoitZugmeyer Jun 17, 2019
cbf5401
worker: assign missing deprecation code
jasnell Jun 23, 2019
49c5339
test: fix assertion argument order in test-https-agent.js
JulianAlexis Jun 21, 2019
c177a68
doc: provide an example to fs.stat()
fev4 Jun 22, 2019
e83b256
doc: add example for chmod in fs.md
roadev Jun 21, 2019
f0c436f
test: switch the argument order for the assertion
IvanVilla1585 Jun 21, 2019
7d3ddfe
build: remove --code-cache-path help option
danbev Jun 27, 2019
33ab37f
test: skip stringbytes-external-exceed-max on AIX
sam-github Jul 2, 2019
b7731eb
test: skip pseudo-tty tests on AIX
sam-github Jul 4, 2019
29d2076
doc: simplify `process.resourceUsage()` section
vsemozhetbyt Jul 1, 2019
13f1393
test: unmark test-gc-http-client-onerror flaky
Trott Jun 25, 2019
e854bfa
test: create home for test-npm-install
danbev Jul 2, 2019
8d41b07
src: remove unused using declarations in src/api
danbev Jul 1, 2019
4941d47
test: don't use deprecated crypto.fips property
bnoordhuis Jul 2, 2019
0777e09
doc: fix family default value in socket.connect
fanatid Jul 3, 2019
38f8cd5
http: improve parser error messages
addaleax Jun 30, 2019
c3311c2
test: generate des rsa_cert.pfx
Jun 28, 2019
48c369b
src: correct json writer placement in process.report
himself65 Jun 26, 2019
793163e
test: check writeReport when error with one line stack
himself65 Jun 26, 2019
5980373
test: check getReport when error with one line stack
himself65 Jun 26, 2019
4c333f4
test: change the repeat Buffer.from('blerg'); statments
themiken Jun 21, 2019
24a77ae
doc: add description for the listener argument
lpinca Jul 1, 2019
d2ba454
doc: fix link in build instructions
GauthamBanasandra Jul 6, 2019
75c6281
lib: use `class ... extends` in perf_hooks.js
addaleax Jul 1, 2019
66382ab
inspector: reduce InspectorIo API surface
eugeneo Jul 3, 2019
d4113f9
src: block SIGTTOU before calling tcsetattr()
bnoordhuis Jul 4, 2019
e2adfb7
test: refactor test-fs-write-sync
gabynr Jun 21, 2019
4cb0fc3
process: refactor unhandledRejection logic
cjihrig Jul 4, 2019
a24ab56
src: allow fatal exceptions to be enhanced
cjihrig Jul 5, 2019
643d099
doc: document family:0 behavior in socket.connect
cjihrig Jul 6, 2019
2205818
doc: format Unix consistently
cjihrig Jul 6, 2019
6f3ebb8
doc: clarify http2 server.close() behavior
cjihrig Jul 6, 2019
a6d50a7
doc: make tls links more readable
cjihrig Jul 6, 2019
f0e4bf9
doc: remove URLs from zlib docs
cjihrig Jul 6, 2019
70c3116
doc: mention markdown linting in BUILDING.md
srcmake Jul 6, 2019
0e2cbe6
worker: fix passing multiple SharedArrayBuffers at once
addaleax Jul 6, 2019
4f035e4
src: implement runtime option --no-node-snapshot for debugging
joyeecheung Jul 5, 2019
608d6ed
build: update Windows icon to Feb 2016 rebrand
mikemaccana Jul 3, 2019
c432ab1
src: simplify DEP0062 logic
cjihrig Jul 7, 2019
a8b094c
src: implement special member functions for classes in env.h
GauthamBanasandra Jul 6, 2019
9be1111
doc: move Usage and Example to same header level
Trott Jul 5, 2019
5b9c227
http2: override authority with options
lpinca Jul 7, 2019
44de431
n-api: make thread-safe-function calls properly
Jul 9, 2019
b1db810
gyp: pull Python 3 changes from node/node-gyp
cclauss Jul 6, 2019
b4643dd
test: add test-fs-writeFileSync-invalid-windows
Trott Jul 5, 2019
ac9908f
doc: update stream.md "Organization of this Document"
Trott Jul 8, 2019
0aca527
doc: mention unit for event loop delay measurements
jkrems Jul 10, 2019
9975311
perf_hooks: add HttpRequest statistics monitoring #28445
vmarchaud Jun 30, 2019
74af944
doc: add line for inspect host:port invocation
Jun 24, 2019
729b232
doc: change 'unix' to 'Unix' in ninja guide
Trott Jul 10, 2019
ccb54f7
tools: add markdown lint rule for 'Unix'
Trott Jul 10, 2019
0380a55
doc: edit stream module introduction
Trott Jul 8, 2019
871a60c
doc: fix nits in stream.md
vsemozhetbyt Jul 7, 2019
22daf95
src: clang build warning fix
devnexen Jun 30, 2019
3c418d9
src: manage MakeContext() pointer with unique_ptr
cjihrig Jul 9, 2019
171c8f4
build: do not always build the default V8 snapshot
targos Jun 28, 2019
bf2d5a7
doc: add a link to the throw-deprecations flag
lholmquist Jul 10, 2019
f7a13e5
doc: relax requirements for setAAD in CCM mode
tniessen Jul 10, 2019
ebc3876
doc: add missing types
lpinca Jul 10, 2019
35e3f1f
report: modify getReport() to return an Object
boneskull Jul 10, 2019
c50e235
src: replace already elevated Object, Local v8 namespace
juanarbol Jul 9, 2019
d34c256
src, tools: replace raw ptr with smart ptr
GauthamBanasandra Jul 6, 2019
d7c7023
doc: add example on how to create __filename, __dirname for esm
GrosSacASac Jun 18, 2019
29fda66
src: simplify --debug flags
cjihrig Jul 9, 2019
f688122
doc: drop 'for more details' in deprecations
cjihrig Jul 9, 2019
e0c5e7a
readline: use named constant for surrogate checks
cjihrig Jul 11, 2019
dc73403
readline: remove IIFE in SIGCONT handler
cjihrig Jul 11, 2019
0383947
readline: simplify isFullWidthCodePoint()
cjihrig Jul 11, 2019
3f65b91
doc: remove superfluous MDN link in assert.md
Trott Jun 15, 2019
17df75f
readline: expose stream API in clearScreenDown()
cjihrig Jul 11, 2019
18c56df
path: using .relative() should not return a trailing slash
BridgeAR Jul 5, 2019
5b5c819
path: move branch to the correct location
BridgeAR Jul 5, 2019
7a4062a
doc: mark process.report as experimental
cjihrig Jul 12, 2019
aee8694
doc: mark N-API thread-safe function stable
Jul 11, 2019
03de306
zlib: do not coalesce multiple `.flush()` calls
addaleax Jul 3, 2019
5c1d595
src: add cleanup hook for ContextifyContext
addaleax Jul 10, 2019
c7cb70c
deps: update acorn to 6.2.0
targos Jul 12, 2019
62f3682
http2: report memory allocated by nghttp2 to V8
addaleax Jul 11, 2019
9ffa5fb
tools: add coverage to ignored files
lholmquist Jul 10, 2019
209b353
build,v8: support IBM i
dmabupt Jul 9, 2019
9f6600a
test: fix pty test hangs on aix
bnoordhuis Jul 8, 2019
4b9d419
src: lint #defines in src/node.h
srcmake Jul 4, 2019
b4aa7d3
build: remove broken intel vtune support
bnoordhuis Jul 3, 2019
1f0fd1b
src: add missing option parser template for the DebugOptionsParser
MarshallOfSound Jul 4, 2019
499969d
test: increase limit for network space overhead test
Jul 1, 2019
00b2200
stream: use readableEncoding public api for child_process
ZYSzys Jul 5, 2019
5614e08
doc: add documentation for createDiffieHellmanGroup
Jul 7, 2019
9e9bfb6
deps: cherry-pick 13a04aba from V8 upstream
jkunkee Jul 4, 2019
7fa982e
deps: cherry-pick 721dc7d from node-gyp upstream
jkunkee Jul 10, 2019
df0f42a
deps: cherry-pick 91744bf from node-gyp upstream
jkunkee Jul 9, 2019
638c8a3
doc: small grammar correction
cjihrig Jul 13, 2019
aba0cf3
inspector: do not change async call stack depth if the worker is done
eugeneo Jul 6, 2019
8ddf86b
doc: add missing version metadata for Readable.from
addaleax Jul 15, 2019
4321cb2
doc: update js-native-api example
Jul 12, 2019
3a4a236
doc: fix minor typo
shajanjp Jun 10, 2019
312f949
deps: V8: backport d2ccc59
joyeecheung Jul 12, 2019
0b7feca
src: large pages option: FreeBSD support proposal
devnexen Jun 20, 2019
1770bc8
module: increase code coverage of cjs loader
melikhov-dev May 26, 2019
d3f5145
test: use openssl_is_fips instead of hasFipsCrypto
danbev Jul 2, 2019
9b2eee1
test: update hasFipsCrypto in test/common/README
danbev Jul 5, 2019
2308c74
http: expose headers on an http.ClientRequest "information" event
awwright Jun 27, 2019
0f5af44
readline: expose stream API in clearLine()
cjihrig Jul 13, 2019
4a7e20f
readline: expose stream API in moveCursor()
cjihrig Jul 13, 2019
caee910
readline: expose stream API in cursorTo()
cjihrig Jul 14, 2019
06d0abe
http: add response.writableFinished
ronag Jul 14, 2019
d630cc0
gyp: cherrypick more Python3 changes from node-gyp
cclauss Jul 5, 2019
9c6791e
n-api: correct bug in napi_get_last_error
Jul 11, 2019
72f9229
build: specify Python version once for all tests
cclauss Jul 15, 2019
af6608c
test: improve variable names in pty_helper.py
addaleax Jul 14, 2019
506b50a
test: make repl tests more resilient
BridgeAR Jul 9, 2019
cbd586a
repl: fix autocomplete while using .load
BridgeAR Jul 9, 2019
d611f5a
repl: fix some repl context issues
BridgeAR Jul 5, 2019
3f78a51
doc: add examples at assert.strictEqual
himself65 Jun 6, 2019
4a78fe5
doc: improve os.homedir() docs
juanarbol Jun 24, 2019
44acec5
doc: add example for zlib.createGzip()
RamirezAlex Jun 8, 2019
ca83b27
doc: add example for beforeExit event
Jun 25, 2019
61db987
test: use consistent test naming
Trott Jul 18, 2019
88809a4
test: propagate napi_status to JS
Jun 27, 2019
487a417
tty: expose stream API from readline methods
cjihrig Jul 16, 2019
ff432c8
test,win: cleanup exec-timeout processes
joaocgreis Jul 16, 2019
b379c0e
esm: implement "pkg-exports" proposal
guybedford Jan 16, 2019
1ce2b5e
deps: upgrade npm to 6.10.0
Jul 3, 2019
ed85043
http: avoid extra listener
ronag Jul 15, 2019
a0e8a25
vm: remove usage of public util module
baekrxnn Jun 27, 2019
b8079f5
zlib: remove usage of public util module
baekrxnn Jun 27, 2019
be32bec
build: fix building with d8
targos Jul 17, 2019
7989d5c
test: changed function to arrow function
HarshithaKP Jul 17, 2019
5d09c15
build: update of the large page option error
devnexen Jul 17, 2019
632d7d5
build: skip test-ci doc targets if no crypto
rvagg Jul 18, 2019
5c10007
lib: rename lib/internal/readline.js
cjihrig Jun 23, 2019
8fe9ca4
doc: amplify warning for execute callback
mhdawson Jul 17, 2019
06991cd
doc: add information for heap snapshot flag
tstirrat15 Jul 18, 2019
cf811ec
doc: add code example to subprocess.stdout
juanarbol Jun 24, 2019
2eeb44f
policy: add policy-integrity to mitigate policy tampering
bmeck Jun 5, 2019
7b0b06d
inspector: do not spin-wait while waiting for the initial connection
eugeneo Jul 18, 2019
74243da
src: add public virtual destructor for KVStore
GauthamBanasandra Jul 17, 2019
49e4d72
http2: compat req.complete
ronag Jul 10, 2019
77bdbc5
inspector: add inspector.waitForDebugger()
alexkozy Jun 25, 2019
0793398
stream: add null push transform in async_iterator
Jul 5, 2019
af6fe5f
test: fix assertion argument order in test-esm-namespace
RamirezAlex Jun 28, 2019
2839298
src: expose TraceEventHelper with NODE_EXTERN
MarshallOfSound Jul 16, 2019
9f47242
deps: update nghttp2 to 1.39.1
gengjiawen Jun 27, 2019
7df5498
src: silence compiler warning
cjihrig Jul 19, 2019
2a82d54
doc: update env default on child_process functions
h3knix Jul 20, 2019
5eb37cc
tools: remove unused pkgsrc directory
targos Jul 20, 2019
8586294
doc: claim NODE_MODULE_VERSION=75 for Electron 7
MarshallOfSound Jul 19, 2019
674d33c
deps: V8: backport b33af60
devsnek Jul 19, 2019
7b4638c
vm: fix gc bug with modules and compiled functions
devsnek Jul 19, 2019
c0f24be
src: make `CompiledFnEntry` a `BaseObject`
addaleax Jul 20, 2019
302865e
src: do not include partial AsyncWrap instances in heap dump
addaleax Jul 20, 2019
ed43880
tools: update ESLint to 6.1.0
cjihrig Jul 21, 2019
0ee1298
dns: fix unsigned record values
mscdex Jul 21, 2019
0481a7f
2019-07-23, Version 12.7.0 (Current)
targos Jul 23, 2019
eefd0eb
Working on v12.7.1
targos Jul 23, 2019
19dad19
deps: float 15d7e79 from openssl
tniessen Jul 21, 2019
e334c1f
src: fix type name in comment
bnoordhuis Jun 20, 2019
386d5d7
lib: support min/max values in validateInteger()
cjihrig Jul 22, 2019
2262526
module: implement "exports" proposal for CommonJS
jkrems Jul 19, 2019
d0b1fb3
doc: api/stream.md typo from writeable to writable
imcotton Jul 23, 2019
e0e7763
crypto: increase maxmem range from 32 to 53 bits
tniessen Jul 21, 2019
a38fecd
tools: update certdata.txt
sam-github Jul 22, 2019
86f4c68
crypto: update root certificates
sam-github Jul 22, 2019
c0a0448
doc: fix type in NSS update instructions
sam-github Jul 22, 2019
24b9d29
build: `uname -m` is amd64 on freebsd, not x86_64
bnoordhuis Jul 22, 2019
3c30456
src : elevate v8 namespaces
HarshithaKP Jul 22, 2019
0667d0c
doc: add documentation for response.flushHeaders()
lpinca Jul 22, 2019
95b87ce
doc: claim NODE_MODULE_VERSION=76 for Electron 8
MarshallOfSound Jul 22, 2019
ae56a23
deps: backport b107214 from upstream V8
addaleax Jul 24, 2019
727ffe4
domain: use strong reference to domain while active
addaleax Jun 20, 2019
881e345
doc: describe why new Buffer() is problematic
sam-github Jul 23, 2019
860c0d8
n-api: add APIs for per-instance state management
Jul 15, 2019
454e879
doc: fix incorrect name in report docs
cjihrig Jul 24, 2019
e0951c8
report: loop over uv_cpu_info() results
cjihrig Jul 23, 2019
d3426ee
assert: avoid potentially misleading reference to object identity
addaleax Jul 23, 2019
b7c6ad5
crypto: add outputLength option to crypto.createHash
tniessen Jul 19, 2019
3a62202
crypto: fix handling of malicious getters (scrypt)
tniessen Jul 23, 2019
5d5c89a
policy: add dependencies map for resources
bmeck Jul 18, 2019
ffc7a00
doc: add documentation for stream.destroyed
ronag Jul 23, 2019
e6b3bfe
n-api: refactor a previous commit
Jul 18, 2019
cf071a0
stream: resolve perf regression introduced by V8 7.3
mcollina Jul 24, 2019
82f263d
build,tools: support building with Visual Studio 2019
targos Jul 20, 2019
f6051f9
test: specialize OOM check for AIX
sam-github Jul 24, 2019
8db43b1
src: move relative uptime init
Jul 24, 2019
c9c7256
http: reset parser.incoming when server response is finished
addaleax Jul 11, 2019
24b8f20
deps: remove backup files
AdamMajer Jul 26, 2019
9e7c662
build: ignore backup files
AdamMajer Jul 26, 2019
a7ef102
crypto: add null check to outputLength logic
cjihrig Jul 26, 2019
0b6a84a
test,report: relax CPU match requirements
addaleax Jul 28, 2019
84efadf
test, util: refactor isObject in test-util
RamirezAlex Jul 27, 2019
5533d48
doc: correct import statement
himself65 Jul 27, 2019
085eb48
doc: fixup esm resolver spec formatting
guybedford Jul 28, 2019
406c50c
src: read break_node_first_line from the inspect options
MarshallOfSound Jun 19, 2019
2142b6d
test: improve test-async-hooks-http-parser-destroy
Flarna Jun 16, 2019
b282c85
vm: increase code coverage of source_text_module.js
kball Jun 21, 2019
9b02f36
deps: dlloads node static linked executable
lal12 Jun 4, 2019
9dfa636
dgram: changed 'var' to 'let' and 'const'
mgochoa Jun 21, 2019
1b0d67b
src: fix OpenBSD build
devnexen Jun 22, 2019
d0d3149
http2: add constant to already destructured constants
dnalborczyk Jun 11, 2019
fa82cbc
http2: destructure constants from require call
dnalborczyk Jun 11, 2019
a28db5f
doc: add example of event close for child_process
ltciro Jun 21, 2019
32cf344
src: readlink("/proc/self/exe") -> uv_exename()
bnoordhuis Jun 21, 2019
a0f89a2
test: refactor test using assert instead of try/catch
juansb827 Jun 21, 2019
9b47f77
test: udpate test comment description
Angelfire Jun 21, 2019
048db38
benchmark: swap var for let in url benchmarks
RamirezAlex Jul 24, 2019
f2c1f36
benchmark: swap var for let in util benchmarks
RamirezAlex Jul 24, 2019
bbcf9f0
benchmark: swap var for let in buffer benchmarks
RamirezAlex Jul 26, 2019
cce2087
src: export v8.GetHeapCodeAndMetadataStatistics()
May 30, 2019
fb57bc4
build: do not mix spaces and tabs in Makefile
lpinca Jul 28, 2019
31aa33b
test: fix race in test-http2-origin
mildsunrise Jul 30, 2019
19070e4
test: fix nits in test/fixtures/tls-connect.js
lpinca Jul 28, 2019
25aa222
build: generate openssl config for BSD-x86
bnoordhuis Jul 22, 2019
3d51d30
src: large pages fix FreeBSD fix region size
devnexen Jul 17, 2019
470db47
build: remove support for s390 (but not s390x)
bnoordhuis Jul 28, 2019
391fe46
benchmark, http: refactor for code consistency
RamirezAlex Jul 21, 2019
464136f
lib: replace var with let in loaders.js
mbj36 Jun 5, 2019
43acce1
worker: handle calling terminate when kHandler is null
elyalvarado Jun 21, 2019
3e63429
doc: add example about emitter.emit in events documentation
felipedc09 Jun 21, 2019
b6e174b
test: use assert.throws() in test-require-json.js
alejandronanez Jun 21, 2019
d72b682
inspector: report all workers
eugeneo Jul 26, 2019
5f07f49
doc: revoke DEP0089
cjihrig Jul 29, 2019
d9084d2
module: unify package exports test for CJS and ESM
jkrems Jul 24, 2019
d601a0a
src: allow generic C++ callables in SetImmediate()
addaleax Jul 15, 2019
7c80963
doc: include "exports" resolver specification
guybedford Dec 11, 2018
c93df0c
n-api: refactoring napi_create_function testing
Jul 28, 2019
c42eb5d
test: refactoring test_error testing
himself65 Jul 30, 2019
efe9b97
test: refactor test-beforeexit-event-exit using mustNotCall
himself65 Jul 30, 2019
dcef7b8
build: include stubs in shared library
jeroen Jul 29, 2019
2236aff
module: exports error as MODULE_NOT_FOUND
guybedford Jul 31, 2019
c389526
test: add tests for spaces in folder names
PaulBags Jul 23, 2019
0ac6d28
doc: writableFinished is true before 'finish'
ronag Jul 23, 2019
f4abf17
doc: remove legacy mode deprecation in assert
Trott Jul 31, 2019
7d9eb17
http2: destroy when settingsFn throws an error
himself65 Jul 31, 2019
57f5d50
doc: fix sorting nit in sections of http.md
vsemozhetbyt Aug 2, 2019
4b91e4d
report: include network interfaces in report
cjihrig Jul 23, 2019
0f8f552
test: refactor test-fs-stat.js
Trott Aug 1, 2019
bdd442f
doc: describe NODE_OPTIONS interop w/cmd line opts
reasonablytall Aug 1, 2019
4a747f6
Revert "src: remove trace_sync_io_ from env"
ChALkeR Aug 1, 2019
3c52dbe
net: shallow copy option when create Server
himself65 Aug 1, 2019
02a50c3
doc: remove use of you
mhdawson Aug 1, 2019
1f82929
path: improve normalization performance
mscdex Aug 3, 2019
11470d5
deps: upgrade npm to 6.10.2
isaacs Jul 25, 2019
77d8f0c
2019-08-06, Version 12.8.0 (Current)
BridgeAR Aug 6, 2019
c8e43a3
Working on v12.8.1
BridgeAR Aug 6, 2019
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.
10 changes: 5 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ indent_size = 8
indent_style = tab

[{deps}/**]
charset = ignore
end_of_line = ignore
indent_size = ignore
indent_style = ignore
trim_trailing_whitespace = ignore
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
trim_trailing_whitespace = unset

[{test/fixtures,deps,tools/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
insert_final_newline = false
21 changes: 17 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const path = require('path');
const NodePlugin = require('./tools/node_modules/eslint-plugin-node-core');
NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules');

// The Module._findPath() monkeypatching is to make it so that ESLint will work
// if invoked by a globally-installed ESLint or ESLint installed elsewhere
// rather than the one we ship. This makes it possible for IDEs to lint files
// with our rules while people edit them.
const ModuleFindPath = Module._findPath;
const hacks = [
'eslint-plugin-node-core',
Expand Down Expand Up @@ -39,6 +43,7 @@ module.exports = {
{
files: [
'doc/api/esm.md',
'doc/api/modules.md',
'test/es-module/test-esm-type-flag.js',
'test/es-module/test-esm-type-flag-alias.js',
'*.mjs',
Expand All @@ -59,13 +64,15 @@ module.exports = {
'array-callback-return': 'error',
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', { before: true, after: true }],
'block-scoped-var': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'capitalized-comments': ['error', 'always', {
line: {
// Ignore all lines that have less characters than 20 and all lines that
// start with something that looks like a variable name or code.
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std',
// eslint-disable-next-line max-len
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std|http|ssh|ftp|(let|var|const) [a-z_A-Z0-9]+ =|[b-z] |[a-z]*[0-9].* ',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},
Expand Down Expand Up @@ -107,6 +114,7 @@ module.exports = {
tabWidth: 2,
}],
'new-parens': 'error',
'no-async-promise-executor': 'error',
'no-class-assign': 'error',
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
Expand Down Expand Up @@ -140,7 +148,7 @@ module.exports = {
'no-octal': 'error',
'no-path-concat': 'error',
'no-proto': 'error',
'no-redeclare': 'error',
'no-redeclare': ['error', { 'builtinGlobals': false }],
'no-restricted-modules': ['error', 'sys'],
/* eslint-disable max-len */
'no-restricted-properties': [
Expand Down Expand Up @@ -184,7 +192,11 @@ module.exports = {
},
{
selector: "CallExpression[callee.property.name='doesNotThrow']",
message: 'Please replace `assert.doesNotThrow()` and add a comment next to the code instead.',
message: 'Do not use `assert.doesNotThrow()`. Write the code without the wrapper and add a comment instead.',
},
{
selector: "CallExpression[callee.property.name='doesNotReject']",
message: 'Do not use `assert.doesNotReject()`. Write the code without the wrapper and add a comment instead.',
},
{
selector: "CallExpression[callee.property.name='rejects'][arguments.length<2]",
Expand Down Expand Up @@ -229,12 +241,13 @@ module.exports = {
{
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'])",
message: 'The first argument should be the `actual`, not the `expected` value.',
}
},
],
/* eslint-enable max-len */
'no-return-await': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-shadow-restricted-names': 'error',
'no-tabs': 'error',
'no-template-curly-in-string': 'error',
'no-this-before-super': 'error',
Expand Down
26 changes: 26 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Support

Node.js contributors have limited availability to address general support
questions. Please make sure you are using a [currently-supported version of
Node.js](https://github.com/nodejs/Release#release-schedule).

When looking for support, please first search for your question in these venues:

* [Node.js Website](https://nodejs.org/en/), especially the
[API docs](https://nodejs.org/api/)
* [Node.js Help](https://github.com/nodejs/help)
* [Open or closed issues in the Node.js GitHub organization](https://github.com/issues?utf8=%E2%9C%93&q=sort%3Aupdated-desc+org%3Anodejs+is%3Aissue)

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)
* [#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](http://www.nodeslackers.com/)

GitHub issues are for tracking enhancements and bugs, not general support.

The open source license grants you the freedom to use Node.js. It does not
guarantee commitments of other people's time. Please be respectful and manage
your expectations.
165 changes: 86 additions & 79 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Whitelist dotfiles
# Please take extra care not to add rules that will make tracked files ignored.
# To test that, run `git ls-files -i --exclude-standard`.
# To check why a specific file is ignored, run `git check-ignore -v <filepath>`.

# === Rule for dotfiles ===
# Ignore all dotfiles.
.*
# Exclude specific dotfiles that we want to track.
!deps/**/.*
!test/fixtures/**/.*
!tools/node_modules/**/.*
!tools/doc/node_modules/**/.*
!.clang-format
!.editorconfig
!.eslintignore
Expand All @@ -19,109 +23,112 @@
!.eslintrc.yaml
!.cpplint

core
vgcore.*
v8*.log
perf.data
perf.data.old
tags
*.pyc
doc/api.xml
tmp/
test/tmp*/
iojs
iojs_g
node
node_g
*.swp
icu_config.gypi
node_trace.*.log
coverage/
!**/node_modules/**/coverage

# === Rules for root dir ===
/core
/vgcore.*
/v8*.log
/perf.data
/perf.data.old
/tags
/doc/api.xml
/node
/node_g
/*.exe
/*.swp
/out
/*.txt

# === Rules for artifacts of `./configure` ===
/icu_config.gypi
/config.gypi
/config.status
/config_fips.gypi

# various stuff that VC++ produces/uses and is not in /out
/Debug/
/Release/
!doc/blog/**
# === Rules for MSVS artifacts ===
/Debug
/Release
*.sln
!nodemsi.sln
*.suo
*.vcxproj
!custom_actions.vcxproj
*.vcxproj.user
*.vcxproj.filters
*.vcxproj*
UpgradeLog*.XML
_UpgradeReport_Files/
*.sdf
*.opensdf
*.VC.db
*.VC.opendb
/*.exe
*.VC.*
*.wixobj
/tools/msvs/genfiles/
/npm.wxs
# Exclude MSVS files used for .msi file generation
!tools/msvs/msi/custom_actions.vcxproj
!tools/msvs/msi/nodemsi.sln

/config.mk
/config.gypi
/config.status
/config_fips.gypi
# === Rules for GYP artifacts ===
*-nodegyp*
/gyp-mac-tool
/npm.wxs
/tools/msvs/npm.wixobj
/tools/msvs/genfiles/
/gyp-*-tool
/test/addons/??_*/
email.md
deps/v8-*
deps/icu
deps/icu*.zip
deps/icu*.tgz
deps/icu-tmp
./node_modules
android-toolchain/
/*.mk

# === Rules for other build artifacts ===
/email.md
/deps/v8-*
/deps/icu
/deps/icu*.zip
/deps/icu*.tgz
/deps/icu-tmp
./node_modules
/android-toolchain/
# generated by gyp on Windows
deps/openssl/openssl.props
deps/openssl/openssl.targets
deps/openssl/openssl.xml

/deps/openssl/openssl.props
/deps/openssl/openssl.targets
/deps/openssl/openssl.xml
# generated by gyp on android
/*.target.mk
/*.host.mk
deps/openssl/openssl.target.mk
deps/zlib/zlib.target.mk

!deps/npm/node_modules
# not needed and causes issues for distro packagers
deps/npm/node_modules/.bin/
/deps/openssl/openssl.target.mk
/deps/zlib/zlib.target.mk

# build/release artifacts
# === Rules for release artifacts ===
/*.tar.*
/*.pkg
/SHASUMS*.txt*

# api docs artifacts
tools/doc/node_modules

# clang-format artifacts
tools/clang-format/node_modules
# === Rules for `node_modules` ===
!**/node_modules/**
/node_modules
/tools/doc/node_modules
/tools/clang-format/node_modules

# test artifacts
icu_config.gypi
*.tap
# === Rules for test artifacts ===
/*.tap
/*.xml
/node_trace.*.log
# coverage related
/gcovr
/build
/coverage

# Xcode workspaces and project folders
# === Rules for XCode artifacts ===
*.xcodeproj
*.xcworkspace
*.pbxproj

# libuv book and GitHub template
deps/uv/.github/
deps/uv/docs/code/
deps/uv/docs/src/guide/

# do not override V8's .gitignore
# === Rules for files in `/deps` ===
# Exclude all files in the vendored `npm`.
!/deps/npm/node_modules
# These are not needed and causes issues for distro packagers.
/deps/npm/node_modules/.bin/
# Respect V8's .gitignore
!deps/v8/**
# ignore VS compiler output unhandled by V8's .gitignore
deps/v8/third_party/eu-strip/
# Ignore the libuv book and GitHub templates
/deps/uv/.github/
/deps/uv/docs/code/
/deps/uv/docs/src/guide/
# Ignore dependencies fetched by deps/v8/tools/node/fetch_deps.py
/deps/.cipd

# === Global Rules ===
# Keep last to avoid being excluded
*.pyc
__pycache__
.DS_Store
*~
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ x-ccache-setup-steps: &ccache-setup-steps
- export CXX='ccache g++-6'

os: linux
dist: xenial
language: cpp
env:
global:
- PYTHON_VERSION="2.7.15"
jobs:
include:
- stage: "Compile"
Expand All @@ -20,7 +22,7 @@ jobs:
- g++-6
install: *ccache-setup-steps
script:
- pyenv global 2.7.15
- pyenv global ${PYTHON_VERSION}
- ./configure
- make -j2 -C out V=1 v8

Expand All @@ -34,7 +36,7 @@ jobs:
- g++-6
install: *ccache-setup-steps
script:
- pyenv global 2.7.15
- pyenv global ${PYTHON_VERSION}
- ./configure
- make -j2 V=1
- cp out/Release/node /home/travis/.ccache
Expand All @@ -47,7 +49,7 @@ jobs:
- mkdir -p out/Release
- cp /home/travis/.ccache/node out/Release/node
script:
- pyenv global 2.7.15
- pyenv global ${PYTHON_VERSION}
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default

- name: "Test C++ Suites"
Expand All @@ -63,7 +65,7 @@ jobs:
- cp /home/travis/.ccache/cctest out/Release/cctest
- touch config.gypi
script:
- pyenv global 2.7.15
- pyenv global ${PYTHON_VERSION}
- out/Release/cctest
- make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api
Expand All @@ -72,7 +74,7 @@ jobs:
language: node_js
node_js: "node"
install:
- pyenv global 2.7.15
- pyenv global ${PYTHON_VERSION}
- make lint-py-build || true
script:
- NODE=$(which node) make lint lint-py
Expand Down
Loading