From 09ad974537a994fd3f4f32f90a099f84305f2e5e Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 5 Dec 2023 22:15:23 +0100 Subject: [PATCH] doc: add deprecation notice to `dirent.path` Refs: https://github.com/nodejs/node/pull/51020 PR-URL: https://github.com/nodejs/node/pull/51059 Reviewed-By: Debadree Chatterjee Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow --- doc/api/fs.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index f64363fc27bb5f..1e87d99cf6f93c 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6594,9 +6594,14 @@ The path to the parent directory of the file this {fs.Dirent} object refers to. #### `dirent.path` +> Stability: 0 - Deprecated: Use [`dirent.parentPath`][] instead. + * {string} Alias for `dirent.parentPath`. @@ -8152,6 +8157,7 @@ the file contents. [`Number.MAX_SAFE_INTEGER`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER [`ReadDirectoryChangesW`]: https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-readdirectorychangesw [`UV_THREADPOOL_SIZE`]: cli.md#uv_threadpool_sizesize +[`dirent.parentPath`]: #direntparentpath [`event ports`]: https://illumos.org/man/port_create [`filehandle.createReadStream()`]: #filehandlecreatereadstreamoptions [`filehandle.createWriteStream()`]: #filehandlecreatewritestreamoptions