@diaryx/wasm-node 0.14.1-dev.e1611e0 → 0.14.1

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
@@ -5,15 +5,16 @@ part_of: '[README](/crates/README.md)'
5
5
  audience:
6
6
  - developers
7
7
  contents:
8
- - '[README](/crates/diaryx_wasm/src/README.md)'
8
+ - '[README](/crates/diaryx_wasm/src/README.md)'
9
9
  attachments:
10
- - '[Cargo.toml](/crates/diaryx_wasm/Cargo.toml)'
11
- - '[build.rs](/crates/diaryx_wasm/build.rs)'
10
+ - '[Cargo.toml](/crates/diaryx_wasm/Cargo.toml)'
11
+ - '[build.rs](/crates/diaryx_wasm/build.rs)'
12
12
  exclude:
13
- - '*.lock'
14
- - '*.db'
15
- - pkg/**
13
+ - '*.lock'
14
+ - '*.db'
15
+ - 'pkg/**'
16
16
  ---
17
+
17
18
  # diaryx_wasm
18
19
 
19
20
  WebAssembly bindings for `diaryx_core`, used by the web frontend in `apps/web`.
@@ -49,21 +50,19 @@ Current filesystem test suites live in:
49
50
 
50
51
  The crate provides typed class-based APIs that wrap `diaryx_core` functionality:
51
52
 
52
-
53
- | Class | Purpose |
54
- | ----------------------- | ----------------------------------------- |
55
- | `DiaryxWorkspace` | Workspace tree operations |
56
- | `DiaryxEntry` | Entry CRUD operations |
57
- | `DiaryxFrontmatter` | Frontmatter manipulation |
58
- | `DiaryxSearch` | Workspace search |
59
- | `DiaryxTemplate` | Template management |
60
- | `DiaryxValidation` | Link integrity validation and fixing |
61
- | `DiaryxExport` | Export with audience filtering |
62
- | `DiaryxAttachment` | Attachment upload/download |
63
- | `DiaryxFilesystem` | Low-level filesystem operations (sync) |
64
- | `DiaryxAsyncFilesystem` | Async filesystem operations with Promises |
65
- | `Diaryx` | Unified command API (includes CRDT ops) |
66
-
53
+ | Class | Purpose |
54
+ | ------------------------ | ----------------------------------------- |
55
+ | `DiaryxWorkspace` | Workspace tree operations |
56
+ | `DiaryxEntry` | Entry CRUD operations |
57
+ | `DiaryxFrontmatter` | Frontmatter manipulation |
58
+ | `DiaryxSearch` | Workspace search |
59
+ | `DiaryxTemplate` | Template management |
60
+ | `DiaryxValidation` | Link integrity validation and fixing |
61
+ | `DiaryxExport` | Export with audience filtering |
62
+ | `DiaryxAttachment` | Attachment upload/download |
63
+ | `DiaryxFilesystem` | Low-level filesystem operations (sync) |
64
+ | `DiaryxAsyncFilesystem` | Async filesystem operations with Promises |
65
+ | `Diaryx` | Unified command API (includes CRDT ops) |
67
66
 
68
67
  ### In-Memory Filesystem
69
68
 
@@ -353,13 +352,11 @@ await diaryx.executeJs({
353
352
 
354
353
  CRDT operations use `doc_type` to specify which document to operate on:
355
354
 
356
-
357
- | doc_type | doc_name | Description |
358
- | ----------- | --------- | ------------------------------------------ |
359
- | `workspace` | `null` | The workspace file hierarchy metadata |
355
+ | doc_type | doc_name | Description |
356
+ | ----------- | --------- | ---------------------------------------- |
357
+ | `workspace` | `null` | The workspace file hierarchy metadata |
360
358
  | `body` | file path | Per-file body content (e.g., `notes/a.md`) |
361
359
 
362
-
363
360
  ## Error Handling
364
361
 
365
362
  All methods return `Result<T, JsValue>` for JavaScript interop. Errors are converted to JavaScript exceptions with descriptive messages.
package/diaryx_wasm.d.ts CHANGED
@@ -462,6 +462,9 @@ export interface InitOutput {
462
462
  readonly __wbg_jsasyncfilesystem_free: (a: number, b: number) => void;
463
463
  readonly jsasyncfilesystem_has_callback: (a: number, b: number, c: number) => number;
464
464
  readonly jsasyncfilesystem_new: (a: any) => number;
465
+ readonly init: () => void;
466
+ readonly now_timestamp: () => [number, number];
467
+ readonly today_formatted: (a: number, b: number) => [number, number];
465
468
  readonly __wbg_diaryxbackend_free: (a: number, b: number) => void;
466
469
  readonly __wbg_wasmsyncclient_free: (a: number, b: number) => void;
467
470
  readonly diaryxbackend_create: (a: number, b: number) => any;
@@ -497,9 +500,6 @@ export interface InitOutput {
497
500
  readonly wasmsyncclient_queueLocalUpdate: (a: number, b: number, c: number, d: number, e: number) => any;
498
501
  readonly wasmsyncclient_setSessionCode: (a: number, b: number, c: number) => void;
499
502
  readonly wasmsyncclient_unfocusFiles: (a: number, b: number, c: number) => void;
500
- readonly init: () => void;
501
- readonly now_timestamp: () => [number, number];
502
- readonly today_formatted: (a: number, b: number) => [number, number];
503
503
  readonly wasm_bindgen__closure__destroy__h358403ff5b31de35: (a: number, b: number) => void;
504
504
  readonly wasm_bindgen__convert__closures_____invoke__h9824f9855d7aa260: (a: number, b: number, c: any, d: any) => void;
505
505
  readonly wasm_bindgen__convert__closures_____invoke__h4b881ac518a5291a: (a: number, b: number, c: any) => void;
Binary file
@@ -4,6 +4,9 @@ export const memory: WebAssembly.Memory;
4
4
  export const __wbg_jsasyncfilesystem_free: (a: number, b: number) => void;
5
5
  export const jsasyncfilesystem_has_callback: (a: number, b: number, c: number) => number;
6
6
  export const jsasyncfilesystem_new: (a: any) => number;
7
+ export const init: () => void;
8
+ export const now_timestamp: () => [number, number];
9
+ export const today_formatted: (a: number, b: number) => [number, number];
7
10
  export const __wbg_diaryxbackend_free: (a: number, b: number) => void;
8
11
  export const __wbg_wasmsyncclient_free: (a: number, b: number) => void;
9
12
  export const diaryxbackend_create: (a: number, b: number) => any;
@@ -39,9 +42,6 @@ export const wasmsyncclient_pollOutgoingText: (a: number) => [number, number];
39
42
  export const wasmsyncclient_queueLocalUpdate: (a: number, b: number, c: number, d: number, e: number) => any;
40
43
  export const wasmsyncclient_setSessionCode: (a: number, b: number, c: number) => void;
41
44
  export const wasmsyncclient_unfocusFiles: (a: number, b: number, c: number) => void;
42
- export const init: () => void;
43
- export const now_timestamp: () => [number, number];
44
- export const today_formatted: (a: number, b: number) => [number, number];
45
45
  export const wasm_bindgen__closure__destroy__h358403ff5b31de35: (a: number, b: number) => void;
46
46
  export const wasm_bindgen__convert__closures_____invoke__h9824f9855d7aa260: (a: number, b: number, c: any, d: any) => void;
47
47
  export const wasm_bindgen__convert__closures_____invoke__h4b881ac518a5291a: (a: number, b: number, c: any) => 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": "0.14.1-dev.e1611e0",
5
+ "version": "0.14.1",
6
6
  "license": "SEE LICENSE IN ../../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",