Rich Trott
db52ae8b7f
doc: use a single space between sentences
...
We mostly have a single space between the punctuation that ends a
sentence and the start of the next sentence. Change instances with two
spaces to one.
PR-URL: https://github.com/nodejs/node/pull/33995
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2020-06-22 19:29:18 -07:00
Rich Trott
d1d412b413
doc: use sentence-case for headings in docs
...
PR-URL: https://github.com/nodejs/node/pull/33889
Refs: https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings
Refs: https://docs.microsoft.com/en-us/style-guide/capitalization
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-06-19 08:09:05 -07:00
Tom Nagle
5e77c67369
doc: improve buffer.md a tiny bit
...
PR-URL: https://github.com/nodejs/node/pull/33547
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-05-30 04:28:53 +02:00
Nikolai Vavilov
b3f14df485
doc: fix Buffer.from(object) documentation
...
Only strings are supported for objects supporting `Symbol.toPrimitive`.
PR-URL: https://github.com/nodejs/node/pull/33327
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2020-05-23 19:23:45 +02:00
Nikolai Vavilov
dbad1b6515
doc: update Buffer(size) documentation
...
It returns zero-filled memory since v8.0.0.
PR-URL: https://github.com/nodejs/node/pull/33198
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2020-05-08 01:16:03 +02:00
Nikolai Vavilov
c17dcb3253
doc: fix style and grammer in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/33194
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-05-04 16:49:29 -07:00
Anna Henningsen
9c7c876918
doc: fix LTS replaceme tags
...
When cherry-picking release commits for LTS releases into master,
the `REPLACEME` metadata can be taken over as well, to give users
a more accurate view of what is being released on which release line.
This addresses this problem for all previous LTS releases for which
this has not been done.
Fixes: https://github.com/nodejs/node/issues/33001
PR-URL: https://github.com/nodejs/node/pull/33041
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
2020-04-28 15:23:46 +02:00
Harshitha KP
2f755ffc8f
doc: document buffer.from
returns internal pool buffer
...
Fixes: https://github.com/nodejs/node/issues/22139
Co-authored-by: Mritunjay Goutam <mritunjaygoutam2204@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/32703
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-04-13 18:39:12 +02:00
Harshitha KP
d03d9a05f0
doc: clarify length
param in buffer.write
...
`buffer.write` documentation has an incaccuracy w.r.t the `length`
parameter: It says default number of bytes written is
`buf.length - offset`. Change it to:
If the buffer has sufficient space from the offset, the string is
written upto `length`.
If the buffer is short in space, only `buf.length - offset` bytes are
written.
Refs: https://github.com/nodejs/node/pull/32104#discussion_r388524733
PR-URL: https://github.com/nodejs/node/pull/32119
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2020-04-05 20:36:24 +02:00
Anna Henningsen
c41e360de7
doc: improve Buffer documentation
...
Various improvements to the Buffer docs.
PR-URL: https://github.com/nodejs/node/pull/32086
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-03-11 17:07:39 +01:00
Rich Trott
4c35b62f64
doc: revise --zero-fill-buffers text in buffer.md
...
There was an unclear sentence fragment that needed fixing, so I edited
the entire paragraph for clarity. I also removed irrelevant information
about behavior before Node.js 8.0.0. That version of Node.js is no
longer supported and these docs will never apply to 8.0.0. (At the time
of this writing, 10.x is the oldest supported line, and so changes to
the docs will never be backported farther than the 10.x docs.)
PR-URL: https://github.com/nodejs/node/pull/32019
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2020-03-02 07:04:40 -08:00
tsabolov
10d378e947
doc: correct getting an ArrayBuffer's length
...
`ArrayBuffer` instances do not have `.length` property.
Instead they have `.byteLength` property.
Fixed that in the description of
`new Buffer(arrayBuffer[, byteOffset[, length]])` and
`Buffer.from(arrayBuffer[, byteOffset[, length]])`.
PR-URL: https://github.com/nodejs/node/pull/31632
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2020-02-07 12:06:42 +01:00
Harshitha KP
e43ee3712f
doc: explain hex
encoding in Buffer API
...
fixes: https://github.com/nodejs/node/issues/29786
refs: https://github.com/nodejs/node/pull/29792
refs: https://github.com/nodejs/node/issues/24491
PR-URL: https://github.com/nodejs/node/pull/31352
Fixes: https://github.com/nodejs/node/issues/29786
Refs: https://github.com/nodejs/node/pull/29792
Refs: https://github.com/nodejs/node/issues/24491
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-01-16 22:05:08 -08:00
Rich Trott
5847a4d8ce
doc,buffer: use code markup/markdown in headers
...
PR-URL: https://github.com/nodejs/node/pull/31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-12-26 21:37:25 -08:00
Jan-Philip Gehrcke
c0905b71ad
doc: Buffer.toString(): add note about invalid data
...
PR-URL: https://github.com/nodejs/node/pull/30706
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
2019-12-03 23:27:11 +01:00
AJ Jordan
5833cfd6d8
doc: note that buf.buffer's contents might differ
...
This bit me in a personal project since I had no reason to read the
`buf.byteOffset` docs, so point readers there explicitly.
PR-URL: https://github.com/nodejs/node/pull/29651
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2019-11-30 18:25:54 +01:00
Rich Trott
10040500da
doc: remove dashes
...
The use of dashes -- in general, but especially in our docs -- can be
problematic. It is used inconsistently and there is always another form
of punctuation that is as good or better for the situation. In an effort
to reduce the number of variations we use to display the same types of
information, remove the various uses of dashes from the documentation.
PR-URL: https://github.com/nodejs/node/pull/30101
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-10-26 08:39:41 -07:00
Nick Schonning
81bc7b3ba5
doc: escape brackets not used as markdown reference links
...
These can turn into links if reference links are added to the document
PR-URL: https://github.com/nodejs/node/pull/29809
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-10-10 22:15:58 -07:00
Nick Schonning
63f5a76c1d
test: remove spaces inside code span elements
...
Applies MarkdownLint MD038 rule
PR-URL: https://github.com/nodejs/node/pull/29329
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2019-10-09 20:55:16 -07:00
Nick Schonning
0d061e2d09
doc: remove spaces inside code span elements
...
Applies MarkdownLint MD038 rule
PR-URL: https://github.com/nodejs/node/pull/29329
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2019-10-09 20:55:14 -07:00
Nick Schonning
27a57d3a34
doc: start unorded lists at start of line
...
Address Markdownlint MD006 rule.
Can flag when list items aren't indented far enough.
PR-URL: https://github.com/nodejs/node/pull/29390
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-09-03 20:55:39 -07:00
Maledong
3c84556654
doc: change the 'txt' to 'console' for a command
...
This is the document formation, because `node` is a command to be
executed, we should reguard it as a command prompt instead of a command
txt type.
PR-URL: https://github.com/nodejs/node/pull/29389
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2019-09-03 14:21:34 -07:00
Sam Roberts
e9ea8eaf7a
doc: describe why new Buffer() is problematic
...
Existing docs weren't clear on the actual problem. In addition, the text
described 8.0.0 as being a future Node.js release, so adjust language
to reflect that 8.0.0 is in the past (while not losing important
information about what the pre-8.x behaviour was).
PR-URL: https://github.com/nodejs/node/pull/28825
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2019-07-25 12:47:19 -07:00
Angie M. Delgado
c81062a908
doc: add example for Buffer.isEncoding()
...
PR-URL: https://github.com/nodejs/node/pull/28360
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-06-23 23:00:03 -07:00
Rich Trott
1b2f6d2d02
doc: remove "note that" from buffer.md
...
Refs: https://github.com/nodejs/remark-preset-lint-node/pull/16
PR-URL: https://github.com/nodejs/node/pull/28329
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-06-23 07:10:03 -07:00
FUJI Goro (gfx)
ee167877ad
doc: add Buffer#subarray() and add note about Uint8Array#slice()
...
PR-URL: https://github.com/nodejs/node/pull/28101
Refs: https://github.com/nodejs/node/issues/28087
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-06-12 19:40:37 -07:00
Beth Griggs
d896f03578
2019-04-23, Version 12.0.0 (Current)
...
Notable changes:
* assert:
* validate required arguments (Ruben Bridgewater)
[#26641 ](https://github.com/nodejs/node/pull/26641 )
* adjust loose assertions (Ruben Bridgewater)
[#25008 ](https://github.com/nodejs/node/pull/25008 )
* async_hooks:
* remove deprecated `emitBefore` and `emitAfter` (Matteo Collina)
[#26530 ](https://github.com/nodejs/node/pull/26530 )
* remove promise object from resource (Andreas Madsen)
[#23443 ](https://github.com/nodejs/node/pull/23443 )
* bootstrap: make Buffer and process non-enumerable (Ruben Bridgewater)
[#24874 ](https://github.com/nodejs/node/pull/24874 )
* buffer:
* use stricter range checks (Ruben Bridgewater)
[#27045 ](https://github.com/nodejs/node/pull/27045 )
* harden `SlowBuffer` creation (ZYSzys)
[#26272 ](https://github.com/nodejs/node/pull/26272 )
* harden validation of buffer allocation size (ZYSzys)
[#26162 ](https://github.com/nodejs/node/pull/26162 )
* do proper error propagation in addon methods (Anna Henningsen)
[#23939 ](https://github.com/nodejs/node/pull/23939 )
* child_process:
* remove `options.customFds` (cjihrig)
[#25279 ](https://github.com/nodejs/node/pull/25279 )
* harden fork arguments validation (ZYSzys)
[#27039 ](https://github.com/nodejs/node/pull/27039 )
* use non-infinite `maxBuffer` defaults (kohta ito)
[#23027 ](https://github.com/nodejs/node/pull/23027 )
* console:
* don't use ANSI escape codes when `TERM=dumb` (Vladislav Kaminsky)
[#26261 ](https://github.com/nodejs/node/pull/26261 )
* crypto:
* remove legacy native handles (Tobias Nießen)
[#27011 ](https://github.com/nodejs/node/pull/27011 )
* decode missing passphrase errors (Tobias Nießen)
[#25208 ](https://github.com/nodejs/node/pull/25208 )
* remove `Cipher.setAuthTag()` and `Decipher.getAuthTag()`
(Tobias Nießen)
[#26249 ](https://github.com/nodejs/node/pull/26249 )
* remove deprecated `crypto._toBuf()` (Tobias Nießen)
[#25338 ](https://github.com/nodejs/node/pull/25338 )
* set `DEFAULT\_ENCODING` property to non-enumerable
(Antoine du Hamel)
[#23222 ](https://github.com/nodejs/node/pull/23222 )
* deps:
* update V8 to 7.4.288.13
(Michaël Zasso, cjihrig, Refael Ackermann)
(Anna Henningsen, Ujjwal Sharma)
[#26685 ](https://github.com/nodejs/node/pull/26685 )
* bump minimum icu version to 63 (Ujjwal Sharma)
[#25852 ](https://github.com/nodejs/node/pull/25852 )
* update OpenSSL to 1.1.1b (Sam Roberts, Shigeki Ohtsu)
[#26327 ](https://github.com/nodejs/node/pull/26327 )
* errors:
* update error name (Ruben Bridgewater)
[#26738 ](https://github.com/nodejs/node/pull/26738 )
* fs:
* use proper .destroy() implementation for SyncWriteStream
(Matteo Collina)
[#26690 ](https://github.com/nodejs/node/pull/26690 )
* improve mode validation (Ruben Bridgewater)
[#26575 ](https://github.com/nodejs/node/pull/26575 )
* harden validation of start option in `createWriteStream()`
(ZYSzys)
[#25579 ](https://github.com/nodejs/node/pull/25579 )
* make writeFile consistent with readFile wrt fd
(Sakthipriyan Vairamani (thefourtheye))
[#23709 ](https://github.com/nodejs/node/pull/23709 )
* http:
* validate timeout in `ClientRequest()` (cjihrig)
[#26214 ](https://github.com/nodejs/node/pull/26214 )
* return HTTP 431 on `HPE_HEADER_OVERFLOW` error (Albert Still)
[#25605 ](https://github.com/nodejs/node/pull/25605 )
* switch default parser to llhttp (Anna Henningsen)
[#24870 ](https://github.com/nodejs/node/pull/24870 )
* Runtime-deprecate `outgoingMessage._headers` and
`outgoingMessage._headerNames` (Morgan Roderick)
[#24167 ](https://github.com/nodejs/node/pull/24167 )
* lib:
* remove `Atomics.wake()` (Gus Caplan)
[#27033 ](https://github.com/nodejs/node/pull/27033 )
* move DTRACE\_\* probes out of global scope (James M Snell)
[#26541 ](https://github.com/nodejs/node/pull/26541 )
* deprecate `_stream_wrap` (Sam Roberts)
[#26245 ](https://github.com/nodejs/node/pull/26245 )
* use ES6 class inheritance style (Ruben Bridgewater)
[#24755 ](https://github.com/nodejs/node/pull/24755 )
* module:
* remove unintended access to deps/ (Anna Henningsen)
[#25138 ](https://github.com/nodejs/node/pull/25138 )
* improve error message for MODULE\_NOT\_FOUND (Ali Ijaz Sheikh)
[#25690 ](https://github.com/nodejs/node/pull/25690 )
* requireStack property for MODULE\_NOT\_FOUND (Ali Ijaz Sheikh)
[#25690 ](https://github.com/nodejs/node/pull/25690 )
* remove dead code (Ruben Bridgewater)
[#26983 ](https://github.com/nodejs/node/pull/26983 )
* make `require('.')` never resolve outside the current directory
(Ruben Bridgewater)
[#26973 ](https://github.com/nodejs/node/pull/26973 )
* throw an error for invalid package.json main entries
(Ruben Bridgewater)
[#26823 ](https://github.com/nodejs/node/pull/26823 )
* don't search in `require.resolve.paths` (cjihrig)
[#23683 ](https://github.com/nodejs/node/pull/23683 )
* net:
* remove `Server.listenFD()` (cjihrig)
[#27127 ](https://github.com/nodejs/node/pull/27127 )
* do not add `.host` and `.port` properties to DNS error
(Ruben Bridgewater)
[#26751 ](https://github.com/nodejs/node/pull/26751 )
* emit "write after end" errors in the next tick (Ouyang Yadong)
[#24457 ](https://github.com/nodejs/node/pull/24457 )
* deprecate `_setSimultaneousAccepts()` undocumented function
(James M Snell)
[#23760 ](https://github.com/nodejs/node/pull/23760 )
* os:
* implement `os.type()` using `uv_os_uname()` (cjihrig)
[#25659 ](https://github.com/nodejs/node/pull/25659 )
* remove `os.getNetworkInterfaces()` (cjihrig)
[#25280 ](https://github.com/nodejs/node/pull/25280 )
* process:
* make global.process, global.Buffer getters (Guy Bedford)
[#26882 ](https://github.com/nodejs/node/pull/26882 )
* move DEP0062 (node --debug) to end-of-life (Joyee Cheung)
[#25828 ](https://github.com/nodejs/node/pull/25828 )
* exit on --debug and --debug-brk after option parsing
(Joyee Cheung)
[#25828 ](https://github.com/nodejs/node/pull/25828 )
* improve `--redirect-warnings` handling (Ruben Bridgewater)
[#24965 ](https://github.com/nodejs/node/pull/24965 )
* readline:
* support TERM=dumb (Vladislav Kaminsky)
[#26261 ](https://github.com/nodejs/node/pull/26261 )
* repl:
* add welcome message (gengjiawen)
[#25947 ](https://github.com/nodejs/node/pull/25947 )
* fix terminal default setting (Ruben Bridgewater)
[#26518 ](https://github.com/nodejs/node/pull/26518 )
* check colors with `.getColorDepth()` (Vladislav Kaminsky)
[#26261 ](https://github.com/nodejs/node/pull/26261 )
* deprecate REPLServer.rli (Ruben Bridgewater)
[#26260 ](https://github.com/nodejs/node/pull/26260 )
* src:
* remove unused `INT_MAX` constant (Sam Roberts)
[#27078 ](https://github.com/nodejs/node/pull/27078 )
* update `NODE_MODULE_VERSION` to 72 (Ujjwal Sharma)
[#26685 ](https://github.com/nodejs/node/pull/26685 )
* remove `AddPromiseHook()` (Anna Henningsen)
[#26574 ](https://github.com/nodejs/node/pull/26574 )
* clean up `MultiIsolatePlatform` interface (Anna Henningsen)
[#26384 ](https://github.com/nodejs/node/pull/26384 )
* properly configure default heap limits (Ali Ijaz Sheikh)
[#25576 ](https://github.com/nodejs/node/pull/25576 )
* remove `icuDataDir` from node config (GauthamBanasandra)
[#24780 ](https://github.com/nodejs/node/pull/24780 )
* tls:
* support TLSv1.3 (Sam Roberts)
[#26209 ](https://github.com/nodejs/node/pull/26209 )
* return correct version from `getCipher()` (Sam Roberts)
[#26625 ](https://github.com/nodejs/node/pull/26625 )
* check arg types of renegotiate() (Sam Roberts)
[#25876 ](https://github.com/nodejs/node/pull/25876 )
* add code for `ERR_TLS_INVALID_PROTOCOL_METHOD` (Sam Roberts)
[#24729 ](https://github.com/nodejs/node/pull/24729 )
* emit a warning when servername is an IP address (Rodger Combs)
[#23329 ](https://github.com/nodejs/node/pull/23329 )
* disable TLS v1.0 and v1.1 by default (Ben Noordhuis)
[#23814 ](https://github.com/nodejs/node/pull/23814 )
* remove unused arg to createSecureContext() (Sam Roberts)
[#24241 ](https://github.com/nodejs/node/pull/24241 )
* deprecate `Server.prototype.setOptions()` (cjihrig)
[#23820 ](https://github.com/nodejs/node/pull/23820 )
* load `NODE_EXTRA_CA_CERTS` at startup (Ouyang Yadong)
[#23354 ](https://github.com/nodejs/node/pull/23354 )
* util:
* remove `util.print()`, `util.puts()`, `util.debug()`
and `util.error()` (cjihrig)
[#25377 ](https://github.com/nodejs/node/pull/25377 )
* change inspect compact and breakLength default
(Ruben Bridgewater)
[#27109 ](https://github.com/nodejs/node/pull/27109 )
* improve inspect edge cases (Ruben Bridgewater)
[#27109 ](https://github.com/nodejs/node/pull/27109 )
* only the first line of the error message (Simon Zünd)
[#26685 ](https://github.com/nodejs/node/pull/26685 )
* don't set the prototype of callbackified functions
(Ruben Bridgewater)
[#26893 ](https://github.com/nodejs/node/pull/26893 )
* rename callbackified function (Ruben Bridgewater)
[#26893 ](https://github.com/nodejs/node/pull/26893 )
* increase function length when using `callbackify()`
(Ruben Bridgewater)
[#26893 ](https://github.com/nodejs/node/pull/26893 )
* prevent tampering with internals in `inspect()`
(Ruben Bridgewater)
[#26577 ](https://github.com/nodejs/node/pull/26577 )
* prevent Proxy traps being triggered by `.inspect()`
(Ruben Bridgewater)
[#26241 ](https://github.com/nodejs/node/pull/26241 )
* prevent leaking internal properties (Ruben Bridgewater)
[#24971 ](https://github.com/nodejs/node/pull/24971 )
* protect against monkeypatched Object prototype for inspect()
(Rich Trott)
[#25953 ](https://github.com/nodejs/node/pull/25953 )
* treat format arguments equally (Roman Reiss)
[#23162 ](https://github.com/nodejs/node/pull/23162 )
* win, fs:
* detect if symlink target is a directory (Bartosz Sosnowski)
[#23724 ](https://github.com/nodejs/node/pull/23724 )
* zlib:
* throw TypeError if callback is missing (Anna Henningsen)
[#24929 ](https://github.com/nodejs/node/pull/24929 )
* make “bare” constants un-enumerable (Anna Henningsen)
[#24824 ](https://github.com/nodejs/node/pull/24824 )
PR-URL: https://github.com/nodejs/node/pull/26930
2019-04-23 16:46:54 +01:00
Nikolai Vavilov
3d8532f851
buffer: add {read|write}Big[U]Int64{BE|LE} methods
...
PR-URL: https://github.com/nodejs/node/pull/19691
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2019-04-06 19:30:23 +02:00
Vse Mozhet Byt
7aa7971eec
doc: unify link formatting in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:51:43 +03:00
Vse Mozhet Byt
35d83d519c
doc: unify periods in comments in buffer.md
...
"Prints: ..." comments were excepted to avoid confusion.
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:51:33 +03:00
Vse Mozhet Byt
2de67343a1
doc: add notes about negative offsets in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:51:21 +03:00
Vse Mozhet Byt
82a95fedc8
doc: mark optional parameters in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:51:10 +03:00
Vse Mozhet Byt
0e803d1d81
doc: add note about Buffer octets integer coercion
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:51:10 +03:00
Vse Mozhet Byt
e4c6c3bf2e
doc: fix error notes in Buffer.from()
variants
...
Make notes about `TypeError` conditions in `Buffer.from()` variants
more accurate.
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:51:10 +03:00
Vse Mozhet Byt
2f338f3fa1
doc: unify number/integer types in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:50:59 +03:00
Vse Mozhet Byt
3c11f64e35
doc: add missing types in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:50:50 +03:00
Vse Mozhet Byt
f89568e825
doc: fix possible typo in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:50:40 +03:00
Vse Mozhet Byt
1dd9662e2b
doc: remove description duplication in buffer.md
...
PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-03 00:49:51 +03:00
simon3000
c6faf5b64e
doc: move "Prints: ..." under the code
...
PR-URL: https://github.com/nodejs/node/pull/27035
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-01 23:24:46 +03:00
Rich Trott
3e781c5177
doc: make RFC references consistent
...
Use "RFC 1234" instead of "rfc1234", "RFC1234" or similar variants.
PR-URL: https://github.com/nodejs/node/pull/26727
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
2019-03-17 23:14:20 -07:00
Vse Mozhet Byt
17c6b1d4f7
doc: correct my wrong note about buf.fill()
...
PR-URL: https://github.com/nodejs/node/pull/25585
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
2019-01-20 17:02:18 +02:00
Vse Mozhet Byt
c1ac578881
doc: add a note to buf.fill()
description
...
PR-URL: https://github.com/nodejs/node/pull/25547
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-01-19 20:07:34 +02:00
H1Gdev
74562356db
doc: fix typo in Buffer API
...
PR-URL: https://github.com/nodejs/node/pull/25544
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2019-01-18 02:40:19 +02:00
Vse Mozhet Byt
27dc74fdd0
doc: fix sorting in buffer.md
...
This PR places
`Buffer.from(object...)` section before
`Buffer.from(string...)` section
and upper-cased bottom references before backtick-started ones.
PR-URL: https://github.com/nodejs/node/pull/25477
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
2019-01-13 23:48:20 +02:00
Matteo Collina
2d2f82c413
doc: make sure that calls to .read() are looped
...
The 'readable' event assumes that calls to readable.read() happens
within that event handler until readable.read() returns null.
Fixes: https://github.com/nodejs/node/issues/20503
PR-URL: https://github.com/nodejs/node/pull/25375
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-01-10 11:19:38 +01:00
Sam Roberts
64cea5a1ac
doc: sort bottom-of-file markdown links
...
Reapply https://github.com/nodejs/node/pull/12726
It would be nice to have the sort check applied as part of doc testing,
but this change doesn't implement that.
PR-URL: https://github.com/nodejs/node/pull/24679
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2018-11-28 13:09:31 -08:00
James M Snell
3516052bee
2018-10-23, Version 11.0.0 (Current)
...
Notable changes:
* Build
* FreeBSD 10 is no longer supported.[#22617 ](https://github.com/nodejs/node/pull/22617 )
* `child_process`
* The default value of the `windowsHide` option has been changed
to `true`. [#21316 ](https://github.com/nodejs/node/pull/21316 )
* `console`
* `console.countReset()` will emit a warning if the timer
being reset does not exist. [#21649 ](https://github.com/nodejs/node/pull/21649 )
* `console.time()` will no longer reset a timer if it already
exists. [#20442 ](https://github.com/nodejs/node/pull/20442 )
* Dependencies
* V8 has been updated to 7.0.
[#22754 ](https://github.com/nodejs/node/pull/22754 )
* `fs`
* The `fs.read()` method now requires a callback.
[#22146 ](https://github.com/nodejs/node/pull/22146 )
* The previously deprecated `fs.SyncWriteStream` utility has been
removed.[#20735 ](https://github.com/nodejs/node/pull/20735 )
* `http`
* The `http`, `https`, and `tls` modules now use the WHATWG URL parser
by default. [#20270 ](https://github.com/nodejs/node/pull/20270 )
* General
* Use of `process.binding()` has been deprecated. Userland code using
`process.binding()` should re-evaluate that use and begin migrating. If
there are no supported API alternatives, please open an issue in the
Node.js GitHub repository so that a suitable alternative may be discussed.
* An experimental implementation of `queueMicrotask()` has been added.
[#22951 ](https://github.com/nodejs/node/pull/22951 )
* Internal
* Windows performance-counter support has been removed.
[#22485 ](https://github.com/nodejs/node/pull/22485 )
* The `--expose-http2` command-line option has been removed.
[#20887 ](https://github.com/nodejs/node/pull/20887 )
* Timers
* Interval timers will be rescheduled even if previous interval threw
an error. [#20002 ](https://github.com/nodejs/node/pull/20002 )
* `util`
* The WHATWG `TextEncoder` and `TextDecoder` are now globals.
[#22281 ](https://github.com/nodejs/node/pull/22281 )
* `util.inspect()` output size is limited to 128 MB by default.
[#22756 ](https://github.com/nodejs/node/pull/22756 )
* A runtime warning will be emitted when `NODE_DEBUG` is set for
either `http` or `http2`. [#21914 ](https://github.com/nodejs/node/pull/21914 )
2018-10-23 11:03:02 -07:00
James M Snell
ad61550646
doc: document use of buffer.swap16() for utf16be
...
Fixes: https://github.com/nodejs/node/issues/12813
PR-URL: https://github.com/nodejs/node/pull/23747
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-10-19 10:51:12 -07:00
Rich Trott
f8d69911be
errors: use ERR_OUT_OF_RANGE for index errors
...
Remove ERR_INDEX_OUT_OF_RANGE in favor of ERR_OUT_OF_RANGE which is
capable of providing more detail. (In one instance, use
ERR_BUFFER_OUT_OF_BOUNDS which is more accurate in that one instance.)
PR-URL: https://github.com/nodejs/node/pull/22969
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
2018-09-26 19:36:50 -07:00
pranshuchittora
9f7efd58a1
doc: improve examples in buffer docs
...
Documentation for BufferwriteDoubleLE/writeDoubleBE is confusing
PR-URL: https://github.com/nodejs/node/pull/22170
Fixes: https://github.com/nodejs/node/issues/22158
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2018-09-02 18:14:23 +02:00