diff options
author | Anshul Guleria <anshulguleria@ymail.com> | 2017-06-11 21:42:06 +0100 |
---|---|---|
committer | Gibson Fahnestock <gibfahn@gmail.com> | 2017-06-11 21:47:38 +0100 |
commit | b6e2cde4b401b5131f28afe58a558eb11ee20bed (patch) | |
tree | fb1ec7405b23f4c1395f3fc58a8bbaf356513fe6 | |
parent | 61adb264c0084b44c55d08e3a3e35eb0b31d76bb (diff) | |
download | node-new-b6e2cde4b401b5131f28afe58a558eb11ee20bed.tar.gz |
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: https://github.com/nodejs/node/pull/12690
Fixes: https://github.com/nodejs/node/issues/8044
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
-rw-r--r-- | doc/api/fs.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index 1decabbc39..061cbdfb6e 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -426,6 +426,13 @@ changes: pr-url: https://github.com/nodejs/node/pull/10739 description: The `path` parameter can be a WHATWG `URL` object using `file:` protocol. Support is currently still *experimental*. + - version: v6.3.0 + pr-url: https://github.com/nodejs/node/pull/6534 + description: The constants like `fs.R_OK`, etc which were present directly + on `fs` were moved into `fs.constants` as a soft deprecation. + Thus for Node `< v6.3.0` use `fs` to access those constants, or + do something like `(fs.constants || fs).R_OK` to work with all + versions. --> * `path` {string|Buffer|URL} |