Skip to content

Commit 5da9524

Browse files
committed
doc: document pending semver-major API changes
PR-URL: #11489 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
1 parent adcd0bd commit 5da9524

7 files changed

+64
-0
lines changed

doc/api/buffer.md

+29
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,10 @@ actual byte length is returned.
704704
### Class Method: Buffer.compare(buf1, buf2)
705705
<!-- YAML
706706
added: v0.11.13
707+
changes:
708+
- version: REPLACEME
709+
pr-url: https://github.com/nodejs/node/pull/10236
710+
description: The arguments can now be `Uint8Array`s.
707711
-->
708712

709713
* `buf1` {Buffer|Uint8Array}
@@ -729,6 +733,10 @@ console.log(arr.sort(Buffer.compare));
729733
### Class Method: Buffer.concat(list[, totalLength])
730734
<!-- YAML
731735
added: v0.7.11
736+
changes:
737+
- version: REPLACEME
738+
pr-url: https://github.com/nodejs/node/pull/10236
739+
description: The elements of `list` can now be `Uint8Array`s.
732740
-->
733741

734742
* `list` {Array} List of `Buffer` or [`Uint8Array`] instances to concat
@@ -966,6 +974,9 @@ console.log(buffer.buffer === arrayBuffer);
966974
<!-- YAML
967975
added: v0.11.13
968976
changes:
977+
- version: REPLACEME
978+
pr-url: https://github.com/nodejs/node/pull/10236
979+
description: The `target` parameter can now be a `Uint8Array`.
969980
- version: v5.11.0
970981
pr-url: https://github.com/nodejs/node/pull/5880
971982
description: Additional parameters for specifying offsets are supported now.
@@ -1124,6 +1135,10 @@ for (const pair of buf.entries()) {
11241135
### buf.equals(otherBuffer)
11251136
<!-- YAML
11261137
added: v0.11.13
1138+
changes:
1139+
- version: REPLACEME
1140+
pr-url: https://github.com/nodejs/node/pull/10236
1141+
description: The arguments can now be `Uint8Array`s.
11271142
-->
11281143

11291144
* `otherBuffer` {Buffer} A `Buffer` or [`Uint8Array`] to compare to
@@ -1232,6 +1247,9 @@ console.log(buf.includes('this', 4));
12321247
<!-- YAML
12331248
added: v1.5.0
12341249
changes:
1250+
- version: REPLACEME
1251+
pr-url: https://github.com/nodejs/node/pull/10236
1252+
description: The `value` can now be a `Uint8Array`.
12351253
- version: v5.7.0, v4.4.0
12361254
pr-url: https://github.com/nodejs/node/pull/4803
12371255
description: When `encoding` is being passed, the `byteOffset` parameter
@@ -1341,6 +1359,10 @@ for (const key of buf.keys()) {
13411359
### buf.lastIndexOf(value[, byteOffset][, encoding])
13421360
<!-- YAML
13431361
added: v6.0.0
1362+
changes:
1363+
- version: REPLACEME
1364+
pr-url: https://github.com/nodejs/node/pull/10236
1365+
description: The `value` can now be a `Uint8Array`.
13441366
-->
13451367

13461368
* `value` {String | Buffer | Uint8Array | Integer} What to search for
@@ -1464,6 +1486,9 @@ console.log(buf.length);
14641486
```
14651487

14661488
### buf.parent
1489+
<!-- YAML
1490+
deprecated: REPLACEME
1491+
-->
14671492

14681493
> Stability: 0 - Deprecated: Use [`buf.buffer`] instead.
14691494
@@ -2475,6 +2500,10 @@ Note that this is a property on the `buffer` module returned by
24752500
## buffer.transcode(source, fromEnc, toEnc)
24762501
<!-- YAML
24772502
added: v7.1.0
2503+
changes:
2504+
- version: REPLACEME
2505+
pr-url: https://github.com/nodejs/node/pull/10236
2506+
description: The `source` parameter can now be a `Uint8Array`.
24782507
-->
24792508

24802509
* `source` {Buffer|Uint8Array} A `Buffer` or `Uint8Array` instance

doc/api/child_process.md

+14
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ encoding, `Buffer` objects will be passed to the callback instead.
252252
<!-- YAML
253253
added: v0.5.0
254254
changes:
255+
- version: REPLACEME
256+
pr-url: https://github.com/nodejs/node/pull/10866
257+
description: The `stdio` option can now be a string.
255258
- version: v6.4.0
256259
pr-url: https://github.com/nodejs/node/pull/7811
257260
description: The `stdio` option is supported now.
@@ -590,6 +593,9 @@ configuration at startup.
590593
<!-- YAML
591594
added: v0.11.12
592595
changes:
596+
- version: REPLACEME
597+
pr-url: https://github.com/nodejs/node/pull/10653
598+
description: The `input` option can now be a `Uint8Array`.
593599
- version: v6.2.1, v4.5.0
594600
pr-url: https://github.com/nodejs/node/pull/6939
595601
description: The `encoding` option can now explicitly be set to `buffer`.
@@ -632,6 +638,10 @@ throw. The [`Error`][] object will contain the entire result from
632638
### child_process.execSync(command[, options])
633639
<!-- YAML
634640
added: v0.11.12
641+
changes:
642+
- version: REPLACEME
643+
pr-url: https://github.com/nodejs/node/pull/10653
644+
description: The `input` option can now be a `Uint8Array`.
635645
-->
636646

637647
* `command` {String} The command to run
@@ -680,6 +690,9 @@ execution.**
680690
<!-- YAML
681691
added: v0.11.12
682692
changes:
693+
- version: REPLACEME
694+
pr-url: https://github.com/nodejs/node/pull/10653
695+
description: The `input` option can now be a `Uint8Array`.
683696
- version: v6.2.1, v4.5.0
684697
pr-url: https://github.com/nodejs/node/pull/6939
685698
description: The `encoding` option can now explicitly be set to `buffer`.
@@ -1234,3 +1247,4 @@ to `stdout` although there are only 4 characters.
12341247
[`process.send()`]: process.html#process_process_send_message_sendhandle_options_callback
12351248
[`stdio`]: #child_process_options_stdio
12361249
[synchronous counterparts]: #child_process_synchronous_process_creation
1250+
[`Uint8Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array

doc/api/console.md

+7
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ myConsole.warn(`Danger ${name}! Danger!`);
5353
```
5454

5555
## Class: Console
56+
<!-- YAML
57+
changes:
58+
- version: REPLACEME
59+
pr-url: https://github.com/nodejs/node/pull/9744
60+
description: Errors that occur while writing to the underlying streams
61+
will now be ignored.
62+
-->
5663

5764
<!--type=class-->
5865

doc/api/crypto.md

+3
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,9 @@ console.log(hashes); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
13841384
<!-- YAML
13851385
added: v0.5.5
13861386
changes:
1387+
- version: REPLACEME
1388+
pr-url: https://github.com/nodejs/node/pull/11305
1389+
description: The `digest` parameter is always required now.
13871390
- version: v6.0.0
13881391
pr-url: https://github.com/nodejs/node/pull/4047
13891392
description: Calling this function without passing the `digest` parameter

doc/api/dgram.md

+3
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ changes:
249249
pr-url: https://github.com/nodejs/node/pull/5929
250250
description: On success, `callback` will now be called with an `error`
251251
argument of `null` rather than `0`.
252+
- version: REPLACEME
253+
pr-url: https://github.com/nodejs/node/pull/10473
254+
description: The `address` parameter is always optional now.
252255
- version: v5.7.0
253256
pr-url: https://github.com/nodejs/node/pull/4374
254257
description: The `msg` parameter can be an array now. Also, the `offset`

doc/api/querystring.md

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ necessary by assigning `querystring.escape` to an alternative function.
3131
<!-- YAML
3232
added: v0.1.25
3333
changes:
34+
- version: REPLACEME
35+
pr-url: https://github.com/nodejs/node/pull/10967
36+
description: Multiple empty entries are now parsed correctly (e.g. `&=&=`).
3437
- version: v6.0.0
3538
pr-url: https://github.com/nodejs/node/pull/6055
3639
description: The returned object no longer inherits from `Object.prototype`.

doc/api/string_decoder.md

+5
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ is performed before returning the remaining input.
6767
### stringDecoder.write(buffer)
6868
<!-- YAML
6969
added: v0.1.99
70+
changes:
71+
- version: REPLACEME
72+
pr-url: https://github.com/nodejs/node/pull/9618
73+
description: Each invalid character is now replaced by a single replacement
74+
character instead of one for each individual byte.
7075
-->
7176

7277
* `buffer` {Buffer} A `Buffer` containing the bytes to decode.

0 commit comments

Comments
 (0)