Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.7.3 Release Proposal #11831

Merged
merged 32 commits into from
Mar 14, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c5874d1
url: remove invalid file protocol check
mscdex Mar 5, 2017
5e7baa5
tools: add links to the stability index reference
michaelcox Mar 2, 2017
1e52ba3
test: limit lint rule disabling in message test
Trott Mar 6, 2017
1af0fa4
test: test buffer behavior when zeroFill undefined
Trott Mar 6, 2017
a98d963
test: increase coverage of console
DavidCai1111 Mar 2, 2017
3d55cf0
test: add more WHATWG URL origin tests
mscdex Mar 5, 2017
4477e15
test: add regex in test_cyclic_link_protection
clarenced Feb 19, 2017
c01c7a4
test: add script to create 0-dns-cert.pem
shigeki Feb 27, 2017
aaf8536
test: add test for loading from global folders
richardlau Oct 20, 2016
1da2afc
src: drop the NODE_ISOLATE_SLOT macro
addaleax Mar 5, 2017
032becd
src: add missing #include <unicode/ustring.h>
srl295 Mar 8, 2017
52f0092
s390: enable march=z196
Mar 7, 2017
1dff218
net: allow missing callback for Socket.connect
vhain Mar 9, 2017
1034587
module: fix loading from global folders on Windows
richardlau Oct 25, 2016
9c3cf13
doc: argument types for https methods
ameliavoncat Mar 3, 2017
108449b
doc: add Franziska Hinkelmann to the CTC
rvagg Feb 22, 2017
517c3af
doc: fix process links to console.log/error
sam-github Mar 6, 2017
5bea8b4
doc: fix occurences of "the the"
JeroenMandersloot Mar 6, 2017
8a1b2b4
doc: reduce font size on smaller screens
gibfahn Mar 5, 2017
2fcefee
dgram: refactor dgram to module.exports
claudiorodriguez Mar 5, 2017
612bd68
doc: consistent case for primitive types
silverwind Feb 4, 2017
97d1f5f
doc: linkify type[] syntax, support lowercase for primitives
silverwind Feb 14, 2017
5a9e30f
tools: fix lint issue in doctool
silverwind Mar 2, 2017
757bf48
doc/tools: fix more type inconsistencies
silverwind Mar 5, 2017
734ddbe
test: fix flaky test-http-set-timeout-server
santigimeno Mar 10, 2017
a20aa0e
doc: http cleanup and missing argument types
ameliavoncat Mar 3, 2017
188cbc6
doc: package main can be directory with an index
bmeck Feb 27, 2017
6cc7b30
doc: improve child_process `maxBuffer` text
Trott Mar 10, 2017
b543fd4
doc: update to current V8 versions
fhinkel Mar 10, 2017
dd3e6ad
doc: add missing changelog heading for 7.7.2
evanlucas Mar 13, 2017
542a373
build: add node_use_openssl check to install.py
danbev Mar 9, 2017
9c68a69
2017-03-14, Version 7.7.3 (Current)
italoacasas Mar 14, 2017
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: consistent case for primitive types
PR-URL: #11167
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
silverwind authored and italoacasas committed Mar 13, 2017
commit 612bd68bae786c712e56e51d4d3e4cd5af7ccdc0
88 changes: 44 additions & 44 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ changes:
> Stability: 0 - Deprecated:
> Use [`Buffer.from(string[, encoding])`][`Buffer.from(string)`] instead.

* `string` {String} String to encode
* `encoding` {String} The encoding of `string`. **Default:** `'utf8'`
* `string` {string} String to encode
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`

Creates a new `Buffer` containing the given JavaScript string `string`. If
provided, the `encoding` parameter identifies the character encoding of `string`.
Expand Down Expand Up @@ -508,9 +508,9 @@ added: v5.10.0
-->

* `size` {Integer} The desired length of the new `Buffer`
* `fill` {String | Buffer | Integer} A value to pre-fill the new `Buffer` with.
* `fill` {string | Buffer | Integer} A value to pre-fill the new `Buffer` with.
**Default:** `0`
* `encoding` {String} If `fill` is a string, this is its encoding.
* `encoding` {string} If `fill` is a string, this is its encoding.
**Default:** `'utf8'`

Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the
Expand Down Expand Up @@ -674,9 +674,9 @@ changes:
or `ArrayBuffer`.
-->

* `string` {String | Buffer | TypedArray | DataView | ArrayBuffer} A value to
* `string` {string | Buffer | TypedArray | DataView | ArrayBuffer} A value to
calculate the length of
* `encoding` {String} If `string` is a string, this is its encoding.
* `encoding` {string} If `string` is a string, this is its encoding.
**Default:** `'utf8'`
* Returns: {Integer} The number of bytes contained within `string`

Expand Down Expand Up @@ -868,8 +868,8 @@ A `TypeError` will be thrown if `buffer` is not a `Buffer`.
added: v5.10.0
-->

* `string` {String} A string to encode.
* `encoding` {String} The encoding of `string`. **Default:** `'utf8'`
* `string` {string} A string to encode.
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`

Creates a new `Buffer` containing the given JavaScript string `string`. If
provided, the `encoding` parameter identifies the character encoding of `string`.
Expand Down Expand Up @@ -909,7 +909,7 @@ Returns `true` if `obj` is a `Buffer`, `false` otherwise.
added: v0.9.1
-->

* `encoding` {String} A character encoding name to check
* `encoding` {string} A character encoding name to check
* Returns: {Boolean}

Returns `true` if `encoding` contains a supported character encoding, or `false`
Expand Down Expand Up @@ -1142,10 +1142,10 @@ changes:
description: The `encoding` parameter is supported now.
-->

* `value` {String | Buffer | Integer} The value to fill `buf` with
* `value` {string | Buffer | Integer} The value to fill `buf` with
* `offset` {Integer} Where to start filling `buf`. **Default:** `0`
* `end` {Integer} Where to stop filling `buf` (not inclusive). **Default:** [`buf.length`]
* `encoding` {String} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
* Returns: {Buffer} A reference to `buf`

Expand Down Expand Up @@ -1179,9 +1179,9 @@ console.log(Buffer.allocUnsafe(3).fill('\u0222'));
added: v5.3.0
-->

* `value` {String | Buffer | Integer} What to search for
* `value` {string | Buffer | Integer} What to search for
* `byteOffset` {Integer} Where to begin searching in `buf`. **Default:** `0`
* `encoding` {String} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
* Returns: {Boolean} `true` if `value` was found in `buf`, `false` otherwise

Expand Down Expand Up @@ -1225,9 +1225,9 @@ changes:
is no longer required.
-->

* `value` {String | Buffer | Integer} What to search for
* `value` {string | Buffer | Integer} What to search for
* `byteOffset` {Integer} Where to begin searching in `buf`. **Default:** `0`
* `encoding` {String} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
* Returns: {Integer} The index of the first occurrence of `value` in `buf` or `-1`
if `buf` does not contain `value`
Expand Down Expand Up @@ -1330,10 +1330,10 @@ for (const key of buf.keys()) {
added: v6.0.0
-->

* `value` {String | Buffer | Integer} What to search for
* `value` {string | Buffer | Integer} What to search for
* `byteOffset` {Integer} Where to begin searching in `buf`.
**Default:** [`buf.length`]` - 1`
* `encoding` {String} If `value` is a string, this is its encoding.
* `encoding` {string} If `value` is a string, this is its encoding.
**Default:** `'utf8'`
* Returns: {Integer} The index of the last occurrence of `value` in `buf` or `-1`
if `buf` does not contain `value`
Expand Down Expand Up @@ -1457,7 +1457,7 @@ added: v0.11.15
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 8`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Number}

Reads a 64-bit double from `buf` at the specified `offset` with specified
Expand Down Expand Up @@ -1493,7 +1493,7 @@ added: v0.11.15
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Number}

Reads a 32-bit float from `buf` at the specified `offset` with specified
Expand Down Expand Up @@ -1528,7 +1528,7 @@ added: v0.5.0
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Integer}

Reads a signed 8-bit integer from `buf` at the specified `offset`.
Expand Down Expand Up @@ -1560,7 +1560,7 @@ added: v0.5.5
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Integer}

Reads a signed 16-bit integer from `buf` at the specified `offset` with
Expand Down Expand Up @@ -1594,7 +1594,7 @@ added: v0.5.5
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Integer}

Reads a signed 32-bit integer from `buf` at the specified `offset` with
Expand Down Expand Up @@ -1629,7 +1629,7 @@ added: v0.11.15

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {Integer} How many bytes to read. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {Boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* Returns: {Integer}

Reads `byteLength` number of bytes from `buf` at the specified `offset`
Expand Down Expand Up @@ -1660,7 +1660,7 @@ added: v0.5.0
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Integer}

Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
Expand Down Expand Up @@ -1690,7 +1690,7 @@ added: v0.5.5
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Integer}

Reads an unsigned 16-bit integer from `buf` at the specified `offset` with
Expand Down Expand Up @@ -1728,7 +1728,7 @@ added: v0.5.5
-->

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {Boolean} Skip `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` validation? **Default:** `false`
* Returns: {Integer}

Reads an unsigned 32-bit integer from `buf` at the specified `offset` with
Expand Down Expand Up @@ -1761,7 +1761,7 @@ added: v0.11.15

* `offset` {Integer} Where to start reading. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {Integer} How many bytes to read. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {Boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* `noAssert` {boolean} Skip `offset` and `byteLength` validation? **Default:** `false`
* Returns: {Integer}

Reads `byteLength` number of bytes from `buf` at the specified `offset`
Expand Down Expand Up @@ -1981,7 +1981,7 @@ console.log(copy);
added: v0.1.90
-->

* `encoding` {String} The character encoding to decode to. **Default:** `'utf8'`
* `encoding` {string} The character encoding to decode to. **Default:** `'utf8'`
* `start` {Integer} The byte offset to start decoding at. **Default:** `0`
* `end` {Integer} The byte offset to stop decoding at (not inclusive).
**Default:** [`buf.length`]
Expand Down Expand Up @@ -2062,10 +2062,10 @@ for (const value of buf) {
added: v0.1.90
-->

* `string` {String} String to be written to `buf`
* `string` {string} String to be written to `buf`
* `offset` {Integer} Where to start writing `string`. **Default:** `0`
* `length` {Integer} How many bytes to write. **Default:** `buf.length - offset`
* `encoding` {String} The character encoding of `string`. **Default:** `'utf8'`
* `encoding` {string} The character encoding of `string`. **Default:** `'utf8'`
* Returns: {Integer} Number of bytes written

Writes `string` to `buf` at `offset` according to the character encoding in `encoding`.
Expand All @@ -2090,9 +2090,9 @@ console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
added: v0.11.15
-->

* `value` {Number} Number to be written to `buf`
* `value` {number} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 8`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset` with specified endian
Expand Down Expand Up @@ -2125,9 +2125,9 @@ console.log(buf);
added: v0.11.15
-->

* `value` {Number} Number to be written to `buf`
* `value` {number} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset` with specified endian
Expand Down Expand Up @@ -2161,7 +2161,7 @@ added: v0.5.0

* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset`. `value` *should* be a valid
Expand Down Expand Up @@ -2193,7 +2193,7 @@ added: v0.5.5

* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset` with specified endian
Expand Down Expand Up @@ -2226,7 +2226,7 @@ added: v0.5.5

* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset` with specified endian
Expand Down Expand Up @@ -2260,7 +2260,7 @@ added: v0.11.15
* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {Integer} How many bytes to write. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {Boolean} Skip `value`, `offset`, and `byteLength` validation?
* `noAssert` {boolean} Skip `value`, `offset`, and `byteLength` validation?
**Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Expand Down Expand Up @@ -2294,7 +2294,7 @@ added: v0.5.0

* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 1`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset`. `value` *should* be a
Expand Down Expand Up @@ -2326,7 +2326,7 @@ added: v0.5.5

* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 2`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset` with specified endian
Expand Down Expand Up @@ -2363,7 +2363,7 @@ added: v0.5.5

* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - 4`
* `noAssert` {Boolean} Skip `value` and `offset` validation? **Default:** `false`
* `noAssert` {boolean} Skip `value` and `offset` validation? **Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Writes `value` to `buf` at the specified `offset` with specified endian
Expand Down Expand Up @@ -2399,7 +2399,7 @@ added: v0.5.5
* `value` {Integer} Number to be written to `buf`
* `offset` {Integer} Where to start writing. Must satisfy: `0 <= offset <= buf.length - byteLength`
* `byteLength` {Integer} How many bytes to write. Must satisfy: `0 < byteLength <= 6`
* `noAssert` {Boolean} Skip `value`, `offset`, and `byteLength` validation?
* `noAssert` {boolean} Skip `value`, `offset`, and `byteLength` validation?
**Default:** `false`
* Returns: {Integer} `offset` plus the number of bytes written

Expand Down Expand Up @@ -2459,8 +2459,8 @@ added: v7.1.0
-->

* `source` {Buffer} A `Buffer` instance
* `fromEnc` {String} The current encoding
* `toEnc` {String} To target encoding
* `fromEnc` {string} The current encoding
* `toEnc` {string} To target encoding

Re-encodes the given `Buffer` instance from one character encoding to another.
Returns a new `Buffer` instance.
Expand Down
Loading