diff options
author | cjihrig <cjihrig@gmail.com> | 2018-06-23 16:26:29 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-06-27 11:37:17 -0400 |
commit | 7ff50f9e9cf5459c60f10f3919e79223c8b7446c (patch) | |
tree | d6b8221698f8582406f54385bdcd583c21c0ec26 /doc | |
parent | 4750ce26f2e6079b5fee92bdee5356c279171d22 (diff) | |
download | node-new-7ff50f9e9cf5459c60f10f3919e79223c8b7446c.tar.gz |
fs: undeprecate lchown()
uv_fs_lchown() exists, as of libuv 1.21.0. fs.lchown() can now
be undeprecated. This commit also adds tests, as there were
none.
PR-URL: https://github.com/nodejs/node/pull/21498
Fixes: https://github.com/nodejs/node/issues/19868
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/deprecations.md | 16 | ||||
-rw-r--r-- | doc/api/documentation.md | 5 | ||||
-rw-r--r-- | doc/api/fs.md | 17 |
3 files changed, 13 insertions, 25 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index df6371056d..0773166720 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -351,20 +351,6 @@ Type: Documentation-only The [`fs.lchmodSync(path, mode)`][] API is deprecated. -<a id="DEP0037"></a> -### DEP0037: fs.lchown(path, uid, gid, callback) - -Type: Documentation-only - -The [`fs.lchown(path, uid, gid, callback)`][] API is deprecated. - -<a id="DEP0038"></a> -### DEP0038: fs.lchownSync(path, uid, gid) - -Type: Documentation-only - -The [`fs.lchownSync(path, uid, gid)`][] API is deprecated. - <a id="DEP0039"></a> ### DEP0039: require.extensions @@ -1049,8 +1035,6 @@ The option `produceCachedData` has been deprecated. Use [`fs.exists(path, callback)`]: fs.html#fs_fs_exists_path_callback [`fs.lchmod(path, mode, callback)`]: fs.html#fs_fs_lchmod_path_mode_callback [`fs.lchmodSync(path, mode)`]: fs.html#fs_fs_lchmodsync_path_mode -[`fs.lchown(path, uid, gid, callback)`]: fs.html#fs_fs_lchown_path_uid_gid_callback -[`fs.lchownSync(path, uid, gid)`]: fs.html#fs_fs_lchownsync_path_uid_gid [`fs.read()`]: fs.html#fs_fs_read_fd_buffer_offset_length_position_callback [`fs.readSync()`]: fs.html#fs_fs_readsync_fd_buffer_offset_length_position [`fs.stat()`]: fs.html#fs_fs_stat_path_callback diff --git a/doc/api/documentation.md b/doc/api/documentation.md index a5909e3268..f9fa9591af 100644 --- a/doc/api/documentation.md +++ b/doc/api/documentation.md @@ -83,10 +83,6 @@ which simply wrap a syscall, like [`fs.open()`][], will document that. The docs link to the corresponding man pages (short for manual pages) which describe how the syscalls work. -Some syscalls, like lchown(2), are BSD-specific. That means, for -example, that [`fs.lchown()`][] only works on macOS and other BSD-derived -systems, and is not available on Linux. - Most Unix syscalls have Windows equivalents, but behavior may differ on Windows relative to Linux and macOS. For an example of the subtle ways in which it's sometimes impossible to replace Unix syscall semantics on Windows, see [Node @@ -95,6 +91,5 @@ issue 4760](https://github.com/nodejs/node/issues/4760). [`'warning'`]: process.html#process_event_warning [`stderr`]: process.html#process_process_stderr [`fs.open()`]: fs.html#fs_fs_open_path_flags_mode_callback -[`fs.lchown()`]: fs.html#fs_fs_lchown_path_uid_gid_callback [submit an issue]: https://github.com/nodejs/node/issues/new [the contributing guide]: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md diff --git a/doc/api/fs.md b/doc/api/fs.md index 9b518cbac1..f648527435 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1908,8 +1908,10 @@ Synchronous lchmod(2). Returns `undefined`. ## fs.lchown(path, uid, gid, callback) <!-- YAML -deprecated: v0.4.7 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/21498 + description: This API is no longer deprecated. - version: v10.0.0 pr-url: https://github.com/nodejs/node/pull/12562 description: The `callback` parameter is no longer optional. Not passing @@ -1931,7 +1933,10 @@ to the completion callback. ## fs.lchownSync(path, uid, gid) <!-- YAML -deprecated: v0.4.7 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/21498 + description: This API is no longer deprecated. --> * `path` {string|Buffer|URL} @@ -3904,7 +3909,11 @@ no arguments upon success. This method is only implemented on macOS. ### fsPromises.lchown(path, uid, gid) <!-- YAML -deprecated: v10.0.0 +added: v10.0.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/21498 + description: This API is no longer deprecated. --> * `path` {string|Buffer|URL} @@ -3913,7 +3922,7 @@ deprecated: v10.0.0 * Returns: {Promise} Changes the ownership on a symbolic link then resolves the `Promise` with -no arguments upon success. This method is only implemented on macOS. +no arguments upon success. ### fsPromises.link(existingPath, newPath) <!-- YAML |