From 5e78a20ef9926ba91696866d8f1c371e747b28b8 Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Tue, 5 Mar 2024 14:49:36 +0100 Subject: [PATCH] doc: deprecate fs.Stats public constructor PR-URL: https://github.com/nodejs/node/pull/51879 Refs: https://github.com/nodejs/node/pull/51681 Reviewed-By: Yagiz Nizipli Reviewed-By: Paolo Insogna --- doc/api/deprecations.md | 14 ++++++++++++++ doc/api/fs.md | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 50b5b5ebbefd25..2ee25f428abb4f 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3478,6 +3478,20 @@ Calling `Hash` class directly with `Hash()` or `new Hash()` is deprecated due to being internals, not intended for public use. Please use the [`crypto.createHash()`][] method to create Hash instances. +### DEP0180: `fs.Stats` constructor + + + +Type: Documentation-only + +Calling `fs.Stats` class directly with `Stats()` or `new Stats()` is +deprecated due to being internals, not intended for public use. + [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 diff --git a/doc/api/fs.md b/doc/api/fs.md index acc7be37d8add6..a64b5ca56f5221 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6842,6 +6842,9 @@ i.e. before the `'ready'` event is emitted.