Skip to content

Commit 77ba012

Browse files
aduh95juanarbol
authored andcommittedMay 1, 2022
doc: fix documentation of FileHandle.prototype.appendFile
PR-URL: #42588 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Backport-PR-URL: #42603
1 parent 4203d13 commit 77ba012

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)
Please sign in to comment.