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

Please ignore this msg #1

Merged
merged 1,453 commits into from
Aug 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1453 commits
Select commit Hold shift + click to select a range
bff7a46
report: modify getReport() to return an Object
boneskull Jul 10, 2019
9c4bdfe
src: replace already elevated Object, Local v8 namespace
juanarbol Jul 9, 2019
cf929c0
src, tools: replace raw ptr with smart ptr
GauthamBanasandra Jul 6, 2019
84ad92d
doc: add example on how to create __filename, __dirname for esm
GrosSacASac Jun 18, 2019
2c5716b
src: simplify --debug flags
cjihrig Jul 9, 2019
ec55180
doc: drop 'for more details' in deprecations
cjihrig Jul 9, 2019
5af9f15
readline: use named constant for surrogate checks
cjihrig Jul 11, 2019
223ba43
readline: remove IIFE in SIGCONT handler
cjihrig Jul 11, 2019
a130545
readline: simplify isFullWidthCodePoint()
cjihrig Jul 11, 2019
a013aa0
doc: remove superfluous MDN link in assert.md
Trott Jun 15, 2019
c31f7e5
readline: expose stream API in clearScreenDown()
cjihrig Jul 11, 2019
5a6aa66
path: using .relative() should not return a trailing slash
BridgeAR Jul 5, 2019
e12f48e
path: move branch to the correct location
BridgeAR Jul 5, 2019
febdf39
doc: mark process.report as experimental
cjihrig Jul 12, 2019
efc3946
doc: mark N-API thread-safe function stable
Jul 11, 2019
518ffc1
zlib: do not coalesce multiple `.flush()` calls
addaleax Jul 3, 2019
00464b5
src: add cleanup hook for ContextifyContext
addaleax Jul 10, 2019
60a207f
deps: update acorn to 6.2.0
targos Jul 12, 2019
57c7083
http2: report memory allocated by nghttp2 to V8
addaleax Jul 11, 2019
ebe9261
tools: add coverage to ignored files
lholmquist Jul 10, 2019
d0b0230
build,v8: support IBM i
dmabupt Jul 9, 2019
5bed327
test: fix pty test hangs on aix
bnoordhuis Jul 8, 2019
824dc57
stream: simplify `.pipe()` and `.unpipe()` in Readable
starkwang Jul 11, 2019
d0e3801
src: lint #defines in src/node.h
srcmake Jul 4, 2019
88bac02
build: remove broken intel vtune support
bnoordhuis Jul 3, 2019
056b0bd
src: add missing option parser template for the DebugOptionsParser
MarshallOfSound Jul 4, 2019
2550ddb
test: increase limit for network space overhead test
Jul 1, 2019
461bf36
http: fix test where aborted should not be emitted
ronag Jun 7, 2019
6c430b4
stream: use readableEncoding public api for child_process
ZYSzys Jul 5, 2019
11c52d9
doc: add documentation for createDiffieHellmanGroup
Jul 7, 2019
e984917
deps: cherry-pick 13a04aba from V8 upstream
jkunkee Jul 4, 2019
d53144e
deps: cherry-pick 721dc7d from node-gyp upstream
jkunkee Jul 10, 2019
c3caf21
deps: cherry-pick 91744bf from node-gyp upstream
jkunkee Jul 9, 2019
0796f0e
Revert "http: fix test where aborted should not be emitted"
Trott Jul 15, 2019
440a344
doc: small grammar correction
cjihrig Jul 13, 2019
7e543bb
inspector: do not change async call stack depth if the worker is done
eugeneo Jul 6, 2019
ef57911
doc: add missing version metadata for Readable.from
addaleax Jul 15, 2019
8cb4ba9
doc: update js-native-api example
Jul 12, 2019
87d0d8c
doc: fix minor typo
shajanjp Jun 10, 2019
2a15037
deps: V8: backport d2ccc59
joyeecheung Jul 12, 2019
a1cb14a
src: large pages option: FreeBSD support proposal
devnexen Jun 20, 2019
6ef4d9e
module: increase code coverage of cjs loader
melikhov-dev May 26, 2019
458eee4
test: use openssl_is_fips instead of hasFipsCrypto
danbev Jul 2, 2019
2111207
test: update hasFipsCrypto in test/common/README
danbev Jul 5, 2019
d5737a8
http: expose headers on an http.ClientRequest "information" event
awwright Jun 27, 2019
79cc8bb
readline: expose stream API in clearLine()
cjihrig Jul 13, 2019
795c748
readline: expose stream API in moveCursor()
cjihrig Jul 13, 2019
462f438
readline: expose stream API in cursorTo()
cjihrig Jul 14, 2019
7032e59
http: add response.writableFinished
ronag Jul 14, 2019
54fcb14
gyp: cherrypick more Python3 changes from node-gyp
cclauss Jul 5, 2019
da69f56
n-api: correct bug in napi_get_last_error
Jul 11, 2019
19618bd
build: specify Python version once for all tests
cclauss Jul 15, 2019
971915e
test: improve variable names in pty_helper.py
addaleax Jul 14, 2019
195239a
test: fix race condition in test-worker-process-cwd.js
BridgeAR Jul 9, 2019
f938858
test: make repl tests more resilient
BridgeAR Jul 9, 2019
6874aa1
repl: fix autocomplete while using .load
BridgeAR Jul 9, 2019
7e977d7
repl: fix some repl context issues
BridgeAR Jul 5, 2019
3ad8799
doc: add examples at assert.strictEqual
himself65 Jun 6, 2019
d1bb21f
doc: improve os.homedir() docs
juanarbol Jun 24, 2019
57ed7c3
doc: add example for zlib.createGzip()
RamirezAlex Jun 8, 2019
ed24b8f
doc: add example for beforeExit event
Jun 25, 2019
3b063dc
test: use consistent test naming
Trott Jul 18, 2019
3da44b0
test: propagate napi_status to JS
Jun 27, 2019
d089477
tty: expose stream API from readline methods
cjihrig Jul 16, 2019
9b77225
test,win: cleanup exec-timeout processes
joaocgreis Jul 16, 2019
6df7b6a
esm: implement "pkg-exports" proposal
guybedford Jan 16, 2019
1721034
deps: upgrade npm to 6.10.0
Jul 3, 2019
2fd2dd7
http: avoid extra listener
ronag Jul 15, 2019
a34cb28
vm: remove usage of public util module
baekrxnn Jun 27, 2019
6aa6716
zlib: remove usage of public util module
baekrxnn Jun 27, 2019
21ec137
build: fix building with d8
targos Jul 17, 2019
19b2198
test: changed function to arrow function
HarshithaKP Jul 17, 2019
15d44bf
build: update of the large page option error
devnexen Jul 17, 2019
b7bcfc9
deps: V8: backport b33af60
devsnek Jul 19, 2019
68c83f9
vm: fix gc bug with modules and compiled functions
devsnek Jul 19, 2019
9039af8
build: skip test-ci doc targets if no crypto
rvagg Jul 18, 2019
f9c267e
lib: rename lib/internal/readline.js
cjihrig Jun 23, 2019
6c07523
doc: amplify warning for execute callback
mhdawson Jul 17, 2019
4fbefc4
doc: add information for heap snapshot flag
tstirrat15 Jul 18, 2019
0df3ea0
doc: add code example to subprocess.stdout
juanarbol Jun 24, 2019
6c288a7
policy: add policy-integrity to mitigate policy tampering
bmeck Jun 5, 2019
49144ab
inspector: do not spin-wait while waiting for the initial connection
eugeneo Jul 18, 2019
7a1f33c
src: add public virtual destructor for KVStore
GauthamBanasandra Jul 17, 2019
b30dca8
http2: compat req.complete
ronag Jul 10, 2019
f02dfdb
inspector: add inspector.waitForDebugger()
alexkozy Jun 25, 2019
3499741
stream: add null push transform in async_iterator
Jul 5, 2019
6948a95
test: fix assertion argument order in test-esm-namespace
RamirezAlex Jun 28, 2019
8b344ae
src: expose TraceEventHelper with NODE_EXTERN
MarshallOfSound Jul 16, 2019
447947a
deps: update nghttp2 to 1.39.1
gengjiawen Jun 27, 2019
b686bd7
doc: claim NODE_MODULE_VERSION=75 for Electron 7
MarshallOfSound Jul 19, 2019
65c2b2c
src: silence compiler warning
cjihrig Jul 19, 2019
3293559
doc: update env default on child_process functions
h3knix Jul 20, 2019
3117899
tools: remove unused pkgsrc directory
targos Jul 20, 2019
89e4b36
src: make `CompiledFnEntry` a `BaseObject`
addaleax Jul 20, 2019
9949fbd
src: do not include partial AsyncWrap instances in heap dump
addaleax Jul 20, 2019
e5736d8
tools: update ESLint to 6.1.0
cjihrig Jul 21, 2019
03317f0
dns: fix unsigned record values
mscdex Jul 21, 2019
4daf153
deps: float 15d7e79 from openssl
tniessen Jul 21, 2019
35788c8
src: fix type name in comment
bnoordhuis Jun 20, 2019
52c5287
2019-07-23, Version 12.7.0 (Current)
targos Jul 23, 2019
4fc7cd9
lib: support min/max values in validateInteger()
cjihrig Jul 22, 2019
dcb6929
module: implement "exports" proposal for CommonJS
jkrems Jul 19, 2019
bd3b85b
doc: api/stream.md typo from writeable to writable
imcotton Jul 23, 2019
1dc458c
crypto: increase maxmem range from 32 to 53 bits
tniessen Jul 21, 2019
b87d418
tools: update certdata.txt
sam-github Jul 22, 2019
748000e
crypto: update root certificates
sam-github Jul 22, 2019
c5befe3
doc: fix type in NSS update instructions
sam-github Jul 22, 2019
30666ed
build: `uname -m` is amd64 on freebsd, not x86_64
bnoordhuis Jul 22, 2019
10dd101
src : elevate v8 namespaces
HarshithaKP Jul 22, 2019
0d32b9d
doc: add documentation for response.flushHeaders()
lpinca Jul 22, 2019
657a78e
doc: claim NODE_MODULE_VERSION=76 for Electron 8
MarshallOfSound Jul 22, 2019
49eb2b8
deps: backport b107214 from upstream V8
addaleax Jul 24, 2019
43e5478
domain: use strong reference to domain while active
addaleax Jun 20, 2019
16f673e
build: re-enable openssl arm for arm64
vielmetti Jun 11, 2019
e9ea8ea
doc: describe why new Buffer() is problematic
sam-github Jul 23, 2019
5030e81
n-api: add APIs for per-instance state management
Jul 15, 2019
306d240
doc: fix incorrect name in report docs
cjihrig Jul 24, 2019
48e13d2
report: loop over uv_cpu_info() results
cjihrig Jul 23, 2019
64e4b0c
assert: avoid potentially misleading reference to object identity
addaleax Jul 23, 2019
31d9b2f
crypto: add outputLength option to crypto.createHash
tniessen Jul 19, 2019
499533f
crypto: fix handling of malicious getters (scrypt)
tniessen Jul 23, 2019
7e8ad9b
policy: add dependencies map for resources
bmeck Jul 18, 2019
70bb570
doc: add documentation for stream.destroyed
ronag Jul 23, 2019
db1c4a7
n-api: refactor a previous commit
Jul 18, 2019
147b9d9
stream: resolve perf regression introduced by V8 7.3
mcollina Jul 24, 2019
4e2d1a1
build,tools: support building with Visual Studio 2019
targos Jul 20, 2019
41fa553
test: specialize OOM check for AIX
sam-github Jul 24, 2019
35cb955
src: move relative uptime init
Jul 24, 2019
779a05d
http: reset parser.incoming when server response is finished
addaleax Jul 11, 2019
ddf7e2a
deps: remove backup files
AdamMajer Jul 26, 2019
62a809f
build: ignore backup files
AdamMajer Jul 26, 2019
92ca2c2
crypto: add null check to outputLength logic
cjihrig Jul 26, 2019
98d8ed6
test,report: relax CPU match requirements
addaleax Jul 28, 2019
2713f78
test, util: refactor isObject in test-util
RamirezAlex Jul 27, 2019
8a10b50
doc: correct import statement
himself65 Jul 27, 2019
816db9e
doc: fixup esm resolver spec formatting
guybedford Jul 28, 2019
4208158
src: read break_node_first_line from the inspect options
MarshallOfSound Jun 19, 2019
8007134
test: improve test-async-hooks-http-parser-destroy
Flarna Jun 16, 2019
99879ca
vm: increase code coverage of source_text_module.js
kball Jun 21, 2019
1567461
deps: dlloads node static linked executable
lal12 Jun 4, 2019
e5e96fb
dgram: changed 'var' to 'let' and 'const'
mgochoa Jun 21, 2019
3a9cb5c
src: fix OpenBSD build
devnexen Jun 22, 2019
62c8c61
http2: add constant to already destructured constants
dnalborczyk Jun 11, 2019
b04de23
http2: destructure constants from require call
dnalborczyk Jun 11, 2019
89344f5
doc: add example of event close for child_process
ltciro Jun 21, 2019
54ae530
src: readlink("/proc/self/exe") -> uv_exename()
bnoordhuis Jun 21, 2019
9cda6f2
test: refactor test using assert instead of try/catch
juansb827 Jun 21, 2019
3d56e89
test: udpate test comment description
Angelfire Jun 21, 2019
0d1b14a
benchmark: swap var for let in url benchmarks
RamirezAlex Jul 24, 2019
d349ba2
benchmark: swap var for let in util benchmarks
RamirezAlex Jul 24, 2019
8be3766
benchmark: swap var for let in buffer benchmarks
RamirezAlex Jul 26, 2019
21a7c69
src: export v8.GetHeapCodeAndMetadataStatistics()
May 30, 2019
ab15533
build: do not mix spaces and tabs in Makefile
lpinca Jul 28, 2019
985c5f5
test: fix race in test-http2-origin
mildsunrise Jul 30, 2019
834a413
test: fix nits in test/fixtures/tls-connect.js
lpinca Jul 28, 2019
4a1502b
build: generate openssl config for BSD-x86
bnoordhuis Jul 22, 2019
de88d6c
src: large pages fix FreeBSD fix region size
devnexen Jul 17, 2019
fd9e0f7
build: remove support for s390 (but not s390x)
bnoordhuis Jul 28, 2019
9140f62
benchmark, http: refactor for code consistency
RamirezAlex Jul 21, 2019
863402e
lib: replace var with let in loaders.js
mbj36 Jun 5, 2019
9083a67
worker: handle calling terminate when kHandler is null
elyalvarado Jun 21, 2019
698d479
doc: add example about emitter.emit in events documentation
felipedc09 Jun 21, 2019
c3b2111
test: use assert.throws() in test-require-json.js
alejandronanez Jun 21, 2019
7435dc8
inspector: report all workers
eugeneo Jul 26, 2019
2abdfc5
doc: revoke DEP0089
cjihrig Jul 29, 2019
9d37013
2019-07-31, Version 10.16.1 'Dubnium' (LTS)
BethGriggs Jul 17, 2019
61f3a5c
module: unify package exports test for CJS and ESM
jkrems Jul 24, 2019
5207dec
src: allow generic C++ callables in SetImmediate()
addaleax Jul 15, 2019
8492acf
doc: include "exports" resolver specification
guybedford Dec 11, 2018
1ee47d5
n-api: refactoring napi_create_function testing
Jul 28, 2019
2dcc366
deps: update V8 to 7.6.303.28
targos Aug 1, 2019
66eaeac
build: reset embedder string to "-node.0"
targos Aug 1, 2019
655e0dc
src: update NODE_MODULE_VERSION to 77
targos Aug 1, 2019
0e7d855
deps: V8: fix filename manipulation for Windows
refack Mar 31, 2019
95d9a37
deps: V8: un-cherry-pick bd019bd
refack Mar 27, 2019
87d1d96
deps: V8: silence irrelevant warning
targos Mar 27, 2019
ba9e541
deps: V8: update postmortem metadata generation script
cjihrig Mar 28, 2019
05c27d7
deps: V8: patch register-arm64.h
refack May 22, 2019
90588a5
deps: V8: forward declaration of `Rtl*FunctionTable`
refack May 22, 2019
c66e87c
deps: V8: use ATOMIC_VAR_INIT instead of std::atomic_init
refack May 23, 2019
cd70e59
deps: V8: add workaround for MSVC optimizer bug
refack May 17, 2019
ba6c9f5
deps: V8: fix BUILDING_V8_SHARED issues
refack May 26, 2019
526c4f3
deps: V8: fix linking issue for MSVS
refack May 30, 2019
4f3cfb2
deps: V8: cherry-pick 3b8c624
targos Jun 17, 2019
21745b5
deps: cherry-pick 13a04aba from V8 upstream
jkunkee Jul 4, 2019
3b7c952
deps: V8: cherry-pick d2ccc59
targos Jul 20, 2019
84d3243
deps: V8: cherry-pick b33af60
targos Jul 20, 2019
1dd31fe
tools: sync gypfiles with V8 7.6
targos May 18, 2019
94e980c
src: use non-deprecated overload of V8::SetFlagsFromString
targos Jul 20, 2019
f53a241
test: update postmortem metadata test for V8 7.6
cjihrig Jun 3, 2019
b32526c
test: refactoring test_error testing
himself65 Jul 30, 2019
980df1c
test: refactor test-beforeexit-event-exit using mustNotCall
himself65 Jul 30, 2019
ed138ba
build: include stubs in shared library
jeroen Jul 29, 2019
452b393
module: exports error as MODULE_NOT_FOUND
guybedford Jul 31, 2019
1ddd46f
test: add tests for spaces in folder names
PaulBags Jul 23, 2019
0897782
doc: writableFinished is true before 'finish'
ronag Jul 23, 2019
36864a6
doc: remove legacy mode deprecation in assert
Trott Jul 31, 2019
2b03e1d
http2: destroy when settingsFn throws an error
himself65 Jul 31, 2019
747ddd5
doc: fix sorting nit in sections of http.md
vsemozhetbyt Aug 2, 2019
1592d0a
report: include network interfaces in report
cjihrig Jul 23, 2019
e6c2052
test: refactor test-fs-stat.js
Trott Aug 1, 2019
5eaef7b
doc: describe NODE_OPTIONS interop w/cmd line opts
reasonablytall Aug 1, 2019
aa252eb
Revert "src: remove trace_sync_io_ from env"
ChALkeR Aug 1, 2019
d530354
net: shallow copy option when create Server
himself65 Aug 1, 2019
e3f4ec9
doc: remove use of you
mhdawson Aug 1, 2019
37d2748
path: improve normalization performance
mscdex Aug 3, 2019
d7d321b
deps: upgrade npm to 6.10.2
isaacs Jul 25, 2019
a9e7441
2019-08-06, Version 12.8.0 (Current)
BridgeAR Aug 6, 2019
f1478e1
2019-08-06, Version 10.16.2 'Dubnium' (LTS)
BethGriggs Aug 6, 2019
320402c
fs: fix (temporary) for esm package
ronag Aug 4, 2019
4c9fb0b
events: give subclass name in unhandled 'error' message
addaleax Aug 3, 2019
0b5b81c
stream: improve read() performance
mscdex Aug 4, 2019
0c9ad34
crypto: extend RSA-OAEP support with oaepHash
tniessen Jun 21, 2019
636dbfe
test: add test for OAEP hash mismatch
tniessen Jul 30, 2019
84a6384
doc: make unshift doc compliant with push doc
EduardoRFS Aug 4, 2019
c072a80
fs: validate fds as int32s
cjihrig Aug 5, 2019
fd8d44f
benchmark: allow easy passing of process flags
mscdex Aug 5, 2019
71c28a4
doc: documented default statusCode
nfearnley Aug 5, 2019
0e03c44
module: refine package name validation
guybedford Aug 5, 2019
44f228c
test: refactor test-sync-io-option
addaleax Aug 6, 2019
885c644
doc: improve UV_THREADPOOL_SIZE description
tniessen Aug 7, 2019
e079f6c
test: assert: add failing deepEqual test for faked boxed primitives
ljharb Aug 6, 2019
6c3af76
util: assert: fix deepEqual comparing fake-boxed to real boxed primitive
ljharb Aug 6, 2019
8fdd634
util: isEqualBoxedPrimitive: ensure both values are actual boxed Symbols
ljharb Aug 7, 2019
c15b496
stream: encapsulate buffer-list
ronag Aug 5, 2019
bf692ce
doc: fix nits in child_process.md
vsemozhetbyt Aug 6, 2019
ef01d7c
util: improve debuglog performance
mscdex Aug 4, 2019
53e467d
stream: improve read() performance more
mscdex Aug 6, 2019
c065773
http: buffer writes even while no socket assigned
ronag Aug 6, 2019
a0e2c6d
src: add error codes to errors thrown in C++
yanivfriedensohn May 11, 2019
83495e7
stream: inline and simplify onwritedrain
ronag Aug 7, 2019
bd85708
http: add missing stream-like properties to OutgoingMessage
ronag Aug 6, 2019
c146f88
test: unskip tests that now pass on AIX
sam-github Aug 8, 2019
df936c5
dns: update lookupService() first arg name
cjihrig Aug 8, 2019
d3f20a4
test: use unique tmpdirs for each test
joaocgreis Jul 25, 2019
eadc385
fs: close file descriptor of promisified truncate
joaocgreis Jul 30, 2019
3eea43a
repl: close file descriptor of history file
joaocgreis Jul 30, 2019
0376b5b
benchmark: use test/common/tmpdir consistently
joaocgreis Jul 30, 2019
8ef68e6
test: clean tmpdir on process exit
joaocgreis Jul 30, 2019
ce7f3ed
deps: upgrade to libuv 1.31.0
cjihrig Aug 9, 2019
9b221e5
report: list envvars using uv_os_environ()
cjihrig Aug 5, 2019
7635b7c
http: remove duplicate check
ronag Aug 6, 2019
15b2d13
src: organize imports in inspector_profiler.cc
DTeachs Aug 9, 2019
2103ae4
module: pkg exports validations and fallbacks
guybedford Aug 2, 2019
b4f0a18
tools: allow single JS file for --link-module
danbev Jun 27, 2019
f985a25
http: remove redundant condition
lpinca Aug 10, 2019
d7a4ace
doc: clarify async iterator leak
ronag Aug 6, 2019
f114e5b
doc, lib, src, test, tools: fix assorted typos
XhmikosR Aug 10, 2019
382f84a
stream: improve read() performance further
mscdex Aug 10, 2019
a49b20d
inspector: use const for contextGroupId
gengjiawen Aug 10, 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.
3 changes: 3 additions & 0 deletions .cpplint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set noparent
filter=-build/include_alpha,-build/include_subdir,-build/include_what_you_use,-legal/copyright,-readability/nolint
linelength=80
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
28 changes: 22 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
'use strict';

/* eslint-env node */

const Module = require('module');
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 All @@ -31,13 +37,15 @@ Module._findPath = (request, paths, isMain) => {
module.exports = {
root: true,
plugins: ['markdown', 'node-core'],
env: { node: true, es6: true },
parser: 'babel-eslint',
parserOptions: { sourceType: 'script' },
overrides: [
{
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',
'test/es-module/test-esm-example-loader.js',
],
Expand All @@ -56,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 30 and all lines that
// 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,30}$|^ [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 @@ -104,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 @@ -137,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 @@ -181,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 @@ -226,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
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
exclude=.git,deps,lib,src,tools/gyp,tools/inspector_protocol,tools/pip,tools/v8_gypfiles/broken
ignore=E1,E2,E3,E4,E5,E7,W5,W6
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.
174 changes: 89 additions & 85 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# 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
!.eslintrc.js
!.flake8
!.gitattributes
!.github
!.gitignore
Expand All @@ -16,115 +21,114 @@
!.nycrc
!.travis.yml
!.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
Debug/
!**/node_modules/debug/
Release/
!**/node_modules/**/release
!doc/blog/**
# === Rules for MSVS artifacts ===
/Debug
/Release
*.sln
!nodemsi.sln
*.suo
*.vcproj
*.vcxproj
!custom_actions.vcxproj
*.vcxproj.user
*.vcxproj.filters
*.vcxproj*
UpgradeLog*.XML
_UpgradeReport_Files/
ipch/
*.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/gypfiles/Debug/
deps/v8/gypfiles/Release/
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
*~
Loading