Commit a0c4668 1 parent 7f0b805 commit a0c4668 Copy full SHA for a0c4668
File tree 2 files changed +18
-0
lines changed
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 @@ -6999,6 +6999,9 @@ i.e. before the `'ready'` event is emitted.
6999
6999
<!-- YAML
7000
7000
added: v0.1.21
7001
7001
changes:
7002
+ - version: REPLACEME
7003
+ pr-url: https://github.com/nodejs/node/pull/51879
7004
+ description: Public constructor is deprecated.
7002
7005
- version: v8.1.0
7003
7006
pr-url: https://github.com/nodejs/node/pull/13173
7004
7007
description: Added times as numbers.
@@ -7011,6 +7014,7 @@ their synchronous counterparts are of this type.
7011
7014
If ` bigint` in the ` options` passed to those methods is true, the numeric values
7012
7015
will be ` bigint` instead of ` number` , and the object will contain additional
7013
7016
nanosecond-precision properties suffixed with ` Ns` .
7017
+ ` Stat` objects are not to be created directly using the ` new ` keyword.
7014
7018
7015
7019
` ` ` console
7016
7020
Stats {
You can’t perform that action at this time.
0 commit comments