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.1.3 proposal #13861

Merged
merged 62 commits into from
Jun 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
8cb7d96
fs: don't conflate data and callback in appendFile
seishun Feb 28, 2017
4afa748
test: increase bufsize in child process write test
Trott Jun 12, 2017
5cb3fac
test: use mustNotCall in test-http-eof-on-connect
Trott Jun 9, 2017
cc92231
doc: fix out of date napi_callback doc
XadillaX Jun 9, 2017
465bd48
configure: add mips64el to valid_arch
thelostone-mc Jun 11, 2017
cbe7c5c
lib: correct typo in createSecureContext
danbev Jun 13, 2017
7874360
test: add mustCall() to child-process test
Trott Jun 11, 2017
80fa13b
test: use mustNotCall() in test-fs-watch
Trott Jun 10, 2017
9b74dde
doc: update async_hooks providers list
addaleax Jun 8, 2017
dc06a0a
doc: note that EoL platforms are not supported
gibfahn Apr 26, 2017
f5f2a0e
doc: sort and update /cc list for inspector issues
thelostone-mc Jun 12, 2017
58e177c
doc: document and test that methods return this
sam-github Jun 7, 2017
0d87b31
test: refactor test-fs-read-stream-inherit
Trott Jun 11, 2017
f28dd8e
doc: fixes a typo in the async_hooks documentation
Jun 13, 2017
6920d5c
test: change deprecated method to recommended
Trott Jun 13, 2017
af46cf6
test: refactor test-fs-watch-stop-async
Trott Jun 13, 2017
233545a
inspector,cluster: fix inspect port assignment
mutantcornholio Jun 11, 2017
c142f1d
doc: fix minor issues reported in #9538
tniessen Jun 6, 2017
c27ffad
doc: fix a few n-api doc issues
mhdawson Jun 13, 2017
5b3e5fa
src: remove void casts for clear_error_on_return
danbev Jun 13, 2017
406c09a
test: fix test-inspector-port-zero-cluster
refack Jun 1, 2017
80e6524
test: fix nits in test-fs-mkdir-rmdir.js
vsemozhetbyt Jun 14, 2017
e203e39
test: refactor test-cluster-worker-isconnected.js
cjihrig Jun 14, 2017
c046a21
util: ignore invalid format specifiers
targos Jun 14, 2017
a27a35b
src: fix decoding base64 with whitespace
seishun Jun 13, 2017
ba20627
test: refactor test-fs-read-stream
Trott Jun 13, 2017
5e59c2d
test: increase coverage for internal/module.js
Jun 14, 2017
18f073f
build: fail linter if linting not available
gibfahn Jun 13, 2017
31ae193
doc: small makeover for onboarding.md
addaleax Jun 2, 2017
2a95cfb
doc: fix typo in changelog
not-an-aardvark Jun 16, 2017
70fb1bd
test: improve http test reliability
mscdex Jun 15, 2017
2ce236e
build: check for linter in bin rather than lib
Trott Jun 15, 2017
ff568d4
tools: update ESLint to v4.0.0
Trott Jun 13, 2017
61714ac
doc: add hasIntl to test/common/README.md
danbev Jun 16, 2017
0d3b52e
test: add hasIntl to failing test
danbev Jun 15, 2017
10aee10
test: check zlib version for createDeflateRaw
danbev Jun 15, 2017
b2a5399
test: refactor test-fs-watch-stop-sync
Trott Jun 14, 2017
c68e472
v8: fix RegExp nits in v8_prof_polyfill.js
vsemozhetbyt Jun 15, 2017
d0f39cc
test: delete outdated fixtures/stdio-filter.js
vsemozhetbyt Jun 16, 2017
cb93283
doc: `path.relative` uses `cwd`
DuanPengfei Jun 16, 2017
d4a05b2
test: make test-http(s)-set-timeout-server alike
jklepatch Jun 12, 2017
11f4562
benchmark: remove needless RegExp capturing
vsemozhetbyt Jun 16, 2017
e786926
readline,repl,url,util: remove needless capturing
vsemozhetbyt Jun 16, 2017
c8b134b
test: remove node-tap lookalike
cjihrig Jun 15, 2017
2816677
net: fix abort on bad address input
BridgeAR Jun 16, 2017
3306fd1
test: accommodate AIX by watching file
Trott Jun 18, 2017
1fe455f
dgram: change parameter name in set(Multicast)TTL
tniessen Jun 17, 2017
1f32d9e
test: fix RegExp nits
vsemozhetbyt Jun 18, 2017
3322191
src: don't set --icu_case_mapping flag on startup
bnoordhuis Jun 15, 2017
57b7285
doc: mention rebasing of v?.x-staging post release
addaleax Jun 17, 2017
5840138
stream: fix `undefined` in Readable object mode
addaleax Jun 18, 2017
f49dd21
n-api: avoid crash in napi_escape_scope()
mhdawson Jun 13, 2017
0bb53a7
doc: make socket IPC examples more robust
cjihrig May 24, 2017
0a9e96e
stream: finish must always follow error
mcollina Jun 21, 2017
9ff9782
test: remove common module from test it thwarts
Trott Jun 17, 2017
9c2abc3
tools: fix indentation in required-modules.js
Trott Jun 18, 2017
b171e72
tools: apply stricter indentation rules to tools
Trott Jun 18, 2017
0ef687e
tools: fix error in custom ESLint rule
Trott Jun 19, 2017
b23f246
test: refactor test-stream2-writable
Trott Jun 20, 2017
f1d96f0
test: refactor test-http-set-timeout-server
Trott Jun 19, 2017
a63e54a
doc: update backporting guide
refack Jun 17, 2017
01461af
2017-06-29, Version 8.1.3 (Current)
rvagg Jun 21, 2017
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
  •  
  •  
  •  
27 changes: 19 additions & 8 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rules:
eqeqeq: [2, smart]
no-fallthrough: 2
no-global-assign: 2
no-multi-spaces: 2
no-multi-spaces: [2, {ignoreEOLComments: true}]
no-octal: 2
no-proto: 2
no-redeclare: 2
Expand Down Expand Up @@ -98,11 +98,18 @@ rules:
func-call-spacing: 2
func-name-matching: 2
func-style: [2, declaration, {allowArrowFunctions: true}]
indent: [2, 2, {ArrayExpression: first,
CallExpression: {arguments: first},
MemberExpression: 1,
ObjectExpression: first,
SwitchCase: 1}]
# indent: [2, 2, {ArrayExpression: first,
# CallExpression: {arguments: first},
# FunctionDeclaration: {parameters: first},
# FunctionExpression: {parameters: first},
# MemberExpression: off,
# ObjectExpression: first,
# SwitchCase: 1}]
indent-legacy: [2, 2, {ArrayExpression: first,
CallExpression: {arguments: first},
MemberExpression: 1,
ObjectExpression: first,
SwitchCase: 1}]
key-spacing: [2, {mode: minimum}]
keyword-spacing: 2
linebreak-style: [2, unix]
Expand All @@ -122,7 +129,7 @@ rules:
}, {
selector: "ThrowStatement > CallExpression[callee.name=/Error$/]",
message: "Use new keyword when throwing an Error."
}]
}]
no-tabs: 2
no-trailing-spaces: 2
one-var-declaration-per-line: 2
Expand All @@ -131,7 +138,11 @@ rules:
semi: 2
semi-spacing: 2
space-before-blocks: [2, always]
space-before-function-paren: [2, never]
space-before-function-paren: [2, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}]
space-in-parens: [2, never]
space-infix-ops: 2
space-unary-ops: 2
Expand Down
4 changes: 4 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Support is divided into three tiers:

### Supported platforms

The community does not build or test against end of life distributions (EoL).
Thus we do not recommend that you use Node on end of life or unsupported platforms
in production.

| System | Support type | Version | Architectures | Notes |
|--------------|--------------|----------------------------------|----------------------|------------------|
| GNU/Linux | Tier 1 | kernel >= 2.6.32, glibc >= 2.12 | x86, x64, arm, arm64 | |
Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V8.md#8.1.2">8.1.2</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.1.1">8.1.1</a>><br/>
<b><a href="doc/changelogs/CHANGELOG_V8.md#8.1.3">8.1.3</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.1.2">8.1.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.1.1">8.1.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.1.0">8.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.0.0">8.0.0</a><br/>
</td>
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ cpplint:
@$(PYTHON) tools/cpplint.py $(CPPLINT_FILES)
@$(PYTHON) tools/check-imports.py

ifneq ("","$(wildcard tools/eslint/lib/eslint.js)")
ifneq ("","$(wildcard tools/eslint/bin/eslint.js)")
lint:
@EXIT_STATUS=0 ; \
$(MAKE) jslint || EXIT_STATUS=$$? ; \
Expand All @@ -924,6 +924,7 @@ lint:
@echo "Linting is not available through the source tarball."
@echo "Use the git repo instead:" \
"$ git clone https://github.com/nodejs/node.git"
exit 1

lint-ci: lint
endif
Expand Down
2 changes: 1 addition & 1 deletion benchmark/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function formatResult(data) {
}

var rate = data.rate.toString().split('.');
rate[0] = rate[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,');
rate[0] = rate[0].replace(/(\d)(?=(?:\d\d\d)+(?!\d))/g, '$1,');
rate = (rate[1] ? rate.join('.') : rate[0]);
return `${data.name}${conf}: ${rate}`;
}
Expand Down
2 changes: 1 addition & 1 deletion benchmark/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (format === 'csv') {
console.log(`"${data.name}", "${conf}", ${data.rate}, ${data.time}`);
} else {
var rate = data.rate.toString().split('.');
rate[0] = rate[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,');
rate[0] = rate[0].replace(/(\d)(?=(?:\d\d\d)+(?!\d))/g, '$1,');
rate = (rate[1] ? rate.join('.') : rate[0]);
console.log(`${data.name} ${conf}: ${rate}`);
}
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ parser = optparse.OptionParser()

valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
'android', 'aix')
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 'x32',
'x64', 'x86', 's390', 's390x')
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
'ppc64', 'x32','x64', 'x86', 's390', 's390x')
valid_arm_float_abi = ('soft', 'softfp', 'hard')
valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
valid_mips_arch = ('loongson', 'r1', 'r2', 'r6', 'rx')
Expand Down
6 changes: 4 additions & 2 deletions doc/STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
* When documenting APIs, note the version the API was introduced in at
the end of the section. If an API has been deprecated, also note the first
version that the API appeared deprecated in.
* When using dashes, use emdashes ("—", Option+Shift+"-" on macOS) surrounded by
spaces, per the New York Times usage.
* When using dashes, use [Em dashes][] ("—" or `Option+Shift+"-"` on macOS)
surrounded by spaces, as per [The New York Times Manual of Style and Usage][].
* Including assets:
* If you wish to add an illustration or full program, add it to the
appropriate sub-directory in the `assets/` dir.
Expand All @@ -68,3 +68,5 @@

[plugin]: http://editorconfig.org/#download
[Oxford comma]: https://en.wikipedia.org/wiki/Serial_comma
[Em dashes]: https://en.wikipedia.org/wiki/Dash#Em_dash
[The New York Times Manual of Style and Usage]: https://en.wikipedia.org/wiki/The_New_York_Times_Manual_of_Style_and_Usage
6 changes: 3 additions & 3 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ Every new resource is assigned a unique ID.
###### `type`

The `type` is a string that represents the type of resource that caused
`init` to call. Generally it will be the name of the resource's constructor.
The resource types provided by the built-in Node.js modules are:
`init` to be called. Generally, it will correspond to the name of the
resource's constructor.

```
FSEVENTWRAP, FSREQWRAP, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER,
JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP, SHUTDOWNWRAP,
SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPWRAP, TIMERWRAP, TTYWRAP,
UDPSENDWRAP, UDPWRAP, WRITEWRAP, ZLIB, SSLCONNECTION, PBKDF2REQUEST,
RANDOMBYTESREQUEST, TLSWRAP
RANDOMBYTESREQUEST, TLSWRAP, Timeout, Immediate, TickObject
```

Users are be able to define their own `type` when using the public embedder API.
Expand Down
16 changes: 13 additions & 3 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,9 @@ handle connections with "normal" or "special" priority:
const normal = require('child_process').fork('child.js', ['normal']);
const special = require('child_process').fork('child.js', ['special']);

// Open up the server and send sockets to child
const server = require('net').createServer();
// Open up the server and send sockets to child. Use pauseOnConnect to prevent
// the sockets from being read before they are sent to the child process.
const server = require('net').createServer({ pauseOnConnect: true });
server.on('connection', (socket) => {

// If this is special priority
Expand All @@ -1162,7 +1163,12 @@ to the event callback function:
```js
process.on('message', (m, socket) => {
if (m === 'socket') {
socket.end(`Request handled with ${process.argv[2]} priority`);
if (socket) {
// Check that the client socket exists.
// It is possible for the socket to be closed between the time it is
// sent and the time it is received in the child process.
socket.end(`Request handled with ${process.argv[2]} priority`);
}
}
});
```
Expand All @@ -1172,6 +1178,10 @@ tracking when the socket is destroyed. To indicate this, the `.connections`
property becomes `null`. It is recommended not to use `.maxConnections` when
this occurs.

It is also recommended that any `'message'` handlers in the child process
verify that `socket` exists, as the connection may have been closed during the
time it takes to send the connection to the child.

*Note*: This function uses [`JSON.stringify()`][] internally to serialize the
`message`.

Expand Down
Loading