]> zoso.dev Git - nano-pow.git/commitdiff
Update version. v3.2.0
authorChris Duncan <chris@zoso.dev>
Thu, 20 Mar 2025 21:59:42 +0000 (14:59 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 20 Mar 2025 21:59:42 +0000 (14:59 -0700)
CHANGELOG.md
package-lock.json
package.json

index cb1a02b4a58a07aea5e6dea7fe7f3d6a099c52fd..e22f4bc3996db115bee2cbcf6ad7f94797e10f21 100644 (file)
@@ -3,6 +3,47 @@ SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
 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
index bb9e90f02a6d791cb3b2c38f6ef76f031bd1b4dd..08db22e01b57ee350bb632a1cad4cfe4a66a83c6 100644 (file)
@@ -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"
index 5a39e3253aeeabb0d1770233a880c6d560ee76f2..97f175e0f730e08222874cb21410f568670828a5 100644 (file)
@@ -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",