Vse Mozhet Byt
4d67369c1b
doc: fix various nits
...
* Replace 2 hyphens (--) by spaced m-dashes (—) as per STYLE_GUIDE.md.
* Space infix operators.
* Unify quotes in inline code spans (use only single quotes).
* Unify `* Returns:` (eliminate deviations).
* Dedupe spaces.
Backport-PR-URL: https://github.com/nodejs/node/pull/19761
PR-URL: https://github.com/nodejs/node/pull/19743
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2018-04-13 00:19:34 -04:00
Myles Borins
9441526bbe
2018-01-13, Version 6.13.0 'Boron' (LTS)
...
This LTS release comes with 112 commits, 17 of which are considered
Semver-Minor. This includes 32 which are doc related, 30 which are test
related, 8 which are build / tool related and 1 commit which updates
a dependency.
Notable Changes:
* console:
- added console.count() and console.clear() (James M Snell)
https://github.com/nodejs/node/pull/12678
* crypto:
- expose ECDH class (Bryan English)
https://github.com/nodejs/node/pull/8188
- added cypto.randomFill() and crypto.randomFillSync() (Evan Lucas)
https://github.com/nodejs/node/pull/10209
- warn on invalid authentication tag length (Tobias Nießen)
https://github.com/nodejs/node/pull/17566
* deps:
- upgrade libuv to 1.16.1 (cjihrig)
https://github.com/nodejs/node/pull/16835
* dgram:
- added socket.setMulticastInterface() (Will Young)
https://github.com/nodejs/node/pull/7855
* http:
- add agent.keepSocketAlive and agent.reuseSocket as to allow
overridable keep-alive behavior of `Agent` (Fedor Indutny)
https://github.com/nodejs/node/pull/13005
* lib:
- return this from net.Socket.end() (Sam Roberts)
https://github.com/nodejs/node/pull/13481
* module:
- add builtinModules api that provides list of all builtin modules in
Node (Jon Moss)
https://github.com/nodejs/node/pull/16386
* net:
- return this from getConnections() (Sam Roberts)
https://github.com/nodejs/node/pull/13553
* promises:
- more robust stringification for unhandled rejections (Timothy Gu)
https://github.com/nodejs/node/pull/13784
* repl:
- improve require() autocompletion (Alexey Orlenko)
https://github.com/nodejs/node/pull/14409
* src:
- add openssl-system-ca-path configure option (Daniel Bevenius)
https://github.com/nodejs/node/pull/16790
- add --use-bundled-ca --use-openssl-ca check (Daniel Bevenius)
https://github.com/nodejs/node/pull/12087
- add process.ppid (cjihrig)
https://github.com/nodejs/node/pull/16839
* tls:
- accept `lookup` option for `tls.connect()` (Fedor Indutny)
https://github.com/nodejs/node/pull/12839
* tools, build:
- a new macOS installer! (JP Wesselink)
https://github.com/nodejs/node/pull/15179
* url:
- WHATWG URL api support (James M Snell)
https://github.com/nodejs/node/pull/7448
* util:
- add %i and %f formatting specifiers (Roman Reiss)
https://github.com/nodejs/node/pull/10308
PR-URL: https://github.com/nodejs/node/pull/18342
2018-02-13 02:02:18 -05:00
James M Snell
ce136392fb
console: add console.count() and console.clear()
...
Both are simple utility functions defined by the WHATWG
console spec (https://console.spec.whatwg.org/ ).
PR-URL: https://github.com/nodejs/node/pull/12678
Ref: https://github.com/nodejs/node/issues/12675
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2018-02-12 19:28:05 -05:00
Rich Trott
67c526fbb8
doc: improve text for Console constructor
...
Make text for Console constructor more precise.
PR-URL: https://github.com/nodejs/node/pull/17519
Reviewed-By: Jon Moss <me@jonathanmoss.me >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-12-20 00:59:02 +00:00
Chris Young
ecea33b277
doc: add links to alternative versions of doc
...
Each page of the API documentation should have links to other versions
of the same page. This will make it easier to switch between the current
"live" release at nodejs.org and LTS versions.
Backport-PR-URL: https://github.com/nodejs/node/pull/15670
PR-URL: https://github.com/nodejs/node/pull/10958
Fixes: https://github.com/nodejs/node/issues/10726
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-09-29 13:31:45 -04:00
Natanael Log
7f6f1c2ddc
doc, util, console: clarify ambiguous docs
...
Add clarification to the documentation on util.format()
and console.log() regarding how excessive arguments are treated
when the first argument is a non-format string
compared to when it is not a string at all.
PR-URL: https://github.com/nodejs/node/pull/14027
Fixes: https://github.com/nodejs/node/issues/13908
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-08-15 20:57:35 -07:00
Vse Mozhet Byt
8c0849d5db
doc: conform to rules for eslint-plugin-markdown
...
Backport-PR-URL: https://github.com/nodejs/node/pull/14067
PR-URL: https://github.com/nodejs/node/pull/12563
Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
2017-07-30 23:11:10 -05:00
Vse Mozhet Byt
7deb259ccb
doc: prepare js code for eslint-plugin-markdown
...
This is an initial step to eliminate most of parsing errors.
Backport-PR-URL: https://github.com/nodejs/node/pull/14067
PR-URL: https://github.com/nodejs/node/pull/12563
Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
2017-07-30 23:11:09 -05:00
Roman Reiss
8d043876c1
doc/tools: fix more type inconsistencies
...
- fix a number of uppercase types
- lowercase 'integer'
- consistent formatting in crypto
PR-URL: https://github.com/nodejs/node/pull/11697
Backport-PR-URL: https://github.com/nodejs/node/pull/13054
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
2017-07-11 17:42:58 +01:00
Sam Roberts
313d1a3009
doc: for style, remove "isn't" contraction
...
PR-URL: https://github.com/nodejs/node/pull/10981
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-03-08 17:11:20 -08:00
Sam Roberts
10a497cdcb
doc: describe when stdout/err is sync
...
process.stdout, process.stderr, and console.log() and console.error()
which use the process streams, are usually synchronous. Warn about this,
and clearly describe the conditions under which they are synchronous.
Fix: https://github.com/nodejs/node/issues/10617
PR-URL: https://github.com/nodejs/node/pull/10884
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2017-03-08 17:10:37 -08:00
Vse Mozhet Byt
c2156fcba1
doc: more efficient example in the console.md
...
Object.setPrototypeOf() -> Object.create()
PR-URL: https://github.com/nodejs/node/pull/10451
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-31 17:07:48 -05:00
Vse Mozhet Byt
809ae9da29
doc: var -> const / let in the console.md
...
PR-URL: https://github.com/nodejs/node/pull/10451
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-01-31 17:07:48 -05:00
Anna Henningsen
7a02eb2b03
doc: remove backtick escaping for manpage refs
...
Removing backticks will make the doctool emit links to the man pages.
PR-URL: https://github.com/nodejs/node/pull/9632
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2016-12-20 13:57:26 -05:00
Daniel Bevenius
d283704cd6
doc: make comment indentation consistent
...
Currently, some of the docs use different indentation for comments
in the code examples. This commit makes the indentation consistent
by putting the comments at the beginning of the line (really no
indentation that is).
PR-URL: https://github.com/nodejs/node/pull/9518
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2016-12-13 16:02:52 -05:00
Timothy Gu
929d9bb222
doc: standardize rest parameters
...
PR-URL: https://github.com/nodejs/node/pull/8485
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-10-11 12:26:30 -04:00
Anna Henningsen
e116cf96a0
doc: use blockquotes for Stability: markers
...
Use blockquotes instead of code blocks for stability markers in
the docs. Doing that:
- Makes the makers appear correctly when viewed e.g. on github.
- Allows remark-lint rules like `no-undefined-references` to work
properly (https://github.com/nodejs/node/pull/7729 ).
PR-URL: https://github.com/nodejs/node/pull/7757
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Conflicts:
doc/api/punycode.md
2016-08-10 12:41:56 -04:00
Joe Esposito
6ce9c80ccb
doc: remove extra spaces and concats in examples
...
PR-URL: https://github.com/nodejs/node/pull/7885
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-08-10 12:14:06 -04:00
Jonathan Montane
632b411cd0
doc: improved syntax consistency in console.md
...
`stdout` was written as `inline code` most of the time,
except for the `console.time` and `console.timeEnd`
functions which made it a bit more tedious to read about.
Now it's always using inline code.
PR-URL: https://github.com/nodejs/node/pull/7062
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-06-15 18:01:30 -05:00
Jeremiah Senkpiel
4d3a7594a5
tty: use blocking mode on OS X
...
OS X has a tiny 1kb hard-coded buffer size for stdout / stderr to
TTYs (terminals). Output larger than that causes chunking, which ends
up having some (very small but existent) delay past the first chunk.
That causes two problems:
1. When output is written to stdout and stderr at similar times, the
two can become mixed together (interleaved). This is especially
problematic when using control characters, such as \r. With
interleaving, chunked output will often have lines or characters erased
unintentionally, or in the wrong spots, leading to broken output.
CLI apps often extensively use such characters for things such as
progress bars.
2. Output can be lost if the process is exited before chunked writes
are finished flushing. This usually happens in applications that use
`process.exit()`, which isn't infrequent.
See https://github.com/nodejs/node/issues/6980 for more info.
This became an issue as result of the Libuv 1.9.0 upgrade. A fix to
an unrelated issue broke a hack previously required for the OS X
implementation. This resulted in an unexpected behavior change in node.
The 1.9.0 upgrade was done in c3cec1eefc ,
which was included in v6.0.0.
Full details of the Libuv issue that induced this are at
https://github.com/nodejs/node/issues/6456#issuecomment-219974514
Refs: https://github.com/nodejs/node/pull/1771
Refs: https://github.com/nodejs/node/issues/6456
Refs: https://github.com/nodejs/node/pull/6773
Refs: https://github.com/nodejs/node/pull/6816
PR-URL: https://github.com/nodejs/node/pull/6895
Reviewed-By: Rod Vagg <rod@vagg.org >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-06-02 22:42:04 +10:00
Adrian Estrada
b30d07845d
doc: add added: information for console
...
Information extracted from git history.
Ref: https://github.com/nodejs/node/issues/6578
PR-URL: https://github.com/nodejs/node/pull/6995
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Julian Duque <julianduquej@gmail.com >
2016-06-02 22:40:52 +10:00
Ben Page
fd37d54eb5
doc: added note warning about change to console.endTime()
...
Unintended functionality was removed from console.endTime by
https://github.com/nodejs/node/pull/3562 . Prior to that, you could
call console.endTime multiple times for the same label.
PR-URL: https://github.com/nodejs/node/pull/6454
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: Jeremy Whitlock <jwhitlock@apache.org >
2016-05-03 20:20:36 -04:00
Robert Jefe Lindstaedt
edc6970a1f
doc: git mv to .md
...
* doc: rename .markdown references in content
* doc: rename to .md in tools
* doc: rename to .md in CONTRIBUTING.md
PR-URL: https://github.com/nodejs/node/pull/4747
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: techjeffharris
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-04-26 12:16:28 -07:00