@perspective-dev/client 5.9.0 → 5.9.2

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.
@@ -1186,7 +1186,7 @@ export class Table {
1186
1186
  * [`Table::on_delete`] resolves when the subscription message is sent, not
1187
1187
  * when the _delete_ event occurs.
1188
1188
  * @param {Function} on_delete
1189
- * @returns {Promise<any>}
1189
+ * @returns {Promise<number>}
1190
1190
  */
1191
1191
  on_delete(on_delete) {
1192
1192
  const ret = wasm.table_on_delete(this.__wbg_ptr, addHeapObject(on_delete));
@@ -1220,7 +1220,7 @@ export class Table {
1220
1220
  * Removes a listener with a given ID, as returned by a previous call to
1221
1221
  * [`Table::on_delete`].
1222
1222
  * @param {number} callback_id
1223
- * @returns {Promise<any>}
1223
+ * @returns {Promise<void>}
1224
1224
  */
1225
1225
  remove_delete(callback_id) {
1226
1226
  const ret = wasm.table_remove_delete(this.__wbg_ptr, callback_id);
@@ -1308,7 +1308,7 @@ export class Table {
1308
1308
  * ```
1309
1309
  * @param {string | ArrayBuffer | Record<string, unknown[]> | Record<string, unknown>[] | Record<string, ColumnType>} input
1310
1310
  * @param {UpdateOptions | null} [options]
1311
- * @returns {Promise<any>}
1311
+ * @returns {Promise<void>}
1312
1312
  */
1313
1313
  update(input, options) {
1314
1314
  const ret = wasm.table_update(this.__wbg_ptr, addHeapObject(input), isLikeNone(options) ? 0 : addHeapObject(options));
@@ -1550,7 +1550,7 @@ export class View {
1550
1550
  * Register a callback with this [`View`]. Whenever the [`View`] is
1551
1551
  * deleted, this callback will be invoked.
1552
1552
  * @param {Function} on_delete
1553
- * @returns {Promise<any>}
1553
+ * @returns {Promise<number>}
1554
1554
  */
1555
1555
  on_delete(on_delete) {
1556
1556
  const ret = wasm.view_on_delete(this.__wbg_ptr, addHeapObject(on_delete));
@@ -1579,7 +1579,7 @@ export class View {
1579
1579
  * });
1580
1580
  * ```
1581
1581
  * @param {(data: OnRemoveData) => void} on_remove_js
1582
- * @returns {Promise<any>}
1582
+ * @returns {Promise<number>}
1583
1583
  */
1584
1584
  on_remove(on_remove_js) {
1585
1585
  const ret = wasm.view_on_remove(this.__wbg_ptr, addHeapObject(on_remove_js));
@@ -1612,7 +1612,7 @@ export class View {
1612
1612
  * ```
1613
1613
  * @param {(data: OnUpdateData) => void} on_update_js
1614
1614
  * @param {OnUpdateOptions | null} [options]
1615
- * @returns {Promise<any>}
1615
+ * @returns {Promise<number>}
1616
1616
  */
1617
1617
  on_update(on_update_js, options) {
1618
1618
  const ret = wasm.view_on_update(this.__wbg_ptr, addHeapObject(on_update_js), isLikeNone(options) ? 0 : addHeapObject(options));
@@ -1621,7 +1621,7 @@ export class View {
1621
1621
  /**
1622
1622
  * Unregister a previously registered [`View::on_delete`] callback.
1623
1623
  * @param {number} callback_id
1624
- * @returns {Promise<any>}
1624
+ * @returns {Promise<void>}
1625
1625
  */
1626
1626
  remove_delete(callback_id) {
1627
1627
  const ret = wasm.view_remove_delete(this.__wbg_ptr, callback_id);
@@ -1971,7 +1971,7 @@ export class VirtualServer {
1971
1971
  }
1972
1972
  /**
1973
1973
  * @param {Uint8Array} bytes
1974
- * @returns {Promise<any>}
1974
+ * @returns {Promise<Uint8Array>}
1975
1975
  */
1976
1976
  handleRequest(bytes) {
1977
1977
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
@@ -2347,7 +2347,7 @@ function __wbg_get_imports() {
2347
2347
  const a = state0.a;
2348
2348
  state0.a = 0;
2349
2349
  try {
2350
- return __wasm_bindgen_func_elem_13332(a, state0.b, arg0, arg1);
2350
+ return __wasm_bindgen_func_elem_13280(a, state0.b, arg0, arg1);
2351
2351
  } finally {
2352
2352
  state0.a = a;
2353
2353
  }
@@ -2375,10 +2375,6 @@ function __wbg_get_imports() {
2375
2375
  const ret = new Function(v0);
2376
2376
  return addHeapObject(ret);
2377
2377
  },
2378
- __wbg_new_with_length_1763c527b2923202: function(arg0) {
2379
- const ret = new Array(arg0 >>> 0);
2380
- return addHeapObject(ret);
2381
- },
2382
2378
  __wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
2383
2379
  const ret = getObject(arg0).next();
2384
2380
  return addHeapObject(ret);
@@ -2422,7 +2418,7 @@ function __wbg_get_imports() {
2422
2418
  const ret = Promise.resolve(getObject(arg0));
2423
2419
  return addHeapObject(ret);
2424
2420
  },
2425
- __wbg_run_ce6bcc7f4952334e: function() { return handleError(function (arg0, arg1) {
2421
+ __wbg_run_445af8472ad115ff: function() { return handleError(function (arg0, arg1) {
2426
2422
  const ret = getObject(arg0).run(getObject(arg1));
2427
2423
  return addHeapObject(ret);
2428
2424
  }, arguments); },
@@ -2513,18 +2509,18 @@ function __wbg_get_imports() {
2513
2509
  console.warn(getObject(arg0));
2514
2510
  },
2515
2511
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2516
- // Cast intrinsic for `Closure(Closure { dtor_idx: 12, function: Function { arguments: [], shim_idx: 34, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
2517
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1751, __wasm_bindgen_func_elem_2093);
2512
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 12, function: Function { arguments: [], shim_idx: 32, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
2513
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1692, __wasm_bindgen_func_elem_2033);
2518
2514
  return addHeapObject(ret);
2519
2515
  },
2520
2516
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
2521
- // Cast intrinsic for `Closure(Closure { dtor_idx: 12, function: Function { arguments: [], shim_idx: 35, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
2522
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1751, __wasm_bindgen_func_elem_2094);
2517
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 12, function: Function { arguments: [], shim_idx: 33, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
2518
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1692, __wasm_bindgen_func_elem_2034);
2523
2519
  return addHeapObject(ret);
2524
2520
  },
2525
2521
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2526
- // Cast intrinsic for `Closure(Closure { dtor_idx: 635, function: Function { arguments: [Externref], shim_idx: 636, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2527
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4765, __wasm_bindgen_func_elem_4767);
2522
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 633, function: Function { arguments: [Externref], shim_idx: 634, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2523
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4695, __wasm_bindgen_func_elem_4697);
2528
2524
  return addHeapObject(ret);
2529
2525
  },
2530
2526
  __wbindgen_cast_0000000000000004: function(arg0) {
@@ -2601,21 +2597,21 @@ function __wbg_get_imports() {
2601
2597
  };
2602
2598
  }
2603
2599
 
2604
- function __wasm_bindgen_func_elem_2094(arg0, arg1) {
2605
- wasm.__wasm_bindgen_func_elem_2094(arg0, arg1);
2600
+ function __wasm_bindgen_func_elem_2034(arg0, arg1) {
2601
+ wasm.__wasm_bindgen_func_elem_2034(arg0, arg1);
2606
2602
  }
2607
2603
 
2608
- function __wasm_bindgen_func_elem_2093(arg0, arg1) {
2609
- const ret = wasm.__wasm_bindgen_func_elem_2093(arg0, arg1);
2604
+ function __wasm_bindgen_func_elem_2033(arg0, arg1) {
2605
+ const ret = wasm.__wasm_bindgen_func_elem_2033(arg0, arg1);
2610
2606
  return takeObject(ret);
2611
2607
  }
2612
2608
 
2613
- function __wasm_bindgen_func_elem_4767(arg0, arg1, arg2) {
2614
- wasm.__wasm_bindgen_func_elem_4767(arg0, arg1, addHeapObject(arg2));
2609
+ function __wasm_bindgen_func_elem_4697(arg0, arg1, arg2) {
2610
+ wasm.__wasm_bindgen_func_elem_4697(arg0, arg1, addHeapObject(arg2));
2615
2611
  }
2616
2612
 
2617
- function __wasm_bindgen_func_elem_13332(arg0, arg1, arg2, arg3) {
2618
- wasm.__wasm_bindgen_func_elem_13332(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2613
+ function __wasm_bindgen_func_elem_13280(arg0, arg1, arg2, arg3) {
2614
+ wasm.__wasm_bindgen_func_elem_13280(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2619
2615
  }
2620
2616
 
2621
2617
  const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
@@ -105,12 +105,12 @@ export const virtualdataslice_setIntegerCol: (a: number, b: number, c: number, d
105
105
  export const virtualdataslice_setStringCol: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
106
106
  export const virtualserver_handleRequest: (a: number, b: number, c: number) => number;
107
107
  export const virtualserver_new: (a: number, b: number) => void;
108
- export const __wasm_bindgen_func_elem_1751: (a: number, b: number) => void;
109
- export const __wasm_bindgen_func_elem_4765: (a: number, b: number) => void;
110
- export const __wasm_bindgen_func_elem_13332: (a: number, b: number, c: number, d: number) => void;
111
- export const __wasm_bindgen_func_elem_4767: (a: number, b: number, c: number) => void;
112
- export const __wasm_bindgen_func_elem_2093: (a: number, b: number) => number;
113
- export const __wasm_bindgen_func_elem_2094: (a: number, b: number) => void;
108
+ export const __wasm_bindgen_func_elem_1692: (a: number, b: number) => void;
109
+ export const __wasm_bindgen_func_elem_4695: (a: number, b: number) => void;
110
+ export const __wasm_bindgen_func_elem_13280: (a: number, b: number, c: number, d: number) => void;
111
+ export const __wasm_bindgen_func_elem_4697: (a: number, b: number, c: number) => void;
112
+ export const __wasm_bindgen_func_elem_2033: (a: number, b: number) => number;
113
+ export const __wasm_bindgen_func_elem_2034: (a: number, b: number) => void;
114
114
  export const __wbindgen_export: (a: number, b: number) => number;
115
115
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
116
116
  export const __wbindgen_export3: (a: number) => void;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perspective-dev/client",
3
- "version": "5.9.0",
3
+ "version": "5.9.2",
4
4
  "description": "Streaming query engine for data grids, pivot tables and charts over large, real-time datasets — WebAssembly in the browser, native in Node.js, or remote over WebSocket.",
5
5
  "keywords": [
6
6
  "perspective",
@@ -68,7 +68,7 @@
68
68
  "access": "public"
69
69
  },
70
70
  "dependencies": {
71
- "@perspective-dev/server": "^5.9.0",
71
+ "@perspective-dev/server": "^5.9.2",
72
72
  "stoppable": "=1.1.0",
73
73
  "ws": "^8.17.0"
74
74
  },
@@ -88,9 +88,9 @@
88
88
  }
89
89
  },
90
90
  "devDependencies": {
91
- "@perspective-dev/esbuild-plugin": "^5.9.0",
92
- "@perspective-dev/metadata": "^5.9.0",
93
- "@perspective-dev/test": "^5.9.0",
91
+ "@perspective-dev/esbuild-plugin": "^5.9.2",
92
+ "@perspective-dev/metadata": "^5.9.2",
93
+ "@perspective-dev/test": "^5.9.2",
94
94
  "@clickhouse/client-web": "^1.12.0",
95
95
  "@duckdb/duckdb-wasm": "^1.32.0",
96
96
  "@playwright/experimental-ct-react": "=1.62.0",