@geekmidas/testkit 3.0.0 → 3.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{Factory-SFupxRC2.d.mts → Factory-C6W78ulZ.d.mts} +2 -2
  3. package/dist/{Factory-SFupxRC2.d.mts.map → Factory-C6W78ulZ.d.mts.map} +1 -1
  4. package/dist/Factory.d.mts +2 -2
  5. package/dist/{KyselyFactory-vAxYodck.d.mts → KyselyFactory-Cc2UmOJk.d.mts} +3 -3
  6. package/dist/{KyselyFactory-vAxYodck.d.mts.map → KyselyFactory-Cc2UmOJk.d.mts.map} +1 -1
  7. package/dist/KyselyFactory.d.mts +3 -3
  8. package/dist/{ObjectionFactory-BWjB49-i.d.mts → ObjectionFactory-BYnPr9ZP.d.mts} +3 -3
  9. package/dist/{ObjectionFactory-BWjB49-i.d.mts.map → ObjectionFactory-BYnPr9ZP.d.mts.map} +1 -1
  10. package/dist/ObjectionFactory.d.mts +3 -3
  11. package/dist/{PostgresKyselyMigrator-CTNftoZK.d.cts → PostgresKyselyMigrator-B2M6Gjvv.d.cts} +3 -2
  12. package/dist/PostgresKyselyMigrator-B2M6Gjvv.d.cts.map +1 -0
  13. package/dist/{PostgresKyselyMigrator-CqNs3qX8.cjs → PostgresKyselyMigrator-BGBxjnFv.cjs} +3 -3
  14. package/dist/PostgresKyselyMigrator-BGBxjnFv.cjs.map +1 -0
  15. package/dist/{PostgresKyselyMigrator-x0uvWs3U.d.mts → PostgresKyselyMigrator-CvwXycJE.d.mts} +3 -2
  16. package/dist/PostgresKyselyMigrator-CvwXycJE.d.mts.map +1 -0
  17. package/dist/{PostgresKyselyMigrator-BIKd7G5C.mjs → PostgresKyselyMigrator-PI0QhvB1.mjs} +2 -2
  18. package/dist/PostgresKyselyMigrator-PI0QhvB1.mjs.map +1 -0
  19. package/dist/PostgresKyselyMigrator.cjs +1 -1
  20. package/dist/PostgresKyselyMigrator.d.cts +1 -1
  21. package/dist/PostgresKyselyMigrator.d.mts +1 -1
  22. package/dist/PostgresKyselyMigrator.mjs +1 -1
  23. package/dist/better-auth.d.mts +2 -2
  24. package/dist/{directory-CVrfTq1I.d.mts → directory-CYXmolu1.d.mts} +3 -3
  25. package/dist/{directory-CVrfTq1I.d.mts.map → directory-CYXmolu1.d.mts.map} +1 -1
  26. package/dist/{faker-DHh7xs4u.d.mts → faker-D9gz7KjY.d.mts} +3 -3
  27. package/dist/{faker-DHh7xs4u.d.mts.map → faker-D9gz7KjY.d.mts.map} +1 -1
  28. package/dist/faker.d.mts +1 -1
  29. package/dist/helpers.cjs +1 -1
  30. package/dist/helpers.mjs +1 -1
  31. package/dist/kysely.cjs +1 -1
  32. package/dist/kysely.d.cts +1 -1
  33. package/dist/kysely.d.mts +5 -5
  34. package/dist/kysely.mjs +1 -1
  35. package/dist/objection.d.mts +3 -3
  36. package/dist/os/directory.d.mts +1 -1
  37. package/dist/os/index.d.mts +1 -1
  38. package/package.json +2 -2
  39. package/src/PostgresKyselyMigrator.ts +4 -1
  40. package/test/helpers.ts +3 -2
  41. package/dist/PostgresKyselyMigrator-BIKd7G5C.mjs.map +0 -1
  42. package/dist/PostgresKyselyMigrator-CTNftoZK.d.cts.map +0 -1
  43. package/dist/PostgresKyselyMigrator-CqNs3qX8.cjs.map +0 -1
  44. package/dist/PostgresKyselyMigrator-x0uvWs3U.d.mts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @geekmidas/testkit
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#9](https://github.com/geekmidas/toolbox/pull/9) [`e31a60a`](https://github.com/geekmidas/toolbox/commit/e31a60a971366180a0e7bec6e7da56d8f36aa21f) Thanks [@geekmidas](https://github.com/geekmidas)! - Support kysely 0.29.
8
+
9
+ kysely 0.29 moved `Migrator` and `FileMigrationProvider` from the root barrel
10
+ (`'kysely'`) to the `'kysely/migration'` subpath. `@geekmidas/testkit`'s
11
+ `PostgresKyselyMigrator` now imports `Migrator` from `'kysely/migration'` and
12
+ its kysely peer becomes `~0.29.4` — consumers must be on kysely 0.29+.
13
+
14
+ The library packages that only declare a kysely _peer_ (`db`, `audit`, `studio`,
15
+ `telescope`) don't touch the moved symbols, so their peer range is _widened_ to
16
+ `>=0.28.2 <0.30.0` — they now support both 0.28 and 0.29 (non-breaking).
17
+
18
+ `@geekmidas/cli`'s scaffolded `test/globalSetup.ts` template now imports
19
+ `FileMigrationProvider` from `'kysely/migration'` so generated projects work on
20
+ kysely 0.29.
21
+
3
22
  ## 3.0.0
4
23
 
5
24
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { FakerFactory } from "./faker-DHh7xs4u.mjs";
1
+ import { FakerFactory } from "./faker-D9gz7KjY.mjs";
2
2
 
3
3
  //#region src/Factory.d.ts
4
4
 
@@ -144,4 +144,4 @@ type ExtractSeedAttrs<T> = T extends ((context: {
144
144
  //# sourceMappingURL=Factory.d.ts.map
145
145
  //#endregion
146
146
  export { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder };
147
- //# sourceMappingURL=Factory-SFupxRC2.d.mts.map
147
+ //# sourceMappingURL=Factory-C6W78ulZ.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Factory-SFupxRC2.d.mts","names":[],"sources":["../src/Factory.ts"],"sourcesContent":[],"mappings":";;;;;;AA2BA;;;;;;;;;;;;;;;;;;;;;;;AAiD6B,uBAjDP,OAiDO,CAAA,iBAhDX,MAgDW,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,cA/Cd,MA+Cc,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA;EAAQ;;;;;;;;;;;;;;;;EAavB,OAAA,UAAA,CAAA,aA1CkB,WA0ClB,CAAA,CAAA,MAAA,EA1CuC,IA0CvC,CAAA,EA1C8C,IA0C9C;EA8BF;;;;;;EAK0C,SAAW,MAAA,CAAA,UAAA,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;;;;KAgCrD;SAKW;WAAgB;MAAa;MAAS,QAAQ;;;;;KAMzD,sBAAsB;;;;aAK/B"}
@@ -1,3 +1,3 @@
1
- import "./faker-DHh7xs4u.mjs";
2
- import { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-SFupxRC2.mjs";
1
+ import "./faker-D9gz7KjY.mjs";
2
+ import { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-C6W78ulZ.mjs";
3
3
  export { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder };
@@ -1,5 +1,5 @@
1
- import { FakerFactory } from "./faker-DHh7xs4u.mjs";
2
- import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-SFupxRC2.mjs";
1
+ import { FakerFactory } from "./faker-D9gz7KjY.mjs";
2
+ import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-C6W78ulZ.mjs";
3
3
  import { ControlledTransaction, Insertable, Kysely, Selectable } from "kysely";
4
4
 
5
5
  //#region src/KyselyFactory.d.ts
@@ -225,4 +225,4 @@ declare class KyselyFactory<DB, Builders extends Record<string, any>, Seeds exte
225
225
  //# sourceMappingURL=KyselyFactory.d.ts.map
226
226
  //#endregion
227
227
  export { KyselyFactory };
228
- //# sourceMappingURL=KyselyFactory-vAxYodck.d.mts.map
228
+ //# sourceMappingURL=KyselyFactory-Cc2UmOJk.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KyselyFactory-vAxYodck.d.mts","names":[],"sources":["../src/KyselyFactory.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA+CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GK,cA5GQ,aA4GR,CAAA,EAAA,EAAA,iBA1Ga,MA0Gb,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,cAzGU,MAyGV,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAxGK,OAwGL,CAxGa,QAwGb,EAxGuB,KAwGvB,CAAA,CAA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"./faker-DHh7xs4u.mjs";
2
- import "./Factory-SFupxRC2.mjs";
3
- import { KyselyFactory } from "./KyselyFactory-vAxYodck.mjs";
1
+ import "./faker-D9gz7KjY.mjs";
2
+ import "./Factory-C6W78ulZ.mjs";
3
+ import { KyselyFactory } from "./KyselyFactory-Cc2UmOJk.mjs";
4
4
  export { KyselyFactory };
@@ -1,5 +1,5 @@
1
- import { FakerFactory } from "./faker-DHh7xs4u.mjs";
2
- import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-SFupxRC2.mjs";
1
+ import { FakerFactory } from "./faker-D9gz7KjY.mjs";
2
+ import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-C6W78ulZ.mjs";
3
3
  import { Knex } from "knex";
4
4
  import { Model } from "objection";
5
5
 
@@ -238,4 +238,4 @@ declare class ObjectionFactory<Builders extends Record<string, any>, Seeds exten
238
238
  //# sourceMappingURL=ObjectionFactory.d.ts.map
239
239
  //#endregion
240
240
  export { ObjectionFactory };
241
- //# sourceMappingURL=ObjectionFactory-BWjB49-i.d.mts.map
241
+ //# sourceMappingURL=ObjectionFactory-BYnPr9ZP.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectionFactory-BWjB49-i.d.mts","names":[],"sources":["../src/ObjectionFactory.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAyCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0Gc,cA1GD,gBA0GC,CAAA,iBAzGI,MAyGJ,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,cAxGC,MAwGD,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,SAvGJ,OAuGI,CAvGI,QAuGJ,EAvGc,KAuGd,CAAA,CAAA;EAAM,QAAd,QAAA;EAAO,QAqDO,KAAA;EAAQ,QACX,EAAA;EAAK;;;;;;;;;;;;;;;;;;;;;EA2GX,OACuB,UAAA,CAAA,aAnPO,WAmPP,CAAA,CAAA,MAAA,EAnP4B,IAmP5B,CAAA,EAnP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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAmFO,qBACR,QAAQ,aAAa,WAAW,QAAQ,aAAa,kCAE1D,aAAa,qBAEV;WAEJ;aACE;QACL;WACG;QAEL,QAAQ,aAAa,WACrB,QAAQ,QAAQ,aAAa,0CAGzB,gBACE,aACL,aACG,iBACH,QAAQ;;;;;;;;wBAqDM,iBACH,WACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoCgB,uBACf,WACL,WAAW,SAAS,SAC1B,QAAQ,QAAQ,WAAW,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA+DN,sCAEnB,WACL,WAAW,SAAS,SAC1B,QAAQ,QAAQ,WAAW,SAAS;6BACN,sCAEnB,+BACe,iBAAiB,WAAW,SAAS,SAC/D,QAAQ,QAAQ,WAAW,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAgFlB,iBACV,WACF,iBAAiB,MAAM,MAC7B,WAAW,MAAM"}
@@ -1,4 +1,4 @@
1
- import "./faker-DHh7xs4u.mjs";
2
- import "./Factory-SFupxRC2.mjs";
3
- import { ObjectionFactory } from "./ObjectionFactory-BWjB49-i.mjs";
1
+ import "./faker-D9gz7KjY.mjs";
2
+ import "./Factory-C6W78ulZ.mjs";
3
+ import { ObjectionFactory } from "./ObjectionFactory-BYnPr9ZP.mjs";
4
4
  export { ObjectionFactory };
@@ -1,5 +1,6 @@
1
1
  import { PostgresMigrator } from "./PostgresMigrator-CeYy-eHF.cjs";
2
- import { Kysely, MigrationProvider } from "kysely";
2
+ import { Kysely } from "kysely";
3
+ import { MigrationProvider } from "kysely/migration";
3
4
 
4
5
  //#region src/PostgresKyselyMigrator.d.ts
5
6
 
@@ -80,4 +81,4 @@ declare class PostgresKyselyMigrator extends PostgresMigrator {
80
81
  //# sourceMappingURL=PostgresKyselyMigrator.d.ts.map
81
82
  //#endregion
82
83
  export { PostgresKyselyMigrator };
83
- //# sourceMappingURL=PostgresKyselyMigrator-CTNftoZK.d.cts.map
84
+ //# sourceMappingURL=PostgresKyselyMigrator-B2M6Gjvv.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresKyselyMigrator-B2M6Gjvv.d.cts","names":[],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA2DA;;;;;;;AAA4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA/C,sBAAA,SAA+B,gBAAA;;;;;;;;;;;;;QAarC;cACM;mCACqB;;;;;;;;;aAahB"}
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
2
  const require_PostgresMigrator = require('./PostgresMigrator-M9jpzOvN.cjs');
3
- const kysely = require_chunk.__toESM(require("kysely"));
3
+ const kysely_migration = require_chunk.__toESM(require("kysely/migration"));
4
4
 
5
5
  //#region src/PostgresKyselyMigrator.ts
6
6
  /**
@@ -77,7 +77,7 @@ var PostgresKyselyMigrator = class extends require_PostgresMigrator.PostgresMigr
77
77
  * @returns Promise that resolves when all migrations are applied
78
78
  */
79
79
  async migrate() {
80
- const migrator = new kysely.Migrator({
80
+ const migrator = new kysely_migration.Migrator({
81
81
  db: this.options.db,
82
82
  provider: this.options.provider
83
83
  });
@@ -98,4 +98,4 @@ Object.defineProperty(exports, 'PostgresKyselyMigrator', {
98
98
  return PostgresKyselyMigrator;
99
99
  }
100
100
  });
101
- //# sourceMappingURL=PostgresKyselyMigrator-CqNs3qX8.cjs.map
101
+ //# sourceMappingURL=PostgresKyselyMigrator-BGBxjnFv.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresKyselyMigrator-BGBxjnFv.cjs","names":["PostgresMigrator","options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t}","Migrator"],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":["import type { Kysely } from 'kysely';\n// `Migrator` and the `MigrationProvider` type moved from the root barrel ('kysely')\n// to the 'kysely/migration' subpath in kysely 0.29+.\nimport { type MigrationProvider, Migrator } from 'kysely/migration';\nimport { PostgresMigrator } from './PostgresMigrator';\n\n/**\n * Default logger instance for migration operations.\n */\nconst logger = console;\n\n/**\n * PostgreSQL migrator implementation for Kysely ORM.\n * Extends PostgresMigrator to provide Kysely-specific migration functionality.\n * Automatically creates test databases and applies migrations for testing environments.\n *\n * @example\n * ```typescript\n * import { FileMigrationProvider } from 'kysely';\n * import { PostgresKyselyMigrator } from '@geekmidas/testkit';\n *\n * // Create migration provider\n * const provider = new FileMigrationProvider({\n * fs: require('fs'),\n * path: require('path'),\n * migrationFolder: path.join(__dirname, 'migrations')\n * });\n *\n * // Create Kysely instance\n * const db = new Kysely<Database>({\n * dialect: new PostgresDialect({\n * pool: new Pool({ connectionString: uri })\n * })\n * });\n *\n * // Create and use migrator\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider\n * });\n *\n * const cleanup = await migrator.start();\n * // Run tests...\n * await cleanup();\n *\n * // With afterCreate hook to create per-app users\n * import { runInitScript } from '@geekmidas/testkit/postgres';\n *\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider,\n * afterCreate: async (uri) => {\n * await runInitScript('docker/postgres/init.sh', uri, env);\n * },\n * });\n * ```\n */\nexport class PostgresKyselyMigrator extends PostgresMigrator {\n\t/**\n\t * Creates a new PostgresKyselyMigrator instance.\n\t *\n\t * @param options - Configuration options\n\t * @param options.uri - PostgreSQL connection URI\n\t * @param options.db - Kysely database instance\n\t * @param options.provider - Migration provider for locating migration files\n\t * @param options.afterCreate - Optional hook called after database creation but before migrations\n\t */\n\tconstructor(\n\t\tprivate options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t},\n\t) {\n\t\tsuper(options.uri, options.afterCreate);\n\t}\n\n\t/**\n\t * Executes Kysely migrations to the latest version.\n\t * Implements the abstract migrate() method from PostgresMigrator.\n\t *\n\t * @throws Error if migrations fail to apply\n\t * @returns Promise that resolves when all migrations are applied\n\t */\n\tasync migrate(): Promise<void> {\n\t\tconst migrator = new Migrator({\n\t\t\tdb: this.options.db,\n\t\t\tprovider: this.options.provider,\n\t\t});\n\t\tconst migrations = await migrator.migrateToLatest();\n\n\t\tif (migrations.error) {\n\t\t\tlogger.error(migrations.error, `Failed to apply migrations`);\n\t\t\tthrow migrations.error;\n\t\t}\n\n\t\tawait this.options.db.destroy();\n\n\t\tlogger.log(`Applied ${migrations.results?.length} migrations successfully`);\n\t}\n}\n"],"mappings":";;;;;;;;AASA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDf,IAAa,yBAAb,cAA4CA,0CAAiB;;;;;;;;;;CAU5D,YACSC,SAMP;AACD,QAAM,QAAQ,KAAK,QAAQ,YAAY;EAP/B;CAQR;;;;;;;;CASD,MAAM,UAAyB;EAC9B,MAAM,WAAW,IAAIC,0BAAS;GAC7B,IAAI,KAAK,QAAQ;GACjB,UAAU,KAAK,QAAQ;EACvB;EACD,MAAM,aAAa,MAAM,SAAS,iBAAiB;AAEnD,MAAI,WAAW,OAAO;AACrB,UAAO,MAAM,WAAW,QAAQ,4BAA4B;AAC5D,SAAM,WAAW;EACjB;AAED,QAAM,KAAK,QAAQ,GAAG,SAAS;AAE/B,SAAO,KAAK,UAAU,WAAW,SAAS,OAAO,0BAA0B;CAC3E;AACD"}
@@ -1,5 +1,6 @@
1
1
  import { PostgresMigrator } from "./PostgresMigrator-C_QQ6q35.mjs";
2
- import { Kysely, MigrationProvider } from "kysely";
2
+ import { MigrationProvider } from "kysely/migration";
3
+ import { Kysely } from "kysely";
3
4
 
4
5
  //#region src/PostgresKyselyMigrator.d.ts
5
6
 
@@ -80,4 +81,4 @@ declare class PostgresKyselyMigrator extends PostgresMigrator {
80
81
  //# sourceMappingURL=PostgresKyselyMigrator.d.ts.map
81
82
  //#endregion
82
83
  export { PostgresKyselyMigrator };
83
- //# sourceMappingURL=PostgresKyselyMigrator-x0uvWs3U.d.mts.map
84
+ //# sourceMappingURL=PostgresKyselyMigrator-CvwXycJE.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresKyselyMigrator-CvwXycJE.d.mts","names":[],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA2DA;;;;;;;AAA4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA/C,sBAAA,SAA+B,gBAAA;;;;;;;;;;;;;QAarC;cACM;mCACqB;;;;;;;;;aAahB"}
@@ -1,5 +1,5 @@
1
1
  import { PostgresMigrator } from "./PostgresMigrator-DVAY04qN.mjs";
2
- import { Migrator } from "kysely";
2
+ import { Migrator } from "kysely/migration";
3
3
 
4
4
  //#region src/PostgresKyselyMigrator.ts
5
5
  /**
@@ -92,4 +92,4 @@ var PostgresKyselyMigrator = class extends PostgresMigrator {
92
92
 
93
93
  //#endregion
94
94
  export { PostgresKyselyMigrator };
95
- //# sourceMappingURL=PostgresKyselyMigrator-BIKd7G5C.mjs.map
95
+ //# sourceMappingURL=PostgresKyselyMigrator-PI0QhvB1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresKyselyMigrator-PI0QhvB1.mjs","names":["options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t}"],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":["import type { Kysely } from 'kysely';\n// `Migrator` and the `MigrationProvider` type moved from the root barrel ('kysely')\n// to the 'kysely/migration' subpath in kysely 0.29+.\nimport { type MigrationProvider, Migrator } from 'kysely/migration';\nimport { PostgresMigrator } from './PostgresMigrator';\n\n/**\n * Default logger instance for migration operations.\n */\nconst logger = console;\n\n/**\n * PostgreSQL migrator implementation for Kysely ORM.\n * Extends PostgresMigrator to provide Kysely-specific migration functionality.\n * Automatically creates test databases and applies migrations for testing environments.\n *\n * @example\n * ```typescript\n * import { FileMigrationProvider } from 'kysely';\n * import { PostgresKyselyMigrator } from '@geekmidas/testkit';\n *\n * // Create migration provider\n * const provider = new FileMigrationProvider({\n * fs: require('fs'),\n * path: require('path'),\n * migrationFolder: path.join(__dirname, 'migrations')\n * });\n *\n * // Create Kysely instance\n * const db = new Kysely<Database>({\n * dialect: new PostgresDialect({\n * pool: new Pool({ connectionString: uri })\n * })\n * });\n *\n * // Create and use migrator\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider\n * });\n *\n * const cleanup = await migrator.start();\n * // Run tests...\n * await cleanup();\n *\n * // With afterCreate hook to create per-app users\n * import { runInitScript } from '@geekmidas/testkit/postgres';\n *\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider,\n * afterCreate: async (uri) => {\n * await runInitScript('docker/postgres/init.sh', uri, env);\n * },\n * });\n * ```\n */\nexport class PostgresKyselyMigrator extends PostgresMigrator {\n\t/**\n\t * Creates a new PostgresKyselyMigrator instance.\n\t *\n\t * @param options - Configuration options\n\t * @param options.uri - PostgreSQL connection URI\n\t * @param options.db - Kysely database instance\n\t * @param options.provider - Migration provider for locating migration files\n\t * @param options.afterCreate - Optional hook called after database creation but before migrations\n\t */\n\tconstructor(\n\t\tprivate options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t},\n\t) {\n\t\tsuper(options.uri, options.afterCreate);\n\t}\n\n\t/**\n\t * Executes Kysely migrations to the latest version.\n\t * Implements the abstract migrate() method from PostgresMigrator.\n\t *\n\t * @throws Error if migrations fail to apply\n\t * @returns Promise that resolves when all migrations are applied\n\t */\n\tasync migrate(): Promise<void> {\n\t\tconst migrator = new Migrator({\n\t\t\tdb: this.options.db,\n\t\t\tprovider: this.options.provider,\n\t\t});\n\t\tconst migrations = await migrator.migrateToLatest();\n\n\t\tif (migrations.error) {\n\t\t\tlogger.error(migrations.error, `Failed to apply migrations`);\n\t\t\tthrow migrations.error;\n\t\t}\n\n\t\tawait this.options.db.destroy();\n\n\t\tlogger.log(`Applied ${migrations.results?.length} migrations successfully`);\n\t}\n}\n"],"mappings":";;;;;;;AASA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDf,IAAa,yBAAb,cAA4C,iBAAiB;;;;;;;;;;CAU5D,YACSA,SAMP;AACD,QAAM,QAAQ,KAAK,QAAQ,YAAY;EAP/B;CAQR;;;;;;;;CASD,MAAM,UAAyB;EAC9B,MAAM,WAAW,IAAI,SAAS;GAC7B,IAAI,KAAK,QAAQ;GACjB,UAAU,KAAK,QAAQ;EACvB;EACD,MAAM,aAAa,MAAM,SAAS,iBAAiB;AAEnD,MAAI,WAAW,OAAO;AACrB,UAAO,MAAM,WAAW,QAAQ,4BAA4B;AAC5D,SAAM,WAAW;EACjB;AAED,QAAM,KAAK,QAAQ,GAAG,SAAS;AAE/B,SAAO,KAAK,UAAU,WAAW,SAAS,OAAO,0BAA0B;CAC3E;AACD"}
@@ -1,4 +1,4 @@
1
1
  require('./PostgresMigrator-M9jpzOvN.cjs');
2
- const require_PostgresKyselyMigrator = require('./PostgresKyselyMigrator-CqNs3qX8.cjs');
2
+ const require_PostgresKyselyMigrator = require('./PostgresKyselyMigrator-BGBxjnFv.cjs');
3
3
 
4
4
  exports.PostgresKyselyMigrator = require_PostgresKyselyMigrator.PostgresKyselyMigrator;
@@ -1,3 +1,3 @@
1
1
  import "./PostgresMigrator-CeYy-eHF.cjs";
2
- import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-CTNftoZK.cjs";
2
+ import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-B2M6Gjvv.cjs";
3
3
  export { PostgresKyselyMigrator };
@@ -1,3 +1,3 @@
1
1
  import "./PostgresMigrator-C_QQ6q35.mjs";
2
- import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-x0uvWs3U.mjs";
2
+ import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-CvwXycJE.mjs";
3
3
  export { PostgresKyselyMigrator };
@@ -1,4 +1,4 @@
1
1
  import "./PostgresMigrator-DVAY04qN.mjs";
2
- import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-BIKd7G5C.mjs";
2
+ import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-PI0QhvB1.mjs";
3
3
 
4
4
  export { PostgresKyselyMigrator };
@@ -1,4 +1,4 @@
1
- import * as better_auth_adapters0 from "better-auth/adapters";
1
+ import * as better_auth_adapters3 from "better-auth/adapters";
2
2
  import { DBAdapterDebugLogOption } from "better-auth/adapters";
3
3
 
4
4
  //#region src/better-auth.d.ts
@@ -7,7 +7,7 @@ interface MemoryAdapterConfig {
7
7
  usePlural?: boolean;
8
8
  initialData?: Record<string, any[]>;
9
9
  }
10
- declare const memoryAdapter: (config?: MemoryAdapterConfig, store?: Map<any, any>) => better_auth_adapters0.AdapterFactory & {
10
+ declare const memoryAdapter: (config?: MemoryAdapterConfig, store?: Map<any, any>) => better_auth_adapters3.AdapterFactory & {
11
11
  clear: () => void;
12
12
  getAllData: () => Record<string, any[]>;
13
13
  getStore: () => Map<any, any>;
@@ -1,7 +1,7 @@
1
- import * as vitest6 from "vitest";
1
+ import * as vitest4 from "vitest";
2
2
 
3
3
  //#region src/os/directory.d.ts
4
- declare const itWithDir: vitest6.TestAPI<{
4
+ declare const itWithDir: vitest4.TestAPI<{
5
5
  dir: string;
6
6
  }>;
7
7
  interface DirectoryFixtures {
@@ -10,4 +10,4 @@ interface DirectoryFixtures {
10
10
  //# sourceMappingURL=directory.d.ts.map
11
11
  //#endregion
12
12
  export { DirectoryFixtures, itWithDir };
13
- //# sourceMappingURL=directory-CVrfTq1I.d.mts.map
13
+ //# sourceMappingURL=directory-CYXmolu1.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"directory-CVrfTq1I.d.mts","names":[],"sources":["../src/os/directory.ts"],"sourcesContent":[],"mappings":";;;cAMa,WAeX,OAAA,CAfoB;;;AAAT,UAiBI,iBAAA,CAjBK;EAiBL,GAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"directory-CYXmolu1.d.mts","names":[],"sources":["../src/os/directory.ts"],"sourcesContent":[],"mappings":";;;cAMa,WAeX,OAAA,CAfoB;;;AAAT,UAiBI,iBAAA,CAjBK;EAiBL,GAAA,EAAA,MAAA"}
@@ -1,4 +1,4 @@
1
- import * as _faker_js_faker1 from "@faker-js/faker";
1
+ import * as _faker_js_faker0 from "@faker-js/faker";
2
2
 
3
3
  //#region src/faker.d.ts
4
4
 
@@ -134,7 +134,7 @@ declare function coordinateOutsideRadius(center: Coordinate, minRadiusMeters: nu
134
134
  * const productPrice = faker.price();
135
135
  * ```
136
136
  */
137
- declare const faker$1: Readonly<_faker_js_faker1.Faker & {
137
+ declare const faker$1: Readonly<_faker_js_faker0.Faker & {
138
138
  timestamps: typeof timestamps;
139
139
  identifier: typeof identifier;
140
140
  sequence: typeof sequence;
@@ -163,4 +163,4 @@ type Timestamps = {
163
163
  type FakerFactory = typeof faker$1;
164
164
  //#endregion
165
165
  export { FakerFactory, Timestamps, coordinateInRadius, faker$1 as faker, identifier, resetAllSequences, resetSequence, sequence, timestamps };
166
- //# sourceMappingURL=faker-DHh7xs4u.d.mts.map
166
+ //# sourceMappingURL=faker-D9gz7KjY.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"faker-DHh7xs4u.d.mts","names":[],"sources":["../src/faker.ts"],"sourcesContent":[],"mappings":";;;;;;;AAkFA;AA2BA;AAmCA;AA2BA;AA0BA;AAEC;AAca;AAS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;KAOA,YAAA,UAAsB"}
package/dist/faker.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps } from "./faker-DHh7xs4u.mjs";
1
+ import { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps } from "./faker-D9gz7KjY.mjs";
2
2
  export { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps };
package/dist/helpers.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const kysely = require_chunk.__toESM(require("kysely"));
3
2
  const pg = require_chunk.__toESM(require("pg"));
3
+ const kysely = require_chunk.__toESM(require("kysely"));
4
4
 
5
5
  //#region src/helpers.ts
6
6
  /**
package/dist/helpers.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { CamelCasePlugin, Kysely, PostgresDialect } from "kysely";
2
1
  import pg from "pg";
2
+ import { CamelCasePlugin, Kysely, PostgresDialect } from "kysely";
3
3
 
4
4
  //#region src/helpers.ts
5
5
  /**
package/dist/kysely.cjs CHANGED
@@ -2,7 +2,7 @@ require('./Factory-BhjUOBWN.cjs');
2
2
  const require_faker = require('./faker-B14IEMIN.cjs');
3
3
  const require_KyselyFactory = require('./KyselyFactory-BFqVIn_0.cjs');
4
4
  require('./PostgresMigrator-M9jpzOvN.cjs');
5
- const require_PostgresKyselyMigrator = require('./PostgresKyselyMigrator-CqNs3qX8.cjs');
5
+ const require_PostgresKyselyMigrator = require('./PostgresKyselyMigrator-BGBxjnFv.cjs');
6
6
  const require_VitestTransactionIsolator = require('./VitestTransactionIsolator-CtZaOUjH.cjs');
7
7
  const require_VitestKyselyTransactionIsolator = require('./VitestKyselyTransactionIsolator-0CqOsuc9.cjs');
8
8
 
package/dist/kysely.d.cts CHANGED
@@ -2,7 +2,7 @@ import { FakerFactory, faker } from "./faker-Cg76aFNO.cjs";
2
2
  import { ExtractSeedAttrs, FactorySeed } from "./Factory-BOX312yd.cjs";
3
3
  import { KyselyFactory } from "./KyselyFactory-Dy5zzV4B.cjs";
4
4
  import "./PostgresMigrator-CeYy-eHF.cjs";
5
- import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-CTNftoZK.cjs";
5
+ import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-B2M6Gjvv.cjs";
6
6
  import { DatabaseConnection, DatabaseFixtures, ExtendedDatabaseFixtures, FixtureCreators, IsolationLevel, TestWithExtendedFixtures, TransactionWrapperOptions } from "./VitestTransactionIsolator-CSroc7Df.cjs";
7
7
  import { VitestKyselyTransactionIsolator } from "./VitestKyselyTransactionIsolator-CduJlHoT.cjs";
8
8
  import { Kysely, Transaction } from "kysely";
package/dist/kysely.d.mts CHANGED
@@ -1,12 +1,12 @@
1
- import { FakerFactory, faker } from "./faker-DHh7xs4u.mjs";
2
- import { ExtractSeedAttrs, FactorySeed } from "./Factory-SFupxRC2.mjs";
3
- import { KyselyFactory } from "./KyselyFactory-vAxYodck.mjs";
1
+ import { FakerFactory, faker } from "./faker-D9gz7KjY.mjs";
2
+ import { ExtractSeedAttrs, FactorySeed } from "./Factory-C6W78ulZ.mjs";
3
+ import { KyselyFactory } from "./KyselyFactory-Cc2UmOJk.mjs";
4
4
  import "./PostgresMigrator-C_QQ6q35.mjs";
5
- import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-x0uvWs3U.mjs";
5
+ import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-CvwXycJE.mjs";
6
6
  import { DatabaseConnection, DatabaseFixtures, ExtendedDatabaseFixtures, FixtureCreators, IsolationLevel, TestWithExtendedFixtures, TransactionWrapperOptions } from "./VitestTransactionIsolator-BNWJqh9f.mjs";
7
7
  import { VitestKyselyTransactionIsolator } from "./VitestKyselyTransactionIsolator-Cswnnj0k.mjs";
8
- import { Kysely, Transaction } from "kysely";
9
8
  import { TestAPI } from "vitest";
9
+ import { Kysely, Transaction } from "kysely";
10
10
 
11
11
  //#region src/kysely.d.ts
12
12
 
package/dist/kysely.mjs CHANGED
@@ -2,7 +2,7 @@ import "./Factory-BFVnMMCC.mjs";
2
2
  import { faker } from "./faker-BGKYFoCT.mjs";
3
3
  import { KyselyFactory } from "./KyselyFactory-DMswpwji.mjs";
4
4
  import "./PostgresMigrator-DVAY04qN.mjs";
5
- import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-BIKd7G5C.mjs";
5
+ import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-PI0QhvB1.mjs";
6
6
  import { IsolationLevel, extendWithFixtures } from "./VitestTransactionIsolator-D6ZxLWys.mjs";
7
7
  import { VitestKyselyTransactionIsolator } from "./VitestKyselyTransactionIsolator-CfSMOFlN.mjs";
8
8
 
@@ -1,6 +1,6 @@
1
- import { FakerFactory, faker } from "./faker-DHh7xs4u.mjs";
2
- import { ExtractSeedAttrs, FactorySeed } from "./Factory-SFupxRC2.mjs";
3
- import { ObjectionFactory } from "./ObjectionFactory-BWjB49-i.mjs";
1
+ import { FakerFactory, faker } from "./faker-D9gz7KjY.mjs";
2
+ import { ExtractSeedAttrs, FactorySeed } from "./Factory-C6W78ulZ.mjs";
3
+ import { ObjectionFactory } from "./ObjectionFactory-BYnPr9ZP.mjs";
4
4
  import "./PostgresMigrator-C_QQ6q35.mjs";
5
5
  import { PostgresObjectionMigrator } from "./PostgresObjectionMigrator-1j6YIB1c.mjs";
6
6
  import { DatabaseConnection, DatabaseFixtures, ExtendedDatabaseFixtures, FixtureCreators, IsolationLevel, TestWithExtendedFixtures, TransactionWrapperOptions } from "./VitestTransactionIsolator-BNWJqh9f.mjs";
@@ -1,2 +1,2 @@
1
- import { DirectoryFixtures, itWithDir } from "../directory-CVrfTq1I.mjs";
1
+ import { DirectoryFixtures, itWithDir } from "../directory-CYXmolu1.mjs";
2
2
  export { DirectoryFixtures, itWithDir };
@@ -1,2 +1,2 @@
1
- import { itWithDir } from "../directory-CVrfTq1I.mjs";
1
+ import { itWithDir } from "../directory-CYXmolu1.mjs";
2
2
  export { itWithDir };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/testkit",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -133,7 +133,7 @@
133
133
  "access": "public"
134
134
  },
135
135
  "peerDependencies": {
136
- "kysely": "~0.28.2",
136
+ "kysely": "~0.29.4",
137
137
  "pg": "~8.16.3",
138
138
  "knex": "~3.1.0",
139
139
  "objection": "~3.1.5",
@@ -1,4 +1,7 @@
1
- import { type Kysely, type MigrationProvider, Migrator } from 'kysely';
1
+ import type { Kysely } from 'kysely';
2
+ // `Migrator` and the `MigrationProvider` type moved from the root barrel ('kysely')
3
+ // to the 'kysely/migration' subpath in kysely 0.29+.
4
+ import { type MigrationProvider, Migrator } from 'kysely/migration';
2
5
  import { PostgresMigrator } from './PostgresMigrator';
3
6
 
4
7
  /**
package/test/helpers.ts CHANGED
@@ -4,10 +4,11 @@ import {
4
4
  CamelCasePlugin,
5
5
  type ControlledTransaction,
6
6
  Kysely,
7
- type Migrator,
8
7
  PostgresDialect,
9
8
  sql,
10
9
  } from 'kysely';
10
+ // `Migrator` moved to the 'kysely/migration' subpath in kysely 0.29+.
11
+ import type { Migrator } from 'kysely/migration';
11
12
  import pg from 'pg';
12
13
  import { TEST_DATABASE_CONFIG } from './globalSetup';
13
14
 
@@ -254,7 +255,7 @@ export function createTestMigrator(
254
255
  }
255
256
  >,
256
257
  ): Migrator {
257
- const { Migrator } = require('kysely');
258
+ const { Migrator } = require('kysely/migration');
258
259
 
259
260
  return new Migrator({
260
261
  db,
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostgresKyselyMigrator-BIKd7G5C.mjs","names":["options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t}"],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":["import { type Kysely, type MigrationProvider, Migrator } from 'kysely';\nimport { PostgresMigrator } from './PostgresMigrator';\n\n/**\n * Default logger instance for migration operations.\n */\nconst logger = console;\n\n/**\n * PostgreSQL migrator implementation for Kysely ORM.\n * Extends PostgresMigrator to provide Kysely-specific migration functionality.\n * Automatically creates test databases and applies migrations for testing environments.\n *\n * @example\n * ```typescript\n * import { FileMigrationProvider } from 'kysely';\n * import { PostgresKyselyMigrator } from '@geekmidas/testkit';\n *\n * // Create migration provider\n * const provider = new FileMigrationProvider({\n * fs: require('fs'),\n * path: require('path'),\n * migrationFolder: path.join(__dirname, 'migrations')\n * });\n *\n * // Create Kysely instance\n * const db = new Kysely<Database>({\n * dialect: new PostgresDialect({\n * pool: new Pool({ connectionString: uri })\n * })\n * });\n *\n * // Create and use migrator\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider\n * });\n *\n * const cleanup = await migrator.start();\n * // Run tests...\n * await cleanup();\n *\n * // With afterCreate hook to create per-app users\n * import { runInitScript } from '@geekmidas/testkit/postgres';\n *\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider,\n * afterCreate: async (uri) => {\n * await runInitScript('docker/postgres/init.sh', uri, env);\n * },\n * });\n * ```\n */\nexport class PostgresKyselyMigrator extends PostgresMigrator {\n\t/**\n\t * Creates a new PostgresKyselyMigrator instance.\n\t *\n\t * @param options - Configuration options\n\t * @param options.uri - PostgreSQL connection URI\n\t * @param options.db - Kysely database instance\n\t * @param options.provider - Migration provider for locating migration files\n\t * @param options.afterCreate - Optional hook called after database creation but before migrations\n\t */\n\tconstructor(\n\t\tprivate options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t},\n\t) {\n\t\tsuper(options.uri, options.afterCreate);\n\t}\n\n\t/**\n\t * Executes Kysely migrations to the latest version.\n\t * Implements the abstract migrate() method from PostgresMigrator.\n\t *\n\t * @throws Error if migrations fail to apply\n\t * @returns Promise that resolves when all migrations are applied\n\t */\n\tasync migrate(): Promise<void> {\n\t\tconst migrator = new Migrator({\n\t\t\tdb: this.options.db,\n\t\t\tprovider: this.options.provider,\n\t\t});\n\t\tconst migrations = await migrator.migrateToLatest();\n\n\t\tif (migrations.error) {\n\t\t\tlogger.error(migrations.error, `Failed to apply migrations`);\n\t\t\tthrow migrations.error;\n\t\t}\n\n\t\tawait this.options.db.destroy();\n\n\t\tlogger.log(`Applied ${migrations.results?.length} migrations successfully`);\n\t}\n}\n"],"mappings":";;;;;;;AAMA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDf,IAAa,yBAAb,cAA4C,iBAAiB;;;;;;;;;;CAU5D,YACSA,SAMP;AACD,QAAM,QAAQ,KAAK,QAAQ,YAAY;EAP/B;CAQR;;;;;;;;CASD,MAAM,UAAyB;EAC9B,MAAM,WAAW,IAAI,SAAS;GAC7B,IAAI,KAAK,QAAQ;GACjB,UAAU,KAAK,QAAQ;EACvB;EACD,MAAM,aAAa,MAAM,SAAS,iBAAiB;AAEnD,MAAI,WAAW,OAAO;AACrB,UAAO,MAAM,WAAW,QAAQ,4BAA4B;AAC5D,SAAM,WAAW;EACjB;AAED,QAAM,KAAK,QAAQ,GAAG,SAAS;AAE/B,SAAO,KAAK,UAAU,WAAW,SAAS,OAAO,0BAA0B;CAC3E;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostgresKyselyMigrator-CTNftoZK.d.cts","names":[],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":[],"mappings":";;;;;;;AAwDA;;;;;;;AAA4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA/C,sBAAA,SAA+B,gBAAA;;;;;;;;;;;;;QAarC;cACM;mCACqB;;;;;;;;;aAahB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostgresKyselyMigrator-CqNs3qX8.cjs","names":["PostgresMigrator","options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t}","Migrator"],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":["import { type Kysely, type MigrationProvider, Migrator } from 'kysely';\nimport { PostgresMigrator } from './PostgresMigrator';\n\n/**\n * Default logger instance for migration operations.\n */\nconst logger = console;\n\n/**\n * PostgreSQL migrator implementation for Kysely ORM.\n * Extends PostgresMigrator to provide Kysely-specific migration functionality.\n * Automatically creates test databases and applies migrations for testing environments.\n *\n * @example\n * ```typescript\n * import { FileMigrationProvider } from 'kysely';\n * import { PostgresKyselyMigrator } from '@geekmidas/testkit';\n *\n * // Create migration provider\n * const provider = new FileMigrationProvider({\n * fs: require('fs'),\n * path: require('path'),\n * migrationFolder: path.join(__dirname, 'migrations')\n * });\n *\n * // Create Kysely instance\n * const db = new Kysely<Database>({\n * dialect: new PostgresDialect({\n * pool: new Pool({ connectionString: uri })\n * })\n * });\n *\n * // Create and use migrator\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider\n * });\n *\n * const cleanup = await migrator.start();\n * // Run tests...\n * await cleanup();\n *\n * // With afterCreate hook to create per-app users\n * import { runInitScript } from '@geekmidas/testkit/postgres';\n *\n * const migrator = new PostgresKyselyMigrator({\n * uri: 'postgresql://localhost:5432/test_db',\n * db,\n * provider,\n * afterCreate: async (uri) => {\n * await runInitScript('docker/postgres/init.sh', uri, env);\n * },\n * });\n * ```\n */\nexport class PostgresKyselyMigrator extends PostgresMigrator {\n\t/**\n\t * Creates a new PostgresKyselyMigrator instance.\n\t *\n\t * @param options - Configuration options\n\t * @param options.uri - PostgreSQL connection URI\n\t * @param options.db - Kysely database instance\n\t * @param options.provider - Migration provider for locating migration files\n\t * @param options.afterCreate - Optional hook called after database creation but before migrations\n\t */\n\tconstructor(\n\t\tprivate options: {\n\t\t\turi: string;\n\t\t\tdb: Kysely<any>;\n\t\t\tprovider: MigrationProvider;\n\t\t\tafterCreate?: (uri: string) => Promise<void>;\n\t\t},\n\t) {\n\t\tsuper(options.uri, options.afterCreate);\n\t}\n\n\t/**\n\t * Executes Kysely migrations to the latest version.\n\t * Implements the abstract migrate() method from PostgresMigrator.\n\t *\n\t * @throws Error if migrations fail to apply\n\t * @returns Promise that resolves when all migrations are applied\n\t */\n\tasync migrate(): Promise<void> {\n\t\tconst migrator = new Migrator({\n\t\t\tdb: this.options.db,\n\t\t\tprovider: this.options.provider,\n\t\t});\n\t\tconst migrations = await migrator.migrateToLatest();\n\n\t\tif (migrations.error) {\n\t\t\tlogger.error(migrations.error, `Failed to apply migrations`);\n\t\t\tthrow migrations.error;\n\t\t}\n\n\t\tawait this.options.db.destroy();\n\n\t\tlogger.log(`Applied ${migrations.results?.length} migrations successfully`);\n\t}\n}\n"],"mappings":";;;;;;;;AAMA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDf,IAAa,yBAAb,cAA4CA,0CAAiB;;;;;;;;;;CAU5D,YACSC,SAMP;AACD,QAAM,QAAQ,KAAK,QAAQ,YAAY;EAP/B;CAQR;;;;;;;;CASD,MAAM,UAAyB;EAC9B,MAAM,WAAW,IAAIC,gBAAS;GAC7B,IAAI,KAAK,QAAQ;GACjB,UAAU,KAAK,QAAQ;EACvB;EACD,MAAM,aAAa,MAAM,SAAS,iBAAiB;AAEnD,MAAI,WAAW,OAAO;AACrB,UAAO,MAAM,WAAW,QAAQ,4BAA4B;AAC5D,SAAM,WAAW;EACjB;AAED,QAAM,KAAK,QAAQ,GAAG,SAAS;AAE/B,SAAO,KAAK,UAAU,WAAW,SAAS,OAAO,0BAA0B;CAC3E;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostgresKyselyMigrator-x0uvWs3U.d.mts","names":[],"sources":["../src/PostgresKyselyMigrator.ts"],"sourcesContent":[],"mappings":";;;;;;;AAwDA;;;;;;;AAA4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA/C,sBAAA,SAA+B,gBAAA;;;;;;;;;;;;;QAarC;cACM;mCACqB;;;;;;;;;aAahB"}