From 26d76307d5b7265b363ac52d0864bc65378d49ff Mon Sep 17 00:00:00 2001 From: Anshul Guleria Date: Sun, 11 Jun 2017 21:42:06 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Gibson Fahnestock --- doc/api/fs.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index fc3e5d95665b2f..f61cacad6bd0c7 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}