@diaryx/wasm-node 1.4.4-dev.6acf600 → 1.4.5-dev.59aae45

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/README.md CHANGED
@@ -20,6 +20,23 @@ To build the WebAssembly module:
20
20
  wasm-pack build --target web --out-dir ../../apps/web/src/lib/wasm
21
21
  ```
22
22
 
23
+ Or via xtask (recommended, runs `wasm-opt -Oz` afterwards):
24
+
25
+ ```bash
26
+ cargo xtask build-wasm # production (smallest binary)
27
+ cargo xtask build-wasm --panic-hook # dev (enables console_error_panic_hook)
28
+ ```
29
+
30
+ ### Cargo features
31
+
32
+ - `browser` (default) — enable OPFS, IndexedDB, and File System Access
33
+ Storage backends plus the `web-sys` APIs they need.
34
+ - `panic-hook` (off by default) — install `console_error_panic_hook` so
35
+ Rust panics render readable stack traces in the browser devtools. Adds a
36
+ small amount of WASM code, so it's opt-in and only recommended for
37
+ debug/dev builds. Pass `--features panic-hook` to `wasm-pack` or
38
+ `--panic-hook` to `cargo xtask build-wasm`.
39
+
23
40
  ## Testing
24
41
 
25
42
  Run browser filesystem integration tests (wasm + browser):
package/diaryx_wasm.js CHANGED
@@ -771,7 +771,7 @@ function __wbg_get_imports() {
771
771
  console.warn(arg0, arg1, arg2, arg3);
772
772
  },
773
773
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
774
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 597, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
774
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 613, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
775
775
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7174ba9de949bff3);
776
776
  return ret;
777
777
  },
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@diaryx/wasm-node",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for Diaryx core functionality",
5
- "version": "1.4.4-dev.6acf600",
5
+ "version": "1.4.5-dev.59aae45",
6
6
  "license": "SEE LICENSE IN ../../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",