@diaryx/wasm-node 1.4.0-dev.771786b → 1.4.0-dev.85020a2

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
@@ -4,8 +4,7 @@ description: WASM bindings for diaryx_core
4
4
  part_of: '[README](/crates/README.md)'
5
5
  audience:
6
6
  - developers
7
- contents:
8
- - '[README](/crates/diaryx_wasm/src/README.md)'
7
+ contents: []
9
8
  attachments:
10
9
  - '[Cargo.toml](/crates/diaryx_wasm/Cargo.toml)'
11
10
  - '[build.rs](/crates/diaryx_wasm/build.rs)'
@@ -51,6 +50,18 @@ Current filesystem test suites live in:
51
50
  which provides a unified command API (`execute()`/`executeJs()`) backed by native
52
51
  browser storage (OPFS, IndexedDB, File System Access API).
53
52
 
53
+ The crate's `build.rs` is intentionally self-contained and does not link
54
+ `diaryx_core` as a native build-dependency; it only strips frontmatter from the
55
+ crate README before embedding it. That keeps `wasm-pack` host-tool builds
56
+ lighter and avoids pulling the full core crate into the native build-script
57
+ link step.
58
+
59
+ On macOS, the surrounding build should also prefer the Xcode host linker
60
+ (`/usr/bin/cc`) for native build scripts and proc-macro helpers. Mixing Rust's
61
+ host artifacts with a Nix cc-wrapper / Nix-provided libiconv without the
62
+ matching Apple SDK can break even third-party build scripts before wasm
63
+ compilation starts.
64
+
54
65
  Sync and publish functionality are provided by Extism guest plugins
55
66
  (`diaryx_sync.wasm`, `diaryx_publish.wasm`) loaded at runtime by the browser
56
67
  plugin manager. CRDT commands are routed to the sync plugin via the frontend
package/diaryx_wasm.d.ts CHANGED
@@ -307,9 +307,9 @@ export interface InitOutput {
307
307
  readonly today_formatted: (a: number, b: number) => [number, number];
308
308
  readonly init: () => void;
309
309
  readonly diaryxbackend_isCrdtEnabled: (a: number) => number;
310
- readonly wasm_bindgen__closure__destroy__h89cb80d21d3bc312: (a: number, b: number) => void;
311
- readonly wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8: (a: number, b: number, c: any) => [number, number];
312
- readonly wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440: (a: number, b: number, c: any, d: any) => void;
310
+ readonly wasm_bindgen__closure__destroy__hc0ecfed3f77ea255: (a: number, b: number) => void;
311
+ readonly wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e: (a: number, b: number, c: any) => [number, number];
312
+ readonly wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930: (a: number, b: number, c: any, d: any) => void;
313
313
  readonly __wbindgen_malloc: (a: number, b: number) => number;
314
314
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
315
315
  readonly __wbindgen_exn_store: (a: number) => void;
package/diaryx_wasm.js CHANGED
@@ -607,7 +607,7 @@ function __wbg_get_imports() {
607
607
  const a = state0.a;
608
608
  state0.a = 0;
609
609
  try {
610
- return wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440(a, state0.b, arg0, arg1);
610
+ return wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930(a, state0.b, arg0, arg1);
611
611
  } finally {
612
612
  state0.a = a;
613
613
  }
@@ -697,8 +697,8 @@ function __wbg_get_imports() {
697
697
  console.warn(arg0, arg1, arg2, arg3);
698
698
  },
699
699
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
700
- // Cast intrinsic for `Closure(Closure { dtor_idx: 413, function: Function { arguments: [Externref], shim_idx: 414, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
701
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h89cb80d21d3bc312, wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8);
700
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 434, function: Function { arguments: [Externref], shim_idx: 435, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
701
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc0ecfed3f77ea255, wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e);
702
702
  return ret;
703
703
  },
704
704
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -737,15 +737,15 @@ function __wbg_get_imports() {
737
737
  };
738
738
  }
739
739
 
740
- function wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8(arg0, arg1, arg2) {
741
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8(arg0, arg1, arg2);
740
+ function wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e(arg0, arg1, arg2) {
741
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e(arg0, arg1, arg2);
742
742
  if (ret[1]) {
743
743
  throw takeFromExternrefTable0(ret[0]);
744
744
  }
745
745
  }
746
746
 
747
- function wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440(arg0, arg1, arg2, arg3) {
748
- wasm.wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440(arg0, arg1, arg2, arg3);
747
+ function wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930(arg0, arg1, arg2, arg3) {
748
+ wasm.wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930(arg0, arg1, arg2, arg3);
749
749
  }
750
750
 
751
751
  const DiaryxBackendFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
@@ -22,9 +22,9 @@ export const now_timestamp: () => [number, number];
22
22
  export const today_formatted: (a: number, b: number) => [number, number];
23
23
  export const init: () => void;
24
24
  export const diaryxbackend_isCrdtEnabled: (a: number) => number;
25
- export const wasm_bindgen__closure__destroy__h89cb80d21d3bc312: (a: number, b: number) => void;
26
- export const wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8: (a: number, b: number, c: any) => [number, number];
27
- export const wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440: (a: number, b: number, c: any, d: any) => void;
25
+ export const wasm_bindgen__closure__destroy__hc0ecfed3f77ea255: (a: number, b: number) => void;
26
+ export const wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e: (a: number, b: number, c: any) => [number, number];
27
+ export const wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930: (a: number, b: number, c: any, d: any) => void;
28
28
  export const __wbindgen_malloc: (a: number, b: number) => number;
29
29
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
30
30
  export const __wbindgen_exn_store: (a: number) => void;
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.0-dev.771786b",
5
+ "version": "1.4.0-dev.85020a2",
6
6
  "license": "SEE LICENSE IN ../../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",