@decaf-ts/core 0.26.3 → 0.26.4

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.
@@ -24,21 +24,21 @@ export * from "./persistence/index.d.cts";
24
24
  * @const VERSION
25
25
  * @memberOf module:core
26
26
  */
27
- export declare const VERSION = "0.26.2";
27
+ export declare const VERSION = "0.26.3";
28
28
  /**
29
29
  * @description Represents the current commit hash of the module build.
30
30
  * @summary Stores the current git commit hash for the package. The build replaces
31
31
  * the placeholder with the actual commit hash at publish time.
32
32
  * @const COMMIT
33
33
  */
34
- export declare const COMMIT = "3e8a41d";
34
+ export declare const COMMIT = "14c152c";
35
35
  /**
36
36
  * @description Represents the full version string of the module.
37
37
  * @summary Stores the semver version and commit hash for the package.
38
38
  * The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
39
39
  * @const FULL_VERSION
40
40
  */
41
- export declare const FULL_VERSION = "0.26.2-3e8a41d";
41
+ export declare const FULL_VERSION = "0.26.3-14c152c";
42
42
  /**
43
43
  * @description Stores the current package version
44
44
  * @summary A constant representing the version of the core package
@@ -24,21 +24,21 @@ export * from "./persistence/index.d.mts";
24
24
  * @const VERSION
25
25
  * @memberOf module:core
26
26
  */
27
- export declare const VERSION = "0.26.2";
27
+ export declare const VERSION = "0.26.3";
28
28
  /**
29
29
  * @description Represents the current commit hash of the module build.
30
30
  * @summary Stores the current git commit hash for the package. The build replaces
31
31
  * the placeholder with the actual commit hash at publish time.
32
32
  * @const COMMIT
33
33
  */
34
- export declare const COMMIT = "3e8a41d";
34
+ export declare const COMMIT = "14c152c";
35
35
  /**
36
36
  * @description Represents the full version string of the module.
37
37
  * @summary Stores the semver version and commit hash for the package.
38
38
  * The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
39
39
  * @const FULL_VERSION
40
40
  */
41
- export declare const FULL_VERSION = "0.26.2-3e8a41d";
41
+ export declare const FULL_VERSION = "0.26.3-14c152c";
42
42
  /**
43
43
  * @description Stores the current package version
44
44
  * @summary A constant representing the version of the core package
@@ -17,6 +17,7 @@ type VersionTask = {
17
17
  };
18
18
  export declare class MigrationService<PERSIST extends boolean, A extends Adapter<any, any, any, any> = any, R = void> extends ClientBasedService<PERSIST extends boolean ? A : void, MigrationConfig<PERSIST>> implements Migration<A, R> {
19
19
  protected versioning: MigrationVersioning;
20
+ protected allowedReferences: Set<string> | undefined;
20
21
  protected queuedTaskChain: Array<{
21
22
  id: string;
22
23
  version: string;
@@ -17,6 +17,7 @@ type VersionTask = {
17
17
  };
18
18
  export declare class MigrationService<PERSIST extends boolean, A extends Adapter<any, any, any, any> = any, R = void> extends ClientBasedService<PERSIST extends boolean ? A : void, MigrationConfig<PERSIST>> implements Migration<A, R> {
19
19
  protected versioning: MigrationVersioning;
20
+ protected allowedReferences: Set<string> | undefined;
20
21
  protected queuedTaskChain: Array<{
21
22
  id: string;
22
23
  version: string;
@@ -32,6 +32,8 @@ export type PersistenceMigrationConfig<AD extends Adapter<any, any, any, any> =
32
32
  flavours?: string[];
33
33
  taskService?: TaskService<any>;
34
34
  handlers?: Partial<Record<string, AdapterMigrationHandlers<AD>>>;
35
+ versioning?: MigrationVersioning;
36
+ references?: string[];
35
37
  };
36
38
  export type MigrationConfig<PERSIST extends boolean> = AdapterFlags<any> & {
37
39
  persistMigrationSteps: PERSIST;
@@ -43,4 +45,5 @@ export type MigrationConfig<PERSIST extends boolean> = AdapterFlags<any> & {
43
45
  setCurrentVersion?: SetCurrentVersionHandler;
44
46
  taskService?: TaskService<any>;
45
47
  versioning?: MigrationVersioning;
48
+ references?: string[];
46
49
  };
@@ -32,6 +32,8 @@ export type PersistenceMigrationConfig<AD extends Adapter<any, any, any, any> =
32
32
  flavours?: string[];
33
33
  taskService?: TaskService<any>;
34
34
  handlers?: Partial<Record<string, AdapterMigrationHandlers<AD>>>;
35
+ versioning?: MigrationVersioning;
36
+ references?: string[];
35
37
  };
36
38
  export type MigrationConfig<PERSIST extends boolean> = AdapterFlags<any> & {
37
39
  persistMigrationSteps: PERSIST;
@@ -43,4 +45,5 @@ export type MigrationConfig<PERSIST extends boolean> = AdapterFlags<any> & {
43
45
  setCurrentVersion?: SetCurrentVersionHandler;
44
46
  taskService?: TaskService<any>;
45
47
  versioning?: MigrationVersioning;
48
+ references?: string[];
46
49
  };
@@ -8,6 +8,13 @@ import { PreparedStatementKeys } from "../query/constants.d.cts";
8
8
  * @readonly
9
9
  * @memberOf module:core
10
10
  */
11
+ /**
12
+ * @description Metadata key segment used for non-composite (single property) indexes
13
+ * @summary Reserved variant key under which a property's plain `@index()` metadata is stored, allowing it to coexist with composite `@index(directions, compositions)` declarations on the same property
14
+ * @const INDEX_SELF
15
+ * @memberOf module:core
16
+ */
17
+ export declare const INDEX_SELF = "__self__";
11
18
  export declare enum PersistenceKeys {
12
19
  PERSISTENCE = "persistence",
13
20
  /** @description Key for index metadata */
@@ -8,6 +8,13 @@ import { PreparedStatementKeys } from "../query/constants.d.mts";
8
8
  * @readonly
9
9
  * @memberOf module:core
10
10
  */
11
+ /**
12
+ * @description Metadata key segment used for non-composite (single property) indexes
13
+ * @summary Reserved variant key under which a property's plain `@index()` metadata is stored, allowing it to coexist with composite `@index(directions, compositions)` declarations on the same property
14
+ * @const INDEX_SELF
15
+ * @memberOf module:core
16
+ */
17
+ export declare const INDEX_SELF = "__self__";
11
18
  export declare enum PersistenceKeys {
12
19
  PERSISTENCE = "persistence",
13
20
  /** @description Key for index metadata */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/core",
3
- "version": "0.26.3",
3
+ "version": "0.26.4",
4
4
  "description": "Core persistence module for the decaf framework",
5
5
  "type": "module",
6
6
  "exports": {