Jeremiah Senkpiel
9fc01b142b
2016-07-06, Version 6.3.0 (Current)
...
Notable changes:
* buffer: Added `buffer.swap64()` to compliment `swap16()` &
`swap32()`. (Zach Bjornson) https://github.com/nodejs/node/pull/7157
* build: New `configure` options have been added for building Node.js
as a shared library. (Stefan Budeanu)
https://github.com/nodejs/node/pull/6994
- The options are: `--shared`, `--without-v8-platform` &
`--without-bundled-v8`.
* crypto: Root certificates have been updated. (Ben Noordhuis)
https://github.com/nodejs/node/pull/7363
* debugger: The server address is now configurable via
`--debug=<address>:<port>`. (Ben Noordhuis)
https://github.com/nodejs/node/pull/3316
* npm: Upgraded npm to v3.10.3 (Kat Marchán)
https://github.com/nodejs/node/pull/7515 & (Rebecca Turner)
https://github.com/nodejs/node/pull/7410
* readline: Added the `prompt` option to the readline constructor.
(Evan Lucas) https://github.com/nodejs/node/pull/7125
* repl / vm: `sigint`/`ctrl+c` will now break out of infinite loops
without stopping the Node.js instance. (Anna Henningsen)
https://github.com/nodejs/node/pull/6635
* src:
- Added a `node::FreeEnvironment` public C++ API. (Cheng Zhao)
https://github.com/nodejs/node/pull/3098
- Refactored `require('constants')`, constants are now available
directly from their respective modules. (James M Snell)
https://github.com/nodejs/node/pull/6534
* stream: Improved `readable.read()` performance by up to 70%. (Brian
White) https://github.com/nodejs/node/pull/7077
* timers: `setImmediate()` is now up to 150% faster in some situations.
(Andras) https://github.com/nodejs/node/pull/6436
* util: Added a `breakLength` option to `util.inspect()` to control how
objects are formatted across lines. (cjihrig)
https://github.com/nodejs/node/pull/7499
* v8-inspector: Experimental support has been added for debugging
Node.js over the inspector protocol. (Ali Ijaz Sheikh)
https://github.com/nodejs/node/pull/6792
- *Note: This feature is experimental, and it could be altered or
removed.*
- You can try this feature by running Node.js with the `--inspect`
flag.
Refs: https://github.com/nodejs/node/pull/7441
PR-URL: https://github.com/nodejs/node/pull/7550
2016-07-06 18:52:33 +02:00
Anna Henningsen
b0da07a788
doc: add added: information for timers
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7493
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-06 14:20:19 +02:00
cjihrig
3b8914d5ce
util: add an option for configuring break length
...
This commit adds a breakLength option to util.inspect(). This
option allows users to control the length at which object keys
are split across multiple lines. For backwards compatibility,
this option defaults to 60.
Fixes: https://github.com/nodejs/node/issues/7305
PR-URL: https://github.com/nodejs/node/pull/7499
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-07-06 14:20:19 +02:00
Zach Bjornson
4014ecbfb4
buffer: speed up swap16/32, add swap64
...
* Speed up buffer.swap16 and swap32 by using builtins. Up to ~6x gain.
Drop transition point between JS and C++ implementations accordingly.
Amount of performance improvement not only depends on buffer size but
also memory alignment.
* Fix tests: C++ impl tests were testing 0-filled buffers so were
always passing.
* Add similar buffer.swap64 method.
* Make buffer-swap benchmark mirror JS impl.
doc/api/buffer.markdown has an entry of "added: REPLACEME" that should
be changed to the correct release number before tagged.
Because node is currently using a very old version of cpplint.py it
doesn't know that std::swap() has moved from <algorithm> to <utility> in
c++11. So until cpplint.py is updated simply NOLINT the line.
Technically it should be NOLINT(build/include_what_you_use), but that
puts the line over 80 characters causing another lint error.
PR-URL: https://github.com/nodejs/node/pull/7157
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Backport-URL: https://github.com/nodejs/node/pull/7546
2016-07-05 23:13:21 +02:00
Tarun Garg
63d361b531
doc: fix documentation of process.argv
...
The current documentation states that if run something like
`node app.js` then in our process.argv array first elements is `node`,
but actually it's `process.execPath` not `node`
as documentation currently suggests.
Fixes: https://github.com/nodejs/node/issues/7434
PR-URL: https://github.com/nodejs/node/pull/7449
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:36:55 +02:00
Ryan Lewis
45f83e59c4
doc: add guide for Node.js Timers
...
Refs: https://github.com/nodejs/docs/issues/76
PR-URL: https://github.com/nodejs/node/pull/6825
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-07-05 22:36:54 +02:00
Rich Trott
7d07a0b68e
doc: improve usage of zero/0
...
PR-URL: https://github.com/nodejs/node/pull/7466
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Bryan English <bryan@bryanenglish.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:36:53 +02:00
Daniel Bevenius
8d18aed59e
doc: fixing minor typo in AtExit hooks section
...
PR-URL: https://github.com/nodejs/node/pull/7485
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-05 22:36:51 +02:00
Anna Henningsen
58ae35c34d
doc: fix broken refs to url.parse() in http docs
...
PR-URL: https://github.com/nodejs/node/pull/7392
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:16:30 +02:00
Anna Henningsen
f269c008f2
doc: add added: information for https
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7392
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:16:29 +02:00
Anna Henningsen
1c7b622cfc
doc: add added: information for http
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7392
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:16:29 +02:00
James M Snell
bc37e6a22d
doc: general improvements to timers.md
...
Overall improvements to timers.md documentation,
Includes squashed commit from @bengl:
doc: add timer classes
The timers returned by `setTimeout` and friends are
actually instances of `Timeout` and `Immediate`.
Documenting them as such, so that the `ref` and
`unref` methods can be identified as methods on
`Timeout` objects.
Sparked by discussion in #5792
PR-URL: https://github.com/nodejs/node/pull/6937
Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com >
Reviewed-By: Bryan English <bryan@bryanenglish.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-07-05 22:15:48 +02:00
Rich Trott
5f766ad6d0
doc: fix typographic error in process doc
...
An apostrophe was being used where a backtick was called for, resulting
in improper rendering.
PR-URL: https://github.com/nodejs/node/pull/7431
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Ingvar Stepanyan <me@rreverser.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:15:05 +02:00
Ruslan Iusupov
3475591d1c
doc: fix "sign.verify" typo in crypto doc.
...
Fix typo in example
PR-URL: https://github.com/nodejs/node/pull/7411
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:15:05 +02:00
sartrey
44bc638cdb
doc: clarify child_process stdout/stderr types
...
Clarify how the encoding option interacts with the data
type of child process stdout and stderr.
Fixes: https://github.com/nodejs/node/issues/6666
PR-URL: https://github.com/nodejs/node/pull/7361
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-07-05 22:15:04 +02:00
Josh Gavant
efce335e63
doc: add CTC meeting minutes 2016-06-15
...
PR-URL: https://github.com/nodejs/node/pull/7320
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2016-07-05 22:15:03 +02:00
Evan Lucas
6b1fc63dcb
readline: allow passing prompt to constructor
...
Previously, one would have to call setPrompt after calling
rl.createInterface. Now, the prompt string can be set by passing the
prompt property.
PR-URL: https://github.com/nodejs/node/pull/7125
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Conflicts:
test/parallel/test-readline-interface.js
2016-07-05 22:14:53 +02:00
Jeremiah Senkpiel
09a7c91baa
doc: update "who to cc in issues" chart
...
Refs: https://github.com/nodejs/node/issues/6655
PR-URL: https://github.com/nodejs/node/pull/6694
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ingvar Stepanyan <me@rreverser.com >
2016-07-05 22:11:44 +02:00
Italo A. Casas
eed65973d5
doc: fix link in the stream doc
...
fixing typo
fixing broken links
PR-URL: https://github.com/nodejs/node/pull/7347
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2016-07-05 22:11:44 +02:00
akki
a04cd85667
doc: fix repl defineCommand example
...
Fixes: https://github.com/nodejs/node/issues/7357
PR-URL: https://github.com/nodejs/node/pull/7365
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-07-05 22:11:43 +02:00
Italo A. Casas
7a0718bdc6
doc: add added: information for tls
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7018
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-05 22:11:42 +02:00
Kyle E. Mitchell
ec515c5d3b
doc: mention http request "aborted" events
...
Fixes: https://github.com/nodejs/node/issues/6925
PR-URL: https://github.com/nodejs/node/pull/7270
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-07-05 22:11:42 +02:00
Rich Trott
7aa2125fae
doc: add argument information for socket.destroy()
...
PR-URL: https://github.com/nodejs/node/pull/7238
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
2016-07-05 22:11:41 +02:00
James M Snell
9e9d7b8fba
doc: general improvements to os.md copy
...
PR-URL: https://github.com/nodejs/node/pull/7124
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-07-05 22:11:40 +02:00
Anna Henningsen
da8e510ee0
repl: break on sigint/ctrl+c
...
Adds the ability to stop execution of the current REPL command
when receiving SIGINT. This applies only to the default eval
function.
Fixes: https://github.com/nodejs/node/issues/6612
PR-URL: https://github.com/nodejs/node/pull/6635
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-07-05 22:10:23 +02:00
Anna Henningsen
d049919e7d
vm: add ability to break on sigint/ctrl+c
...
- Adds the `breakEvalOnSigint` option to `vm.runIn(This)Context`.
This uses a watchdog thread to wait for SIGINT and generally works
just like the existing `timeout` option.
- Adds a method to the existing timer-based watchdog to check if it
stopped regularly or by running into the timeout. This is used to
tell a SIGINT abort from a timer-based one.
- Adds (internal) `process._{start,stop}SigintWatchdog` methods to
start/stop the watchdog thread used by the above option manually.
This will be used in the REPL to set up SIGINT handling before
entering terminal raw mode, so that there is no time window in
which Ctrl+C fully aborts the process.
PR-URL: https://github.com/nodejs/node/pull/6635
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-07-05 22:10:23 +02:00
Pavel Feldman
7d4f038a78
src,lib: v8-inspector support
...
This change introduces experimental v8-inspector support. This brings
the DevTools debug protocol allowing Node.js to be debugged with
Chrome DevTools native, or through other debuggers supporting that
protocol.
Partial WebSocket support, to the extent required by DevTools, is
included. This is derived from the implementation in Blink.
v8-inspector support can be disabled by the --without-inspector
configure flag.
PR-URL: https://github.com/nodejs/node/pull/6792
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: addaleax - Anna Henningsen <anna@addaleax.net >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-07-05 22:09:23 +02:00
James M Snell
929b6c29d8
src: refactor require('constants')
...
The require('constants') module is currently undocumented and mashes
together unrelated constants. This refactors the require('constants')
in favor of distinct os.constants, fs.constants, and crypto.constants
that are specific to the modules for which they are relevant. The
next step is to document those within the specific modules.
PR-URL: https://github.com/nodejs/node/pull/6534
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com >
Conflicts:
doc/api/fs.md
2016-07-05 22:09:12 +02:00
vsemozhetbyt
cd439465cc
doc: fix typos in the stream doc
...
PR-URL: https://github.com/nodejs/node/pull/7336
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-06-27 08:27:34 -05:00
Tushar Mathur
dddfed24db
doc: document socket.destroyed
...
Fixes: https://github.com/nodejs/node/issues/5898
PR-URL: https://github.com/nodejs/node/pull/6128
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-06-27 08:27:19 -05:00
Richard Lau
cd7c29e471
doc: correct added: information for fs.access
...
fs.access and fs.accessSync were added to Node v0.11.15 via 2944934
PR-URL: https://github.com/nodejs/node/pull/7299
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Ref: https://github.com/nodejs/node/pull/6717
Ref: https://github.com/nodejs/node/issues/6578
2016-06-26 21:55:21 -05:00
Anna Henningsen
6aa179b4a6
doc: add added: information for repl
...
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/7256
Reviewed-By: Julian Duque <julianduquej@gmail.com >
2016-06-26 21:54:55 -05:00
Luigi Pinca
08a9aa31e1
doc: fix broken link in vm.md
...
PR-URL: https://github.com/nodejs/node/pull/7304
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-06-26 21:54:46 -05:00
cjihrig
12fbac102b
doc: fix cluster worker 'message' event
...
This commit adds the missing handle argument to the cluster
worker 'message' event. It also adds a link to the process
'message' event for reference.
Refs: https://github.com/nodejs/node/pull/7297
PR-URL: https://github.com/nodejs/node/pull/7309
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-06-26 21:54:40 -05:00
Greyson Parrelli
1a0ed26883
doc: fix events typo
...
This commit removes an extraneous word.
PR-URL: https://github.com/nodejs/node/pull/7329
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-06-26 21:54:19 -05:00
Lance Ball
1e7a7be1ad
doc: clarify fs.access works on directories too.
...
Cherry picked from d976d66cfc
PR-URL: https://github.com/nodejs/node/pull/7321
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-06-21 11:04:05 -07:00
Evan Lucas
091abb31e2
2016-06-17, Version 6.2.2 (Current) Release
...
Notable changes:
* **http**:
- req.read(0) could cause incoming connections to stall and time out
under certain conditions. (Fedor Indutny) [#7211 ](https://github.com/nodejs/node/pull/7211 )
- When freeing the socket to be reused in keep-alive Agent wait for
both prefinish and end events. Otherwise the next request may be
written before the previous one has finished sending the body, leading
to a parser errors. (Fedor Indutny) [#7149 ](https://github.com/nodejs/node/pull/7149 )
* **npm**: upgrade npm to 3.9.5 (Kat Marchán) [#7139 ](https://github.com/nodejs/node/pull/7139 )
https://github.com/nodejs/node/pull/7323
2016-06-17 09:27:54 -05:00
kimown
8e14f761bb
doc: use Buffer.byteLength for Content-Length
...
As the description in http.md:
> If the body contains higher coded characters then
Buffer.byteLength() should be used to determine the number of
bytes in a given encoding.
PR-URL: https://github.com/nodejs/node/pull/7274
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Jackson Tian <shyvo1987@gmail.com >
2016-06-15 18:17:02 -05:00
Rich Trott
5d03bdd94f
doc: add information for IncomingMessage.destroy()
...
Add documentation for `http.IncomingMessage.prototype.destroy()`.
PR-URL: https://github.com/nodejs/node/pull/7237
Fixes: https://github.com/nodejs/node/issues/4226
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2016-06-15 18:15:35 -05:00
James M Snell
a113734099
doc: general improvements to path.md copy
...
PR-URL: https://github.com/nodejs/node/pull/7122
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-06-15 18:15:31 -05:00
Rich Trott
40a5974a0e
doc: url.format() parameter may be a string
...
PR-URL: https://github.com/nodejs/node/pull/7235
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2016-06-15 18:15:20 -05:00
Rich Trott
a7d813915e
doc: clarify use of 0 port value
...
Clarify that using a port value of `0` will result in the operating
system identifying an available port for use.
PR-URL: https://github.com/nodejs/node/pull/7206
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-06-15 18:12:17 -05:00
cjihrig
0fc8012b65
doc: remove cluster.setupMaster() myth
...
cluster.setupMaster() can be called more than once. Core even has
tests for this functionality. This commit removes an incorrect
statement to the contrary from the documentation.
Fixes: https://github.com/nodejs/node/issues/7156
PR-URL: https://github.com/nodejs/node/pull/7179
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com >
2016-06-15 18:11:41 -05:00
James M Snell
4f2215fd98
doc: fix minor nit introduced in readline.md
...
PR-URL: https://github.com/nodejs/node/pull/7198
Reviewed-By: Julian Duque <julianduquej@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-06-15 18:08:23 -05:00
James M Snell
d31f728e09
doc: clarify rl.question callback args
...
Clarify that readline's rl.question() callback does not
use the err back pattern.
Fixes: https://github.com/nodejs/node/issues/4833
PR-URL: https://github.com/nodejs/node/pull/7022
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2016-06-15 18:08:14 -05:00
James M Snell
70f2f357be
doc: general improvements to readline.md copy
...
PR-URL: https://github.com/nodejs/node/pull/7022
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2016-06-15 18:08:08 -05:00
Rich Trott
712120112f
doc: use consistent typography in streams.md
...
In prose, always surround `null`-as-a-value in backticks.
PR-URL: https://github.com/nodejs/node/pull/6986
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com >
2016-06-15 18:02:36 -05:00
James M Snell
e2f6f8061b
doc: general improvements to process.md copy
...
PR-URL: https://github.com/nodejs/node/pull/7029
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2016-06-15 18:02:13 -05:00
James M Snell
84ea6fc57c
doc: general improvements to repl.md copy
...
The repl documentation has always been rather lacking. This is
a first step towards making significant improvements.
PR-URL: https://github.com/nodejs/node/pull/7002
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-06-15 18:02:08 -05:00
Julian Duque
bfb7e3cc6e
doc: add added: information for readline
...
Got the information from git history, I added the version when Interface
was exported as class (v0.1.104), it was an internal class on previous
versions.
Refs: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6996
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-06-15 18:01:35 -05:00