@diaryx/wasm-node 1.3.4-dev.b9dba71 → 1.4.0-dev.98aae90

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/diaryx_wasm.d.ts CHANGED
@@ -170,11 +170,6 @@ export class DiaryxBackend {
170
170
  * This avoids JSON serialization overhead for better performance.
171
171
  */
172
172
  executeJs(command: any): Promise<any>;
173
- /**
174
- * Get the current configuration from root index frontmatter.
175
- * Config keys are stored as `diaryx_*` properties.
176
- */
177
- getConfig(): Promise<any>;
178
173
  /**
179
174
  * Check if this backend has native sync support.
180
175
  * Always false — sync is handled by the Extism sync plugin loaded at runtime.
@@ -226,11 +221,6 @@ export class DiaryxBackend {
226
221
  * Returns data as Uint8Array for efficient handling without base64 encoding.
227
222
  */
228
223
  readBinary(path: string): Promise<any>;
229
- /**
230
- * Save configuration to root index frontmatter.
231
- * Config keys are stored as `diaryx_*` properties.
232
- */
233
- saveConfig(config_js: any): Promise<any>;
234
224
  /**
235
225
  * No-op — CrdtFs is not used; sync handled by Extism plugin.
236
226
  */
@@ -305,12 +295,10 @@ export interface InitOutput {
305
295
  readonly diaryxbackend_eventSubscriberCount: (a: number) => number;
306
296
  readonly diaryxbackend_execute: (a: number, b: number, c: number) => any;
307
297
  readonly diaryxbackend_executeJs: (a: number, b: any) => any;
308
- readonly diaryxbackend_getConfig: (a: number) => any;
309
298
  readonly diaryxbackend_hasNativeSync: (a: number) => number;
310
299
  readonly diaryxbackend_offFileSystemEvent: (a: number, b: bigint) => number;
311
300
  readonly diaryxbackend_onFileSystemEvent: (a: number, b: any) => bigint;
312
301
  readonly diaryxbackend_readBinary: (a: number, b: number, c: number) => any;
313
- readonly diaryxbackend_saveConfig: (a: number, b: any) => any;
314
302
  readonly diaryxbackend_setCrdtEnabled: (a: number, b: number) => void;
315
303
  readonly diaryxbackend_writeBinary: (a: number, b: number, c: number, d: any) => any;
316
304
  readonly jsasyncfilesystem_has_callback: (a: number, b: number, c: number) => number;
package/diaryx_wasm.js CHANGED
@@ -137,15 +137,6 @@ export class DiaryxBackend {
137
137
  const ret = wasm.diaryxbackend_executeJs(this.__wbg_ptr, command);
138
138
  return ret;
139
139
  }
140
- /**
141
- * Get the current configuration from root index frontmatter.
142
- * Config keys are stored as `diaryx_*` properties.
143
- * @returns {Promise<any>}
144
- */
145
- getConfig() {
146
- const ret = wasm.diaryxbackend_getConfig(this.__wbg_ptr);
147
- return ret;
148
- }
149
140
  /**
150
141
  * Check if this backend has native sync support.
151
142
  * Always false — sync is handled by the Extism sync plugin loaded at runtime.
@@ -222,16 +213,6 @@ export class DiaryxBackend {
222
213
  const ret = wasm.diaryxbackend_readBinary(this.__wbg_ptr, ptr0, len0);
223
214
  return ret;
224
215
  }
225
- /**
226
- * Save configuration to root index frontmatter.
227
- * Config keys are stored as `diaryx_*` properties.
228
- * @param {any} config_js
229
- * @returns {Promise<any>}
230
- */
231
- saveConfig(config_js) {
232
- const ret = wasm.diaryxbackend_saveConfig(this.__wbg_ptr, config_js);
233
- return ret;
234
- }
235
216
  /**
236
217
  * No-op — CrdtFs is not used; sync handled by Extism plugin.
237
218
  * @param {boolean} _enabled
@@ -649,10 +630,6 @@ function __wbg_get_imports() {
649
630
  const ret = arg0.next;
650
631
  return ret;
651
632
  },
652
- __wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
653
- const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
654
- return ret;
655
- }, arguments); },
656
633
  __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
657
634
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
658
635
  },
@@ -700,10 +677,6 @@ function __wbg_get_imports() {
700
677
  const ret = typeof window === 'undefined' ? null : window;
701
678
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
702
679
  },
703
- __wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
704
- const ret = JSON.stringify(arg0);
705
- return ret;
706
- }, arguments); },
707
680
  __wbg_then_098abe61755d12f6: function(arg0, arg1) {
708
681
  const ret = arg0.then(arg1);
709
682
  return ret;
@@ -724,7 +697,7 @@ function __wbg_get_imports() {
724
697
  console.warn(arg0, arg1, arg2, arg3);
725
698
  },
726
699
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
727
- // Cast intrinsic for `Closure(Closure { dtor_idx: 426, function: Function { arguments: [Externref], shim_idx: 427, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
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`.
728
701
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h89cb80d21d3bc312, wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8);
729
702
  return ret;
730
703
  },
Binary file
@@ -10,12 +10,10 @@ export const diaryxbackend_emitFileSystemEvent: (a: number, b: number, c: number
10
10
  export const diaryxbackend_eventSubscriberCount: (a: number) => number;
11
11
  export const diaryxbackend_execute: (a: number, b: number, c: number) => any;
12
12
  export const diaryxbackend_executeJs: (a: number, b: any) => any;
13
- export const diaryxbackend_getConfig: (a: number) => any;
14
13
  export const diaryxbackend_hasNativeSync: (a: number) => number;
15
14
  export const diaryxbackend_offFileSystemEvent: (a: number, b: bigint) => number;
16
15
  export const diaryxbackend_onFileSystemEvent: (a: number, b: any) => bigint;
17
16
  export const diaryxbackend_readBinary: (a: number, b: number, c: number) => any;
18
- export const diaryxbackend_saveConfig: (a: number, b: any) => any;
19
17
  export const diaryxbackend_setCrdtEnabled: (a: number, b: number) => void;
20
18
  export const diaryxbackend_writeBinary: (a: number, b: number, c: number, d: any) => any;
21
19
  export const jsasyncfilesystem_has_callback: (a: number, b: number, c: number) => number;
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.3.4-dev.b9dba71",
5
+ "version": "1.4.0-dev.98aae90",
6
6
  "license": "SEE LICENSE IN ../../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",