From: Chris Duncan Date: Thu, 13 Mar 2025 01:34:01 +0000 (-0700) Subject: Merge cli into main X-Git-Tag: v3.1.0~9 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=5fc248ae4c827508ff830636b87e5bc92b628ad6;p=nano-pow.git Merge cli into main Create command line tool using puppeteer that can be executed when installed globally. Write man page for cli. Fix subtle bug in final XOR line of compute shader only observed when using max threshold value. Added test cases to check for max threshold bug in the future. Reorganize compute shader v initialization to improve clarity. Add more debugging output when flag is enabled. Delay GL canvas initialization to allow it to fail gracefully in unsupported environments. Fix JSdoc comments. Add bug report email to README. Update dependencies. --- 5fc248ae4c827508ff830636b87e5bc92b628ad6 diff --cc package.json index 9724e3c,ca2183f..7d788af --- a/package.json +++ b/package.json @@@ -40,7 -42,7 +42,7 @@@ "url": "git+https://zoso.dev/nano-pow.git" }, "scripts": { - "build": "rm -rf {dist,types} && tsc && node esbuild.mjs && npm run fix-copyright && cp types.d.ts dist", - "build": "rm -rf {dist,{dist,types}} && tsc && node esbuild.mjs && npm run fix-copyright && cp cli.js nano-pow.1 types.d.ts dist", ++ "build": "rm -rf {dist,types} && tsc && node esbuild.mjs && npm run fix-copyright && cp cli.js nano-pow.1 types.d.ts dist", "fix-copyright": "sed -i '/\\/\\/ src\\/shaders\\/compute\\.wgsl/a //! SPDX-FileCopyrightText: 2025 Chris Duncan \\n//! SPDX-License-Identifier: GPL-3.0-or-later' dist/main.min.js" }, "devDependencies": { diff --cc types.d.ts index b105ee8,58394ea..14cc26e --- a/types.d.ts +++ b/types.d.ts @@@ -43,7 -43,8 +43,6 @@@ export type NanoPowOptions = * Nano proof-of-work using WebGL 2.0. */ export declare class NanoPowGl { -- #private - static get size (): number | undefined /** Compile */ static init (): Promise static reset (): void @@@ -68,7 -69,7 +67,6 @@@ * Nano proof-of-work using WebGPU. */ export declare class NanoPowGpu { -- #private static init (): Promise static setup (): void static reset (): void