File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -3574,6 +3574,20 @@ Calling `Hash` class directly with `Hash()` or `new Hash()` is
3574
3574
deprecated due to being internals, not intended for public use.
3575
3575
Please use the [ ` crypto.createHash() ` ] [ ] method to create Hash instances.
3576
3576
3577
+ ### DEP0180: ` fs.Stats ` constructor
3578
+
3579
+ <!-- YAML
3580
+ changes:
3581
+ - version: REPLACEME
3582
+ pr-url: https://github.com/nodejs/node/pull/51879
3583
+ description: Documentation-only deprecation.
3584
+ -->
3585
+
3586
+ Type: Documentation-only
3587
+
3588
+ Calling ` fs.Stats ` class directly with ` Stats() ` or ` new Stats() ` is
3589
+ deprecated due to being internals, not intended for public use.
3590
+
3577
3591
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3578
3592
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3579
3593
[ RFC 8247 Section 2.4 ] : https://www.rfc-editor.org/rfc/rfc8247#section-2.4
Original file line number Diff line number Diff line change @@ -6902,6 +6902,9 @@ i.e. before the `'ready'` event is emitted.
6902
6902
<!-- YAML
6903
6903
added: v0.1.21
6904
6904
changes:
6905
+ - version: REPLACEME
6906
+ pr-url: https://github.com/nodejs/node/pull/51879
6907
+ description: Documentation deprecated public constructor.
6905
6908
- version: v8.1.0
6906
6909
pr-url: https://github.com/nodejs/node/pull/13173
6907
6910
description: Added times as numbers.
@@ -6914,6 +6917,7 @@ their synchronous counterparts are of this type.
6914
6917
If ` bigint` in the ` options` passed to those methods is true, the numeric values
6915
6918
will be ` bigint` instead of ` number` , and the object will contain additional
6916
6919
nanosecond-precision properties suffixed with ` Ns` .
6920
+ ` Stat` objects are not to be created directly using the ` new ` keyword.
6917
6921
6918
6922
` ` ` console
6919
6923
Stats {
You can’t perform that action at this time.
0 commit comments