@motherduck/wasm-client 0.4.1 → 0.5.0

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": "@motherduck/wasm-client",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Client library for MotherDuck-enabled DuckDB powered by WebAssembly (WASM)",
5
5
  "browser": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -1,6 +1,6 @@
1
+ import { DuckDBType } from '@motherduck/duckdb-types';
1
2
  import { RecordBatch } from 'apache-arrow';
2
3
  import { DuckDBData } from '../duckdb/DuckDBData';
3
- import { DuckDBType } from '../duckdb/types';
4
4
  import { DuckDBValue } from '../duckdb/values';
5
5
  import { TypedTypeMap } from './TypedTypeMap';
6
6
  export declare class DuckDBRecordBatch extends DuckDBData {
@@ -1,4 +1,4 @@
1
+ import { DuckDBType } from '@motherduck/duckdb-types';
1
2
  import { DataType, Type } from 'apache-arrow';
2
- import { DuckDBType } from '../duckdb/types';
3
3
  import { TypedTypeMap } from './TypedTypeMap';
4
4
  export declare function duckDBTypeFromArrowType(type: DataType<Type, TypedTypeMap>): DuckDBType;
@@ -1,5 +1,5 @@
1
+ import { DuckDBType } from '@motherduck/duckdb-types';
1
2
  import { DuckDBRow } from './DuckDBRow';
2
- import { DuckDBType } from './types/DuckDBType';
3
3
  import { DuckDBValue } from './values';
4
4
  /**
5
5
  * A two-dimensional table of data along with column metadata.
@@ -1,6 +1,6 @@
1
+ import { DuckDBType } from '@motherduck/duckdb-types';
1
2
  import { AsyncDuckDBDataBatchIterator } from './AsyncDuckDBDataBatchIterator';
2
3
  import { DuckDBData } from './DuckDBData';
3
- import { DuckDBType } from './types';
4
4
  import { DuckDBValue } from './values';
5
5
  /**
6
6
  * A result set that can be read incrementally.
@@ -10,5 +10,6 @@ export interface MDConnectionParams {
10
10
  version?: string;
11
11
  enableDebugLogging?: boolean;
12
12
  }
13
+ export declare const CATALOG_CHANGE_EVENT = "CatalogChangeEvent";
13
14
  export declare function createDuckDbConnection(params: MDConnectionParams): Promise<AsyncDuckDBConnection>;
14
15
  export declare function getAsyncDuckDb(params: MDConnectionParams): Promise<AsyncDuckDB>;
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from '@motherduck/duckdb-types';
1
2
  export * from './QueryTypes';
2
3
  export * from './api';
3
4
  export * from './arrow/TypedTypeMap';
@@ -6,7 +7,5 @@ export * from './duckdb/DuckDBData';
6
7
  export * from './duckdb/DuckDBDataReader';
7
8
  export * from './duckdb/DuckDBRow';
8
9
  export * from './duckdb/files';
9
- export * from './duckdb/types';
10
10
  export * from './duckdb/values';
11
- export { MDConnectionParams, getAsyncDuckDb } from './duckdb/worker_factory';
12
- export * from './observability';
11
+ export { CATALOG_CHANGE_EVENT, MDConnectionParams, getAsyncDuckDb } from './duckdb/worker_factory';