Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Support esm in .js #91

Open
wants to merge 301 commits into
base: latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
301 commits
Select commit Hold shift + click to select a range
52fe762
meta: improve definition of a collaborator
jasnell Aug 22, 2017
9e0f771
buffer: improve error messages
starkwang Aug 22, 2017
be4c984
doc: environmental->environment & NodeJS->Node.js
rvagg Aug 22, 2017
9fc58af
test: remove unused function args
Aug 22, 2017
d86eb5c
test: simplify test-tls-client-default-ciphers
maclover7 Aug 18, 2017
64f59be
deps: cherry-pick e020aae394 from V8 upstream
bnoordhuis Aug 17, 2017
7efb8f7
n-api: implement promise
Aug 24, 2017
68321b5
doc: crypto.randomBytes does not block when async
sam-github Aug 23, 2017
6cdffb1
doc: sort bottom-of-file dns markdown links
sam-github Aug 23, 2017
a1d34b3
doc: threadpool size, and APIs using the pool
sam-github Aug 23, 2017
af11867
console: improve console.group()
Trott Aug 24, 2017
8987ae8
doc,stream: remove wrong remark on readable.read
jscissr Aug 24, 2017
4ca8ff2
http2: refactor error handling
mcollina Aug 23, 2017
9aa7093
lib: remove circular reference
BridgeAR Aug 17, 2017
15ac1ea
benchmark: fix issues in dns benchmark
ian-perkins Aug 18, 2017
6db825a
perf_hooks: mark as experimental
jasnell Aug 24, 2017
2154a3c
net: move debug statement
mscdex Apr 24, 2017
99c478e
test: pipe some error output if npm fails
Fishrock123 Apr 18, 2017
f912080
Revert "http2: refactor error handling"
Trott Aug 26, 2017
acdf558
test: improve test-abort-uncaught-exception
Trott Aug 25, 2017
df57d8b
test: improve test-abort-backtrace
Trott Aug 25, 2017
70c775a
test: run abort tests
Trott Jun 30, 2017
0097794
errors: remove duplicated ERR_HTTP_INVALID_STATUS_CODE error
maclover7 Aug 24, 2017
a7dccd0
tls: type checking for `key`, `cert` and `ca` options
jimmycann Aug 13, 2017
0babb12
doc: building - note on Windows SDK 15063
refack Jul 20, 2017
237a42d
tools: add custom private key option
krydos Jul 20, 2017
4d893e0
timers: Migrate to use internal/errors
starkwang Aug 7, 2017
53c5bf5
http2: refactor error handling
mcollina Aug 23, 2017
9a5c3cf
test: continue normalizing fixtures use
maasencioh Aug 9, 2017
79773f8
doc: update configure to require g++ 4.9.4
Jul 12, 2017
cacce30
doc: add links to alternative versions of doc
Jan 23, 2017
7854562
tools: fix linter error in html.js
targos Aug 28, 2017
4381100
assert: handle sparse arrays in deepStrictEqual
BridgeAR Aug 19, 2017
397dbab
meta: considerations for new core modules
jasnell Aug 24, 2017
65c9537
doc: add 8.4.0 link to CHANGELOG.md
rus0000 Aug 28, 2017
095c946
perf_hooks: fix presumed typo in node_perf.cc
addaleax Aug 24, 2017
689a643
build: fix indentation in node.gyp
aqrln Aug 27, 2017
f3eb193
meta: merge TSC and CTC back into a single body
jasnell Aug 22, 2017
4218f19
crypto: fix error of createCipher in wrap mode
shigeki Aug 24, 2017
a26be68
deps: cherry-pick 0ef4a0c64b6 from c-ares upstream
addaleax Aug 14, 2017
5c0d64e
test: add regression test for 14814
addaleax Aug 24, 2017
1ffd01c
test: fix hijackStdout behavior in console
XadillaX Aug 6, 2017
13927fd
doc: clarify http.get data consumption requirement
strugee Aug 26, 2017
b46d596
build: add npx to zip and 7z packages
richardlau Aug 25, 2017
3eb0297
test: increase coverage for http2 response headers
apapirovski Aug 25, 2017
5e443d7
test: remove unused param in test-graph.pipe
ssbrewster Aug 24, 2017
244ada3
async_hooks: emitAfter correctly on fatalException
trevnorris Aug 17, 2017
b98e8d9
path: fix normalize on directories with two dots
targos Jul 6, 2017
a80b162
doc: remove braces which shouldn't be there
jscissr Aug 30, 2017
44d4865
test: increase coverage for internal/errors.js
starkwang Aug 26, 2017
67d792a
lib: clean up usage of threw
JacksonTian Aug 11, 2016
5723c4c
tls: replace forEach with for
mscdex Aug 27, 2017
88441f6
test: add http2 test for method CONNECT
apapirovski Aug 27, 2017
6eeb06f
test: add a test for Expect & checkExpectation
apapirovski Aug 27, 2017
0f7c06e
tls: fix object prototype type confusion
bnoordhuis Jul 24, 2017
ad3d2ce
http2: handle 100-continue flow & writeContinue
apapirovski Aug 30, 2017
4218afc
doc: fix comment about http2.createSecureServer
creeperyang Aug 30, 2017
c77e6d3
n-api: adds function to adjust external memory
Jun 28, 2017
9f175d1
lib: remove the invalid command line options
JacksonTian Jun 18, 2017
0b0c2ec
build: add NetBSD support to opensslconf.h
rsmarples Jul 16, 2017
676522f
doc: /s/SHASUM256/SHASUMS256
maclover7 Aug 30, 2017
ed1ba45
repl: remove REPLServer.createContext side effects
lance Jul 15, 2017
50ebac1
tools: add eslint rule for hasCrypto checking
danbev Jun 20, 2017
c7dda49
tools: add eslint rule for inspector checking
danbev Jun 20, 2017
83a5eef
lib: simplify the readonly properties of icu
JacksonTian May 25, 2017
365c245
util: remove duplicate code in format
apapirovski Aug 30, 2017
a517466
module: mark DEP0019 as EOL and remove compat code
silverwind Jan 17, 2017
219932a
errors: convert 'fs'
Aug 26, 2017
204d94f
assert: handle errors properly with deep*Equal
BridgeAR Aug 19, 2017
2ef0f00
test: split path tests into multiple files
targos Aug 30, 2017
4bd44c1
repl: force editorMode in .load
lance Aug 16, 2017
f91897e
src: remove unused persistent properties from env
addaleax Aug 30, 2017
dd52cad
doc,lib,src,test: strip executable bits off files
addaleax Sep 1, 2017
ec599b8
doc: `readFileSync` instead of `fs.readFileSync`
miensol Sep 1, 2017
324aa64
errors: alphabetize error codes
maclover7 Aug 26, 2017
b12d779
errors,tools: alphabetize-errors lint rule
maclover7 Aug 26, 2017
08984b2
buffer: increase coverage by removing dead code
decareano Aug 30, 2017
c7c9e20
src: fix compiler warnings in node_perf.cc
danbev Aug 31, 2017
d7200d6
test: fix flaky test-readline-interface
Trott Aug 28, 2017
c419adf
net: check EADDRINUSE after binding localPort
joyeecheung Aug 30, 2017
ed084a0
url: remove unused code from autoEscapeStr
cyril-lakech Aug 30, 2017
180f865
test: remove envPlus, use Object.assign everywhere
gibfahn Aug 15, 2017
98d8db3
tools: bump vswhere helper to 2.0.0
refack Jul 31, 2017
233d1e2
test,process: run 'abort' suite on Windows
refack Aug 28, 2017
198fcb9
test: increase Http2ServerResponse test coverage
apapirovski Sep 1, 2017
e289540
http2: adjust error types, test coverage
apapirovski Aug 31, 2017
8d5b013
http2: correct emit error in onConnect, full tests
apapirovski Aug 29, 2017
484bfa2
crypto: accept decimal Number in randomBytes
Sep 1, 2017
b24e269
net: multiple listen() events fail silently
eduardbme May 22, 2017
86e7c61
test: split test-cli-node-options
refack Jul 12, 2017
d932e80
vm: support parsing a script in a specific context
TimothyGu Jul 17, 2017
1789dcf
doc: add missing changelogs to assert docs
BridgeAR Aug 25, 2017
ea2e636
assert: use SameValueZero in deepStrictEqual
BridgeAR Aug 19, 2017
09480a8
http2: guard against destroyed session, timeouts
jasnell Aug 30, 2017
425ce52
test: http2 test coverage for updateOptionsBuffer
jasnell Aug 30, 2017
2f9d9e5
test: http2 test coverage for assertValidPseudoHeader
jasnell Aug 30, 2017
fd9d288
test: http2 test coverage for NghttpError
jasnell Aug 30, 2017
a25c754
doc: clarify async/asynchronous in deprecations.md
Trott Sep 3, 2017
dc7f03c
2017-09-05, Version 6.11.3 'Boron' (LTS)
MylesBorins Aug 15, 2017
1403d28
tls: re-allow falsey option values
addaleax Sep 1, 2017
8485a7c
deps: upgrade libuv to 1.14.1
cjihrig Sep 6, 2017
343d9dc
build: display HTTP2 configure --help options
danbev Sep 5, 2017
1df16c6
src: fix DEBUG_HTTP2 type arguments
danbev Sep 5, 2017
6e27fd7
doc: instructions for generating coverage reports
ssbrewster Sep 4, 2017
7487d61
test: refactor test-fs-readfile-unlink
Trott Sep 3, 2017
800c32d
http2: fix closedCode NaN, increase test coverage
apapirovski Sep 3, 2017
ca78180
deps: cherry-pick 1aead19 from upstream V8
bnoordhuis Aug 17, 2017
964beed
src: turn key length exception into CHECK
bnoordhuis Aug 27, 2017
4477155
doc: add options argument to crypto docs
ashanhol Aug 15, 2017
6416464
http2: add compat trailers, adjust multi-headers
apapirovski Sep 5, 2017
46133b5
http2: use session not socket timeout, tests
apapirovski Sep 7, 2017
c8a389e
module: Allow runMain to be ESM
bmeck Jun 6, 2017
7540821
doc: describe what security issues are
sam-github Jul 25, 2017
9bae3ea
inspector: log exceptions in message handlers
Aug 22, 2017
81b2a89
deps: cherry-pick 5005faed5 from V8 upstream
Sep 4, 2017
b62343d
benchmark: add default configs to buffer benchmark
Trott Sep 3, 2017
19294c2
test: add test-benchmark-buffer
Trott Sep 3, 2017
91dc507
test: add http2 compat setTimeout tests
apapirovski Sep 3, 2017
2ffc8ac
http2: set decodeStrings to false, test
apapirovski Sep 7, 2017
372dc86
tls: multiple PFX in createSecureContext
djphoenix Aug 12, 2017
1cdb41f
doc: document missing error codes
gnbezerra Sep 3, 2017
89f2074
doc: document bytes to chars after setEncoding
jalafel Jun 3, 2017
703a3b5
doc, tls: mark parseCertString() as deprecated
XadillaX Aug 10, 2017
9168b8c
test: use no-save and no-package-lock flags
ssbrewster Sep 5, 2017
e9442d1
test: exclude write-coverage from coverage report
Sep 5, 2017
6281361
doc: add ESM doc to _toc.md and all.md
vsemozhetbyt Sep 7, 2017
11b7428
fs: add fs.copyFile{Sync}
cjihrig Sep 6, 2017
428bcb7
promises: more robust stringification
TimothyGu Jun 19, 2017
aa76ce9
doc: add missing space in test/README.md
vsemozhetbyt Sep 8, 2017
5f22375
src: add support to pass flags to dlopen
ezequielgarcia Apr 29, 2017
c14ca49
doc: fix Error property markdown level
sam-github Sep 7, 2017
a2b6872
timers: fix outdated comment
timcosta Jul 16, 2017
7828698
test,doc: make module name match gyp target name
Sep 5, 2017
61e9ba1
n-api: implement napi_run_script
Sep 6, 2017
668ad44
intl: unexpose Intl.v8BreakIterator
bnoordhuis Sep 7, 2017
94be2b1
test: kill subprocess only after last ACK
refack Sep 4, 2017
78fc726
http2: store headersSent after stream destroyed
apapirovski Sep 6, 2017
c20901a
http2: correct behaviour for enablePush unpack
apapirovski Sep 7, 2017
45357d0
http2: fix refs to status 205, add tests
apapirovski Sep 7, 2017
af15b75
test: move common.PORT tests to sequential
maclover7 Sep 1, 2017
aa3b96a
test: make test-http-agent-maxsockets robust
Trott Sep 5, 2017
16a81cd
test: remove random timer in test-tls-fast-writing
Trott Sep 1, 2017
fc1fa4e
buffer: improve Buffer.from performance
apapirovski Sep 4, 2017
6ebdb69
crypto: fix Node_SignFinal
davidben Sep 9, 2017
f154c83
test: remove faulty test case
BridgeAR Aug 31, 2017
21a3ae3
test: check inspect array with empty string key
mrahul17 Sep 8, 2017
c79fd2b
build: remove unused configuration variable
bnoordhuis Sep 8, 2017
640b206
test: create shared runBenchmark function
maclover7 Aug 24, 2017
210fc72
doc: adding sebdeckers to collaborators
sebdeckers Sep 12, 2017
cb44cd4
test: fix single test runner regression
TimothyGu Sep 11, 2017
3f7813b
doc: update AUTHORS list
targos Sep 4, 2017
6ff521b
errors: eliminate circular dependency on assert
jasnell Aug 24, 2017
8c2eba0
test: improve process warning coverage
jasnell Sep 5, 2017
2510500
meta: allow vague objections to be dismissed
jasnell Sep 6, 2017
6ccb9fe
errors: fix ERR_MODULE_RESOLUTION_LEGACY message
tniessen Sep 9, 2017
da057db
doc: fix some internal links
vsemozhetbyt Sep 9, 2017
c981483
http2: cleanup of h2 compat layer, add tests
apapirovski Sep 12, 2017
a10856a
2017-09-12, Version 8.5.0 (Current)
MylesBorins Sep 10, 2017
e13d1df
assert: support custom errors
geek Sep 10, 2017
22ae8c0
assert: fix boxed primitives in deepStrictEqual
BridgeAR Aug 27, 2017
c1fce1e
doc: update README with SHASUMS256.txt.sig info
maclover7 Aug 31, 2017
cb94905
n-api: stop creating references to primitives
Sep 9, 2017
b4b7ac6
doc: fix nits in esm.md
vsemozhetbyt Sep 10, 2017
d82e107
deps: update V8 to 6.1.534.36
targos Sep 12, 2017
ddc16e5
src: update NODE_MODULE_VERSION to 58
targos Sep 12, 2017
c6e165b
deps: limit regress/regress-crbug-514081 v8 test
mhdawson May 9, 2016
694ef89
deps: fix addons compilation with VS2013
bzoz May 23, 2017
e202d85
deps: cherry-pick f19b889 from upstream V8
targos Aug 16, 2017
e1c37b3
deps: backport 6e9e2e5 from upstream V8
Aug 3, 2017
5976e0f
deps: backport bca8409 from upstream V8
Aug 3, 2017
e55b7f3
deps: backport f9c4b7a from upstream V8
Aug 3, 2017
bd6907b
deps: cherry-pick e020aae394 from V8 upstream
bnoordhuis Aug 17, 2017
9c3182e
deps: cherry-pick 1aead19 from upstream V8
bnoordhuis Aug 17, 2017
31ce2c1
deps: add postmortem metadata for V8 TurboFan
targos Sep 6, 2017
dc1996d
src: fix SmartOS compilation
targos Jun 27, 2017
fca7e49
test: adjust windows failed alloc test to V8 6.2
bzoz Sep 13, 2017
2ac7b43
dgram: support for setting socket buffer size
DamienOReilly Jun 11, 2017
35a526c
http2,async-wrap: introduce AliasedBuffer class
Aug 25, 2017
0dad97c
doc: fix "added in" for Buffer.allocUnsafeSlow()
tuananh Sep 11, 2017
1aca135
http2: add tests for push stream error handling
apapirovski Sep 13, 2017
dcc41fd
src: remove unused perf_hooks uv handles
jasnell Sep 12, 2017
ad3d899
http2: improve http2 coverage
jasnell Sep 5, 2017
9d9552f
http2: custom promisify for http2.connect
jasnell Sep 1, 2017
bf1ca8f
meta: improve contributors guide
jasnell Aug 31, 2017
f68ab39
doc: add missing heading for error
maclover7 Sep 11, 2017
468110b
tls: deprecate parseCertString & move to internal
XadillaX Sep 8, 2017
eb4940e
string_decoder: Migrate to use internal/errors
starkwang Aug 8, 2017
99a7799
doc: add missing doc for readable._destroy
targos Sep 10, 2017
5ee2d3e
test: fix sequential/test-async-wrap-getasyncid
addaleax Sep 9, 2017
a172b7c
test: refactor test-debug-prompt
Trott Sep 2, 2017
6cfd773
test: remove invalid test
Trott Sep 10, 2017
ff16337
doc: use consistent terminology in process doc
Trott Sep 10, 2017
d38e643
test: remove obsolete debugger tests
Trott Sep 1, 2017
b8d532c
test: allow adding known-globals through ENV
refack Sep 4, 2017
ed2f347
child_process: set shell to false in fork()
Sep 9, 2017
688765a
test: add test for fork() + shell
cjihrig Sep 12, 2017
cba206f
docs: update 8.5.0 changelog
MylesBorins Sep 13, 2017
4ae0afb
dgram: added setMulticastInterface()
lostnet Jul 23, 2016
290315a
src: refactor `#include` handling
addaleax Aug 8, 2017
be6d807
src: make in_makecallback() getter const
addaleax Aug 8, 2017
64616bb
src: refactor async callback handling
addaleax Aug 8, 2017
a564c1e
src: remove virtually unused ExecScope
addaleax Aug 8, 2017
8c8c90b
n-api: use AsyncResource for Work tracking
addaleax Aug 8, 2017
bdaa2cb
test: add regression test for 5691
addaleax Sep 5, 2017
2509c34
src: move DomainEnter,DomainExit to node.cc
addaleax Sep 6, 2017
1a0727d
n-api: change async resource name to napi_value
jasongin Sep 9, 2017
7456db9
test: convert buffer benchmark to runBenchmark
maclover7 Sep 11, 2017
d195a06
src: fix typo in probe description
evanlucas Sep 13, 2017
92e5f5c
n-api: refactor napi_addon_register_func
boingoing Aug 30, 2017
0c258bd
n-api: Context for custom async operations
jasongin Aug 26, 2017
973c12f
n-api: napi_is_construct_call->napi_get_new_target
Aug 8, 2017
e9358af
errors: remove duplicate error definition
maclover7 Sep 10, 2017
082c434
test: move test-benchmark-buffer to sequential
Trott Sep 12, 2017
6bfc439
benchmark: improve and add more inspect benchmarks
BridgeAR Aug 17, 2017
01652cc
util: add fast internal array join method
BridgeAR Aug 22, 2017
f9ad23d
util: refactor inspect for performance and more
BridgeAR Aug 17, 2017
bac313b
util: fix out of bounds indices in util.inspect
BridgeAR Sep 9, 2017
e3f4305
test: improve util inspect tests
BridgeAR Sep 9, 2017
8f52ccc
test: fix actual and expected order
BridgeAR Sep 13, 2017
6f617b3
well... it seems to work, but is a tad bit slow
bmeck Sep 15, 2017
d8a0364
async_hooks,doc: some async_hooks improvements
jasnell Aug 30, 2017
8bd1668
doc: fix emitKeypressEvents stream type
Oblosys Sep 13, 2017
a591610
doc: fix wrong history entry in deepStrictEqual
hisener Sep 13, 2017
dce72c2
module: check file url passed to top-level import
guybedford Sep 13, 2017
01a1812
deps: cherry-pick b6158eb6befae from V8 upstream
addaleax Sep 8, 2017
8403d6b
deps: cherry-pick 9b21865822243 from V8 upstream
addaleax Sep 8, 2017
dcb24e3
src: keep track of env properly in node_perf.cc
addaleax Sep 4, 2017
2e8217c
assert: improve AssertionError in case of "Errors"
BridgeAR Aug 25, 2017
0fc402b
module: coverity fixes for ESM C++
bmeck Sep 8, 2017
11f46a2
benchmark: enable assert benchmark with short len
Trott Sep 3, 2017
3c4c0db
benchmark: provide default methods for assert
Trott Sep 3, 2017
a901849
test: add test-benchmark-assert
Trott Sep 3, 2017
ca2c73c
doc: fix http.ClientRequest method descriptions
antoine-amara Sep 1, 2017
b0d3bec
assert: use Same-value equality in deepStrictEqual
BridgeAR Aug 19, 2017
631c59b
test: don't skip when common.mustCall() is pending
cjihrig Sep 14, 2017
75f7b2f
doc: do not begin yaml value with backtick
maclover7 Sep 17, 2017
9b996f0
deps: patch V8 to 6.1.534.38
MylesBorins Sep 15, 2017
bd85752
src: use InstantiateModule instead of deprecated
danbev Sep 15, 2017
a4e923f
http2: fix subsequent end calls to not throw
apapirovski Sep 14, 2017
de51717
test: fix flaky test-http2-session-timeout
apapirovski Sep 16, 2017
8fa5fcc
http2: emit close event if request aborted
apapirovski Sep 14, 2017
c75f87c
crypto: refactor the crypto module
jasnell Sep 6, 2017
1976654
n-api: add optional string length parameters
Sep 11, 2017
8ed1138
well... it seems to work, but is a tad bit slow
bmeck Sep 15, 2017
6a633bd
wip
bmeck Sep 19, 2017
a48dc18
wip
bmeck Sep 20, 2017
ec26a3d
mostly works
bmeck Sep 20, 2017
f8e3807
Merge branch 'named-export-core' of https://github.com/bmeck/node int…
bmeck Sep 20, 2017
e47459c
mostly works
bmeck Sep 20, 2017
d1eea81
Initial shot at making `.js` support ESM
tbranyen Sep 16, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ env:
parserOptions:
ecmaVersion: 2017

overrides:
- files: ["doc/api/esm.md", "*.mjs"]
parserOptions:
sourceType: module

rules:
# Possible Errors
# http://eslint.org/docs/rules/#possible-errors
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
!.gitignore
!.gitkeep
!.mailmap
!.nycrc
!.remarkrc

core
Expand Down
94 changes: 86 additions & 8 deletions .mailmap

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"exclude": [
"**/internal/process/write-coverage.js"
],
"reporter": ["html", "text"]
}