doc: deprecate fs.F_OK, fs.R_OK, fs.W_OK, fs.X_OK

PR-URL: https://github.com/nodejs/node/pull/49683
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Livia Medeiros authored and Ruy Adorno committed 2023-09-28 10:02:31 -04:00
1 parent ad37cadc3f
commit 0e686d096b
2 files changed
+18

No files matched your search

+14
View File
@@ -3406,6 +3406,20 @@ Type: Documentation-only
The [`util.toUSVString()`][] API is deprecated. Please use
[`String.prototype.toWellFormed`][] instead.
### DEP0175: `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, `fs.X_OK`
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/49683
description: Documentation-only deprecation.
-->
Type: Documentation-only
`F_OK`, `R_OK`, `W_OK` and `X_OK` getters exposed directly on `node:fs` are
deprecated. Get them from `fs.constants` or `fs.promises.constants` instead.
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
+4
View File
@@ -1820,6 +1820,10 @@ concurrent modifications on the same file or data corruption may occur.
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/49683
description: The constants `fs.F_OK`, `fs.R_OK`, `fs.W_OK` and `fs.X_OK`
which were present directly on `fs` are deprecated.
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41678
description: Passing an invalid callback to the `callback` argument