GeezerVison is showing github.com — doc: deprecate hash constructor · nodejs/node@26ed4ad
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/deprecations.md +16Lines changed: 16 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3467,6 +3467,21 @@ Type: Documentation-only |
3467 | 3467 | The [`dirent.path`][] is deprecated due to its lack of consistency across |
3468 | 3468 | release lines. Please use [`dirent.parentPath`][] instead. |
3469 | 3469 |
|
| 3470 | +### DEP0179: `Hash` constructor |
| 3471 | + |
| 3472 | +<!-- YAML |
| 3473 | +changes: |
| 3474 | + - version: REPLACEME |
| 3475 | + pr-url: https://github.com/nodejs/node/pull/51077 |
| 3476 | + description: Documentation-only deprecation. |
| 3477 | +--> |
| 3478 | + |
| 3479 | +Type: Documentation-only |
| 3480 | + |
| 3481 | +Calling `Hash` class directly with `Hash()` or `new Hash()` is |
| 3482 | +deprecated due to being internals, not intended for public use. |
| 3483 | +Please use the [`crypto.createHash()`][] method to create Hash instances. |
| 3484 | + |
3470 | 3485 | [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf |
3471 | 3486 | [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 |
3472 | 3487 | [RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4 |
@@ -3505,6 +3520,7 @@ release lines. Please use [`dirent.parentPath`][] instead. |
3505 | 3520 | [`crypto.createCipheriv()`]: crypto.md#cryptocreatecipherivalgorithm-key-iv-options |
3506 | 3521 | [`crypto.createDecipher()`]: crypto.md#cryptocreatedecipheralgorithm-password-options |
3507 | 3522 | [`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options |
| 3523 | +[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options |
3508 | 3524 | [`crypto.fips`]: crypto.md#cryptofips |
3509 | 3525 | [`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback |
3510 | 3526 | [`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback |
|