@warlock.js/cascade 4.1.6 → 4.1.8

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 (165) hide show
  1. package/esm/cli/commands/migrate-export-sql.mjs +1 -1
  2. package/esm/cli/commands/migrate-list.mjs +1 -1
  3. package/esm/cli/commands/migrate-rollback.mjs +1 -1
  4. package/esm/cli/commands/migrate.mjs +1 -1
  5. package/esm/cli/connection-from-env.mjs +1 -1
  6. package/esm/cli/index.mjs +1 -1
  7. package/esm/cli/load-migrations.mjs +1 -1
  8. package/esm/cli/printers.mjs +1 -1
  9. package/esm/cli/setup-logger.mjs +1 -1
  10. package/esm/cli/with-cli-connection.mjs +1 -1
  11. package/esm/cli.mjs +1 -1
  12. package/esm/context/database-data-source-context.d.mts +1 -1
  13. package/esm/context/database-data-source-context.mjs +1 -1
  14. package/esm/context/database-transaction-context.d.mts +1 -1
  15. package/esm/context/database-transaction-context.mjs +1 -1
  16. package/esm/contracts/database-driver.contract.d.mts +1 -1
  17. package/esm/contracts/database-id-generator.contract.d.mts +1 -1
  18. package/esm/contracts/database-remover.contract.d.mts +1 -1
  19. package/esm/contracts/database-restorer.contract.d.mts +1 -1
  20. package/esm/contracts/database-writer.contract.d.mts +1 -1
  21. package/esm/contracts/driver-blueprint.contract.d.mts +1 -1
  22. package/esm/contracts/migration-driver.contract.d.mts +1 -1
  23. package/esm/contracts/query-builder.contract.d.mts +1 -1
  24. package/esm/contracts/sync-adapter.contract.d.mts +1 -1
  25. package/esm/data-source/data-source-registry.d.mts +1 -1
  26. package/esm/data-source/data-source-registry.mjs +1 -1
  27. package/esm/data-source/data-source.d.mts +1 -1
  28. package/esm/data-source/data-source.mjs +1 -1
  29. package/esm/database-dirty-tracker.d.mts +1 -1
  30. package/esm/database-dirty-tracker.mjs +1 -1
  31. package/esm/drivers/mongodb/mongodb-blueprint.mjs +1 -1
  32. package/esm/drivers/mongodb/mongodb-driver.d.mts +1 -1
  33. package/esm/drivers/mongodb/mongodb-driver.mjs +1 -1
  34. package/esm/drivers/mongodb/mongodb-id-generator.d.mts +1 -1
  35. package/esm/drivers/mongodb/mongodb-id-generator.mjs +1 -1
  36. package/esm/drivers/mongodb/mongodb-migration-driver.d.mts +1 -1
  37. package/esm/drivers/mongodb/mongodb-migration-driver.mjs +1 -1
  38. package/esm/drivers/mongodb/mongodb-query-builder.d.mts +1 -1
  39. package/esm/drivers/mongodb/mongodb-query-builder.mjs +1 -1
  40. package/esm/drivers/mongodb/mongodb-query-operations.d.mts +1 -1
  41. package/esm/drivers/mongodb/mongodb-query-operations.mjs +1 -1
  42. package/esm/drivers/mongodb/mongodb-query-parser.d.mts +1 -1
  43. package/esm/drivers/mongodb/mongodb-query-parser.mjs +1 -1
  44. package/esm/drivers/mongodb/mongodb-sync-adapter.d.mts +1 -1
  45. package/esm/drivers/mongodb/mongodb-sync-adapter.mjs +1 -1
  46. package/esm/drivers/mongodb/types.d.mts +1 -1
  47. package/esm/drivers/postgres/postgres-blueprint.d.mts +1 -1
  48. package/esm/drivers/postgres/postgres-blueprint.mjs +1 -1
  49. package/esm/drivers/postgres/postgres-dialect.d.mts +1 -1
  50. package/esm/drivers/postgres/postgres-dialect.mjs +1 -1
  51. package/esm/drivers/postgres/postgres-driver.d.mts +1 -1
  52. package/esm/drivers/postgres/postgres-driver.mjs +1 -1
  53. package/esm/drivers/postgres/postgres-migration-driver.d.mts +1 -1
  54. package/esm/drivers/postgres/postgres-migration-driver.mjs +1 -1
  55. package/esm/drivers/postgres/postgres-query-builder.d.mts +1 -1
  56. package/esm/drivers/postgres/postgres-query-builder.mjs +1 -1
  57. package/esm/drivers/postgres/postgres-query-parser.d.mts +1 -1
  58. package/esm/drivers/postgres/postgres-query-parser.mjs +1 -1
  59. package/esm/drivers/postgres/postgres-sql-serializer.mjs +1 -1
  60. package/esm/drivers/postgres/postgres-sync-adapter.d.mts +1 -1
  61. package/esm/drivers/postgres/postgres-sync-adapter.mjs +1 -1
  62. package/esm/drivers/postgres/types.d.mts +1 -1
  63. package/esm/drivers/sql/sql-dialect.contract.d.mts +1 -1
  64. package/esm/drivers/sql/sql-types.d.mts +1 -1
  65. package/esm/errors/missing-data-source.error.d.mts +1 -1
  66. package/esm/errors/missing-data-source.error.mjs +1 -1
  67. package/esm/errors/transaction-rollback.error.d.mts +1 -1
  68. package/esm/errors/transaction-rollback.error.mjs +1 -1
  69. package/esm/events/model-events.d.mts +1 -1
  70. package/esm/events/model-events.mjs +1 -1
  71. package/esm/expressions/aggregate-expressions.d.mts +1 -1
  72. package/esm/expressions/aggregate-expressions.mjs +1 -1
  73. package/esm/index.d.mts +3 -1
  74. package/esm/migration/column-builder.d.mts +1 -1
  75. package/esm/migration/column-builder.mjs +1 -1
  76. package/esm/migration/column-helpers.d.mts +1 -1
  77. package/esm/migration/column-helpers.mjs +1 -1
  78. package/esm/migration/foreign-key-builder.d.mts +1 -1
  79. package/esm/migration/foreign-key-builder.mjs +1 -1
  80. package/esm/migration/migration-runner.d.mts +1 -1
  81. package/esm/migration/migration-runner.mjs +1 -1
  82. package/esm/migration/migration.d.mts +1 -1
  83. package/esm/migration/migration.mjs +1 -1
  84. package/esm/migration/sql-grammar.mjs +1 -1
  85. package/esm/migration/sql-serializer.d.mts +1 -1
  86. package/esm/migration/sql-serializer.mjs +1 -1
  87. package/esm/migration/types.d.mts +1 -1
  88. package/esm/model/methods/accessor-methods.mjs +1 -1
  89. package/esm/model/methods/delete-methods.mjs +1 -1
  90. package/esm/model/methods/dirty-methods.mjs +1 -1
  91. package/esm/model/methods/hydration-methods.mjs +1 -1
  92. package/esm/model/methods/instance-event-methods.mjs +1 -1
  93. package/esm/model/methods/meta-methods.mjs +1 -1
  94. package/esm/model/methods/pivot-methods.mjs +1 -1
  95. package/esm/model/methods/query-methods.mjs +1 -1
  96. package/esm/model/methods/restore-methods.mjs +1 -1
  97. package/esm/model/methods/scope-methods.mjs +1 -1
  98. package/esm/model/methods/serialization-methods.mjs +1 -1
  99. package/esm/model/methods/static-event-methods.mjs +1 -1
  100. package/esm/model/methods/write-methods.mjs +1 -1
  101. package/esm/model/model.d.mts +1 -1
  102. package/esm/model/model.mjs +1 -1
  103. package/esm/model/model.types.d.mts +1 -1
  104. package/esm/model/register-model.d.mts +1 -1
  105. package/esm/model/register-model.mjs +1 -1
  106. package/esm/model/relation-decorators.d.mts +1 -1
  107. package/esm/model/relation-decorators.mjs +1 -1
  108. package/esm/operations/database.d.mts +1 -1
  109. package/esm/operations/database.mjs +1 -1
  110. package/esm/operations/migrations.d.mts +1 -1
  111. package/esm/operations/migrations.mjs +1 -1
  112. package/esm/query-builder/query-builder.d.mts +1 -1
  113. package/esm/query-builder/query-builder.mjs +1 -1
  114. package/esm/relations/key-conventions.mjs +1 -1
  115. package/esm/relations/pivot-operations.d.mts +1 -1
  116. package/esm/relations/pivot-operations.mjs +1 -1
  117. package/esm/relations/relation-hydrator.d.mts +1 -1
  118. package/esm/relations/relation-hydrator.mjs +1 -1
  119. package/esm/relations/relation-loader.d.mts +1 -1
  120. package/esm/relations/relation-loader.mjs +1 -1
  121. package/esm/relations/types.d.mts +1 -1
  122. package/esm/remover/database-remover.d.mts +1 -1
  123. package/esm/remover/database-remover.mjs +1 -1
  124. package/esm/restorer/database-restorer.d.mts +1 -1
  125. package/esm/restorer/database-restorer.mjs +1 -1
  126. package/esm/sql-database-dirty-tracker.d.mts +1 -1
  127. package/esm/sql-database-dirty-tracker.mjs +1 -1
  128. package/esm/sync/model-events.mjs +1 -1
  129. package/esm/sync/model-sync-operation.d.mts +1 -1
  130. package/esm/sync/model-sync-operation.mjs +1 -1
  131. package/esm/sync/model-sync.d.mts +1 -1
  132. package/esm/sync/model-sync.mjs +1 -1
  133. package/esm/sync/sync-context.d.mts +1 -1
  134. package/esm/sync/sync-context.mjs +1 -1
  135. package/esm/sync/sync-manager.d.mts +1 -1
  136. package/esm/sync/sync-manager.mjs +1 -1
  137. package/esm/sync/types.d.mts +1 -1
  138. package/esm/types.d.mts +1 -1
  139. package/esm/utils/connect-to-database.d.mts +1 -1
  140. package/esm/utils/connect-to-database.mjs +1 -1
  141. package/esm/utils/database-writer.utils.d.mts +1 -1
  142. package/esm/utils/database-writer.utils.mjs +1 -1
  143. package/esm/utils/define-model.d.mts +1 -1
  144. package/esm/utils/define-model.mjs +1 -1
  145. package/esm/utils/is-valid-date-value.mjs +1 -1
  146. package/esm/utils/once-connected.d.mts +1 -1
  147. package/esm/utils/once-connected.mjs +1 -1
  148. package/esm/validation/database-seal-plugins.mjs +1 -1
  149. package/esm/validation/database-writer-validation-error.d.mts +1 -1
  150. package/esm/validation/database-writer-validation-error.mjs +1 -1
  151. package/esm/validation/mutators/embed-mutator.mjs +1 -1
  152. package/esm/validation/plugins/database-rules-plugin.d.mts +1 -1
  153. package/esm/validation/plugins/database-rules-plugin.mjs +1 -1
  154. package/esm/validation/plugins/embed-validator-plugin.d.mts +1 -1
  155. package/esm/validation/plugins/embed-validator-plugin.mjs +1 -1
  156. package/esm/validation/rules/database-model-rule.mjs +1 -1
  157. package/esm/validation/rules/exists-rule.mjs +1 -1
  158. package/esm/validation/rules/unique-rule.mjs +1 -1
  159. package/esm/validation/transformers/embed-model-transformer.mjs +1 -1
  160. package/esm/validation/types.d.mts +1 -1
  161. package/esm/validation/validators/embed-validator.d.mts +1 -1
  162. package/esm/validation/validators/embed-validator.mjs +1 -1
  163. package/esm/writer/database-writer.d.mts +1 -1
  164. package/esm/writer/database-writer.mjs +1 -1
  165. package/package.json +4 -4
@@ -3,7 +3,7 @@ import { DEFAULT_MAX_SYNC_DEPTH } from "./sync-context.mjs";
3
3
  import { SyncManager } from "./sync-manager.mjs";
4
4
  import events from "@mongez/events";
5
5
 
6
- //#region ../../@warlock.js/cascade/src/sync/model-sync-operation.ts
6
+ //#region ../@warlock.js/cascade/src/sync/model-sync-operation.ts
7
7
  /**
8
8
  * Model sync operation class.
9
9
  *
@@ -2,7 +2,7 @@ import { ChildModel } from "../model/model.types.mjs";
2
2
  import { ModelSyncContract, ModelSyncOperationContract } from "./types.mjs";
3
3
  import { Model } from "../model/model.mjs";
4
4
 
5
- //#region ../../@warlock.js/cascade/src/sync/model-sync.d.ts
5
+ //#region ../@warlock.js/cascade/src/sync/model-sync.d.ts
6
6
  /**
7
7
  * ModelSync facade implementation.
8
8
  *
@@ -1,6 +1,6 @@
1
1
  import { ModelSyncOperation } from "./model-sync-operation.mjs";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/sync/model-sync.ts
3
+ //#region ../@warlock.js/cascade/src/sync/model-sync.ts
4
4
  /**
5
5
  * ModelSync facade implementation.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  import { SyncContext, SyncInstruction } from "./types.mjs";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/sync/sync-context.d.ts
3
+ //#region ../@warlock.js/cascade/src/sync/sync-context.d.ts
4
4
  /**
5
5
  * Default maximum sync depth.
6
6
  * Prevents infinite sync chains.
@@ -1,4 +1,4 @@
1
- //#region ../../@warlock.js/cascade/src/sync/sync-context.ts
1
+ //#region ../@warlock.js/cascade/src/sync/sync-context.ts
2
2
  /**
3
3
  * Default maximum sync depth.
4
4
  * Prevents infinite sync chains.
@@ -3,7 +3,7 @@ import { SyncConfig, SyncResult } from "./types.mjs";
3
3
  import { Model } from "../model/model.mjs";
4
4
  import { DriverContract } from "../contracts/database-driver.contract.mjs";
5
5
 
6
- //#region ../../@warlock.js/cascade/src/sync/sync-manager.d.ts
6
+ //#region ../@warlock.js/cascade/src/sync/sync-manager.d.ts
7
7
  /**
8
8
  * Manages sync operations across models with multi-level support.
9
9
  */
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_MAX_SYNC_DEPTH, SyncContextManager } from "./sync-context.mjs";
2
2
  import { Model } from "../model/model.mjs";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/sync/sync-manager.ts
4
+ //#region ../@warlock.js/cascade/src/sync/sync-manager.ts
5
5
  /**
6
6
  * Manages sync operations across models with multi-level support.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { ChildModel } from "../model/model.types.mjs";
2
2
  import { Model } from "../model/model.mjs";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/sync/types.d.ts
4
+ //#region ../@warlock.js/cascade/src/sync/types.d.ts
5
5
  /**
6
6
  * Context information for a sync operation.
7
7
  * Tracks the source, target, chain, and results of a sync operation.
package/esm/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../../@warlock.js/cascade/src/types.d.ts
1
+ //#region ../@warlock.js/cascade/src/types.d.ts
2
2
  /**
3
3
  * Strict mode configuration for handling unknown fields during validation.
4
4
  *
@@ -2,7 +2,7 @@ import { DeleteStrategy, MigrationDefaults, ModelDefaults, RelationDefaults } fr
2
2
  import { DriverContract, TransactionContext } from "../contracts/database-driver.contract.mjs";
3
3
  import { DataSource } from "../data-source/data-source.mjs";
4
4
 
5
- //#region ../../@warlock.js/cascade/src/utils/connect-to-database.d.ts
5
+ //#region ../@warlock.js/cascade/src/utils/connect-to-database.d.ts
6
6
  /**
7
7
  * Supported database driver types.
8
8
  */
@@ -4,7 +4,7 @@ import { MongoDbDriver } from "../drivers/mongodb/mongodb-driver.mjs";
4
4
  import { PostgresDriver } from "../drivers/postgres/postgres-driver.mjs";
5
5
  import "../drivers/postgres/index.mjs";
6
6
 
7
- //#region ../../@warlock.js/cascade/src/utils/connect-to-database.ts
7
+ //#region ../@warlock.js/cascade/src/utils/connect-to-database.ts
8
8
  /**
9
9
  * Connect to a database and register the data source.
10
10
  *
@@ -1,6 +1,6 @@
1
1
  import { Model } from "../model/model.mjs";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/utils/database-writer.utils.d.ts
3
+ //#region ../@warlock.js/cascade/src/utils/database-writer.utils.d.ts
4
4
  type transformCallbackOptions = {
5
5
  model: Model;
6
6
  column: string;
@@ -1,4 +1,4 @@
1
- //#region ../../@warlock.js/cascade/src/utils/database-writer.utils.ts
1
+ //#region ../@warlock.js/cascade/src/utils/database-writer.utils.ts
2
2
  /**
3
3
  * Transfer value before saving it into the database
4
4
  */
@@ -3,7 +3,7 @@ import { ModelSchema } from "../model/model.types.mjs";
3
3
  import { Model } from "../model/model.mjs";
4
4
  import { Infer, ObjectValidator } from "@warlock.js/seal";
5
5
 
6
- //#region ../../@warlock.js/cascade/src/utils/define-model.d.ts
6
+ //#region ../@warlock.js/cascade/src/utils/define-model.d.ts
7
7
  /**
8
8
  * Configuration options for defining a model.
9
9
  */
@@ -1,7 +1,7 @@
1
1
  import { registerModelInRegistry } from "../model/register-model.mjs";
2
2
  import { Model } from "../model/model.mjs";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/utils/define-model.ts
4
+ //#region ../@warlock.js/cascade/src/utils/define-model.ts
5
5
  /**
6
6
  * Define a model with a clean, concise API.
7
7
  *
@@ -1,4 +1,4 @@
1
- //#region ../../@warlock.js/cascade/src/utils/is-valid-date-value.ts
1
+ //#region ../@warlock.js/cascade/src/utils/is-valid-date-value.ts
2
2
  const isoRegex = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/;
3
3
  /**
4
4
  * Check if the given value is a valid date value
@@ -1,6 +1,6 @@
1
1
  import { DataSource } from "../data-source/data-source.mjs";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/utils/once-connected.d.ts
3
+ //#region ../@warlock.js/cascade/src/utils/once-connected.d.ts
4
4
  /**
5
5
  * Execute a callback once the driver is connected.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  import { dataSourceRegistry } from "../data-source/data-source-registry.mjs";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/utils/once-connected.ts
3
+ //#region ../@warlock.js/cascade/src/utils/once-connected.ts
4
4
  /**
5
5
  * Execute a callback once the driver is connected.
6
6
  *
@@ -2,7 +2,7 @@ import { databaseRulesPlugin } from "./plugins/database-rules-plugin.mjs";
2
2
  import { embedValidator } from "./plugins/embed-validator-plugin.mjs";
3
3
  import { registerPlugin } from "@warlock.js/seal";
4
4
 
5
- //#region ../../@warlock.js/cascade/src/validation/database-seal-plugins.ts
5
+ //#region ../@warlock.js/cascade/src/validation/database-seal-plugins.ts
6
6
  registerPlugin(embedValidator);
7
7
  registerPlugin(databaseRulesPlugin);
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { ValidationResult } from "@warlock.js/seal";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/validation/database-writer-validation-error.d.ts
3
+ //#region ../@warlock.js/cascade/src/validation/database-writer-validation-error.d.ts
4
4
  /**
5
5
  * Error thrown when model validation fails during database write operations.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  import { colors } from "@mongez/copper";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/validation/database-writer-validation-error.ts
3
+ //#region ../@warlock.js/cascade/src/validation/database-writer-validation-error.ts
4
4
  /**
5
5
  * Error thrown when model validation fails during database write operations.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  import { getModelFromRegistry } from "../../model/register-model.mjs";
2
2
  import { Model } from "../../model/model.mjs";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/validation/mutators/embed-mutator.ts
4
+ //#region ../@warlock.js/cascade/src/validation/mutators/embed-mutator.ts
5
5
  const databaseModelMutator = async (value, context) => {
6
6
  let { model: ModelClass } = context?.options || {};
7
7
  if (typeof ModelClass === "string") ModelClass = getModelFromRegistry(ModelClass);
@@ -1,7 +1,7 @@
1
1
  import { ChildModel } from "../../model/model.types.mjs";
2
2
  import { Model } from "../../model/model.mjs";
3
3
  import { ExistsRuleOptions, UniqueRuleOptions } from "../types.mjs";
4
- //#region ../../@warlock.js/cascade/src/validation/plugins/database-rules-plugin.d.ts
4
+ //#region ../@warlock.js/cascade/src/validation/plugins/database-rules-plugin.d.ts
5
5
  declare module "@warlock.js/seal" {
6
6
  interface ScalarValidator {
7
7
  /** Value must be unique in database */
@@ -2,7 +2,7 @@ import { existsRule } from "../rules/exists-rule.mjs";
2
2
  import { uniqueRule } from "../rules/unique-rule.mjs";
3
3
  import { NumberValidator, ScalarValidator, StringValidator } from "@warlock.js/seal";
4
4
 
5
- //#region ../../@warlock.js/cascade/src/validation/plugins/database-rules-plugin.ts
5
+ //#region ../@warlock.js/cascade/src/validation/plugins/database-rules-plugin.ts
6
6
  /**
7
7
  * Cascade's database-rules plugin for Seal.
8
8
  */
@@ -1,6 +1,6 @@
1
1
  import { ChildModel } from "../../model/model.types.mjs";
2
2
  import { EmbedModelValidator } from "../validators/embed-validator.mjs";
3
- //#region ../../@warlock.js/cascade/src/validation/plugins/embed-validator-plugin.d.ts
3
+ //#region ../@warlock.js/cascade/src/validation/plugins/embed-validator-plugin.d.ts
4
4
  type EmbedOptions = {
5
5
  errorMessage?: string;
6
6
  embed?: string | string[];
@@ -1,7 +1,7 @@
1
1
  import { EmbedModelValidator } from "../validators/embed-validator.mjs";
2
2
  import { v } from "@warlock.js/seal";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/validation/plugins/embed-validator-plugin.ts
4
+ //#region ../@warlock.js/cascade/src/validation/plugins/embed-validator-plugin.ts
5
5
  /**
6
6
  * File validation plugin for Seal
7
7
  */
@@ -2,7 +2,7 @@ import { getModelFromRegistry } from "../../model/register-model.mjs";
2
2
  import { Model } from "../../model/model.mjs";
3
3
  import { VALID_RULE, invalidRule } from "@warlock.js/seal";
4
4
 
5
- //#region ../../@warlock.js/cascade/src/validation/rules/database-model-rule.ts
5
+ //#region ../@warlock.js/cascade/src/validation/rules/database-model-rule.ts
6
6
  const databaseModelRule = {
7
7
  name: "databaseModel",
8
8
  defaultErrorMessage: "The :input must be a valid :model model",
@@ -1,7 +1,7 @@
1
1
  import { resolveModelClass } from "../../model/register-model.mjs";
2
2
  import { VALID_RULE, invalidRule } from "@warlock.js/seal";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/validation/rules/exists-rule.ts
4
+ //#region ../@warlock.js/cascade/src/validation/rules/exists-rule.ts
5
5
  /**
6
6
  * Validates that a record exists in the database for the given column/value.
7
7
  *
@@ -2,7 +2,7 @@ import { resolveModelClass } from "../../model/register-model.mjs";
2
2
  import { get } from "@mongez/reinforcements";
3
3
  import { VALID_RULE, invalidRule } from "@warlock.js/seal";
4
4
 
5
- //#region ../../@warlock.js/cascade/src/validation/rules/unique-rule.ts
5
+ //#region ../@warlock.js/cascade/src/validation/rules/unique-rule.ts
6
6
  /**
7
7
  * Validates that a value is unique against a database column.
8
8
  *
@@ -1,6 +1,6 @@
1
1
  import { Model } from "../../model/model.mjs";
2
2
 
3
- //#region ../../@warlock.js/cascade/src/validation/transformers/embed-model-transformer.ts
3
+ //#region ../@warlock.js/cascade/src/validation/transformers/embed-model-transformer.ts
4
4
  const databaseModelTransformer = (value, context) => {
5
5
  const embed = context.options.embed ?? "embedData";
6
6
  if (value instanceof Model === false && !Array.isArray(value)) return value;
@@ -2,7 +2,7 @@ import { ChildModel } from "../model/model.types.mjs";
2
2
  import { Model } from "../model/model.mjs";
3
3
  import { QueryBuilderContract } from "../contracts/query-builder.contract.mjs";
4
4
 
5
- //#region ../../@warlock.js/cascade/src/validation/types.d.ts
5
+ //#region ../@warlock.js/cascade/src/validation/types.d.ts
6
6
  /**
7
7
  * Base options shared by all database-backed validation rules.
8
8
  *
@@ -1,7 +1,7 @@
1
1
  import { ChildModel } from "../../model/model.types.mjs";
2
2
  import { BaseValidator } from "@warlock.js/seal";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/validation/validators/embed-validator.d.ts
4
+ //#region ../@warlock.js/cascade/src/validation/validators/embed-validator.d.ts
5
5
  declare class EmbedModelValidator extends BaseValidator {
6
6
  /**
7
7
  * Check if value is a string type
@@ -4,7 +4,7 @@ import { databaseModelTransformer } from "../transformers/embed-model-transforme
4
4
  import { Model } from "../../model/model.mjs";
5
5
  import { BaseValidator, arrayRule } from "@warlock.js/seal";
6
6
 
7
- //#region ../../@warlock.js/cascade/src/validation/validators/embed-validator.ts
7
+ //#region ../@warlock.js/cascade/src/validation/validators/embed-validator.ts
8
8
  var EmbedModelValidator = class extends BaseValidator {
9
9
  /**
10
10
  * Check if value is a string type
@@ -1,7 +1,7 @@
1
1
  import { Model } from "../model/model.mjs";
2
2
  import { WriterContract, WriterOptions, WriterResult } from "../contracts/database-writer.contract.mjs";
3
3
 
4
- //#region ../../@warlock.js/cascade/src/writer/database-writer.d.ts
4
+ //#region ../@warlock.js/cascade/src/writer/database-writer.d.ts
5
5
  /**
6
6
  * Database writer service that orchestrates model persistence.
7
7
  *
@@ -4,7 +4,7 @@ import "../validation/index.mjs";
4
4
  import events from "@mongez/events";
5
5
  import { getSealConfig, v } from "@warlock.js/seal";
6
6
 
7
- //#region ../../@warlock.js/cascade/src/writer/database-writer.ts
7
+ //#region ../@warlock.js/cascade/src/writer/database-writer.ts
8
8
  /**
9
9
  * Database writer service that orchestrates model persistence.
10
10
  *
package/package.json CHANGED
@@ -27,9 +27,9 @@
27
27
  "@mongez/events": "^2.2.6",
28
28
  "@mongez/reinforcements": "^3.2.0",
29
29
  "@mongez/supportive-is": "^2.1.3",
30
- "@warlock.js/context": "4.1.6",
31
- "@warlock.js/logger": "4.1.6",
32
- "@warlock.js/seal": "4.1.6",
30
+ "@warlock.js/context": "*",
31
+ "@warlock.js/logger": "*",
32
+ "@warlock.js/seal": "*",
33
33
  "citty": "^0.2.2",
34
34
  "fast-glob": "^3.3.3"
35
35
  },
@@ -40,7 +40,7 @@
40
40
  "bin": {
41
41
  "cascade": "bin/cascade.js"
42
42
  },
43
- "version": "4.1.6",
43
+ "version": "4.1.8",
44
44
  "type": "module",
45
45
  "main": "./esm/index.mjs",
46
46
  "module": "./esm/index.mjs",