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 @@ -3478,6 +3478,20 @@ Calling `Hash` class directly with `Hash()` or `new Hash()` is
3478
3478
deprecated due to being internals, not intended for public use.
3479
3479
Please use the [ ` crypto.createHash() ` ] [ ] method to create Hash instances.
3480
3480
3481
+ ### DEP0180: ` fs.Stats ` constructor
3482
+
3483
+ <!-- YAML
3484
+ changes:
3485
+ - version: REPLACEME
3486
+ pr-url: https://github.com/nodejs/node/pull/51879
3487
+ description: Documentation-only deprecation.
3488
+ -->
3489
+
3490
+ Type: Documentation-only
3491
+
3492
+ Calling ` fs.Stats ` class directly with ` Stats() ` or ` new Stats() ` is
3493
+ deprecated due to being internals, not intended for public use.
3494
+
3481
3495
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3482
3496
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3483
3497
[ 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 @@ -6842,6 +6842,9 @@ i.e. before the `'ready'` event is emitted.
6842
6842
<!-- YAML
6843
6843
added: v0.1.21
6844
6844
changes:
6845
+ - version: REPLACEME
6846
+ pr-url: https://github.com/nodejs/node/pull/51879
6847
+ description: Public constructor is deprecated.
6845
6848
- version: v8.1.0
6846
6849
pr-url: https://github.com/nodejs/node/pull/13173
6847
6850
description: Added times as numbers.
@@ -6854,6 +6857,7 @@ their synchronous counterparts are of this type.
6854
6857
If ` bigint` in the ` options` passed to those methods is true, the numeric values
6855
6858
will be ` bigint` instead of ` number` , and the object will contain additional
6856
6859
nanosecond-precision properties suffixed with ` Ns` .
6860
+ ` Stat` objects are not to be created directly using the ` new ` keyword.
6857
6861
6858
6862
` ` ` console
6859
6863
Stats {
You can’t perform that action at this time.
0 commit comments