Skip to content

Commit 5b6aa53

Browse files
authored
doc: deprecate dirent.path
PR-URL: nodejs#51020 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 7b3eb31 commit 5b6aa53

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/api/deprecations.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3531,6 +3531,20 @@ Type: Documentation-only
35313531
The [`util.types.isWebAssemblyCompiledModule`][] API is deprecated. Please use
35323532
`value instanceof WebAssembly.Module` instead.
35333533

3534+
### DEP0178: `dirent.path`
3535+
3536+
<!-- YAML
3537+
changes:
3538+
- version: REPLACEME
3539+
pr-url: https://github.com/nodejs/node/pull/51020
3540+
description: Documentation-only deprecation.
3541+
-->
3542+
3543+
Type: Documentation-only
3544+
3545+
The [`dirent.path`][] is deprecated due to its lack of consistency across
3546+
release lines. Please use [`dirent.parentPath`][] instead.
3547+
35343548
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
35353549
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
35363550
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3577,6 +3591,8 @@ The [`util.types.isWebAssemblyCompiledModule`][] API is deprecated. Please use
35773591
[`decipher.setAuthTag()`]: crypto.md#deciphersetauthtagbuffer-encoding
35783592
[`diagnostics_channel.subscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelsubscribename-onmessage
35793593
[`diagnostics_channel.unsubscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelunsubscribename-onmessage
3594+
[`dirent.parentPath`]: fs.md#direntparentpath
3595+
[`dirent.path`]: fs.md#direntpath
35803596
[`dns.lookup()`]: dns.md#dnslookuphostname-options-callback
35813597
[`dnsPromises.lookup()`]: dns.md#dnspromiseslookuphostname-options
35823598
[`domain`]: domain.md

0 commit comments

Comments
 (0)