@@ -750,12 +750,15 @@ See [`writable.cork()`][].
750750<!-- YAML
751751added: v0.1.90
752752changes:
753+ - version: v15.0.0
754+ pr-url: https://github.com/nodejs/node/pull/33155
755+ description: The `data` parameter can now be a `Uint8Array`.
753756 - version: v10.0.0
754757 pr-url: https://github.com/nodejs/node/pull/18780
755758 description: This method now returns a reference to `ClientRequest`.
756759-->
757760
758- * ` data ` {string|Buffer}
761+ * ` data ` {string|Buffer|Uint8Array }
759762* ` encoding ` {string}
760763* ` callback ` {Function}
761764* Returns: {this}
@@ -1205,9 +1208,13 @@ before the [`'finish'`][] event is emitted.
12051208
12061209<!-- YAML
12071210added: v0.1.29
1211+ changes:
1212+ - version: v15.0.0
1213+ pr-url: https://github.com/nodejs/node/pull/33155
1214+ description: The `chunk` parameter can now be a `Uint8Array`.
12081215-->
12091216
1210- * ` chunk ` {string|Buffer}
1217+ * ` chunk ` {string|Buffer|Uint8Array }
12111218* ` encoding ` {string}
12121219* ` callback ` {Function}
12131220* Returns: {boolean}
@@ -1740,12 +1747,15 @@ See [`writable.cork()`][].
17401747<!-- YAML
17411748added: v0.1.90
17421749changes:
1750+ - version: v15.0.0
1751+ pr-url: https://github.com/nodejs/node/pull/33155
1752+ description: The `data` parameter can now be a `Uint8Array`.
17431753 - version: v10.0.0
17441754 pr-url: https://github.com/nodejs/node/pull/18780
17451755 description: This method now returns a reference to `ServerResponse`.
17461756-->
17471757
1748- * ` data ` {string|Buffer}
1758+ * ` data ` {string|Buffer|Uint8Array }
17491759* ` encoding ` {string}
17501760* ` callback ` {Function}
17511761* Returns: {this}
@@ -2094,9 +2104,13 @@ before the [`'finish'`][] event is emitted.
20942104
20952105<!-- YAML
20962106added: v0.1.29
2107+ changes:
2108+ - version: v15.0.0
2109+ pr-url: https://github.com/nodejs/node/pull/33155
2110+ description: The `chunk` parameter can now be a `Uint8Array`.
20972111-->
20982112
2099- * ` chunk ` {string|Buffer}
2113+ * ` chunk ` {string|Buffer|Uint8Array }
21002114* ` encoding ` {string} ** Default:** ` 'utf8' `
21012115* ` callback ` {Function}
21022116* Returns: {boolean}
@@ -2784,11 +2798,14 @@ and is connected, that socket will be destroyed as well.
27842798<!-- YAML
27852799added: v0.1.90
27862800changes:
2801+ - version: v15.0.0
2802+ pr-url: https://github.com/nodejs/node/pull/33155
2803+ description: The `chunk` parameter can now be a `Uint8Array`.
27872804 - version: v0.11.6
27882805 description: add `callback` argument.
27892806-->
27902807
2791- * ` chunk ` {string | Buffer}
2808+ * ` chunk ` {string| Buffer|Uint8Array }
27922809* ` encoding ` {string} Optional, ** Default** : ` utf8 `
27932810* ` callback ` {Function} Optional
27942811* Returns: {this}
@@ -3044,11 +3061,14 @@ Always `false`.
30443061<!-- YAML
30453062added: v0.1.29
30463063changes:
3064+ - version: v15.0.0
3065+ pr-url: https://github.com/nodejs/node/pull/33155
3066+ description: The `chunk` parameter can now be a `Uint8Array`.
30473067 - version: v0.11.6
30483068 description: The `callback` argument was added.
30493069-->
30503070
3051- * ` chunk ` {string | Buffer}
3071+ * ` chunk ` {string| Buffer|Uint8Array }
30523072* ` encoding ` {string} ** Default** : ` utf8 `
30533073* ` callback ` {Function}
30543074* Returns {boolean}
0 commit comments