Skip to content

Commit 808e8b1

Browse files
committed
doc: fix documentation of FileHandle.prototype.appendFile
PR-URL: nodejs#42588 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent 7f2825b commit 808e8b1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

doc/api/fs.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,22 @@ close {FileHandle}s. Node.js may change this behavior in the future.
167167
#### `filehandle.appendFile(data[, options])`
168168
<!-- YAML
169169
added: v10.0.0
170+
changes:
171+
- version: v14.18.0
172+
pr-url: https://github.com/nodejs/node/pull/37490
173+
description: The `data` argument supports `AsyncIterable`, `Iterable` and `Stream`.
174+
- version: v14.12.0
175+
pr-url: https://github.com/nodejs/node/pull/34993
176+
description: The `data` parameter will stringify an object with an
177+
explicit `toString` function.
178+
- version: v14.0.0
179+
pr-url: https://github.com/nodejs/node/pull/31030
180+
description: The `data` parameter won't coerce unsupported input to
181+
strings anymore.
170182
-->
171183

172-
* `data` {string|Buffer|TypedArray|DataView}
184+
* `data` {string|Buffer|TypedArray|DataView|Object|AsyncIterable|Iterable
185+
|Stream}
173186
* `options` {Object|string}
174187
* `encoding` {string|null} **Default:** `'utf8'`
175188
* Returns: {Promise} Fulfills with `undefined` upon success.

0 commit comments

Comments
 (0)