diff options
author | Rod Vagg <rod@vagg.org> | 2018-11-08 11:45:33 +1100 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-11 20:13:52 -0800 |
commit | 1532232dd95f58378056864b6d1294d45b80c82d (patch) | |
tree | 36ee90ff55fecd69b9ca2c88eb01c747c0e7716c /doc/api/fs.md | |
parent | e3d05a61215b2958cc1951759e08e816b35f5027 (diff) | |
download | android-node-v8-1532232dd95f58378056864b6d1294d45b80c82d.tar.gz android-node-v8-1532232dd95f58378056864b6d1294d45b80c82d.tar.bz2 android-node-v8-1532232dd95f58378056864b6d1294d45b80c82d.zip |
doc: update fs.open() changes record for optional 'flags'
Was missed on original PR.
Ref: https://github.com/nodejs/node/pull/23767
PR-URL: https://github.com/nodejs/node/pull/24240
Refs: https://github.com/nodejs/node/pull/23767
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r-- | doc/api/fs.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index 9de798c6ff..240ba58567 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2313,6 +2313,9 @@ object with an `encoding` property specifying the character encoding to use. <!-- YAML added: v0.0.2 changes: + - version: v11.1.0 + pr-url: https://github.com/nodejs/node/pull/23767 + description: The `flags` argument is now optional and defaults to `'r'`. - version: v9.9.0 pr-url: https://github.com/nodejs/node/pull/18801 description: The `as` and `as+` modes are supported now. @@ -2350,6 +2353,12 @@ Functions based on `fs.open()` exhibit this behavior as well: <!-- YAML added: v0.1.21 changes: + - version: v11.1.0 + pr-url: https://github.com/nodejs/node/pull/23767 + description: The `flags` argument is now optional and defaults to `'r'`. + - version: v9.9.0 + pr-url: https://github.com/nodejs/node/pull/18801 + description: The `as` and `as+` modes are supported now. - version: v7.6.0 pr-url: https://github.com/nodejs/node/pull/10739 description: The `path` parameter can be a WHATWG `URL` object using `file:` @@ -4211,10 +4220,15 @@ characters directly to the `prefix` string. For instance, given a directory ### fsPromises.open(path, flags[, mode]) <!-- YAML added: v10.0.0 +changes: + - version: v11.1.0 + pr-url: https://github.com/nodejs/node/pull/23767 + description: The `flags` argument is now optional and defaults to `'r'`. --> * `path` {string|Buffer|URL} * `flags` {string|number} See [support of file system `flags`][]. + **Default:** `'r'`. * `mode` {integer} **Default:** `0o666` (readable and writable) * Returns: {Promise} |