@diaryx/wasm-node 0.14.1-dev.edddcd2 → 1.0.0-dev.6cb0e0b

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,16 +5,15 @@ 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
-
18
17
  # diaryx_wasm
19
18
 
20
19
  WebAssembly bindings for `diaryx_core`, used by the web frontend in `apps/web`.
@@ -50,19 +49,21 @@ Current filesystem test suites live in:
50
49
 
51
50
  The crate provides typed class-based APIs that wrap `diaryx_core` functionality:
52
51
 
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) |
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
+
66
67
 
67
68
  ### In-Memory Filesystem
68
69
 
@@ -352,11 +353,13 @@ await diaryx.executeJs({
352
353
 
353
354
  CRDT operations use `doc_type` to specify which document to operate on:
354
355
 
355
- | doc_type | doc_name | Description |
356
- | ----------- | --------- | ---------------------------------------- |
357
- | `workspace` | `null` | The workspace file hierarchy metadata |
356
+
357
+ | doc_type | doc_name | Description |
358
+ | ----------- | --------- | ------------------------------------------ |
359
+ | `workspace` | `null` | The workspace file hierarchy metadata |
358
360
  | `body` | file path | Per-file body content (e.g., `notes/a.md`) |
359
361
 
362
+
360
363
  ## Error Handling
361
364
 
362
365
  All methods return `Result<T, JsValue>` for JavaScript interop. Errors are converted to JavaScript exceptions with descriptive messages.
package/diaryx_wasm.d.ts CHANGED
@@ -459,12 +459,12 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
459
459
 
460
460
  export interface InitOutput {
461
461
  readonly memory: WebAssembly.Memory;
462
+ readonly now_timestamp: () => [number, number];
463
+ readonly today_formatted: (a: number, b: number) => [number, number];
462
464
  readonly __wbg_jsasyncfilesystem_free: (a: number, b: number) => void;
463
465
  readonly jsasyncfilesystem_has_callback: (a: number, b: number, c: number) => number;
464
466
  readonly jsasyncfilesystem_new: (a: any) => number;
465
467
  readonly init: () => void;
466
- readonly now_timestamp: () => [number, number];
467
- readonly today_formatted: (a: number, b: number) => [number, number];
468
468
  readonly __wbg_diaryxbackend_free: (a: number, b: number) => void;
469
469
  readonly __wbg_wasmsyncclient_free: (a: number, b: number) => void;
470
470
  readonly diaryxbackend_create: (a: number, b: number) => any;
package/diaryx_wasm.js CHANGED
@@ -1003,7 +1003,7 @@ function __wbg_get_imports() {
1003
1003
  console.warn(arg0, arg1, arg2, arg3);
1004
1004
  },
1005
1005
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1006
- // Cast intrinsic for `Closure(Closure { dtor_idx: 611, function: Function { arguments: [Externref], shim_idx: 612, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1006
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 614, function: Function { arguments: [Externref], shim_idx: 615, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1007
1007
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h358403ff5b31de35, wasm_bindgen__convert__closures_____invoke__h4b881ac518a5291a);
1008
1008
  return ret;
1009
1009
  },
Binary file
@@ -1,12 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const now_timestamp: () => [number, number];
5
+ export const today_formatted: (a: number, b: number) => [number, number];
4
6
  export const __wbg_jsasyncfilesystem_free: (a: number, b: number) => void;
5
7
  export const jsasyncfilesystem_has_callback: (a: number, b: number, c: number) => number;
6
8
  export const jsasyncfilesystem_new: (a: any) => number;
7
9
  export const init: () => void;
8
- export const now_timestamp: () => [number, number];
9
- export const today_formatted: (a: number, b: number) => [number, number];
10
10
  export const __wbg_diaryxbackend_free: (a: number, b: number) => void;
11
11
  export const __wbg_wasmsyncclient_free: (a: number, b: number) => void;
12
12
  export const diaryxbackend_create: (a: number, b: number) => any;
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.edddcd2",
5
+ "version": "1.0.0-dev.6cb0e0b",
6
6
  "license": "SEE LICENSE IN ../../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",