]> zoso.dev Git - nano-pow.git/commitdiff
Release version. v4.0.0
authorChris Duncan <chris@zoso.dev>
Fri, 21 Mar 2025 17:15:12 +0000 (10:15 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 21 Mar 2025 17:15:12 +0000 (10:15 -0700)
CHANGELOG.md
package-lock.json
package.json

index 7b96574f00b6fc74a36c602b4fa4e8783322f022..f90647a77d6a489cc798bc2bea759333c67a01aa 100644 (file)
@@ -3,6 +3,39 @@ SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
 SPDX-License-Identifier: GPL-3.0-or-later
 -->
 
+## v4.0.0
+
+### Notable Changes
+
+#### Implement a basic work server
+
+All the tools used to build NanoPow - Node, WebGPU/WebGL, puppeteer - have come
+together to create a Nano work server written in Javascript! Install NanoPow,
+start the server with one command, and get hashing! The server operates just
+like the Nano node work RPC: send a POST request to `work_generate` or
+`work_validate` with the appropriate JSON body and receive JSON data back. For
+a refresher on the request structure and some cURL examples, send a GET request
+instead to get some basic plaintext help.
+
+**This is major version upgrade that introduces breaking changes.** Previously,
+NanoPow used `search` and `validate` for its method names; now it uses
+`work_generate` and `work_validate` to align with the official Nano node
+implementation. If you are currently using an older version of NanoPow, you can
+use v3.2.x which includes a compatibility layer to facilitate migration to the
+new methods. Also note that while the original methods accepted a truncated
+32-bit (8-character) threshold option, the new methods use a full 64-bit
+(16-character) threshold.
+
+#### Other Changes
+
+Write basic test script to check server.
+
+Extract help text to separate documentation file.
+
+Fix Typescript types.
+
+
+
 ## v3.2.1
 
 ### Notable Changes
index 4fb2d9089650faf64567433e0ce003be1859a299..48c489e292888912026141cbf481f5ef6137686a 100644 (file)
@@ -1,12 +1,12 @@
 {
        "name": "nano-pow",
-       "version": "3.2.1",
+       "version": "4.0.0",
        "lockfileVersion": 3,
        "requires": true,
        "packages": {
                "": {
                        "name": "nano-pow",
-                       "version": "3.2.1",
+                       "version": "4.0.0",
                        "license": "(GPL-3.0-or-later AND MIT)",
                        "bin": {
                                "nano-pow": "dist/bin/cli.js"
index 3c346bcaf29585101b2f84e591957e85a6d4e397..8183137bdf355dd4b4440d7dfb1b04ac0b9d0e7f 100644 (file)
@@ -1,6 +1,6 @@
 {
        "name": "nano-pow",
-       "version": "3.2.1",
+       "version": "4.0.0",
        "description": "Proof-of-work generation and validation with WebGPU/WebGL for Nano cryptocurrency.",
        "keywords": [
                "nemo",