@notedge/panduck-unknown-wasm32 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/README.md CHANGED
@@ -1,3 +1,22 @@
1
1
  # panduck-wasm
2
2
 
3
- WebAssembly bindings for Panduck. Packaged for npm as `@notedge/panduck-unknown-wasm32`.
3
+ WebAssembly bindings for Panduck. Packaged for npm as `@notedge/panduck-unknown-wasm32` and loaded through `@notedge/panduck/wasm`.
4
+
5
+ ## ✅ This release
6
+
7
+ - Version metadata
8
+ - `supportedFormats` / format discovery helpers
9
+
10
+ ## 🚫 Not on WASM surface
11
+
12
+ `convertDocument` and file-path conversion are **not** exported to browser hosts in the current binding. Node native (`panduck-napi`) performs file conversion.
13
+
14
+ ## 🛠 Build
15
+
16
+ ```bash
17
+ pnpm run build:wasm
18
+ ```
19
+
20
+ Output lands in `projects/packages/panduck-unknown-wasm32/lib/` for npm publishing.
21
+
22
+ License: MPL-2.0
package/lib/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Aster <192607617@qq.com>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for Panduck document conversion",
8
- "version": "0.0.1",
8
+ "version": "0.0.2",
9
9
  "license": "MPL-2.0",
10
10
  "repository": {
11
11
  "type": "git",
Binary file
package/package.json CHANGED
@@ -1,16 +1,14 @@
1
1
  {
2
2
  "name": "@notedge/panduck-unknown-wasm32",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Panduck wasm-pack artifact for wasm32-unknown-unknown",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
7
- "cpu": [
8
- "wasm32"
9
- ],
10
7
  "main": "./lib/panduck_wasm.js",
11
8
  "types": "./lib/panduck_wasm.d.ts",
12
9
  "files": [
13
- "lib"
10
+ "lib",
11
+ "readme.md"
14
12
  ],
15
13
  "sideEffects": [
16
14
  "./lib/panduck_wasm.js"
package/readme.md CHANGED
@@ -1,3 +1,41 @@
1
1
  # @notedge/panduck-unknown-wasm32
2
2
 
3
- WebAssembly build output from `panduck-wasm`. Run `pnpm run build:wasm` at the repo root to populate `lib/`.
3
+ WebAssembly build of Panduck for **browser and Worker** hosts. `@notedge/panduck` depends on this package for the `@notedge/panduck/wasm` entry point.
4
+
5
+ ## 📦 Role in the stack
6
+
7
+ ```bash
8
+ npm install @notedge/panduck
9
+ ```
10
+
11
+ ```ts
12
+ import { loadPanduckWasm } from "@notedge/panduck/wasm";
13
+
14
+ const panduck = await loadPanduckWasm();
15
+ console.log(panduck.panduckVersion?.());
16
+ console.log(panduck.supportedFormats?.());
17
+ ```
18
+
19
+ **This release:** format discovery and version metadata only. There is no `convertDocument` on the WASM surface. Run file conversion through `@notedge/panduck/node` on Node 20+.
20
+
21
+ ## 🛠 Build from source
22
+
23
+ Clone https://github.com/notedge/panduck and populate `lib/`:
24
+
25
+ ```bash
26
+ pnpm install
27
+ pnpm run build:wasm
28
+ ```
29
+
30
+ Published tarballs include prebuilt `lib/panduck_wasm.js` and the `.wasm` artifact.
31
+
32
+ ## 🔧 Troubleshooting
33
+
34
+ | Symptom | Check |
35
+ |---------|-------|
36
+ | WASM loads but convert is missing | Expected—use Node native binding for conversion |
37
+ | `lib/` empty in a git checkout | Run `pnpm run build:wasm` before importing locally |
38
+
39
+ Main package: https://www.npmjs.com/package/@notedge/panduck
40
+
41
+ License: MPL-2.0