From 4520eccee8c457b25ea52b3925d873888e0e104c Mon Sep 17 00:00:00 2001 From: Christian Bundy Date: Fri, 11 Sep 2020 12:22:52 -0700 Subject: [PATCH] BREAKING: Rename '_ready' suffix to '_wasm_ready' When looking through each of the extra methods exposed by this module I noticed lots of 'wasm' mentions, but since this method doesn't mention wasm it wasn't clear to me why this extra method was being exposed. This commit is a breaking change that renames crypto_generichash_ready to crypto_generichash_wasm_ready, which feels more clear to me. --- crypto_generichash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto_generichash.js b/crypto_generichash.js index 6f0eb1c..4d5bd55 100644 --- a/crypto_generichash.js +++ b/crypto_generichash.js @@ -16,7 +16,7 @@ module.exports.crypto_generichash = function (output, input, key) { blake2b(output.length, key).update(input).final(output) } -module.exports.crypto_generichash_ready = blake2b.ready +module.exports.crypto_generichash_wasm_ready = blake2b.ready module.exports.crypto_generichash_batch = function (output, inputArray, key) { var ctx = blake2b(output.length, key)