Ben Ripkens
4254508fb1
v8,src: expose statistics about heap spaces
...
Provide means to inspect information about the separate heap spaces
via a callable API. This is helpful to analyze memory issues.
Fixes: https://github.com/nodejs/node/issues/2079
PR-URL: https://github.com/nodejs/node/pull/4463
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-18 11:03:35 -06:00
Evan Lucas
8104d9d875
repl: make sure historyPath is trimmed
...
If one were to set NODE_REPL_HISTORY to a string that contains only a
space (" "), then the history file would be created with that name
which can cause problems are certain systems.
PR-URL: https://github.com/nodejs/node/pull/4539
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-01-18 07:42:57 -06:00
Daniel Sellers
c1712947b2
http: improves expect header handling
...
Now returns a 417 error status or allows for an event listener on
the `checkExpectation` event. Before we were ignoring requests that
had misspelled `100-continue` values for expect headers.
This is a quick port of the work done here:
https://github.com/nodejs/node-v0.x-archive/pull/7132 by alFReD-NSH
with surrounding discussion here:
https://github.com/nodejs/node-v0.x-archive/issues/4651
Also updates all the instances of the deprecated
EventEmitter.listenerCount to the current self.listenerCount. Most
of these were in the new code ported over but there was another
legacy instance.
Refs: #2403
PR-URL: https://github.com/nodejs/node/pull/4501
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-18 07:41:03 -06:00
Saquib
28793958af
fs: add autoClose option to fs.createWriteStream
...
Add support to fs.createWriteStream and fs.createWriteStream for an autoClose
option that behaves similarly to the autoClose option supported by
fs.createReadStream and fs.ReadStream.
When an instance of fs.createWriteStream created with autoClose === false finishes,
it is not destroyed. Its underlying fd is not closed and it is the
responsibility of the user to close it.
PR-URL: https://github.com/nodejs/node/pull/3679
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-01-18 07:40:09 -06:00
Vitor Cortez
056b07806c
doc: clarify explanation of first stream section
...
The last sentence of the explanation for the first stream section
seemed a bit confusing. I tried to change the sentence to clarify it.
Additionally, the sections were turned into a numbered list to be more
clear about which section is being described, and improve readability.
PR-URL: https://github.com/nodejs/node/pull/4234
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-18 07:36:13 -06:00
Claudio Rodriguez
a6c242f341
doc: add path property to Write/ReadStream in fs.markdown
...
Documents the "path" property on fs.WriteStream
and fs.ReadStream. See #4327
PR-URL: https://github.com/nodejs/node/pull/4368
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-18 07:35:49 -06:00
Michael Theriot
01bdafe5e0
doc: fix named anchors in addons.markdown and http.markdown
...
PR-URL: https://github.com/nodejs/node/pull/4708
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-18 07:35:10 -06:00
Rod Vagg
43dfd03d2c
doc: update branch-diff arguments in release doc
...
PR-URL: https://github.com/nodejs/node/pull/4691
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2016-01-18 07:35:04 -06:00
cjihrig
dcaf6fd80b
doc: clarify protocol default in http.request()
...
The previously listed default of 'http' is incorrect, and
causes an error to be thrown. This commit changes it to the
correct value of 'http:'
Fixes: https://github.com/nodejs/node/issues/4712
PR-URL: https://github.com/nodejs/node/pull/4714
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-18 07:34:42 -06:00
Jérémy Lal
cd1ab27972
doc: fix typo in doc/node.1
...
PR-URL: https://github.com/nodejs/node/pull/4680
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-14 22:20:39 +11:00
Roman Klauke
f28e717200
doc: make references clickable
...
The child_process docs contained some links, but some links were
somehow "broken". `make doc` couldn't translate them and left `[]`
in the compiled HTML.
PR-URL: https://github.com/nodejs/node/pull/4654
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-14 22:20:12 +11:00
Ryan Sobol
45cc0d715e
doc: improve child_process.execFile() code example
...
PR-URL: https://github.com/nodejs/node/pull/4504
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2016-01-14 22:19:51 +11:00
Myles Borins
916bd10e28
docs: fix npm command in releases.md
...
PR-URL: https://github.com/nodejs/node/pull/4656
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-14 22:19:50 +11:00
zoubin
a1370a2b2e
doc: add docs for more stream options
...
PR-URL: https://github.com/nodejs/node/pull/4639
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Chris Dickinson <chris@neversaw.us >
2016-01-14 22:18:43 +11:00
Myles Borins
e51f167d52
doc: add branch-diff example to releases.md
...
Useful to have for reference, especially for onboarding
PR-URL: https://github.com/nodejs/node/pull/4636
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell<jasnell@gmail.com >
2016-01-14 22:18:43 +11:00
Robert Jefe Lindstaedt
3912b5cbda
doc: adds usage of readline line-by-line parsing
...
In order to make developers aware of node-core built-in
functionality, which might replace module APIs, we should
add an example of readline`s interface usage.
SEO will eventually aid this goal, since it is well searched
on Q&A sites.
PR-URL: https://github.com/nodejs/node/pull/4609
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: James M Snell <jasnell@gmail.com >>
2016-01-12 10:39:45 -08:00
Richard Sun
102fb7d3a1
doc: remove "above" and "below" references
...
The docs were recently refactored, and some "above" and "below"
references were no longer accurate. This commit removes many
such references, and replaces others with links.
PR-URL: https://github.com/nodejs/node/pull/4499
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-12 10:39:44 -08:00
Roman Reiss
df87176ae0
doc: update stylesheet to match frontpage
...
- Changed colors to match frontpage as close as possible.
- Links are slightly more horizontally padded as compared before to
accomodate for the hover effect.
- Slightly reduced the scroll indication height on the TOC.
- The main content is now offset using margin instead of the previous
border hack.
- remove empty footer that was rendering a dark bar on the bottom of
each page without any content.
PR-URL: https://github.com/nodejs/node/pull/4621
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
2016-01-12 10:39:43 -08:00
Wyatt Preul
ede98d1f98
doc: stronger suggestion for userland assert
...
Fixes: https://github.com/nodejs/node/issues/4532
PR-URL: https://github.com/nodejs/node/pull/4535
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-01-12 10:39:43 -08:00
Sequoia McDowell
fdfc72c977
doc: label http.IncomingMessage as a Class
...
`Server`, `ServerResponse` etc. were marked as classes, this one class
was overlooked.
PR-URL: https://github.com/nodejs/node/pull/4589
Fixes: https://github.com/nodejs/node/issues/4576
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-01-12 10:39:42 -08:00
Sequoia McDowell
b181e26975
doc: document http's server.listen return value
...
The server method returns `self` in order to allow chaining.
PR-URL: https://github.com/nodejs/node/pull/4590
Fixes: https://github.com/nodejs/node/issues/4571
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-01-12 10:39:42 -08:00
cjihrig
e703c9a4e2
doc: bring releases.md up to date
...
Refs: https://github.com/nodejs/node/issues/3254
PR-URL: https://github.com/nodejs/node/pull/4540
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-12 10:39:41 -08:00
Brian White
ac1108d5e7
doc: add missing backtick for readline
...
PR-URL: https://github.com/nodejs/node/pull/4549
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-01-12 10:39:41 -08:00
James M Snell
09bc0c6a05
doc: improvements to crypto.markdown copy
...
General improvements to crypto.markdown including new and
revised examples.
PR-URL: https://github.com/nodejs/node/pull/4435
Reviewed-By: Fedor Indutny <fedor@indutny.com >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
2016-01-12 10:39:40 -08:00
Shigeki Ohtsu
334e73942e
doc: fix heading level error in Buffer doc
...
tools/doc/html.js in make doc throws an error in checking a heading
level in the markdown file.
PR-URL: https://github.com/nodejs/node/pull/4537
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-06 12:11:00 -05:00
Dave
5be0259181
doc: close backtick in process.title description
...
PR-URL: https://github.com/nodejs/node/pull/4534
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-01-06 12:10:59 -05:00
Richard Sun
35aec4c14d
doc: fix numbering in stream.markdown
...
PR-URL: https://github.com/nodejs/node/pull/4538
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-01-06 12:10:59 -05:00
James M Snell
982f3227a5
doc: improvements to dgram.markdown copy
...
General improvements to dgram.markdown copy
PR-URL: https://github.com/nodejs/node/pull/4437
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com >
Reviewed-By: Stephan Belanger <admin@stephenbelanger.com >
2016-01-06 12:10:56 -05:00
James M Snell
6cdfa38d23
doc: improvements to errors.markdown copy
...
General improvements to errors.markdown including
improved/revised examples
PR-URL: https://github.com/nodejs/node/pull/4454
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com >
2016-01-06 12:10:56 -05:00
Ryan Sobol
eee50821dc
doc: mention that http.Server inherits from net.Server
...
PR-URL: https://github.com/nodejs/node/pull/4455
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-06 12:10:52 -05:00
Ben Ripkens
c745b4d5f8
doc: explain ClientRequest#setTimeout time unit
...
State a time unit for the timeout parameter in ClientRequest#setTimeout
PR-URL: https://github.com/nodejs/node/pull/4458
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-06 12:10:52 -05:00
iamchenxin
5a223d64e3
doc: add anchors for _transform _flush _writev in stream.markdown
...
PR-URL: https://github.com/nodejs/node/pull/4448
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-06 12:10:51 -05:00
James M Snell
e8bbeecc4c
doc: improvements to debugger.markdown copy
...
General improvements to debugger.markdown
PR-URL: https://github.com/nodejs/node/pull/4436
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-01-06 12:10:50 -05:00
James M Snell
ccd75fe3fb
doc: improvements to events.markdown copy
...
General improvements to events.markdown copy including a
bit of restructuring and improved examples
PR-URL: https://github.com/nodejs/node/pull/4468
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2016-01-06 12:10:49 -05:00
James M Snell
ed15962777
doc: improvements to dns.markdown copy
...
General improvements to dns.markdown copy and examples
PR-URL: https://github.com/nodejs/node/pull/4449
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2016-01-06 12:10:49 -05:00
James M Snell
e177cc9fdf
doc: improvements to console.markdown copy
...
Several improvements including a few new examples
PR-URL: https://github.com/nodejs/node/pull/4428
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
2016-01-06 12:10:48 -05:00
James M Snell
c1bc9a1023
doc: improve child_process.markdown copy
...
General improvements to child_process.markdown
PR-URL: https://github.com/nodejs/node/pull/4383
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-01-06 12:10:48 -05:00
Rich Trott
150f62847c
doc: copyedit setTimeout() documentation
...
Copyedit the documentation for setTimeout() and enforce wrapping at 80
characters in the markdown file for nearby text.
PR-URL: https://github.com/nodejs/node/pull/4434
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: Stephan Belanger <admin@stephenbelanger.com >
2016-01-06 12:10:46 -05:00
Rich Trott
9e667354be
doc: fix formatting in process.markdown
...
All the other properties get an h2/## but process.connected gets an
h3/### for no discernible reason. Change it to h2/## like the others.
PR-URL: https://github.com/nodejs/node/pull/4433
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Stephan Belanger <admin@stephenbelanger.com >
Reviewed-By: Roman Klauke <romaaan.git@gmail.com >
2016-01-06 12:10:46 -05:00
James M Snell
c835ba3601
doc: improve assert.markdown copy
...
General improvements to assert.markdown copy including
new and improved examples
PR-URL: https://github.com/nodejs/node/pull/4360
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-01-06 12:10:42 -05:00
Rich Trott
e79eda74c0
doc: copyedit releases.md
...
PR-URL: https://github.com/nodejs/node/pull/4384
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-01-06 11:37:21 -05:00
Adri Van Houdt
6450d8667f
doc: improve grammar in tls docs
...
Fix : #4246
PR-URL: https://github.com/nodejs/node/pull/4315
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2016-01-06 11:37:20 -05:00
James M Snell
474a0f081a
doc: improvements to buffer.markdown copy
...
General improvements to buffer.markdown including new examples,
a few fixes to existing examples, consistent formatting and
others
PR-URL: https://github.com/nodejs/node/pull/4370
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2016-01-06 11:37:19 -05:00
James M Snell
57684d650e
doc: improve addons.markdown copy
...
General improvements to the documentation in addons.markdown.
PR-URL: https://github.com/nodejs/node/pull/4320
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2016-01-06 11:37:19 -05:00
James M Snell
04dd861221
doc: fix, modernize examples in docs
...
* Use single quotes consistently
* Modernize examples to use template strings and arrow funcs
* Fix a few typos
* Example edits for consistency
PR-URL: https://github.com/nodejs/node/pull/4282
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-01-06 11:37:13 -05:00
chrisjohn404
5ce6e99474
doc: Typo in buffer.markdown referencing buf.write()
...
The buffer's write function is documented below the
buf.toString function and all of the docs reference
"buf" instead of "buffer".
PR-URL: https://github.com/nodejs/node/pull/4324
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-06 11:37:13 -05:00
Nicholas Young
699bf2c464
doc: fix link in addons.markdown
...
Update link from github.com/rvagg to github.com/nodejs
PR-URL: https://github.com/nodejs/node/pull/4331
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-01-06 11:37:13 -05:00
Jackson Tian
1f4094e630
doc: document the cache parameter for fs.realpathSync
...
PR-URL: https://github.com/nodejs/node/pull/4285
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2015-12-16 12:44:24 -05:00
Jan Schär
e5024bba31
doc: document backlog for server.listen() variants
...
The backlog parameter is supported by all variations of
net.Server.listen(), but wasn't consistently documented. This
commit brings the documentation into a more consistent state.
Refs: https://github.com/nodejs/node/pull/4056
PR-URL: https://github.com/nodejs/node/pull/4025
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
2015-12-16 12:43:45 -05:00
Alexander Martin
9ab669f853
buffer: add includes() for parity with TypedArray
...
Add Buffer#includes() by wrapping an indexOf and performing a strict
equals check to -1.
The includes method takes the search value, byteOffset, and encoding as
arguments.
The test is a modified version of the indexOf test.
Fixes: https://github.com/nodejs/node/issues/3552
PR-URL: https://github.com/nodejs/node/pull/3567
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2015-12-16 12:33:12 -05:00