Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
b353cf3
benchmark: fix punycode test for --without-intl
TimothyGu Oct 17, 2017
218b8fd
fs: fix `createReadStream(…, {end: n})` for non-seekable fds
addaleax Mar 13, 2018
986fd40
util: escaping object keys in util.inspect()
zheyz Nov 13, 2017
f0f7c2b
http: free the parser before emitting 'upgrade'
lpinca Jan 17, 2018
f068918
stream: remove unreachable code
lpinca Jan 18, 2018
9a56ad9
test: use correct size in test-stream-buffer-list
lpinca Jan 18, 2018
b665068
stream: simplify `src._readableState` to `state`
Jan 20, 2018
325dc27
doc: capitalize non-primitive types
vsemozhetbyt Jan 12, 2018
ddb42b5
doc: warn about GCM authenticity
tniessen Jan 25, 2018
9f02f29
doc: fix manpage warnings
silverwind Jan 29, 2018
c28a64a
doc: reorder section on updating PR branch
ofrobots Jan 24, 2018
67f9df9
url: simplify loop in parser
tniessen Jan 30, 2018
06c1ef7
doc: add Gibson Fahnestock to TSC
Trott Jan 31, 2018
de63954
test: fix flaky test-http-dns-error
bengl Oct 26, 2017
06a28aa
src: free memory before re-setting URLHost value
prog1dev Jan 23, 2018
4f1939b
tools: auto fix custom eslint rule
shobhitchittora Oct 31, 2017
9b0d337
doc: improve stream documentation
Jan 25, 2018
02eab11
test: speed up parallel/test-tls-session-cache
addaleax Jan 29, 2018
9f158ac
lib: remove debugger dead code
liqyan Jan 22, 2018
f4ccb9d
deps: update node-inspect to 1.11.3
Jan 24, 2018
cad0bbb
async_hooks: clean up comments
ofrobots Jan 30, 2018
b8d3c40
doc: move Brian White to TSC Emeriti list
Trott Jan 31, 2018
091ab5b
v8: add missing ',' in OpenBSD's 'sources' section.
qbit Jan 30, 2018
d594a68
build: add cflags for OpenBSD, remove stray comma.
qbit Jan 30, 2018
e6d6042
doc: streamline README intro
Trott Jan 31, 2018
5e86f20
string_decoder: reset decoder on end
jridgewell Feb 1, 2018
c570180
test: add test for tls benchmarks
apapirovski Feb 1, 2018
6ef1fa3
test: verify the shell option works properly on execFile
jvelezpo Jan 25, 2018
21441e8
win, build: fix intl-none option
poiru Jan 22, 2018
07f9147
doc: improve http.request documentation
Zarel Jan 8, 2018
0a5b0d5
doc: shell option for the execFile and execFileSync functions
jvelezpo Jan 18, 2018
89c1bf3
build: allow x86_64 as a dest_cpu alias for x64
rvagg Jan 9, 2018
2a18de3
test: remove destructor from node_test_fixture
danbev Feb 2, 2018
af3e5f2
net: remove redundant code from _writeGeneric()
lpinca Jan 29, 2018
433be0d
tools: add check for using process.binding crypto
danbev Dec 26, 2017
a3111ba
build: refine static and shared lib build
yhwang Dec 5, 2017
5590088
errors: remove ERR_OUTOFMEMORY
tniessen Dec 27, 2017
059a803
test: fix spelling in test case comments
tniessen Jan 6, 2018
63b0de2
lib: fix spelling in comments
tniessen Jan 6, 2018
790ef2f
test: update references to archived repository
tniessen Dec 31, 2017
8c25003
readline: update references to archived repository
tniessen Dec 31, 2017
f687bb1
test: move tmpdir to submodule of common
Trott Dec 25, 2017
9f380dc
tools: add .mjs linting for Windows
vsemozhetbyt Feb 4, 2018
88e0f23
test: add assertions for TextEncoder/Decoder
Jan 13, 2018
d503427
doc: linkify missing types
vsemozhetbyt Jan 29, 2018
bc66f08
deps: V8: backport 596d55a from upstream
MylesBorins Sep 18, 2017
44cb0d3
crypto: reuse variable instead of reevaluation
tniessen Dec 18, 2017
6ba7fd0
tools: non-Ascii linter for /lib only
Jan 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: linkify missing types
Also, alphabetize all types in type-parser.js
and fix some nits in type formats.

Backport-PR-URL: #19498
PR-URL: #18444
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Mar 28, 2018
commit d503427df5bdf4a4632b4116a3cb97f9f774b492
2 changes: 1 addition & 1 deletion doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ added: v8.1.0
* `before` {Function} The [`before` callback][].
* `after` {Function} The [`after` callback][].
* `destroy` {Function} The [`destroy` callback][].
* Returns: `{AsyncHook}` Instance used for disabling and enabling hooks
* Returns: {AsyncHook} Instance used for disabling and enabling hooks

Registers functions to be called for different lifetime events of each async
operation.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ changes:
description: This method now returns a reference to `worker`.
-->

* Returns: {Worker} A reference to `worker`.
* Returns: {cluster.Worker} A reference to `worker`.

In a worker, this function will close all servers, wait for the `'close'` event on
those servers, and then disconnect the IPC channel.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const { Console } = console;
```

### new Console(stdout[, stderr])
* `stdout` {Writable}
* `stderr` {Writable}
* `stdout` {stream.Writable}
* `stderr` {stream.Writable}

Creates a new `Console` with one or two writable stream instances. `stdout` is a
writable stream to print log or info output. `stderr` is used for warning or
Expand Down
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ changes:

* `path` {string|Buffer|URL}
* `mode` {integer} **Default:** `fs.constants.F_OK`
* Returns: `undefined`
* Returns: {undefined}

Synchronously tests a user's permissions for the file or directory specified by
`path`. The `mode` argument is an optional integer that specifies the
Expand Down
4 changes: 2 additions & 2 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ client.
added: v8.4.0
-->

* Extends: {Duplex}
* Extends: {stream.Duplex}

Each instance of the `Http2Stream` class represents a bidirectional HTTP/2
communications stream over an `Http2Session` instance. Any single `Http2Session`
Expand Down Expand Up @@ -1308,7 +1308,7 @@ an `Http2Session` object. If no listener is registered for this event, an
added: v8.5.0
-->

* `socket` {http2.ServerHttp2Stream}
* `socket` {ServerHttp2Stream}

If an `ServerHttp2Stream` emits an `'error'` event, it will be forwarded here.
The stream will already be destroyed when this event is triggered.
Expand Down
14 changes: 7 additions & 7 deletions doc/api/readline.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Interface's `input` *as if it were provided by the user*.
added: v0.7.7
-->

* `stream` {Writable}
* `stream` {stream.Writable}
* `dir` {number}
* `-1` - to the left from cursor
* `1` - to the right from cursor
Expand All @@ -338,7 +338,7 @@ in a specified direction identified by `dir`.
added: v0.7.7
-->

* `stream` {Writable}
* `stream` {stream.Writable}

The `readline.clearScreenDown()` method clears the given [TTY][] stream from
the current position of the cursor down.
Expand All @@ -362,9 +362,9 @@ changes:
-->

* `options` {Object}
* `input` {Readable} The [Readable][] stream to listen to. This option is
* `input` {stream.Readable} The [Readable][] stream to listen to. This option is
*required*.
* `output` {Writable} The [Writable][] stream to write readline data to.
* `output` {stream.Writable} The [Writable][] stream to write readline data to.
* `completer` {Function} An optional function used for Tab autocompletion.
* `terminal` {boolean} `true` if the `input` and `output` streams should be
treated like a TTY, and have ANSI/VT100 escape codes written to it.
Expand Down Expand Up @@ -444,7 +444,7 @@ function completer(linePartial, callback) {
added: v0.7.7
-->

* `stream` {Writable}
* `stream` {stream.Writable}
* `x` {number}
* `y` {number}

Expand All @@ -456,7 +456,7 @@ given [TTY][] `stream`.
added: v0.7.7
-->

* `stream` {Readable}
* `stream` {stream.Readable}
* `interface` {readline.Interface}

The `readline.emitKeypressEvents()` method causes the given [Readable][]
Expand All @@ -482,7 +482,7 @@ if (process.stdin.isTTY)
added: v0.7.7
-->

* `stream` {Writable}
* `stream` {stream.Writable}
* `dx` {number}
* `dy` {number}

Expand Down
4 changes: 2 additions & 2 deletions doc/api/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ changes:
* `options` {Object|string}
* `prompt` {string} The input prompt to display. Defaults to `> `
(with a trailing space).
* `input` {Readable} The Readable stream from which REPL input will be read.
* `input` {stream.Readable} The Readable stream from which REPL input will be read.
Defaults to `process.stdin`.
* `output` {Writable} The Writable stream to which REPL output will be
* `output` {stream.Writable} The Writable stream to which REPL output will be
written. Defaults to `process.stdout`.
* `terminal` {boolean} If `true`, specifies that the `output` should be
treated as a TTY terminal, and have ANSI/VT100 escape codes written to it.
Expand Down
10 changes: 5 additions & 5 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ changes:
-->

* `encoding` {string} The new default encoding
* Returns: `this`
* Returns: {this}

The `writable.setDefaultEncoding()` method sets the default `encoding` for a
[Writable][] stream.
Expand Down Expand Up @@ -525,7 +525,7 @@ A Writable stream in object mode will always ignore the `encoding` argument.
added: v8.0.0
-->

* Returns: `this`
* Returns: {this}

Destroy the stream, and emit the passed error. After this call, the
writable stream has ended. Implementors should not override this method,
Expand Down Expand Up @@ -810,7 +810,7 @@ readable.isPaused(); // === false
added: v0.9.4
-->

* Returns: `this`
* Returns: {this}

The `readable.pause()` method will cause a stream in flowing mode to stop
emitting [`'data'`][] events, switching out of flowing mode. Any data that
Expand Down Expand Up @@ -950,7 +950,7 @@ event has been emitted will return `null`. No runtime error will be raised.
added: v0.9.4
-->

* Returns: `this`
* Returns: {this}

The `readable.resume()` method causes an explicitly paused Readable stream to
resume emitting [`'data'`][] events, switching the stream into flowing mode.
Expand All @@ -973,7 +973,7 @@ added: v0.9.4
-->

* `encoding` {string} The encoding to use.
* Returns: `this`
* Returns: {this}

The `readable.setEncoding()` method sets the character encoding for
data read from the Readable stream.
Expand Down
54 changes: 44 additions & 10 deletions tools/doc/type-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,82 @@ const jsPrimitives = {
'undefined': 'Undefined'
};
const jsGlobalTypes = [
'Error', 'Object', 'Function', 'Array', 'TypedArray', 'Uint8Array',
'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array',
'Uint8ClampedArray', 'Float32Array', 'Float64Array', 'Date', 'RegExp',
'ArrayBuffer', 'DataView', 'Promise', 'EvalError', 'RangeError',
'ReferenceError', 'SyntaxError', 'TypeError', 'URIError', 'Proxy', 'Map',
'Set', 'WeakMap', 'WeakSet', 'Generator', 'GeneratorFunction',
'AsyncFunction', 'SharedArrayBuffer'
'Array', 'ArrayBuffer', 'AsyncFunction', 'DataView', 'Date', 'Error',
'EvalError', 'Float32Array', 'Float64Array', 'Function', 'Generator',
'GeneratorFunction', 'Int16Array', 'Int32Array', 'Int8Array', 'Map', 'Object',
'Promise', 'Proxy', 'RangeError', 'ReferenceError', 'RegExp', 'Set',
'SharedArrayBuffer', 'SyntaxError', 'TypeError', 'TypedArray', 'URIError',
'Uint16Array', 'Uint32Array', 'Uint8Array', 'Uint8ClampedArray', 'WeakMap',
'WeakSet'
];
const typeMap = {
'Iterable':
`${jsDocPrefix}Reference/Iteration_protocols#The_iterable_protocol`,
'Iterator':
`${jsDocPrefix}Reference/Iteration_protocols#The_iterator_protocol`,

'this': `${jsDocPrefix}Reference/Operators/this`,

'AsyncHook': 'async_hooks.html#async_hooks_async_hooks_createhook_callbacks',

'Buffer': 'buffer.html#buffer_class_buffer',

'ChildProcess': 'child_process.html#child_process_class_childprocess',

'cluster.Worker': 'cluster.html#cluster_class_worker',

'crypto.constants': 'crypto.html#crypto_crypto_constants_1',

'dgram.Socket': 'dgram.html#dgram_class_dgram_socket',

'Domain': 'domain.html#domain_class_domain',

'EventEmitter': 'events.html#events_class_eventemitter',

'fs.Stats': 'fs.html#fs_class_fs_stats',

'http.Agent': 'http.html#http_class_http_agent',
'http.ClientRequest': 'http.html#http_class_http_clientrequest',
'http.IncomingMessage': 'http.html#http_class_http_incomingmessage',
'http.Server': 'http.html#http_class_http_server',
'http.ServerResponse': 'http.html#http_class_http_serverresponse',

'ClientHttp2Stream': 'http2.html#http2_class_clienthttp2stream',
'HTTP2 Headers Object': 'http2.html#http2_headers_object',
'HTTP2 Settings Object': 'http2.html#http2_settings_object',
'http2.Http2ServerRequest': 'http2.html#http2_class_http2_http2serverrequest',
'http2.Http2ServerResponse':
'http2.html#http2_class_http2_http2serverresponse',
'Http2Server': 'http2.html#http2_class_http2server',
'Http2Session': 'http2.html#http2_class_http2session',
'Http2Stream': 'http2.html#http2_class_http2stream',
'ServerHttp2Stream': 'http2.html#http2_class_serverhttp2stream',

'Handle': 'net.html#net_server_listen_handle_backlog_callback',
'net.Server': 'net.html#net_class_net_server',
'net.Socket': 'net.html#net_class_net_socket',

'os.constants.dlopen': 'os.html#os_dlopen_constants',

'PerformanceObserver':
'perf_hooks.html#perf_hooks_class_performanceobserver_callback',
'PerformanceObserverEntryList':
'perf_hooks.html#perf_hooks_class_performanceobserverentrylist',

'readline.Interface': 'readline.html#readline_class_interface',

'Stream': 'stream.html#stream_stream',
'stream.Duplex': 'stream.html#stream_class_stream_duplex',
'stream.Readable': 'stream.html#stream_class_stream_readable',
'stream.Writable': 'stream.html#stream_class_stream_writable',
'stream.Duplex': 'stream.html#stream_class_stream_duplex',

'tls.TLSSocket': 'tls.html#tls_class_tls_tlssocket',

'Immediate': 'timers.html#timers_class_immediate',
'Timeout': 'timers.html#timers_class_timeout',
'Timer': 'timers.html#timers_timers',

'tls.Server': 'tls.html#tls_class_tls_server',
'tls.TLSSocket': 'tls.html#tls_class_tls_tlssocket',

'URL': 'url.html#url_the_whatwg_url_api',
'URLSearchParams': 'url.html#url_class_urlsearchparams'
};
Expand Down