bun-query-builder 0.2.28 → 0.2.30

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.
@@ -1,4 +1,4 @@
1
- import type { Faker } from '@stacksjs/ts-faker';
1
+ import type { FactoryFaker } from './faker-compat';
2
2
  import type { ValidationType } from './schema';
3
3
  // Local mirror of the runtime PivotColumnAttribute shape (kept structural so we
4
4
  // don't take a hard dep on schema.ts at the type-inference layer).
@@ -20,7 +20,7 @@ declare interface InferableAttribute<T = unknown> {
20
20
  rule: ValidationType
21
21
  message?: Record<string, string>
22
22
  }
23
- factory?: (faker: Faker) => InferType<T>
23
+ factory?: (faker: FactoryFaker) => InferType<T>
24
24
  }
25
25
  /** Minimal model definition shape for type inference */
26
26
  declare interface InferableModelDefinition {
@@ -119,7 +119,7 @@ declare type SnakeCase<S extends string> = S extends `${infer C}${infer Rest}`
119
119
  // Single attribute type inference
120
120
  // ============================================================================
121
121
  declare type InferSingleAttributeType<TAttr> = TAttr extends { type: infer T } ? InferType<T> :
122
- TAttr extends { factory: (faker: Faker) => infer R } ? R :
122
+ TAttr extends { factory: (faker: FactoryFaker) => infer R } ? R :
123
123
  TAttr extends { validation: { rule: infer R } } ? InferType<R> :
124
124
  TAttr extends { default: infer D } ? D :
125
125
  unknown;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-query-builder",
3
3
  "type": "module",
4
- "version": "0.2.28",
4
+ "version": "0.2.30",
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",