@vibeorm/generator 1.0.2 → 1.1.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": "@vibeorm/generator",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "TypeScript client generator for VibeORM — produces typed delegates, inputs, and Zod schemas from a Prisma schema",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -37,6 +37,6 @@
37
37
  "bun": ">=1.1.0"
38
38
  },
39
39
  "dependencies": {
40
- "@vibeorm/parser": "1.0.2"
40
+ "@vibeorm/parser": "1.1.0"
41
41
  }
42
42
  }
@@ -28,7 +28,7 @@ export function generateClient(params: { schema: Schema }): string {
28
28
 
29
29
  // Import runtime
30
30
  parts.push(`import { createClient } from "@vibeorm/runtime";`);
31
- parts.push(`import type { VibeClientOptions } from "@vibeorm/runtime";`);
31
+ parts.push(`import type { VibeClientOptions, TransactionOptions } from "@vibeorm/runtime";`);
32
32
  parts.push(``);
33
33
 
34
34
  // Import schemas for validation wiring
@@ -54,8 +54,8 @@ export function generateClient(params: { schema: Schema }): string {
54
54
 
55
55
  parts.push(`export type VibeClientInstance = {
56
56
  ${clientProperties}
57
- $transaction<T>(fn: (tx: VibeClientInstance) => Promise<T>): Promise<T>;
58
- $transaction(promises: Promise<unknown>[]): Promise<unknown[]>;
57
+ $transaction<T>(fn: (tx: VibeClientInstance) => Promise<T>, options?: TransactionOptions): Promise<T>;
58
+ $transaction(promises: Promise<unknown>[], options?: TransactionOptions): Promise<unknown[]>;
59
59
  $queryRaw<T = unknown>(strings: TemplateStringsArray, ...values: unknown[]): Promise<T[]>;
60
60
  $executeRaw(strings: TemplateStringsArray, ...values: unknown[]): Promise<number>;
61
61
  $queryRawUnsafe<T = unknown>(query: string, ...values: unknown[]): Promise<T[]>;