Skip to content

Commit 6312847

Browse files
committed
doc: fs constants for Node < v6.3.0 in fs.md
* Add changelog history in `fs.access` for the changes introduced to `constants` in `fs` module prior to Node `<v6.3.0`. Fixes: #8044
1 parent 654afa2 commit 6312847

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/api/fs.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,13 @@ changes:
413413
pr-url: https://github.com/nodejs/node/pull/10739
414414
description: The `path` parameter can be a WHATWG `URL` object using `file:`
415415
protocol. Support is currently still *experimental*.
416+
- version: v6.3.0
417+
pr-url: https://github.com/nodejs/node/pull/6534
418+
description: The constants like `fs.R_OK`, etc which were present directly
419+
on `fs` were moved into `fs.constants` as a soft deprecation.
420+
Thus for Node `< v6.3.0` use `fs` to access those constants, or
421+
do something like `(fs.constants || fs).R_OK` to work with all
422+
versions.
416423
-->
417424

418425
* `path` {string|Buffer|URL}
@@ -2685,7 +2692,7 @@ Synchronous versions of [`fs.write()`][]. Returns the number of bytes written.
26852692

26862693
## FS Constants
26872694

2688-
The following constants are exported by `fs.constants`. **Note:** Not every
2695+
The following constants are exported by `fs.constants`. *Note:* Not every
26892696
constant will be available on every operating system.
26902697

26912698
### File Access Constants

0 commit comments

Comments
 (0)