Skip to content

Commit 53ff3e5

Browse files
doc: deprecate hmac public constructor
PR-URL: #51881 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Adrian Estrada <edsadr@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 5e78a20 commit 53ff3e5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/api/deprecations.md

+16
Original file line numberDiff line numberDiff line change
@@ -3492,6 +3492,21 @@ Type: Documentation-only
34923492
Calling `fs.Stats` class directly with `Stats()` or `new Stats()` is
34933493
deprecated due to being internals, not intended for public use.
34943494

3495+
### DEP0181: `Hmac` constructor
3496+
3497+
<!-- YAML
3498+
changes:
3499+
- version: REPLACEME
3500+
pr-url: https://github.com/nodejs/node/pull/51881
3501+
description: Documentation-only deprecation.
3502+
-->
3503+
3504+
Type: Documentation-only
3505+
3506+
Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is
3507+
deprecated due to being internals, not intended for public use.
3508+
Please use the [`crypto.createHmac()`][] method to create Hmac instances.
3509+
34953510
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
34963511
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
34973512
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3531,6 +3546,7 @@ deprecated due to being internals, not intended for public use.
35313546
[`crypto.createDecipher()`]: crypto.md#cryptocreatedecipheralgorithm-password-options
35323547
[`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
35333548
[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options
3549+
[`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options
35343550
[`crypto.fips`]: crypto.md#cryptofips
35353551
[`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
35363552
[`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback

0 commit comments

Comments
 (0)