diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 922bacb..539c3ee 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -38,6 +38,9 @@ jobs: env: DEPS_AUTO_DENY: "true" run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm -r build - name: Check Artifact Size run: du -sh packages/**/dist diff --git a/demos/svelte-demo/CHANGELOG.md b/demos/svelte-demo/CHANGELOG.md new file mode 100644 index 0000000..da5241c --- /dev/null +++ b/demos/svelte-demo/CHANGELOG.md @@ -0,0 +1,9 @@ +# @notemine/svelte-demo + +## 0.1.1 + +### Patch Changes + +- Updated dependencies + - @notemine/core@0.4.0 + - @notemine/wrapper@1.0.0 diff --git a/demos/svelte-demo/package.json b/demos/svelte-demo/package.json index b995db0..da07fab 100644 --- a/demos/svelte-demo/package.json +++ b/demos/svelte-demo/package.json @@ -3,7 +3,6 @@ "version": "0.1.1", "type": "module", "scripts": { - "prepare": "pnpm build", "build": "rollup -c", "dev": "rollup -c -w", "start": "sirv public --no-clear" diff --git a/demos/vanilla-js-demo/CHANGELOG.md b/demos/vanilla-js-demo/CHANGELOG.md new file mode 100644 index 0000000..80e3ad1 --- /dev/null +++ b/demos/vanilla-js-demo/CHANGELOG.md @@ -0,0 +1,8 @@ +# @notemine/vanilla-js-demo + +## 0.1.1 + +### Patch Changes + +- Updated dependencies + - @notemine/core@0.4.0 diff --git a/demos/vanilla-js-demo/package.json b/demos/vanilla-js-demo/package.json index db50d7b..97e6e89 100644 --- a/demos/vanilla-js-demo/package.json +++ b/demos/vanilla-js-demo/package.json @@ -6,7 +6,6 @@ "license": "MIT", "scripts": { "dev": "sirv public --port 1372", - "prepare": "pnpm build", "build": "./scripts/copy-notemine.sh" }, "dependencies": { diff --git a/docs/docs/api/wrapper/README.md b/docs/docs/api/wrapper/README.md index be3e2e9..f3058b5 100644 --- a/docs/docs/api/wrapper/README.md +++ b/docs/docs/api/wrapper/README.md @@ -1,8 +1,8 @@ -**@notemine/wrapper API v0.0.7** +**@notemine/wrapper API v0.1.0** *** -# @notemine/wrapper API v0.0.7 +# @notemine/wrapper API v0.1.0 ## Classes diff --git a/docs/docs/api/wrapper/classes/Notemine.md b/docs/docs/api/wrapper/classes/Notemine.md index 9c989be..3771db4 100644 --- a/docs/docs/api/wrapper/classes/Notemine.md +++ b/docs/docs/api/wrapper/classes/Notemine.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Class: Notemine -Defined in: [index.ts:76](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L76) +Defined in: [index.ts:76](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L76) Class representing a miner for Notemine events @@ -14,7 +14,7 @@ Class representing a miner for Notemine events > **new Notemine**(`options`?): [`Notemine`](Notemine.md) -Defined in: [index.ts:121](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L121) +Defined in: [index.ts:121](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L121) Creates a new Notemine miner instance @@ -36,7 +36,7 @@ Configuration options for the miner > **cancelled$**: `BehaviorSubject`\<`boolean`\> -Defined in: [index.ts:93](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L93) +Defined in: [index.ts:93](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L93) Observable indicating if mining was cancelled @@ -46,7 +46,7 @@ Observable indicating if mining was cancelled > **cancelledEvent$**: `Observable`\<[`CancelledEvent`](../interfaces/CancelledEvent.md)\> -Defined in: [index.ts:113](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L113) +Defined in: [index.ts:113](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L113) Observable for mining cancellations @@ -56,7 +56,7 @@ Observable for mining cancellations > **error$**: `Observable`\<[`ErrorEvent`](../interfaces/ErrorEvent.md)\> -Defined in: [index.ts:111](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L111) +Defined in: [index.ts:111](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L111) Observable for errors encountered during mining @@ -66,7 +66,7 @@ Observable for errors encountered during mining > **highestPow$**: `BehaviorSubject`\<`null` \| [`WorkerPow`](../interfaces/WorkerPow.md)\> -Defined in: [index.ts:101](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L101) +Defined in: [index.ts:101](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L101) Observable for the worker that found the best proof-of-work @@ -76,7 +76,7 @@ Observable for the worker that found the best proof-of-work > **mining$**: `BehaviorSubject`\<`boolean`\> -Defined in: [index.ts:91](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L91) +Defined in: [index.ts:91](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L91) Observable indicating whether mining is currently active @@ -86,7 +86,7 @@ Observable indicating whether mining is currently active > **progress$**: `Observable`\<[`ProgressEvent`](../interfaces/ProgressEvent.md)\> -Defined in: [index.ts:109](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L109) +Defined in: [index.ts:109](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L109) Observable for mining progress updates @@ -96,7 +96,7 @@ Observable for mining progress updates > **result$**: `BehaviorSubject`\<`null` \| [`MinedResult`](../interfaces/MinedResult.md)\> -Defined in: [index.ts:95](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L95) +Defined in: [index.ts:95](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L95) Observable for the result of the mining operation @@ -106,7 +106,7 @@ Observable for the result of the mining operation > **success$**: `Observable`\<[`SuccessEvent`](../interfaces/SuccessEvent.md)\> -Defined in: [index.ts:115](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L115) +Defined in: [index.ts:115](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L115) Observable for successful mining results @@ -116,7 +116,7 @@ Observable for successful mining results > **workers$**: `BehaviorSubject`\<`Worker`[]\> -Defined in: [index.ts:97](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L97) +Defined in: [index.ts:97](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L97) Observable for the list of active workers @@ -126,7 +126,7 @@ Observable for the list of active workers > **workersPow$**: `BehaviorSubject`\<`Record`\<`number`, [`BestPowData`](../interfaces/BestPowData.md)\>\> -Defined in: [index.ts:99](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L99) +Defined in: [index.ts:99](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L99) Observable tracking the proof-of-work data for each worker @@ -136,7 +136,7 @@ Observable tracking the proof-of-work data for each worker > `static` **\_defaultTags**: `string`[][] -Defined in: [index.ts:88](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L88) +Defined in: [index.ts:88](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L88) ## Accessors @@ -146,7 +146,7 @@ Defined in: [index.ts:88](https://github.com/sandwichfarm/minnote-wasm/blob/c53e > **get** **content**(): `string` -Defined in: [index.ts:135](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L135) +Defined in: [index.ts:135](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L135) Gets the current mining content @@ -158,7 +158,7 @@ Gets the current mining content > **set** **content**(`content`): `void` -Defined in: [index.ts:130](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L130) +Defined in: [index.ts:130](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L130) Sets the content to be used in the mining event @@ -180,7 +180,7 @@ Sets the content to be used in the mining event > **get** **difficulty**(): `number` -Defined in: [index.ts:165](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L165) +Defined in: [index.ts:165](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L165) Gets the current mining difficulty @@ -192,7 +192,7 @@ Gets the current mining difficulty > **set** **difficulty**(`difficulty`): `void` -Defined in: [index.ts:160](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L160) +Defined in: [index.ts:160](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L160) Sets the mining difficulty @@ -214,7 +214,7 @@ Sets the mining difficulty > **get** **lastRefresh**(): `number` -Defined in: [index.ts:185](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L185) +Defined in: [index.ts:185](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L185) Gets the last refresh interval @@ -226,7 +226,7 @@ Gets the last refresh interval > **set** **lastRefresh**(`interval`): `void` -Defined in: [index.ts:180](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L180) +Defined in: [index.ts:180](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L180) Sets the last refresh interval @@ -248,7 +248,7 @@ Sets the last refresh interval > **get** **numberOfWorkers**(): `number` -Defined in: [index.ts:175](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L175) +Defined in: [index.ts:175](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L175) Gets the number of workers currently being used @@ -260,7 +260,7 @@ Gets the number of workers currently being used > **set** **numberOfWorkers**(`numberOfWorkers`): `void` -Defined in: [index.ts:170](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L170) +Defined in: [index.ts:170](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L170) Sets the number of workers for mining @@ -282,7 +282,7 @@ Sets the number of workers for mining > **get** **pubkey**(): `string` -Defined in: [index.ts:155](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L155) +Defined in: [index.ts:155](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L155) Gets the current public key @@ -294,7 +294,7 @@ Gets the current public key > **set** **pubkey**(`pubkey`): `void` -Defined in: [index.ts:150](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L150) +Defined in: [index.ts:150](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L150) Sets the public key for the event @@ -316,7 +316,7 @@ Sets the public key for the event > **get** **tags**(): `string`[][] -Defined in: [index.ts:145](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L145) +Defined in: [index.ts:145](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L145) Gets the current tags @@ -328,7 +328,7 @@ Gets the current tags > **set** **tags**(`tags`): `void` -Defined in: [index.ts:140](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L140) +Defined in: [index.ts:140](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L140) Sets the tags to be used in the mining event @@ -350,7 +350,7 @@ Sets the tags to be used in the mining event > **get** **totalHashRate**(): `number` -Defined in: [index.ts:190](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L190) +Defined in: [index.ts:190](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L190) Gets the total hash rate achieved @@ -364,7 +364,7 @@ Gets the total hash rate achieved > **cancel**(): `void` -Defined in: [index.ts:226](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L226) +Defined in: [index.ts:226](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L226) Cancels the mining process @@ -378,7 +378,7 @@ Cancels the mining process > **mine**(): `Promise`\<`void`\> -Defined in: [index.ts:197](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L197) +Defined in: [index.ts:197](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L197) Starts the mining process. Throws an error if pubkey or content is not set. @@ -392,7 +392,7 @@ Starts the mining process. Throws an error if pubkey or content is not set. > **stop**(): `void` -Defined in: [index.ts:221](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L221) +Defined in: [index.ts:221](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L221) Stops the mining process diff --git a/docs/docs/api/wrapper/interfaces/BestPowData.md b/docs/docs/api/wrapper/interfaces/BestPowData.md index df41b09..4376f31 100644 --- a/docs/docs/api/wrapper/interfaces/BestPowData.md +++ b/docs/docs/api/wrapper/interfaces/BestPowData.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: BestPowData -Defined in: [index.ts:50](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L50) +Defined in: [index.ts:50](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L50) Best proof-of-work data found so far @@ -18,7 +18,7 @@ Best proof-of-work data found so far > **bestPow**: `number` -Defined in: [index.ts:52](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L52) +Defined in: [index.ts:52](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L52) Best proof-of-work value @@ -28,7 +28,7 @@ Best proof-of-work value > **hash**: `string` -Defined in: [index.ts:56](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L56) +Defined in: [index.ts:56](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L56) Hash that met the proof-of-work requirements @@ -38,6 +38,6 @@ Hash that met the proof-of-work requirements > **nonce**: `string` -Defined in: [index.ts:54](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L54) +Defined in: [index.ts:54](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L54) Nonce used to achieve the proof-of-work diff --git a/docs/docs/api/wrapper/interfaces/CancelledEvent.md b/docs/docs/api/wrapper/interfaces/CancelledEvent.md index 6146961..1cc46d4 100644 --- a/docs/docs/api/wrapper/interfaces/CancelledEvent.md +++ b/docs/docs/api/wrapper/interfaces/CancelledEvent.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: CancelledEvent -Defined in: [index.ts:38](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L38) +Defined in: [index.ts:38](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L38) Data structure for reporting a cancelled mining event @@ -14,6 +14,6 @@ Data structure for reporting a cancelled mining event > `optional` **reason**: `string` -Defined in: [index.ts:40](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L40) +Defined in: [index.ts:40](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L40) Reason for the cancellation diff --git a/docs/docs/api/wrapper/interfaces/ErrorEvent.md b/docs/docs/api/wrapper/interfaces/ErrorEvent.md index d43d745..191f43a 100644 --- a/docs/docs/api/wrapper/interfaces/ErrorEvent.md +++ b/docs/docs/api/wrapper/interfaces/ErrorEvent.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: ErrorEvent -Defined in: [index.ts:30](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L30) +Defined in: [index.ts:30](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L30) Data structure for reporting an error event @@ -14,7 +14,7 @@ Data structure for reporting an error event > **error**: `any` -Defined in: [index.ts:32](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L32) +Defined in: [index.ts:32](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L32) The error that occurred @@ -24,6 +24,6 @@ The error that occurred > `optional` **message**: `string` -Defined in: [index.ts:34](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L34) +Defined in: [index.ts:34](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L34) Optional message with more details about the error diff --git a/docs/docs/api/wrapper/interfaces/MinedResult.md b/docs/docs/api/wrapper/interfaces/MinedResult.md index 39bbce6..1ad9969 100644 --- a/docs/docs/api/wrapper/interfaces/MinedResult.md +++ b/docs/docs/api/wrapper/interfaces/MinedResult.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: MinedResult -Defined in: [index.ts:66](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L66) +Defined in: [index.ts:66](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L66) Data structure representing a mined event result @@ -14,7 +14,7 @@ Data structure representing a mined event result > **event**: `any` -Defined in: [index.ts:68](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L68) +Defined in: [index.ts:68](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L68) The mined event data @@ -24,7 +24,7 @@ The mined event data > **hashRate**: `number` -Defined in: [index.ts:72](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L72) +Defined in: [index.ts:72](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L72) Hash rate achieved during mining @@ -34,6 +34,6 @@ Hash rate achieved during mining > **totalTime**: `number` -Defined in: [index.ts:70](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L70) +Defined in: [index.ts:70](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L70) Total time taken to mine (in milliseconds) diff --git a/docs/docs/api/wrapper/interfaces/MinerOptions.md b/docs/docs/api/wrapper/interfaces/MinerOptions.md index 4a45544..c83efd6 100644 --- a/docs/docs/api/wrapper/interfaces/MinerOptions.md +++ b/docs/docs/api/wrapper/interfaces/MinerOptions.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: MinerOptions -Defined in: [index.ts:6](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L6) +Defined in: [index.ts:6](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L6) Options for configuring the miner @@ -14,7 +14,7 @@ Options for configuring the miner > `optional` **content**: `string` -Defined in: [index.ts:8](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L8) +Defined in: [index.ts:8](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L8) The content to include in the mined event @@ -24,7 +24,7 @@ The content to include in the mined event > `optional` **difficulty**: `number` -Defined in: [index.ts:14](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L14) +Defined in: [index.ts:14](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L14) Difficulty level for mining @@ -34,7 +34,7 @@ Difficulty level for mining > `optional` **numberOfWorkers**: `number` -Defined in: [index.ts:16](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L16) +Defined in: [index.ts:16](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L16) Number of workers to use for mining @@ -44,7 +44,7 @@ Number of workers to use for mining > `optional` **pubkey**: `string` -Defined in: [index.ts:12](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L12) +Defined in: [index.ts:12](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L12) Public key used for the event @@ -54,6 +54,6 @@ Public key used for the event > `optional` **tags**: `string`[][] -Defined in: [index.ts:10](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L10) +Defined in: [index.ts:10](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L10) Tags associated with the mined event diff --git a/docs/docs/api/wrapper/interfaces/ProgressEvent.md b/docs/docs/api/wrapper/interfaces/ProgressEvent.md index c677c3c..052f088 100644 --- a/docs/docs/api/wrapper/interfaces/ProgressEvent.md +++ b/docs/docs/api/wrapper/interfaces/ProgressEvent.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: ProgressEvent -Defined in: [index.ts:20](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L20) +Defined in: [index.ts:20](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L20) Data structure representing a progress event during mining @@ -14,7 +14,7 @@ Data structure representing a progress event during mining > `optional` **bestPowData**: [`BestPowData`](BestPowData.md) -Defined in: [index.ts:26](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L26) +Defined in: [index.ts:26](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L26) Current best proof-of-work data @@ -24,7 +24,7 @@ Current best proof-of-work data > `optional` **hashRate**: `number` -Defined in: [index.ts:24](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L24) +Defined in: [index.ts:24](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L24) Current hash rate of the worker (in hashes per second) @@ -34,6 +34,6 @@ Current hash rate of the worker (in hashes per second) > **workerId**: `number` -Defined in: [index.ts:22](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L22) +Defined in: [index.ts:22](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L22) ID of the worker making progress diff --git a/docs/docs/api/wrapper/interfaces/SuccessEvent.md b/docs/docs/api/wrapper/interfaces/SuccessEvent.md index 9d130f9..001fc4a 100644 --- a/docs/docs/api/wrapper/interfaces/SuccessEvent.md +++ b/docs/docs/api/wrapper/interfaces/SuccessEvent.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: SuccessEvent -Defined in: [index.ts:44](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L44) +Defined in: [index.ts:44](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L44) Data structure for reporting a successful mining event @@ -14,6 +14,6 @@ Data structure for reporting a successful mining event > **result**: `null` \| [`MinedResult`](MinedResult.md) -Defined in: [index.ts:46](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L46) +Defined in: [index.ts:46](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L46) The result of the mining operation diff --git a/docs/docs/api/wrapper/interfaces/WorkerPow.md b/docs/docs/api/wrapper/interfaces/WorkerPow.md index 9673b65..a346cf4 100644 --- a/docs/docs/api/wrapper/interfaces/WorkerPow.md +++ b/docs/docs/api/wrapper/interfaces/WorkerPow.md @@ -1,10 +1,10 @@ -[**@notemine/wrapper API v0.0.7**](../README.md) +[**@notemine/wrapper API v0.1.0**](../README.md) *** # Interface: WorkerPow -Defined in: [index.ts:60](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L60) +Defined in: [index.ts:60](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L60) Proof-of-work data including worker information @@ -18,7 +18,7 @@ Proof-of-work data including worker information > **bestPow**: `number` -Defined in: [index.ts:52](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L52) +Defined in: [index.ts:52](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L52) Best proof-of-work value @@ -32,7 +32,7 @@ Best proof-of-work value > **hash**: `string` -Defined in: [index.ts:56](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L56) +Defined in: [index.ts:56](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L56) Hash that met the proof-of-work requirements @@ -46,7 +46,7 @@ Hash that met the proof-of-work requirements > **nonce**: `string` -Defined in: [index.ts:54](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L54) +Defined in: [index.ts:54](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L54) Nonce used to achieve the proof-of-work @@ -60,6 +60,6 @@ Nonce used to achieve the proof-of-work > `optional` **workerId**: `number` -Defined in: [index.ts:62](https://github.com/sandwichfarm/minnote-wasm/blob/c53ea6e3fe1020d36f0ea791d4601bdf2a247981/packages/wrapper/src/index.ts#L62) +Defined in: [index.ts:62](https://github.com/sandwichfarm/minnote-wasm/blob/41b3a43b3f031ef371ed1ca6da826ba1065c7889/packages/wrapper/src/index.ts#L62) ID of the worker who found this proof-of-work diff --git a/docs/docs/packages/_index.md b/docs/docs/packages/_index.md index 346720d..61fe5f3 100644 --- a/docs/docs/packages/_index.md +++ b/docs/docs/packages/_index.md @@ -1,24 +1,33 @@ # notemine⛏️ -**notemine** mines nostr notes, is written in rust, targets web and compiles to wasm. Variable difficulty and realtime hashrate. There's some [demos](https://sandwichfarm.github.io/notemine). +**notemine** mines nostr notes, the miner is written in rust, targets web and compiles to wasm. Variable difficulty and realtime hashrate. There's some [demos](https://sandwichfarm.github.io/notemine). There are [low-level js wasm bindings](./packages/core/) and an [easy-to-use typescript wrapper](./packages/wrapper/) ## Packages: -- [`@notemine/core`](./packages/core/) - It is in here you find the `rust` source for the moner. Build step generates JS Bindings, type declarations and wasm file via `wasm-bindgen`. The base of all packages in this monorepo. +- [`@notemine/rust`](./packages/rust/) - Rust source code for miner and build scripts. +- [`@notemine/core`](./packages/core/) - This package contains the `wasm-bindgen` build artifacts from `@notemine/rust`. This is a low-level interface for the Notemine WASM miner. - [`@notemine/wrapper`](./packages/wrapper/) - A user-friendly wrapper for `@notemine/core` that greatly simplifies usage in modern stacks and deployments with modern bundlers. Provides observables, manages workers, tracks internal state and bundles wasm as _inline base64_ within _inline_ web-workers for hassle-free use in modern apps targeted for the browser. - _[`@notemine/svelte`](./packages/svelte/)_ [coming soon] - Library optimized for Svelte that exports stores and components for hassle-free use in svelte projects. - _[`@notemine/reactjs`](./packages/reactjs/)_ [coming soon] - Library optimized for ReactJS that exports stores and components for hassle-free use in svelte projects. ## Demos: -- [`@notemine/vanilla-js-demo`](./demos/vanilla-js/) - Demo of Notemine written with vanilla Javascript, HTML and CSS that implements `@notemine/core`. No bundlers. -- [`@notemine/svelte-demo`](./demos/svelte/) - Vanilla JS Demo Ported to Svelte that implements `@notemine/wrapper` (note: future version will implement `@notemine/svelte`) +- [`@notemine/vanilla-js-demo`](./demos/vanilla-js-demo/) - Demo of Notemine written with vanilla Javascript, HTML and CSS that implements `@notemine/core`. No bundlers. +- [`@notemine/svelte-demo`](./demos/svelte-demo/) - Vanilla JS Demo Ported to Svelte that implements `@notemine/wrapper` (note: future version will implement `@notemine/svelte`) -## Contrib -`@notemine` monorepo presently uses `pnpm workspaces` without any monorepo toolkit (pending). Recommended to use `pnpm v2` until monorepo is fully configured. +## Forks: +- [`notemine-hw`](https://github.com/plebemineira/notemine_hw) is a fork of `@notemine/rust` ported to a cli application that leverages hardware acceleration + +## Build +Will build all packages. ``` pnpm install ``` +Install without building all packages +``` +pnpm install --ignore-scripts +``` + Use workspace commands: ``` -pnpm workspace @notemine/wrapper ... +pnpm --filter @notemine/wrapper ... ``` diff --git a/docs/docs/packages/core.md b/docs/docs/packages/core.md index 5f89d97..83ee17d 100644 --- a/docs/docs/packages/core.md +++ b/docs/docs/packages/core.md @@ -1,15 +1,18 @@ -# note⛏️ -**notemine** mines nostr notes, is written in rust, targets web and compiles to wasm. Variable difficulty and realtime hashrate. There's a [demo](https://sandwichfarm.github.io/notemine). +> Note: You most likely want to use [`@notemine/wrapper`](https://github.com/sandwichfarm/notemine/tree/master/packages/wrapper) + +# @notemine/core +[![npm](https://img.shields.io/npm/v/@notemine/core)](https://www.npmjs.com/package/@notemine/core) + +WASM js bindings for Notemine. # related -- [`notemine-js`](https://github.com/sandwichfarm/notemine-js) is an npm module that wraps this package with observables for use with modern stacks. -- [`notemine-hw`](https://github.com/plebemineira/notemine_hw) is a fork ported to a cli application that leverages hardware acceleration +- [`@notemine/wrapper`](https://github.com/sandwichfarm/notemine/tree/master/packages/wrapper) - A user-friendly wrapper for `@notemine/core` that greatly simplifies usage in modern stacks and deployments with modern bundlers. Provides observables, manages workers, tracks internal state and bundles wasm as _inline base64_ within _inline_ web-workers for hassle-free use in modern apps targeted for the browser. +- [`@notemine/vanilla-js-demo`](https://github.com/sandwichfarm/notemine/tree/master/demos/vanilla-js-demo) is a demo written with HTML, Vanilla JS and CSS, with no bundlers, that implements `@notemine/core` +- [`@notemine/svelte-demo`](https://github.com/sandwichfarm/notemine/tree/master/demos/svelte-demo) is a demo built with `svelte` and `vite` that implements `@notemine/wrapper` # install ```js -npm install notemine -pnpm install notemine -pnpm add notemine +pnpm install @notemine/core ``` # usage @@ -57,22 +60,7 @@ await init({}); ``` # build - -## deps -``` -cargo install wasm-pack -``` - -## build -``` -cargo clean -wasm-pack build --target web --release -``` - -## run demo -``` -cd demo && npx serve -``` +Refer to the [Readme on Github](https://github.com/sandwichfarm/notemine/tree/master/packages/core) for WASM build instructions # license GNU General Public License v3.0 \ No newline at end of file diff --git a/docs/docs/packages/wrapper.md b/docs/docs/packages/wrapper.md index b41727f..4498b27 100644 --- a/docs/docs/packages/wrapper.md +++ b/docs/docs/packages/wrapper.md @@ -1,12 +1,18 @@ # @notemine/wrapper -[![npm](https://img.shields.io/npm/v/notemine)]( https://www.npmjs.com/package/notemine ) +[![npm](https://img.shields.io/npm/v/@notemine/wrapper)](https://www.npmjs.com/package/@notemine/wrapper) [![build](https://github.com/sandwichfarm/notemine/actions/workflows/publish-packages.yml/badge.svg)]( https://github.com/sandwichfarm/notemine/actions/workflows/publish-packages.yml ) [![docs](https://github.com/sandwichfarm/notemine/actions/workflows/docs.yml/badge.svg)]( https://github.com/sandwichfarm/notemine/actions/workflows/docs.yml ) `@notemine/wrapper` is a typescript module that wraps [@notemine/core](../core/README.md) `wasm-bindgen` interfaces. More convenient and has added observables for more consistent use throughout modern web stacks. +# related +- [`@notemine/core`](https://github.com/sandwichfarm/notemine/tree/master/packages/core) is the low-level js bindings and interface for Notemine wasm. +- [`@notemine/vanilla-js-demo`](https://github.com/sandwichfarm/notemine/tree/master/demos/vanilla-js-demo) is a demo written with HTML, Vanilla JS and CSS, with no bundlers, that implements `@notemine/core` +- [`@notemine/svelte-demo`](https://github.com/sandwichfarm/notemine/tree/master/demos/svelte-demo) is a demo built with `svelte` and `vite` that implements `@notemine/wrapper` +- [`@notemine/rust`](https://github.com/sandwichfarm/notemine/tree/master/packages/rust) is the rust source code for `notemine`. + ## install package name: `@notemine/wrapper` diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md new file mode 100644 index 0000000..b68ca77 --- /dev/null +++ b/packages/core/CHANGELOG.md @@ -0,0 +1,7 @@ +# @notemine/core + +## 0.4.0 + +### Minor Changes + +- Removed @notemine/rust, moved Rust source to @notemine/core, optimized package.json, added deps install script in prepare with confirm and overrides diff --git a/packages/core/README.md b/packages/core/README.md index 31d1242..83ee17d 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -1,6 +1,8 @@ > Note: You most likely want to use [`@notemine/wrapper`](https://github.com/sandwichfarm/notemine/tree/master/packages/wrapper) # @notemine/core +[![npm](https://img.shields.io/npm/v/@notemine/core)](https://www.npmjs.com/package/@notemine/core) + WASM js bindings for Notemine. # related diff --git a/packages/core/package.json b/packages/core/package.json index f084595..f96345c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -30,7 +30,6 @@ } }, "scripts": { - "prepare": "pnpm build", "build": "./scripts/build.sh", "publish:rust": "./scripts/publish.sh", "publish:js": "./scripts/publish-js.sh" diff --git a/packages/wrapper/CHANGELOG.md b/packages/wrapper/CHANGELOG.md new file mode 100644 index 0000000..d836bb1 --- /dev/null +++ b/packages/wrapper/CHANGELOG.md @@ -0,0 +1,12 @@ +# @notemine/wrapper + +## 0.1.0 + +### Minor Changes + +- Removed @notemine/rust, moved Rust source to @notemine/core, optimized package.json, added deps install script in prepare with confirm and overrides + +### Patch Changes + +- Updated dependencies + - @notemine/core@0.4.0 diff --git a/packages/wrapper/README.md b/packages/wrapper/README.md index 20546a8..4498b27 100644 --- a/packages/wrapper/README.md +++ b/packages/wrapper/README.md @@ -1,6 +1,6 @@ # @notemine/wrapper -[![npm](https://img.shields.io/npm/v/notemine)]( https://www.npmjs.com/package/notemine ) +[![npm](https://img.shields.io/npm/v/@notemine/wrapper)](https://www.npmjs.com/package/@notemine/wrapper) [![build](https://github.com/sandwichfarm/notemine/actions/workflows/publish-packages.yml/badge.svg)]( https://github.com/sandwichfarm/notemine/actions/workflows/publish-packages.yml ) [![docs](https://github.com/sandwichfarm/notemine/actions/workflows/docs.yml/badge.svg)]( https://github.com/sandwichfarm/notemine/actions/workflows/docs.yml ) diff --git a/packages/wrapper/package.json b/packages/wrapper/package.json index 7478d9c..87c2ca0 100644 --- a/packages/wrapper/package.json +++ b/packages/wrapper/package.json @@ -1,6 +1,6 @@ { "name": "@notemine/wrapper", - "version": "1.0.0", + "version": "0.1.0", "author": "bread@sandwich.farm", "description": "Nostr note miner wrapper for notemine wasm-bindgen", "repository": "https://github.com/sandwichfarm/notemine", @@ -15,7 +15,6 @@ "clean": "rimraf dist", "build:types": "tsc --project tsconfig.json --emitDeclarationOnly", "build": "pnpm clean && pnpm build:types && node build.js", - "prepare": "pnpm build", "dev": "node build.js", "test": "vitest" }, diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index c5d5129..df5f847 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,6 @@ packages: - "packages/core" - "packages/wrapper" - - "docs" + # - "docs" - "demos/vanilla-js-demo" - "demos/svelte-demo" \ No newline at end of file