Skip to content

Commit b4c1d82

Browse files
rvaggMylesBorins
authored andcommitted
doc: update fs.open() changes record for optional 'flags'
Was missed on original PR. Ref: #23767 PR-URL: #24240 Refs: #23767 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 07b9a66 commit b4c1d82

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/api/fs.md

+14
Original file line numberDiff line numberDiff line change
@@ -2308,6 +2308,9 @@ object with an `encoding` property specifying the character encoding to use.
23082308
<!-- YAML
23092309
added: v0.0.2
23102310
changes:
2311+
- version: v11.1.0
2312+
pr-url: https://github.com/nodejs/node/pull/23767
2313+
description: The `flags` argument is now optional and defaults to `'r'`.
23112314
- version: v9.9.0
23122315
pr-url: https://github.com/nodejs/node/pull/18801
23132316
description: The `as` and `as+` modes are supported now.
@@ -2344,6 +2347,12 @@ Functions based on `fs.open()` exhibit this behavior as well:
23442347
<!-- YAML
23452348
added: v0.1.21
23462349
changes:
2350+
- version: v11.1.0
2351+
pr-url: https://github.com/nodejs/node/pull/23767
2352+
description: The `flags` argument is now optional and defaults to `'r'`.
2353+
- version: v9.9.0
2354+
pr-url: https://github.com/nodejs/node/pull/18801
2355+
description: The `as` and `as+` modes are supported now.
23472356
- version: v7.6.0
23482357
pr-url: https://github.com/nodejs/node/pull/10739
23492358
description: The `path` parameter can be a WHATWG `URL` object using `file:`
@@ -4204,10 +4213,15 @@ characters directly to the `prefix` string. For instance, given a directory
42044213
### fsPromises.open(path, flags[, mode])
42054214
<!-- YAML
42064215
added: v10.0.0
4216+
changes:
4217+
- version: v11.1.0
4218+
pr-url: https://github.com/nodejs/node/pull/23767
4219+
description: The `flags` argument is now optional and defaults to `'r'`.
42074220
-->
42084221

42094222
* `path` {string|Buffer|URL}
42104223
* `flags` {string|number} See [support of file system `flags`][].
4224+
**Default:** `'r'`.
42114225
* `mode` {integer} **Default:** `0o666` (readable and writable)
42124226
* Returns: {Promise}
42134227

0 commit comments

Comments
 (0)