Skip to content

Commit ec5f84b

Browse files
committed
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 3db63d2 commit ec5f84b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

doc/api/deprecations.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,6 +3321,27 @@ In a future version of Node.js, [`message.headers`][],
33213321
[`message.headersDistinct`][], [`message.trailers`][], and
33223322
[`message.trailersDistinct`][] will be read-only.
33233323

3324+
<!-- md-lint skip-deprecation DEP0172 -->
3325+
<!-- md-lint skip-deprecation DEP0173 -->
3326+
<!-- md-lint skip-deprecation DEP0174 -->
3327+
<!-- md-lint skip-deprecation DEP0175 -->
3328+
<!-- md-lint skip-deprecation DEP0176 -->
3329+
<!-- md-lint skip-deprecation DEP0177 -->
3330+
3331+
### DEP0178: `dirent.path`
3332+
3333+
<!-- YAML
3334+
changes:
3335+
- version: REPLACEME
3336+
pr-url: https://github.com/nodejs/node/pull/51020
3337+
description: Documentation-only deprecation.
3338+
-->
3339+
3340+
Type: Documentation-only
3341+
3342+
The [`dirent.path`][] is deprecated due to its lack of consistency across
3343+
release lines. Please use [`dirent.parentPath`][] instead.
3344+
33243345
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
33253346
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
33263347
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3366,6 +3387,8 @@ In a future version of Node.js, [`message.headers`][],
33663387
[`decipher.setAuthTag()`]: crypto.md#deciphersetauthtagbuffer-encoding
33673388
[`diagnostics_channel.subscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelsubscribename-onmessage
33683389
[`diagnostics_channel.unsubscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelunsubscribename-onmessage
3390+
[`dirent.parentPath`]: fs.md#direntparentpath
3391+
[`dirent.path`]: fs.md#direntpath
33693392
[`dns.lookup()`]: dns.md#dnslookuphostname-options-callback
33703393
[`dnsPromises.lookup()`]: dns.md#dnspromiseslookuphostname-options
33713394
[`domain`]: domain.md

0 commit comments

Comments
 (0)