@goodie-ts/kysely 1.0.0 → 2.0.1

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 (56) hide show
  1. package/README.md +2 -2
  2. package/dist/abstract-migration.d.ts +2 -2
  3. package/dist/abstract-migration.js +2 -2
  4. package/dist/{beans.json → components.json} +786 -62
  5. package/dist/decorators/migration.d.ts +1 -1
  6. package/dist/decorators/migration.js +1 -1
  7. package/dist/dialects/d1.d.ts.map +1 -1
  8. package/dist/dialects/d1.js +22 -15
  9. package/dist/dialects/d1.js.map +1 -1
  10. package/dist/dialects/libsql.d.ts.map +1 -1
  11. package/dist/dialects/libsql.js +6 -6
  12. package/dist/dialects/libsql.js.map +1 -1
  13. package/dist/dialects/mysql.d.ts.map +1 -1
  14. package/dist/dialects/mysql.js +6 -6
  15. package/dist/dialects/mysql.js.map +1 -1
  16. package/dist/dialects/neon.d.ts.map +1 -1
  17. package/dist/dialects/neon.js +6 -6
  18. package/dist/dialects/neon.js.map +1 -1
  19. package/dist/dialects/planetscale.d.ts.map +1 -1
  20. package/dist/dialects/planetscale.js +6 -6
  21. package/dist/dialects/planetscale.js.map +1 -1
  22. package/dist/dialects/postgres.d.ts.map +1 -1
  23. package/dist/dialects/postgres.js +6 -6
  24. package/dist/dialects/postgres.js.map +1 -1
  25. package/dist/dialects/sqlite.d.ts.map +1 -1
  26. package/dist/dialects/sqlite.js +6 -6
  27. package/dist/dialects/sqlite.js.map +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/kysely-database.d.ts +2 -2
  33. package/dist/kysely-database.js +2 -2
  34. package/dist/kysely-transformer-plugin.d.ts +2 -5
  35. package/dist/kysely-transformer-plugin.d.ts.map +1 -1
  36. package/dist/kysely-transformer-plugin.js +18 -197
  37. package/dist/kysely-transformer-plugin.js.map +1 -1
  38. package/dist/migration-post-processor.d.ts +18 -0
  39. package/dist/migration-post-processor.d.ts.map +1 -0
  40. package/dist/migration-post-processor.js +117 -0
  41. package/dist/migration-post-processor.js.map +1 -0
  42. package/dist/pool-config.d.ts.map +1 -1
  43. package/dist/pool-config.js +2 -2
  44. package/dist/pool-config.js.map +1 -1
  45. package/dist/transaction-manager.d.ts +6 -4
  46. package/dist/transaction-manager.d.ts.map +1 -1
  47. package/dist/transaction-manager.js +166 -119
  48. package/dist/transaction-manager.js.map +1 -1
  49. package/dist/transactional-interceptor.d.ts.map +1 -1
  50. package/dist/transactional-interceptor.js +68 -17
  51. package/dist/transactional-interceptor.js.map +1 -1
  52. package/package.json +6 -6
  53. package/dist/migration-runner.d.ts +0 -16
  54. package/dist/migration-runner.d.ts.map +0 -1
  55. package/dist/migration-runner.js +0 -45
  56. package/dist/migration-runner.js.map +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @goodie-ts/kysely
2
2
 
3
- [Kysely](https://kysely.dev/) integration for [goodie-ts](https://github.com/GOOD-Code-ApS/goodie) — `KyselyDatabase` library bean, declarative transactions, and auto-wired migrations.
3
+ [Kysely](https://kysely.dev/) integration for [goodie-ts](https://github.com/GOOD-Code-ApS/goodie) — `KyselyDatabase` library component, declarative transactions, and auto-wired migrations.
4
4
 
5
5
  ## Install
6
6
 
@@ -109,7 +109,7 @@ export default defineConfig({
109
109
  });
110
110
  ```
111
111
 
112
- The kysely plugin is auto-discovered — no manual `plugins` configuration needed. `KyselyDatabase` is provided as a library bean.
112
+ The kysely plugin is auto-discovered — no manual `plugins` configuration needed. `KyselyDatabase` is provided as a library component.
113
113
 
114
114
  ## License
115
115
 
@@ -3,8 +3,8 @@ import type { Kysely } from 'kysely';
3
3
  * Abstract base class for Kysely migrations.
4
4
  *
5
5
  * Extend this class and decorate with `@Migration('name')` to define a
6
- * migration that is auto-discovered and executed by the MigrationRunner
7
- * at application startup.
6
+ * migration that is auto-discovered and executed by the MigrationPostProcessor
7
+ * when KyselyDatabase is initialized.
8
8
  *
9
9
  * @example
10
10
  * ```typescript
@@ -2,8 +2,8 @@
2
2
  * Abstract base class for Kysely migrations.
3
3
  *
4
4
  * Extend this class and decorate with `@Migration('name')` to define a
5
- * migration that is auto-discovered and executed by the MigrationRunner
6
- * at application startup.
5
+ * migration that is auto-discovered and executed by the MigrationPostProcessor
6
+ * when KyselyDatabase is initialized.
7
7
  *
8
8
  * @example
9
9
  * ```typescript