File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,24 @@ longer be used.
179179
180180<!-- YAML
181181added: 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.
182196-->
183197
184- * ` data ` {string|Buffer|TypedArray|DataView}
198+ * ` data ` {string|Buffer|TypedArray|DataView|Object|AsyncIterable|Iterable
199+ |Stream}
185200* ` options ` {Object|string}
186201 * ` encoding ` {string|null} ** Default:** ` 'utf8' `
187202* Returns: {Promise} Fulfills with ` undefined ` upon success.
You can’t perform that action at this time.
0 commit comments