Skip to content

Commit

Permalink
doc: update crypto.createSecretKey history
Browse files Browse the repository at this point in the 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>
  • Loading branch information
ben-turner authored and Trott committed Nov 1, 2020
1 parent c0f6ff2 commit 09af8c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2147,8 +2147,9 @@ added: v11.6.0
changes:
- version: v15.0.0
pr-url: https://github.com/nodejs/node/pull/35093
description: The key can also be an ArrayBuffer. The encoding argument was
added. The key cannot contain more than 2 ** 32 - 1 bytes.
description: The key can also be an ArrayBuffer or string. The encoding
argument was added. The key cannot contain more than
2 ** 32 - 1 bytes.
-->

* `key` {string|ArrayBuffer|Buffer|TypedArray|DataView}
Expand Down

0 comments on commit 09af8c8

Please sign in to comment.