From: Chris Duncan Date: Fri, 21 Mar 2025 17:15:12 +0000 (-0700) Subject: Release version. X-Git-Tag: v4.0.0^0 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=6bdb230ecc07e2fedc4b16985bbc8231e523fa25;p=nano-pow.git Release version. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b96574..f90647a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,39 @@ SPDX-FileCopyrightText: 2025 Chris Duncan 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 diff --git a/package-lock.json b/package-lock.json index 4fb2d90..48c489e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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" diff --git a/package.json b/package.json index 3c346bc..8183137 100644 --- a/package.json +++ b/package.json @@ -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",