@@ -3459,6 +3459,21 @@ Type: Documentation-only
3459
3459
The [ ` dirent.path ` ] [ ] is deprecated due to its lack of consistency across
3460
3460
release lines. Please use [ ` dirent.parentPath ` ] [ ] instead.
3461
3461
3462
+ ### DEP0179: ` Hash ` constructor
3463
+
3464
+ <!-- YAML
3465
+ changes:
3466
+ - version: REPLACEME
3467
+ pr-url: https://github.com/nodejs/node/pull/51077
3468
+ description: Documentation-only deprecation.
3469
+ -->
3470
+
3471
+ Type: Documentation-only
3472
+
3473
+ Calling ` Hash ` class directly with ` Hash() ` or ` new Hash() ` is
3474
+ deprecated due to being internals, not intended for public use.
3475
+ Please use the [ ` crypto.createHash() ` ] [ ] method to create Hash instances.
3476
+
3462
3477
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3463
3478
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3464
3479
[ RFC 8247 Section 2.4 ] : https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3497,6 +3512,7 @@ release lines. Please use [`dirent.parentPath`][] instead.
3497
3512
[ `crypto.createCipheriv()` ] : crypto.md#cryptocreatecipherivalgorithm-key-iv-options
3498
3513
[ `crypto.createDecipher()` ] : crypto.md#cryptocreatedecipheralgorithm-password-options
3499
3514
[ `crypto.createDecipheriv()` ] : crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
3515
+ [ `crypto.createHash()` ] : crypto.md#cryptocreatehashalgorithm-options
3500
3516
[ `crypto.fips` ] : crypto.md#cryptofips
3501
3517
[ `crypto.pbkdf2()` ] : crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
3502
3518
[ `crypto.randomBytes()` ] : crypto.md#cryptorandombytessize-callback
0 commit comments