bun-query-builder 0.1.15 → 0.1.17

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,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-query-builder",
3
3
  "type": "module",
4
- "version": "0.1.15",
4
+ "version": "0.1.17",
5
5
  "description": "A simple yet performant query builder for TypeScript. Built with Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -22,21 +22,21 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
- "import": "./dist/index.js"
25
+ "import": "./dist/src/index.js"
26
26
  },
27
27
  "./browser": {
28
28
  "types": "./dist/browser.d.ts",
29
- "import": "./dist/browser.js"
29
+ "import": "./dist/src/browser.js"
30
30
  },
31
31
  "./dynamodb": {
32
32
  "types": "./dist/dynamodb/index.d.ts",
33
- "import": "./dist/dynamodb/index.js"
33
+ "import": "./dist/src/dynamodb/index.js"
34
34
  },
35
35
  "./*": {
36
36
  "import": "./dist/*"
37
37
  }
38
38
  },
39
- "module": "./dist/index.js",
39
+ "module": "./dist/src/index.js",
40
40
  "types": "./dist/index.d.ts",
41
41
  "bin": {
42
42
  "query-builder": "./dist/bin/cli.js",
package/dist/db.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import { Database } from 'bun:sqlite';
2
- import { SQL } from 'bun';
3
- /**
4
- * Returns a Bun SQL instance configured for the current dialect and database settings.
5
- * For SQLite, uses bun:sqlite directly for better compiled binary support.
6
- * Handles connection errors gracefully by falling back to in-memory SQLite.
7
- */
8
- export declare function getBunSql(): SQL;
9
- export declare function getOrCreateBunSql(forceNew?: boolean): SQL;
10
- /**
11
- * Resets the cached database connection.
12
- * Call this after changing config via setConfig() to ensure the new config is used.
13
- */
14
- export declare function resetConnection(): void;
15
- // Wrapper that catches "Connection closed" errors and retries with a fresh connection
16
- export declare function withFreshConnection<T>(fn: (sql: SQL) => Promise<T>): Promise<T>;
17
- // Export a lazy proxy - no connection is made until first use
18
- export declare const bunSql: SQL;
19
- /**
20
- * SQLite wrapper that provides a SQL-like tagged template literal interface
21
- * using bun:sqlite's Database class for better compiled binary support.
22
- */
23
- declare class SQLiteWrapper {
24
- constructor(filename: string);
25
- query(sql: string, params?: any[]): any[];
26
- run(sql: string, params?: any[]): any;
27
- close(): void;
28
- get database(): Database;
29
- }
30
- // Also export the SQL class for advanced usage
31
- export { SQL } from 'bun';