diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index fc333e937d6..eb69e9445a5 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -4051,6 +4051,9 @@ Please use the [`crypto.createHash()`][] method to create Hash instances. -Type: Runtime +Type: End-of-Life -Calling `fs.Stats` class directly with `Stats()` or `new Stats()` is -deprecated due to being internals, not intended for public use. +Calling `fs.Stats` class directly with `Stats()` or `new Stats()` throws an +`ERR_ILLEGAL_CONSTRUCTOR` error. The constructor is internal and not intended +for public use. The class remains exported, so `instanceof fs.Stats` checks +continue to work. ### DEP0181: `Hmac` constructor diff --git a/doc/api/fs.md b/doc/api/fs.md index 929ea302957..2a7333fd3fc 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -7989,6 +7989,10 @@ i.e. before the `'ready'` event is emitted.