From c720ba2f1402d238f18c5133ad17d2b47e61e129 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 30 Aug 2025 02:18:34 -0700 Subject: [PATCH] v0.4.0 --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7339cff..775ae96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,36 @@ SPDX-FileCopyrightText: 2025 Chris Duncan SPDX-License-Identifier: GPL-3.0-or-later --> +## v0.4.0 + +### Notable Changes + +#### Vault abandons async-await + +Bundlers try to optimize code based on features supported by the target browser +environment as well as work around shortcomings or bugs. Sometimes this results +in mangling code that would otherwise be acceptable. Private class fields and +async-await are two such features that bundlers are eager to refactor. This is +particularly problematic for the Vault worker in `libnemo` due to how it loads +as a stringified data blog. To avoid this situation, async-await statements have +been replaced by traditional promise chaining in Vault-related classes, and +private members that were being hoisted outside the class scope (and thus being +lost when loading the worker) are now initialized in a static method so that +they keep their place in the class as designed. + +#### BLAKE2b outputs bytes only + +This change is intended purely to simplify the structure of the BLAKE2b hashing +implementation. The `digest()` method no longer accepts any parameters and will +always output bytes; hex string is no longer an output option, and the bytes +should be converted if necessary. + +### Other Changes + +Fixed some erroneous JSdoc comment documentation. + + + ## v0.3.1 ### Notable Changes diff --git a/package-lock.json b/package-lock.json index c9d84eb..f4b6a87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "libnemo", - "version": "0.3.1", + "version": "0.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "libnemo", - "version": "0.3.1", + "version": "0.4.0", "license": "(GPL-3.0-or-later AND MIT AND ISC)", "dependencies": { "nano-pow": "^5.1.4" diff --git a/package.json b/package.json index 60e593f..bd54195 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "libnemo", - "version": "0.3.1", + "version": "0.4.0", "description": "Asynchronous, non-blocking Nano cryptocurrency integration toolkit.", "keywords": [ "nemo", -- 2.47.3