Skip to content

Commit 1113e58

Browse files
aduh95richardlau
authored andcommitted
doc: deprecate dirent.path
PR-URL: #51020 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 97aa67f commit 1113e58

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/api/deprecations.md

+16
Original file line numberDiff line numberDiff line change
@@ -3445,6 +3445,20 @@ Type: Documentation-only
34453445
The [`util.types.isWebAssemblyCompiledModule`][] API is deprecated. Please use
34463446
`value instanceof WebAssembly.Module` instead.
34473447

3448+
### DEP0178: `dirent.path`
3449+
3450+
<!-- YAML
3451+
changes:
3452+
- version: REPLACEME
3453+
pr-url: https://github.com/nodejs/node/pull/51020
3454+
description: Documentation-only deprecation.
3455+
-->
3456+
3457+
Type: Documentation-only
3458+
3459+
The [`dirent.path`][] is deprecated due to its lack of consistency across
3460+
release lines. Please use [`dirent.parentPath`][] instead.
3461+
34483462
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
34493463
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
34503464
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3491,6 +3505,8 @@ The [`util.types.isWebAssemblyCompiledModule`][] API is deprecated. Please use
34913505
[`decipher.setAuthTag()`]: crypto.md#deciphersetauthtagbuffer-encoding
34923506
[`diagnostics_channel.subscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelsubscribename-onmessage
34933507
[`diagnostics_channel.unsubscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelunsubscribename-onmessage
3508+
[`dirent.parentPath`]: fs.md#direntparentpath
3509+
[`dirent.path`]: fs.md#direntpath
34943510
[`dns.lookup()`]: dns.md#dnslookuphostname-options-callback
34953511
[`dnsPromises.lookup()`]: dns.md#dnspromiseslookuphostname-options
34963512
[`domain`]: domain.md

0 commit comments

Comments
 (0)