From: Chris Duncan Date: Thu, 20 Mar 2025 21:59:42 +0000 (-0700) Subject: Update version. X-Git-Tag: v3.2.0^0 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=fd5ff0e7bd52da681329b634b7448105adccaaf4;p=nano-pow.git Update version. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index cb1a02b..e22f4bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,47 @@ SPDX-FileCopyrightText: 2025 Chris Duncan SPDX-License-Identifier: GPL-3.0-or-later --> +## v3.2.0 + +### Notable Changes + +#### Set up for v4 + +The next major version will introduce breaking changes, so a compatibility layer +has been added to allow developers to migrate when they are ready. The `search` +and `validate` methods still work as before, and now there are two new methods +`work_generate` and `work_validate` which as you may have guessed are intended +to align with the relevant Nano node RPC actions. The hashing is the same under +the hood, but more data is returned as described below. + +#### Return more data from hash result + +Initially, the only requirement from NanoPow was to either search for a valid +nonce to use for proof-of-work or to validate an existing nonce. This project +has evolved over time, and a little more data from the hashing function would go +a long way. Consequently, `work_generate` and `work_validate` will return data +like the Nano node RPC actions; specifically, the hash result of the valid nonce +will be returned along with the nonce value from which it originated. The block +hash itself will also be returned so that batch requests can tell which work +goes with which block. + +#### Other Changes + +Indicate a more specific `threshold` by passing a full 16-character string to +the new `work_` methods. + +Changed `NanoPowGl.size` property to return total pixel count. + +Add typings for request and response objects consumed by new `work_` methods. + +Add more tests for receive threshold edge cases. + +Improve build process. + +Expand documentation. + + + ## v3.1.4 ### Notable Changes diff --git a/package-lock.json b/package-lock.json index bb9e90f..08db22e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nano-pow", - "version": "3.1.4", + "version": "3.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nano-pow", - "version": "3.1.4", + "version": "3.2.0", "license": "(GPL-3.0-or-later AND MIT)", "bin": { "nano-pow": "dist/bin/cli.js" diff --git a/package.json b/package.json index 5a39e32..97f175e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nano-pow", - "version": "3.1.4", + "version": "3.2.0", "description": "Proof-of-work generation and validation with WebGPU/WebGL for Nano cryptocurrency.", "keywords": [ "nemo",