Skip to content

Commit 0f09267

Browse files
aduh95richardlau
authored andcommitted
doc: deprecate dirent.path
PR-URL: #51020 Backport-PR-URL: #51021 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> PR-URL: #50976
1 parent 26e8f77 commit 0f09267

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/api/deprecations.md

+28
Original file line numberDiff line numberDiff line change
@@ -3321,6 +3321,32 @@ 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+
3326+
<!-- md-lint skip-deprecation DEP0173 -->
3327+
3328+
<!-- md-lint skip-deprecation DEP0174 -->
3329+
3330+
<!-- md-lint skip-deprecation DEP0175 -->
3331+
3332+
<!-- md-lint skip-deprecation DEP0176 -->
3333+
3334+
<!-- md-lint skip-deprecation DEP0177 -->
3335+
3336+
### DEP0178: `dirent.path`
3337+
3338+
<!-- YAML
3339+
changes:
3340+
- version: REPLACEME
3341+
pr-url: https://github.com/nodejs/node/pull/51020
3342+
description: Documentation-only deprecation.
3343+
-->
3344+
3345+
Type: Documentation-only
3346+
3347+
The [`dirent.path`][] is deprecated due to its lack of consistency across
3348+
release lines. Please use [`dirent.parentPath`][] instead.
3349+
33243350
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
33253351
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
33263352
[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`][],
33663392
[`decipher.setAuthTag()`]: crypto.md#deciphersetauthtagbuffer-encoding
33673393
[`diagnostics_channel.subscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelsubscribename-onmessage
33683394
[`diagnostics_channel.unsubscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelunsubscribename-onmessage
3395+
[`dirent.parentPath`]: fs.md#direntparentpath
3396+
[`dirent.path`]: fs.md#direntpath
33693397
[`dns.lookup()`]: dns.md#dnslookuphostname-options-callback
33703398
[`dnsPromises.lookup()`]: dns.md#dnspromiseslookuphostname-options
33713399
[`domain`]: domain.md

0 commit comments

Comments
 (0)