@hpcc-js/wasm-duckdb 1.16.1 → 1.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/wasm-duckdb",
3
- "version": "1.16.1",
3
+ "version": "1.17.1",
4
4
  "description": "hpcc-js - WASM DuckDB",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,7 +39,7 @@
39
39
  "update-major": "npx -y npm-check-updates -u"
40
40
  },
41
41
  "devDependencies": {
42
- "@hpcc-js/esbuild-plugins": "1.8.1",
42
+ "@hpcc-js/esbuild-plugins": "1.8.3",
43
43
  "@hpcc-js/wasm-util": "1.0.0"
44
44
  },
45
45
  "keywords": [
@@ -56,5 +56,5 @@
56
56
  },
57
57
  "homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
58
58
  "license": "Apache-2.0",
59
- "gitHead": "9d18bfd8d74b23e6b79bb07a05115b2412e3a9c9"
59
+ "gitHead": "0199646cd7680d07e1619e593dc189c47bc25c1a"
60
60
  }
package/src/duckdb.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  // @ts-expect-error importing from a wasm file is resolved via a custom esbuild plugin
2
2
  import load, { reset } from "../../../build/packages/duckdb/duckdblib.wasm";
3
3
  import type { MainModule, DuckDB as CPPDuckDB } from "../types/duckdblib.js";
4
- import { MainModuleEx } from "@hpcc-js/wasm-util";
5
4
 
6
5
  let g_duckdb: Promise<DuckDB> | undefined;
7
6
  const textEncoder = new TextEncoder();
@@ -91,12 +90,13 @@ const textEncoder = new TextEncoder();
91
90
  * @see [DuckDB Documentation](https://duckdb.org/docs/)
92
91
  * @see [DuckDB GitHub](https://github.com/duckdb/duckdb)
93
92
  */
94
- export class DuckDB extends MainModuleEx<MainModule> {
93
+ export class DuckDB {
95
94
 
95
+ private _module: MainModule;
96
96
  db: CPPDuckDB
97
97
 
98
98
  private constructor(_module: MainModule) {
99
- super(_module);
99
+ this._module = _module;
100
100
  this.db = this._module.create()!;
101
101
  // Special home directory for web_user (needed for some extensions)
102
102
  const { FS_createPath } = this._module;
package/types/duckdb.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { MainModule, DuckDB as CPPDuckDB } from "../types/duckdblib.js";
2
- import { MainModuleEx } from "@hpcc-js/wasm-util";
1
+ import type { DuckDB as CPPDuckDB } from "../types/duckdblib.js";
3
2
  /**
4
3
  * DuckDB WASM library - an in-process SQL OLAP Database Management System.
5
4
  *
@@ -85,7 +84,8 @@ import { MainModuleEx } from "@hpcc-js/wasm-util";
85
84
  * @see [DuckDB Documentation](https://duckdb.org/docs/)
86
85
  * @see [DuckDB GitHub](https://github.com/duckdb/duckdb)
87
86
  */
88
- export declare class DuckDB extends MainModuleEx<MainModule> {
87
+ export declare class DuckDB {
88
+ private _module;
89
89
  db: CPPDuckDB;
90
90
  private constructor();
91
91
  /**