bun-query-builder 0.1.45 → 0.1.46

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/dist/bin/cli.js CHANGED
@@ -30901,7 +30901,7 @@ function getPrefix() {
30901
30901
  }
30902
30902
  var prefix = getPrefix();
30903
30903
  // package.json
30904
- var version2 = "0.1.45";
30904
+ var version2 = "0.1.46";
30905
30905
 
30906
30906
  // bin/cli.ts
30907
30907
  init_actions();
package/dist/browser.d.ts CHANGED
@@ -73,11 +73,11 @@ export declare const browserAuth: {
73
73
  /**
74
74
  * Login and store token
75
75
  */
76
- login: (credentials: { email: string, password: string }) => Promise<;
76
+ login: (credentials: { email: string, password: string }) => Promise<{ user: Record<string, unknown>, token: string }>;
77
77
  /**
78
78
  * Register a new user
79
79
  */
80
- register: (data: { name: string, email: string, password: string }) => Promise<;
80
+ register: (data: { name: string, email: string, password: string }) => Promise<{ user: Record<string, unknown>, token: string }>;
81
81
  /**
82
82
  * Logout and clear token
83
83
  */
@@ -38,20 +38,14 @@ export declare const SingleTablePatterns: {
38
38
  * Parent: PK=PARENT#<parentId>, SK=METADATA
39
39
  * Child: PK=PARENT#<parentId>, SK=CHILD#<childId>
40
40
  */
41
- oneToMany: (parentEntity: string,
42
- childEntity: string,
43
- parentIdField?: string,
44
- childIdField?: string,) => ;
41
+ oneToMany: (parentEntity: string, childEntity: string, parentIdField?: string, childIdField?: string,) => { parent: SingleTableEntity, child: SingleTableEntity };
45
42
  /**
46
43
  * Many-to-many relationship pattern using adjacency list
47
44
  * Entity: PK=ENTITY#<entityId>, SK=METADATA
48
45
  * Relationship: PK=ENTITY#<entityId>, SK=RELATED#<relatedId>
49
46
  * Inverse: PK=ENTITY#<relatedId>, SK=RELATED#<entityId> (via GSI)
50
47
  */
51
- manyToMany: (entityName: string,
52
- relationName: string,
53
- idField?: string,
54
- relatedIdField?: string,) => ;
48
+ manyToMany: (entityName: string, relationName: string, idField?: string, relatedIdField?: string,) => { entity: SingleTableEntity, relation: SingleTableEntity };
55
49
  /**
56
50
  * Hierarchical data pattern (e.g., org chart, file system)
57
51
  * PK: ROOT#<rootId>
package/dist/orm.d.ts CHANGED
@@ -402,7 +402,7 @@ export type ModelStatic<TDef extends ModelDefinition> = StaticWhereOverloads<TDe
402
402
  [K in AttributeKeys<TDef> as `where${Capitalize<K>}`]: (value: K extends keyof ModelAttributes<TDef> ? ModelAttributes<TDef>[K] : unknown) => ModelQueryBuilder<TDef>
403
403
  }
404
404
  declare class SqliteExecutor implements OrmExecutor {
405
- readonly dialect: unknown;
405
+ readonly dialect: 'sqlite';
406
406
  public readonly sqliteDb: Database;
407
407
  constructor(sqliteDb: Database);
408
408
  all(sql: string, params: unknown[]): Promise<Record<string, unknown>[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-query-builder",
3
3
  "type": "module",
4
- "version": "0.1.45",
4
+ "version": "0.1.46",
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",