From 0f09267dc695e34422e95c16df5ecbd74f5c9466 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 5 Dec 2023 00:11:36 +0100 Subject: [PATCH] doc: deprecate `dirent.path` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/51020 Backport-PR-URL: https://github.com/nodejs/node/pull/51021 Reviewed-By: Yagiz Nizipli Reviewed-By: LiviaMedeiros Reviewed-By: Michaƫl Zasso Reviewed-By: Moshe Atlow PR-URL: https://github.com/nodejs/node/pull/50976 --- doc/api/deprecations.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 9882b802bf3e3b..5ed95d9dcf8f5a 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3321,6 +3321,32 @@ In a future version of Node.js, [`message.headers`][], [`message.headersDistinct`][], [`message.trailers`][], and [`message.trailersDistinct`][] will be read-only. + + + + + + + + + + + + +### DEP0178: `dirent.path` + + + +Type: Documentation-only + +The [`dirent.path`][] is deprecated due to its lack of consistency across +release lines. Please use [`dirent.parentPath`][] 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 @@ -3366,6 +3392,8 @@ In a future version of Node.js, [`message.headers`][], [`decipher.setAuthTag()`]: crypto.md#deciphersetauthtagbuffer-encoding [`diagnostics_channel.subscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelsubscribename-onmessage [`diagnostics_channel.unsubscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelunsubscribename-onmessage +[`dirent.parentPath`]: fs.md#direntparentpath +[`dirent.path`]: fs.md#direntpath [`dns.lookup()`]: dns.md#dnslookuphostname-options-callback [`dnsPromises.lookup()`]: dns.md#dnspromiseslookuphostname-options [`domain`]: domain.md