Skip to content

Commit 0ac4a6a

Browse files
ben-turnertargos
authored andcommitted
doc: update crypto.createSecretKey history
Passing strings to `crypto.createSecretKey` was not added until v15.0.0 (specifically with commit dae283d). The existing documentation implies its availability in prior versions which may cause confusion. PR-URL: #35874 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 4899998 commit 0ac4a6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/crypto.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2147,8 +2147,9 @@ added: v11.6.0
21472147
changes:
21482148
- version: v15.0.0
21492149
pr-url: https://github.com/nodejs/node/pull/35093
2150-
description: The key can also be an ArrayBuffer. The encoding argument was
2151-
added. The key cannot contain more than 2 ** 32 - 1 bytes.
2150+
description: The key can also be an ArrayBuffer or string. The encoding
2151+
argument was added. The key cannot contain more than
2152+
2 ** 32 - 1 bytes.
21522153
-->
21532154

21542155
* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView}

0 commit comments

Comments
 (0)