From c1c26cd2db7d8f8d960ec677940f771dcab6ecd7 Mon Sep 17 00:00:00 2001 From: Brian Turek <2017685+Caligatio@users.noreply.github.com> Date: Mon, 10 Oct 2022 15:12:40 +0200 Subject: [PATCH] Prep for v3.3.0 --- CHANGELOG.md | 6 ++++++ README.md | 1 + package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb8f396..7a650cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # jsSHA - ChangeLog +## 3.3.0 (2022-10-10) + +- `.update()` method now returns a reference to the jsSHA object to allow for + method chaining (#100, thanks @ADTC!). +- Correct bad URL in README (#99, thanks @jbjulia!). + ## 3.2.0 (2020-12-07) - Added ESM versions of all variants (thanks wKovacs64!). diff --git a/README.md b/README.md index 6c6b83a..b3ce86c 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Example to calculate the SHA-512 of "This is a test": ```javascript const shaObj = new jsSHA("SHA-512", "TEXT", { encoding: "UTF8" }); +/* .update() can be chained */ shaObj.update("This is").update(" a "); shaObj.update("test"); const hash = shaObj.getHash("HEX"); diff --git a/package.json b/package.json index c21c3bb..190ccd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jssha", - "version": "3.2.0", + "version": "3.3.0", "description": "jsSHA implements the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC", "main": "./dist/sha.js", "exports": {