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

v8.11.2 proposal #20478

Merged
merged 218 commits into from
May 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
18be476
benchmark: fix punycode test for --without-intl
TimothyGu Oct 17, 2017
a653f23
fs: fix `createReadStream(…, {end: n})` for non-seekable fds
addaleax Mar 13, 2018
e0e0ef7
util: escaping object keys in util.inspect()
ah-yu Nov 13, 2017
1d88266
http: free the parser before emitting 'upgrade'
lpinca Jan 17, 2018
37e594e
stream: remove unreachable code
lpinca Jan 18, 2018
6f3fb46
test: use correct size in test-stream-buffer-list
lpinca Jan 18, 2018
bf52382
stream: simplify `src._readableState` to `state`
Jan 20, 2018
e84e9db
doc: capitalize non-primitive types
vsemozhetbyt Jan 12, 2018
5209f9e
doc: warn about GCM authenticity
tniessen Jan 25, 2018
39ea4f1
doc: fix manpage warnings
silverwind Jan 29, 2018
142ad8d
doc: reorder section on updating PR branch
ofrobots Jan 24, 2018
5d03c82
url: simplify loop in parser
tniessen Jan 30, 2018
7feeb15
doc: add Gibson Fahnestock to TSC
Trott Jan 31, 2018
a1fb263
test: fix flaky test-http-dns-error
bengl Oct 26, 2017
c0f40be
src: free memory before re-setting URLHost value
prog1dev Jan 23, 2018
a8b5a96
tools: auto fix custom eslint rule
shobhitchittora Oct 31, 2017
ac41aac
doc: improve stream documentation
Jan 25, 2018
d630874
test: speed up parallel/test-tls-session-cache
addaleax Jan 29, 2018
20844d1
lib: remove debugger dead code
liqyan Jan 22, 2018
79a7a17
deps: update node-inspect to 1.11.3
Jan 24, 2018
ce3866b
async_hooks: clean up comments
ofrobots Jan 30, 2018
eec9334
doc: move Brian White to TSC Emeriti list
Trott Jan 31, 2018
8ac69c4
v8: add missing ',' in OpenBSD's 'sources' section.
qbit Jan 30, 2018
424703a
build: add cflags for OpenBSD, remove stray comma.
qbit Jan 30, 2018
e5d5137
doc: streamline README intro
Trott Jan 31, 2018
f96b0bf
string_decoder: reset decoder on end
jridgewell Feb 1, 2018
0cf9d04
test: add test for tls benchmarks
apapirovski Feb 1, 2018
e55e08c
test: verify the shell option works properly on execFile
jvelezpo Jan 25, 2018
c61754f
win, build: fix intl-none option
poiru Jan 22, 2018
36ea472
doc: improve http.request documentation
Zarel Jan 8, 2018
1107a49
doc: shell option for the execFile and execFileSync functions
jvelezpo Jan 18, 2018
659b2a1
build: allow x86_64 as a dest_cpu alias for x64
rvagg Jan 9, 2018
fdb4dbc
test: remove destructor from node_test_fixture
danbev Feb 2, 2018
35aaee1
net: remove redundant code from _writeGeneric()
lpinca Jan 29, 2018
e0d2842
tools: add check for using process.binding crypto
danbev Dec 26, 2017
658dd40
build: refine static and shared lib build
yhwang Dec 5, 2017
cbc8561
errors: remove ERR_OUTOFMEMORY
tniessen Dec 27, 2017
1043b6f
test: fix spelling in test case comments
tniessen Jan 6, 2018
3df0570
lib: fix spelling in comments
tniessen Jan 6, 2018
5155d8e
test: update references to archived repository
tniessen Dec 31, 2017
965b56a
readline: update references to archived repository
tniessen Dec 31, 2017
a1b0d5d
test: move tmpdir to submodule of common
Trott Dec 25, 2017
a0a45fc
tools: add .mjs linting for Windows
vsemozhetbyt Feb 4, 2018
e42ab10
test: add assertions for TextEncoder/Decoder
Jan 13, 2018
1091dfc
doc: linkify missing types
vsemozhetbyt Jan 29, 2018
d02b72e
deps: V8: backport 596d55a from upstream
MylesBorins Sep 18, 2017
16bf5fe
crypto: reuse variable instead of reevaluation
tniessen Dec 18, 2017
745600a
test: remove orphaned entries from status
kfarnung Feb 27, 2018
016a28a
tools: non-Ascii linter for /lib only
SirR4T Jan 8, 2018
d537f45
build: make lint-md independent of local node
joyeecheung Jan 20, 2018
333d7dd
build: make lint-js independent of local node
joyeecheung Jan 20, 2018
c897815
doc: fix various nits
vsemozhetbyt Apr 2, 2018
d2a884e
http: fix parsing of binary upgrade response body
bnoordhuis Dec 21, 2017
7813a0d
test: introduce test/common/internet.addresses
joyeecheung Oct 22, 2017
daeb6de
test: use internet.addresses in internet tests
joyeecheung Oct 22, 2017
bff7258
test: do not check TXT content in test-dns-any
joyeecheung Feb 3, 2018
34af494
test: add common.dns.errorLookupMock
joyeecheung Nov 25, 2017
da16227
test: mock the lookup function in parallel tests
joyeecheung Nov 25, 2017
53b702f
test: remove common.PORT from parallel tests
Trott Nov 22, 2017
c97237b
deps: cherry-pick a4bddba from upstream V8
targos Apr 5, 2018
09f5e25
deps: cherry-pick 7abdadc from upstream V8
targos Apr 5, 2018
f12db24
deps: cherry-pick a803fad from upstream V8
targos Apr 5, 2018
2019b02
lib: refactor ES module loader for readability
addaleax Oct 28, 2017
9ac91b1
src: fix util abort
BridgeAR Mar 7, 2018
0071560
doc: fix description of createDecipheriv
tniessen Feb 8, 2018
f8ad381
doc: add missing meta for createCipheriv
tniessen Feb 8, 2018
ab8edc9
test: fix flaky timers-block-eventloop test
apapirovski Feb 4, 2018
86e3c89
benchmark: improve compare output
BridgeAR Feb 5, 2018
9bce141
build: do not suppress output in make doc-only
joyeecheung Feb 1, 2018
cbd698a
test: refactor test-http-abort-before-end
cjihrig Feb 1, 2018
1faae90
readline: use Date.now() and move test to parallel
apapirovski Feb 4, 2018
50bdf0e
doc: be more explicit in the sypnosis
timotew Jan 4, 2018
d4bcccc
tools: add fixer for prefer-assert-iferror.js
shobhitchittora Oct 31, 2017
1ea1970
doc: modify the return value of request.write()
Feb 2, 2018
7b6d93c
build: add doc linting when runnning `make lint`
camilo86 Jan 31, 2018
8ca6d34
doc: add introduce about cli options
starkwang Jan 31, 2018
73adadd
doc: add section for strategic initiatives
mhdawson Nov 17, 2017
25db460
doc: expand on promises and async_hooks
ofrobots Feb 2, 2018
10231a9
stream: cleanup() when unpiping all streams.
Jan 20, 2018
176ed1e
doc: add devsnek to collaborators
devsnek Feb 9, 2018
d30c353
doc: fix links to Style Guide and CPP Style Guide
justin0022 Feb 9, 2018
973488b
src: replace var for let / const.
estrada9166 Feb 8, 2018
2995506
fs: fix stack overflow in fs.readdirSync
joyeecheung Feb 8, 2018
16f9631
doc: add history for url.parse
styfle Feb 9, 2018
b48ca0a
src: fix crypto.pbkdf2 callback error argument
BufoViridis Jan 30, 2018
88d3028
build: no longer have v8-debug.h as dependency.
hashseed Feb 9, 2018
b8f2acd
doc: add mmarchini to collaborators
Feb 12, 2018
f4ddaae
doc: move Fedor to TSC Emeritus
MylesBorins Feb 13, 2018
9129bc4
lib: set process.execPath on OpenBSD
qbit Feb 3, 2018
9236332
test: update a few tests to work on OpenBSD
qbit Feb 3, 2018
ab00559
deps: V8: backport 76c3ac5 from upstream
ofrobots Jan 22, 2018
bf4d074
cluster: fix inspector port assignment
santigimeno Feb 10, 2018
29c395d
http: allow _httpMessage to be GC'ed
lpinca Feb 19, 2018
42b4f3c
src: fix abort when taking a heap snapshot
bnoordhuis Feb 21, 2018
6bfdba1
http: remove default 'drain' listener on upgrade
lpinca Feb 19, 2018
b221379
doc: fix MDN links to avoid redirections
vsemozhetbyt Apr 13, 2018
3225601
net: remove Socket.prototoype.read
addaleax Feb 4, 2018
077e187
test: add unhandled rejection guard
babygoat Nov 23, 2017
2e100c8
test: remove literals that obscure assert messages
Trott Dec 13, 2017
a744535
n-api: fix memory leak in napi_async_destroy()
Dec 17, 2017
ad8c079
test: remove ambiguous error messages from test_error
nadrane Dec 21, 2017
79ecc2c
doc: updates examples to use NULL
mhdawson Jan 5, 2018
48be8a4
n-api: throw RangeError in napi_create_dataview() with invalid range
romandev Dec 26, 2017
853b4d5
n-api: expose n-api version in process.versions
mhdawson Jan 9, 2018
02ae329
doc: napi: fix unbalanced emphasis
ofrobots Jan 12, 2018
51513fd
doc: napi: make header style consistent
ofrobots Jan 12, 2018
ca10fda
n-api: throw RangeError napi_create_typedarray()
romandev Jan 8, 2018
8cfa878
test: fixed typos in napi test
furstenheim Jan 14, 2018
84e0a03
doc: remove uannecessary Require
mhdawson Jan 16, 2018
e15f577
timers: allow Immediates to be unrefed
apapirovski Jan 13, 2018
5b1b74c
test: refactor addons-napi/test_exception/test.js
Trott Jan 24, 2018
af655f5
n-api: change assert ok check to notStrictEqual.
nbdaaron Jan 27, 2018
bebcdfe
test: show pending exception error in napi tests
reccanti Jan 27, 2018
d89f593
n-api: implement wrapping using private properties
Jan 23, 2018
969a520
n-api: wrap control flow macro in do/while
bnoordhuis Feb 2, 2018
7ed1dfe
doc: remove usage of you in n-api doc
mhdawson Feb 2, 2018
9729278
doc: small typo in n-api.md
iSkore Feb 4, 2018
927fc0b
n-api: add methods to open/close callback scope
mhdawson Dec 13, 2017
9244e1d
n-api: remove extra reference from test
Feb 3, 2018
4d43607
doc: fix typo in n-api.md
vsemozhetbyt Feb 6, 2018
5c0983e
test: improve error message output
bshankar Feb 1, 2018
2838f9b
test: convert new tests to use error types
jackhorton Feb 5, 2018
58688d9
doc: fix exporting a function example
Feb 8, 2018
87d0fd8
doc: mark NAPI_AUTO_LENGTH as code
tniessen Feb 10, 2018
6129ff4
test: remove unnecessary timer
cjihrig Feb 11, 2018
cb3f90a
n-api: fix object test
Feb 27, 2018
1abb168
doc: fix n-api asynchronous threading docs
ebickle Mar 1, 2018
b26410e
n-api: update reference test
Mar 2, 2018
df63adf
n-api: update documentation
Mar 1, 2018
faf94b1
n-api: resolve promise in test
Mar 8, 2018
4c1181d
n-api,test: add a new.target test to addons-napi
boingoing Jan 17, 2018
584fadc
n-api,test: add int64 bounds tests
kfarnung Mar 12, 2018
7c6fa18
doc: fix typos on n-api
shama Mar 16, 2018
f29d8e0
n-api: add missing exception checking
mhdawson Mar 15, 2018
9949d55
n-api: separate out async_hooks test
Mar 16, 2018
3a6b7e6
n-api: add napi_fatal_exception
mafintosh Mar 14, 2018
24b8bb6
n-api: re-write test_make_callback
Mar 19, 2018
f0ba2c6
doc: Add a missing comma
leaves4j Mar 23, 2018
367113f
n-api: bump version of n-api supported
mhdawson Mar 20, 2018
92f699e
n-api: ensure in-module exceptions are propagated
Mar 22, 2018
8b3ef46
n-api: back up env before finalize
Apr 1, 2018
07a6770
n-api: add more `int64_t` tests
kfarnung Mar 16, 2018
45e28a8
src: minor refactoring to StreamBase writes
addaleax Dec 9, 2017
f3e082c
src: replace SetAccessor w/ SetAccessorProperty
jure Dec 13, 2017
9e68947
test: add hasCrypto when using binding('crypto')
danbev Dec 26, 2017
7eba62e
test: make test-tls-external-accessor agnostic
Trott Oct 17, 2017
54442ef
perf_hooks: refactor internals
jasnell Dec 21, 2017
a1539e5
http2: simplify onSelectPadding
addaleax Dec 17, 2017
9acc7f3
deps: update nghttp2 to 1.29.0
jasnell Dec 28, 2017
2b77327
src: add optional keep-alive object to SetImmediate
addaleax Nov 21, 2017
38cfb70
http2: don't call into JS from GC
addaleax Nov 21, 2017
8431b42
http2: only schedule write when necessary
addaleax Nov 21, 2017
1d65f2b
http2: be sure to destroy the Http2Stream
jasnell Nov 27, 2017
fc40b7d
http2: cleanup Http2Stream/Http2Session destroy
jasnell Dec 12, 2017
05b823d
http2: remove redundant write indirection
addaleax Dec 17, 2017
ea98fd5
http2: refactor outgoing write mechanism
addaleax Dec 17, 2017
0463221
http2: convert Http2Settings to an AsyncWrap
jasnell Dec 18, 2017
c61a54e
http2: fix compiling with `--debug-http2`
addaleax Dec 25, 2017
55f6bdb
http2: keep session objects alive during Http2Scope
addaleax Dec 25, 2017
72b42de
http2: implement ref() and unref() on client sessions
kjin Dec 11, 2017
dcc7f4d
http2: perf_hooks integration
jasnell Dec 20, 2017
9a4bac2
http2,perf_hooks: perf state using AliasedBuffer
kfarnung Jan 22, 2018
c915bc5
http2: strictly limit number on concurrent streams
jasnell Nov 21, 2017
1a24fec
http2: add altsvc support
jasnell Dec 29, 2017
95c1e2d
tls: set servername on client side too
jasnell Jan 1, 2018
1c313e0
http2: add initial support for originSet
jasnell Jan 1, 2018
0078a97
http2: add aligned padding strategy
jasnell Jan 1, 2018
9a6ea7e
http2: properly handle already closed stream error
jasnell Jan 2, 2018
35ee894
doc: add docs for common/http2.js utility
jasnell Jan 2, 2018
3766e04
src: silence http2 -Wunused-result warnings
cjihrig Jan 2, 2018
9c85ada
http2: implement maxSessionMemory
jasnell Jan 3, 2018
a85518e
http2: verify that a dependency cycle may exist
jasnell Jan 3, 2018
591f78b
doc: grammar fixes in http2.md
Trott Jan 4, 2018
46d1b33
http2: verify flood error and unsolicited frames
jasnell Jan 3, 2018
0205b3f
doc: correct spelling
sreepurnajasti Dec 29, 2017
c924adf
doc: fix code nits in common/README
vsemozhetbyt Jan 4, 2018
e9de5a9
doc: re-alphabetise sections in common/README.md
vsemozhetbyt Jan 4, 2018
9404573
doc: compact eslint directives in common/README
vsemozhetbyt Jan 4, 2018
3cd2054
http2: use aliased buffer for perf stats, add stats
jasnell Jan 6, 2018
d9d0d0e
doc: update pushStream docs to use err first
jasnell Jan 10, 2018
88babd5
doc: fix s/rstStream/close in example
jasnell Jan 11, 2018
6bdfb1f
perf_hooks,http2: add performance.clear()
jasnell Jan 8, 2018
a4d910c
http2: remember sent headers
jasnell Jan 8, 2018
0b828e5
src: remove declarations for missing functions
addaleax Jan 13, 2018
5e4f9b3
src,doc,test: Fix common misspellings
silverwind Jan 14, 2018
fac76f9
doc: fix typo in http2stream.close param default
maritz Jan 15, 2018
4e807d6
src: introduce internal buffer slice constructor
addaleax Jan 8, 2018
8b0a1b3
http2: refactor read mechanism
addaleax Jan 8, 2018
ac64b4f
http2: add checks for server close callback
jasnell Jan 16, 2018
15023c7
doc: fix documentation of http2Stream.pushstream()
nephross Jan 19, 2018
9a4a8c1
doc: unify type linkification
vsemozhetbyt Jan 27, 2018
2da965c
doc: remove removed apis from http2 docs
kjin Jan 29, 2018
39267e8
doc: fix typo in http2.md
vsemozhetbyt Feb 6, 2018
20fb59f
http2: use `_final` instead of `on('finish')`
addaleax Feb 7, 2018
30070c7
doc: warn against concurrent http2stream.respondWithFD
addaleax Feb 13, 2018
801a499
src: add nullptr check for session in DEBUG macro
danbev Feb 16, 2018
5394bc5
deps,src: align ssize_t ABI between Node & nghttp2
addaleax Feb 4, 2018
f366373
http2: fix condition where data is lost
mcollina Feb 19, 2018
2a04f57
http2: send error text in case of ALPN mismatch
addaleax Feb 25, 2018
7e4a9c9
http2: use original error for cancelling pending streams
addaleax Feb 25, 2018
b75897f
http2: fix endless loop when writing empty string
addaleax Feb 22, 2018
b066442
test: check endless loop while writing empty string
XadillaX Feb 11, 2018
bfd7d6d
http2: fix flaky test-http2-https-fallback
mcollina Mar 2, 2018
c976cb5
http2: no stream destroy while its data is on the wire
addaleax Feb 26, 2018
da185ce
doc: add note about browsers and HTTP/2
styfle Mar 20, 2018
e4c10e1
http2: remove some unnecessary next ticks
jasnell Mar 19, 2018
f59eab0
doc: rename HTTP2 to HTTP/2
TimothyGu Mar 26, 2018
83d8ad3
test: http2 stream.respond() error checks
trivikr Feb 19, 2018
eddf3a6
http2: destroy() stream, upon errnoException
SirR4T Mar 16, 2018
1ff3544
doc: guard against md list parsing edge case
vsemozhetbyt Mar 28, 2018
4dbdb8a
test: http2 errors on req.close()
trivikr Feb 18, 2018
6d6e2e2
http2: callback valid check before closing request
trivikr Feb 28, 2018
84fa6eb
doc, http2: add sections for server.close()
chrismilleruk Apr 4, 2018
165d214
doc: add Http2Session.connecting property
pietermees Apr 6, 2018
1455b1d
http2: emit session connect on next tick
pietermees Apr 9, 2018
a52f15e
timers: fix a bug in error handling
apapirovski Apr 14, 2018
ab4809f
build,win: restore vcbuild TAG functionality
rvagg Jan 8, 2018
faf417b
2018-05-15, Version 8.11.2 'Carbon' (LTS)
MylesBorins May 2, 2018
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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V8.md#8.11.1">8.11.1</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V8.md#8.11.2">8.11.2</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.11.1">8.11.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.11.0">8.11.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.10.0">8.10.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.9.4">8.9.4</a><br/>
Expand Down
16 changes: 8 additions & 8 deletions COLLABORATOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,20 +593,20 @@ Validate that the commit message is properly formatted using
$ git rev-list upstream/master...HEAD | xargs core-validate-commit
```

Optional: When landing your own commits, force push the amended commit to the
branch you used to open the pull request. If your branch is called `bugfix`,
then the command would be `git push --force-with-lease origin master:bugfix`.
When the pull request is closed, this will cause the pull request to
show the purple merged status rather than the red closed status that is
usually used for pull requests that weren't merged.

Time to push it:

```text
$ git push upstream master
```
* Optional: Force push the amended commit to the branch you used to
open the pull request. If your branch is called `bugfix`, then the
command would be `git push --force-with-lease origin master:bugfix`.
When the pull request is closed, this will cause the pull request to
show the purple merged status rather than the red closed status that is
usually used for pull requests that weren't merged. Only do this when
landing your own contributions.

* Close the pull request with a "Landed in `<commit hash>`" comment. If
Close the pull request with a "Landed in `<commit hash>`" comment. If
your pull request shows the purple merged status then you should still
add the "Landed in <commit hash>..<commit hash>" comment if you added
multiple commits.
Expand Down
62 changes: 30 additions & 32 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ doc-only: $(apidoc_dirs) $(apiassets)
if [ ! -d doc/api/assets ]; then \
$(MAKE) tools/doc/node_modules/js-yaml/package.json; \
fi;
@$(MAKE) -s $(apidocs_html) $(apidocs_json)
@$(MAKE) $(apidocs_html) $(apidocs_json)

doc: $(NODE_EXE) doc-only

Expand Down Expand Up @@ -1008,26 +1008,31 @@ lint-md-clean:
lint-md-build:
@if [ ! -d tools/remark-cli/node_modules ]; then \
echo "Markdown linter: installing remark-cli into tools/"; \
cd tools/remark-cli && ../../$(NODE) ../../$(NPM) install; fi
cd tools/remark-cli && $(call available-node,$(run-npm-install)) fi
@if [ ! -d tools/remark-preset-lint-node/node_modules ]; then \
echo "Markdown linter: installing remark-preset-lint-node into tools/"; \
cd tools/remark-preset-lint-node && ../../$(NODE) ../../$(NPM) install; fi
cd tools/remark-preset-lint-node && $(call available-node,$(run-npm-install)) fi


ifneq ("","$(wildcard tools/remark-cli/node_modules/)")
LINT_MD_TARGETS = src lib benchmark tools/doc tools/icu
LINT_MD_ROOT_DOCS := $(wildcard *.md)
LINT_MD_FILES := $(shell find $(LINT_MD_TARGETS) -type f \
-not -path '*node_modules*' -name '*.md') $(LINT_MD_ROOT_DOCS)
LINT_DOC_MD_FILES = $(shell ls doc/**/*.md)

tools/.docmdlintstamp: $(LINT_DOC_MD_FILES)
LINT_MD_DOC_FILES = $(shell ls doc/**/*.md)
run-lint-doc-md = tools/remark-cli/cli.js -q -f $(LINT_MD_DOC_FILES)
# Lint all changed markdown files under doc/
tools/.docmdlintstamp: $(LINT_MD_DOC_FILES)
@echo "Running Markdown linter on docs..."
@$(NODE) tools/remark-cli/cli.js -q -f $(LINT_DOC_MD_FILES)
@$(call available-node,$(run-lint-doc-md))
@touch $@

tools/.miscmdlintstamp: $(LINT_MD_FILES)
LINT_MD_TARGETS = src lib benchmark tools/doc tools/icu
LINT_MD_ROOT_DOCS := $(wildcard *.md)
LINT_MD_MISC_FILES := $(shell find $(LINT_MD_TARGETS) -type f \
-not -path '*node_modules*' -name '*.md') $(LINT_MD_ROOT_DOCS)
run-lint-misc-md = tools/remark-cli/cli.js -q -f $(LINT_MD_MISC_FILES)
# Lint other changed markdown files maintained by us
tools/.miscmdlintstamp: $(LINT_MD_MISC_FILES)
@echo "Running Markdown linter on misc docs..."
@$(NODE) tools/remark-cli/cli.js -q -f $(LINT_MD_FILES)
@$(call available-node,$(run-lint-misc-md))
@touch $@

tools/.mdlintstamp: tools/.miscmdlintstamp tools/.docmdlintstamp
Expand All @@ -1040,37 +1045,29 @@ lint-md:
endif

LINT_JS_TARGETS = benchmark doc lib test tools
LINT_JS_CMD = tools/eslint/bin/eslint.js --cache \
--rulesdir=tools/eslint-rules --ext=.js,.mjs,.md \
$(LINT_JS_TARGETS)

run-lint-js = tools/eslint/bin/eslint.js --cache \
--rulesdir=tools/eslint-rules --ext=.js,.mjs,.md $(LINT_JS_TARGETS)
run-lint-js-fix = $(run-lint-js) --fix

lint-js-fix:
@if [ -x $(NODE) ]; then \
$(NODE) $(LINT_JS_CMD) --fix; \
else \
node $(LINT_JS_CMD) --fix; \
fi
@$(call available-node,$(run-lint-js-fix))

lint-js:
@echo "Running JS linter..."
@if [ -x $(NODE) ]; then \
$(NODE) $(LINT_JS_CMD); \
else \
node $(LINT_JS_CMD); \
fi
@$(call available-node,$(run-lint-js))

jslint: lint-js
@echo "Please use lint-js instead of jslint"

run-lint-js-ci = tools/lint-js.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
$(LINT_JS_TARGETS)

.PHONY: lint-js-ci
# On the CI the output is emitted in the TAP format.
lint-js-ci:
@echo "Running JS linter..."
@if [ -x $(NODE) ]; then \
$(NODE) tools/lint-js.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
$(LINT_JS_TARGETS); \
else \
node tools/lint-js.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
$(LINT_JS_TARGETS); \
fi
@$(call available-node,$(run-lint-js-ci))

jslint-ci: lint-js-ci
@echo "Please use lint-js-ci instead of jslint-ci"
Expand Down Expand Up @@ -1128,6 +1125,7 @@ lint: ## Run JS, C++, MD and doc linters.
$(MAKE) lint-cpp || EXIT_STATUS=$$? ; \
$(MAKE) lint-md || EXIT_STATUS=$$? ; \
$(MAKE) lint-addon-docs || EXIT_STATUS=$$? ; \
$(MAKE) lint-md || EXIT_STATUS=$$? ; \
exit $$EXIT_STATUS
CONFLICT_RE=^>>>>>>> [0-9A-Fa-f]+|^<<<<<<< [A-Za-z]+
lint-ci: lint-js-ci lint-cpp lint-md lint-addon-docs
Expand Down
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
<a title="CII Best Practices" href="https://bestpractices.coreinfrastructure.org/projects/29"><img src="https://bestpractices.coreinfrastructure.org/projects/29/badge"></a>
</p>

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js
uses an event-driven, non-blocking I/O model that makes it lightweight and
efficient. The Node.js package ecosystem, [npm][], is the largest ecosystem of
open source libraries in the world.
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. For
more information on using Node.js, see the
[Node.js Website][].

The Node.js project is supported by the
[Node.js Foundation](https://nodejs.org/en/foundation/). Contributions,
Expand Down Expand Up @@ -245,8 +244,8 @@ For more information about the governance of the Node.js project, see
**Franziska Hinkelmann** &lt;franziska.hinkelmann@gmail.com&gt; (she/her)
* [Fishrock123](https://github.com/Fishrock123) -
**Jeremiah Senkpiel** &lt;fishrock123@rocketmail.com&gt;
* [indutny](https://github.com/indutny) -
**Fedor Indutny** &lt;fedor.indutny@gmail.com&gt;
* [gibfahn](https://github.com/gibfahn) -
**Gibson Fahnestock** &lt;gibfahn@gmail.com&gt; (he/him)
* [jasnell](https://github.com/jasnell) -
**James M Snell** &lt;jasnell@gmail.com&gt; (he/him)
* [joyeecheung](https://github.com/joyeecheung) -
Expand All @@ -255,8 +254,6 @@ For more information about the governance of the Node.js project, see
**Matteo Collina** &lt;matteo.collina@gmail.com&gt; (he/him)
* [mhdawson](https://github.com/mhdawson) -
**Michael Dawson** &lt;michael_dawson@ca.ibm.com&gt; (he/him)
* [mscdex](https://github.com/mscdex) -
**Brian White** &lt;mscdex@mscdex.net&gt;
* [MylesBorins](https://github.com/MylesBorins) -
**Myles Borins** &lt;myles.borins@gmail.com&gt; (he/him)
* [ofrobots](https://github.com/ofrobots) -
Expand All @@ -278,10 +275,14 @@ For more information about the governance of the Node.js project, see
**Ben Noordhuis** &lt;info@bnoordhuis.nl&gt;
* [chrisdickinson](https://github.com/chrisdickinson) -
**Chris Dickinson** &lt;christopher.s.dickinson@gmail.com&gt;
* [indutny](https://github.com/indutny) -
**Fedor Indutny** &lt;fedor.indutny@gmail.com&gt;
* [isaacs](https://github.com/isaacs) -
**Isaac Z. Schlueter** &lt;i@izs.me&gt;
* [joshgav](https://github.com/joshgav) -
**Josh Gavant** &lt;josh.gavant@outlook.com&gt;
* [mscdex](https://github.com/mscdex) -
**Brian White** &lt;mscdex@mscdex.net&gt;
* [nebrius](https://github.com/nebrius) -
**Bryan Hughes** &lt;bryan@nebri.us&gt;
* [orangemocha](https://github.com/orangemocha) -
Expand Down Expand Up @@ -339,6 +340,8 @@ For more information about the governance of the Node.js project, see
**Daniel Bevenius** &lt;daniel.bevenius@gmail.com&gt;
* [DavidCai1993](https://github.com/DavidCai1993) -
**David Cai** &lt;davidcai1993@yahoo.com&gt; (he/him)
* [devsnek](https://github.com/devsnek) -
**Gus Caplan** &lt;me@gus.host&gt; (he/him)
* [edsadr](https://github.com/edsadr) -
**Adrian Estrada** &lt;edsadr@gmail.com&gt; (he/him)
* [eljefedelrodeodeljefe](https://github.com/eljefedelrodeodeljefe) -
Expand Down Expand Up @@ -423,6 +426,8 @@ For more information about the governance of the Node.js project, see
**Mikeal Rogers** &lt;mikeal.rogers@gmail.com&gt;
* [misterdjules](https://github.com/misterdjules) -
**Julien Gilli** &lt;jgilli@nodejs.org&gt;
* [mmarchini](https://github.com/mmarchini) -
**Matheus Marchini** &lt;matheus@sthima.com&gt;
* [mscdex](https://github.com/mscdex) -
**Brian White** &lt;mscdex@mscdex.net&gt;
* [MylesBorins](https://github.com/MylesBorins) -
Expand Down Expand Up @@ -590,12 +595,13 @@ Previous releases may also have been signed with one of the following GPG keys:

* [Contributing to the project][]
* [Working Groups][]
* [Strategic Initiatives][]

[npm]: https://www.npmjs.com
[Code of Conduct]: https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md
[Contributing to the project]: CONTRIBUTING.md
[Node.js Help]: https://github.com/nodejs/help
[Node.js Website]: https://nodejs.org/en/
[Questions tagged 'node.js' on StackOverflow]: https://stackoverflow.com/questions/tagged/node.js
[Working Groups]: https://github.com/nodejs/TSC/blob/master/WORKING_GROUPS.md
[Strategic Initiatives]: https://github.com/nodejs/TSC/blob/master/Strategic-Initiatives.md
[#node.js channel on chat.freenode.net]: https://webchat.freenode.net?channels=node.js&uio=d4
5 changes: 3 additions & 2 deletions benchmark/compare.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const fork = require('child_process').fork;
const { fork } = require('child_process');
const { inspect } = require('util');
const path = require('path');
const CLI = require('./_cli.js');
const BenchmarkProgress = require('./_benchmark_progress.js');
Expand Down Expand Up @@ -76,7 +77,7 @@ if (showProgress) {
// Construct configuration string, " A=a, B=b, ..."
let conf = '';
for (const key of Object.keys(data.conf)) {
conf += ` ${key}=${JSON.stringify(data.conf[key])}`;
conf += ` ${key}=${inspect(data.conf[key])}`;
}
conf = conf.slice(1);
// Escape quotes (") for correct csv formatting
Expand Down
13 changes: 3 additions & 10 deletions benchmark/http/http_server_for_chunky_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@

const assert = require('assert');
const http = require('http');
const fs = require('fs');
const { fork } = require('child_process');
const common = require('../common.js');
const { PIPE, tmpDir } = require('../../test/common');
const { PIPE } = require('../../test/common');
const tmpdir = require('../../test/common/tmpdir');
process.env.PIPE_NAME = PIPE;

try {
fs.accessSync(tmpDir, fs.F_OK);
} catch (e) {
fs.mkdirSync(tmpDir);
}
tmpdir.refresh();

var server;
try {
fs.unlinkSync(process.env.PIPE_NAME);
} catch (e) { /* ignore */ }

server = http.createServer(function(req, res) {
const headers = {
Expand Down
14 changes: 10 additions & 4 deletions benchmark/misc/punycode.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
'use strict';

const common = require('../common.js');
const icu = process.binding('icu');
let icu;
try {
icu = process.binding('icu');
} catch (err) {}
const punycode = require('punycode');

const bench = common.createBenchmark(main, {
method: ['punycode', 'icu'],
method: ['punycode'].concat(icu !== undefined ? ['icu'] : []),
n: [1024],
val: [
'افغانستا.icom.museum',
Expand Down Expand Up @@ -69,8 +72,11 @@ function main(conf) {
runPunycode(n, val);
break;
case 'icu':
runICU(n, val);
break;
if (icu !== undefined) {
runICU(n, val);
break;
}
// fallthrough
default:
throw new Error('Unexpected method');
}
Expand Down
8 changes: 4 additions & 4 deletions benchmark/module/module-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const fs = require('fs');
const path = require('path');
const common = require('../common.js');

const { refreshTmpDir, tmpDir } = require('../../test/common');
const benchmarkDirectory = path.join(tmpDir, 'nodejs-benchmark-module');
const tmpdir = require('../../test/common/tmpdir');
const benchmarkDirectory = path.join(tmpdir.path, 'nodejs-benchmark-module');

const bench = common.createBenchmark(main, {
thousands: [50],
Expand All @@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
function main(conf) {
const n = +conf.thousands * 1e3;

refreshTmpDir();
tmpdir.refresh();
try { fs.mkdirSync(benchmarkDirectory); } catch (e) {}

for (var i = 0; i <= n; i++) {
Expand All @@ -35,7 +35,7 @@ function main(conf) {
else
measureDir(n, conf.useCache === 'true');

refreshTmpDir();
tmpdir.refresh();
}

function measureFull(n, useCache) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/tls/throughput.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function main(conf) {
};

server = tls.createServer(options, onConnection);
setTimeout(done, dur * 1000);
var conn;
server.listen(common.PORT, function() {
const opt = { port: common.PORT, rejectUnauthorized: false };
conn = tls.connect(opt, function() {
setTimeout(done, dur * 1000);
bench.start();
conn.on('drain', write);
write();
Expand Down
3 changes: 2 additions & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
],
}],
[ 'OS in "linux freebsd openbsd solaris aix"', {
'cflags': [ '-pthread', ],
'cflags': [ '-pthread' ],
'ldflags': [ '-pthread' ],
}],
[ 'OS in "linux freebsd openbsd solaris android aix"', {
Expand All @@ -295,6 +295,7 @@
'standalone_static_library': 1,
}],
['OS=="openbsd"', {
'cflags': [ '-I/usr/local/include' ],
'ldflags': [ '-Wl,-z,wxneeded' ],
}],
],
Expand Down
Loading