]> zoso.dev Git - nano-pow.git/commitdiff
Merge cli into main
authorChris Duncan <chris@zoso.dev>
Thu, 13 Mar 2025 01:34:01 +0000 (18:34 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 13 Mar 2025 01:34:01 +0000 (18:34 -0700)
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.

1  2 
package.json
types.d.ts

diff --cc package.json
index 9724e3cf9ba5bc05f274c84f183601e5dbf00ca4,ca2183f196629331b574fadccc4272486677b515..7d788afbe6cc98d3a65ff4ced9e2bbfaab14db22
@@@ -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 <chris@zoso.dev>\\n//! SPDX-License-Identifier: GPL-3.0-or-later' dist/main.min.js"
        },
        "devDependencies": {
diff --cc types.d.ts
index b105ee815cb27dc26721500e461a26532418f3cf,58394ea7173a592f6d1e8b73534462c45cc57eb2..14cc26ec6499cada3f5defb4240b0d7dfd514008
@@@ -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<void>
        static reset (): void
@@@ -68,7 -69,7 +67,6 @@@
  * Nano proof-of-work using WebGPU.
  */
  export declare class NanoPowGpu {
--      #private
        static init (): Promise<void>
        static setup (): void
        static reset (): void