Skip to content

Commit c68b0ae

Browse files
rvaggBridgeAR
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 9e89132 commit c68b0ae

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
@@ -2313,6 +2313,9 @@ object with an `encoding` property specifying the character encoding to use.
23132313
<!-- YAML
23142314
added: v0.0.2
23152315
changes:
2316+
- version: v11.1.0
2317+
pr-url: https://github.com/nodejs/node/pull/23767
2318+
description: The `flags` argument is now optional and defaults to `'r'`.
23162319
- version: v9.9.0
23172320
pr-url: https://github.com/nodejs/node/pull/18801
23182321
description: The `as` and `as+` modes are supported now.
@@ -2350,6 +2353,12 @@ Functions based on `fs.open()` exhibit this behavior as well:
23502353
<!-- YAML
23512354
added: v0.1.21
23522355
changes:
2356+
- version: v11.1.0
2357+
pr-url: https://github.com/nodejs/node/pull/23767
2358+
description: The `flags` argument is now optional and defaults to `'r'`.
2359+
- version: v9.9.0
2360+
pr-url: https://github.com/nodejs/node/pull/18801
2361+
description: The `as` and `as+` modes are supported now.
23532362
- version: v7.6.0
23542363
pr-url: https://github.com/nodejs/node/pull/10739
23552364
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
42114220
### fsPromises.open(path, flags[, mode])
42124221
<!-- YAML
42134222
added: v10.0.0
4223+
changes:
4224+
- version: v11.1.0
4225+
pr-url: https://github.com/nodejs/node/pull/23767
4226+
description: The `flags` argument is now optional and defaults to `'r'`.
42144227
-->
42154228

42164229
* `path` {string|Buffer|URL}
42174230
* `flags` {string|number} See [support of file system `flags`][].
4231+
**Default:** `'r'`.
42184232
* `mode` {integer} **Default:** `0o666` (readable and writable)
42194233
* Returns: {Promise}
42204234

0 commit comments

Comments
 (0)