Commit 73a1d22 1 parent 6258055 commit 73a1d22 Copy full SHA for 73a1d22
File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,24 @@ longer be used.
179
179
180
180
<!-- YAML
181
181
added: v10.0.0
182
+ changes:
183
+ - version:
184
+ - v15.14.0
185
+ - v14.18.0
186
+ pr-url: https://github.com/nodejs/node/pull/37490
187
+ description: The `data` argument supports `AsyncIterable`, `Iterable` and `Stream`.
188
+ - version: v14.12.0
189
+ pr-url: https://github.com/nodejs/node/pull/34993
190
+ description: The `data` parameter will stringify an object with an
191
+ explicit `toString` function.
192
+ - version: v14.0.0
193
+ pr-url: https://github.com/nodejs/node/pull/31030
194
+ description: The `data` parameter won't coerce unsupported input to
195
+ strings anymore.
182
196
-->
183
197
184
- * ` data ` {string|Buffer|TypedArray|DataView}
198
+ * ` data ` {string|Buffer|TypedArray|DataView|Object|AsyncIterable|Iterable
199
+ |Stream}
185
200
* ` options ` {Object|string}
186
201
* ` encoding ` {string|null} ** Default:** ` 'utf8' `
187
202
* Returns: {Promise} Fulfills with ` undefined ` upon success.
You can’t perform that action at this time.
0 commit comments