Skip to content

Commit 26d7630

Browse files
anshulguleriaaddaleax
authored andcommitted
doc: fs constants for Node < v6.3.0 in fs.md
Add changelog history in `fs.access` for the changes introduced to `constants` in the `fs` module prior to Node v6.3.0. PR-URL: #12690 Fixes: #8044 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 4c5457f commit 26d7630

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/api/fs.md

+7
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,13 @@ changes:
426426
pr-url: https://github.com/nodejs/node/pull/10739
427427
description: The `path` parameter can be a WHATWG `URL` object using `file:`
428428
protocol. Support is currently still *experimental*.
429+
- version: v6.3.0
430+
pr-url: https://github.com/nodejs/node/pull/6534
431+
description: The constants like `fs.R_OK`, etc which were present directly
432+
on `fs` were moved into `fs.constants` as a soft deprecation.
433+
Thus for Node `< v6.3.0` use `fs` to access those constants, or
434+
do something like `(fs.constants || fs).R_OK` to work with all
435+
versions.
429436
-->
430437

431438
* `path` {string|Buffer|URL}

0 commit comments

Comments
 (0)