@decaf-ts/core 0.25.1 → 0.25.2

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/lib/cjs/index.cjs CHANGED
@@ -50,7 +50,7 @@ __exportStar(require("./persistence/index.cjs"), exports);
50
50
  * @const VERSION
51
51
  * @memberOf module:core
52
52
  */
53
- exports.VERSION = "0.25.0";
53
+ exports.VERSION = "0.25.1";
54
54
  /**
55
55
  * @description Stores the current package version
56
56
  * @summary A constant representing the version of the core package
package/lib/esm/index.js CHANGED
@@ -33,7 +33,7 @@ export * from "./persistence/index.js";
33
33
  * @const VERSION
34
34
  * @memberOf module:core
35
35
  */
36
- export const VERSION = "0.25.0";
36
+ export const VERSION = "0.25.1";
37
37
  /**
38
38
  * @description Stores the current package version
39
39
  * @summary A constant representing the version of the core package
@@ -24,7 +24,7 @@ export * from "./persistence/index.d.cts";
24
24
  * @const VERSION
25
25
  * @memberOf module:core
26
26
  */
27
- export declare const VERSION = "0.25.0";
27
+ export declare const VERSION = "0.25.1";
28
28
  /**
29
29
  * @description Stores the current package version
30
30
  * @summary A constant representing the version of the core package
@@ -24,7 +24,7 @@ export * from "./persistence/index.d.mts";
24
24
  * @const VERSION
25
25
  * @memberOf module:core
26
26
  */
27
- export declare const VERSION = "0.25.0";
27
+ export declare const VERSION = "0.25.1";
28
28
  /**
29
29
  * @description Stores the current package version
30
30
  * @summary A constant representing the version of the core package
@@ -83,7 +83,7 @@ export declare abstract class Statement<M extends Model, A extends Adapter<any,
83
83
  protected offsetSelector?: number;
84
84
  protected prepared?: PreparedStatement<M>;
85
85
  protected constructor(adapter: Adapter<any, any, Q, any>, overrides?: Partial<AdapterFlags> | undefined);
86
- protected executionPrefix(method: any, ...args: MaybeContextualArg<ContextOf<A>>): Promise<[Constructor<M>, ...any[], any]>;
86
+ protected executionPrefix(method: any, ...args: MaybeContextualArg<ContextOf<A>>): Promise<ContextualArgs<any, [Constructor<M>, ...any[]]>>;
87
87
  protected get log(): Logger;
88
88
  select<S extends readonly SelectSelector<M>[]>(): SelectOption<M, M[]>;
89
89
  select<S extends readonly SelectSelector<M>[]>(selector: readonly [...S]): SelectOption<M, Pick<M, S[number]>[]>;
@@ -83,7 +83,7 @@ export declare abstract class Statement<M extends Model, A extends Adapter<any,
83
83
  protected offsetSelector?: number;
84
84
  protected prepared?: PreparedStatement<M>;
85
85
  protected constructor(adapter: Adapter<any, any, Q, any>, overrides?: Partial<AdapterFlags> | undefined);
86
- protected executionPrefix(method: any, ...args: MaybeContextualArg<ContextOf<A>>): Promise<[Constructor<M>, ...any[], any]>;
86
+ protected executionPrefix(method: any, ...args: MaybeContextualArg<ContextOf<A>>): Promise<ContextualArgs<any, [Constructor<M>, ...any[]]>>;
87
87
  protected get log(): Logger;
88
88
  select<S extends readonly SelectSelector<M>[]>(): SelectOption<M, M[]>;
89
89
  select<S extends readonly SelectSelector<M>[]>(selector: readonly [...S]): SelectOption<M, Pick<M, S[number]>[]>;
@@ -5,7 +5,7 @@ import { FlagsOf, LoggerOf } from "../persistence/types.d.cts";
5
5
  import type { Constructor } from "@decaf-ts/decoration";
6
6
  import { PersistenceKeys } from "../persistence/index.d.cts";
7
7
  import { PreparedStatementKeys } from "../query/index.d.cts";
8
- export type ContextualArgs<C extends Context<any>, ARGS extends any[] = any[]> = [...ARGS, C];
8
+ export type ContextualArgs<C extends Context<any>, ARGS extends any[] = any[]> = [...ARGS, C] | [C];
9
9
  export type MethodOrOperation = ((...args: any[]) => any) | string | OperationKeys | PersistenceKeys | BulkCrudOperationKeys | PreparedStatementKeys;
10
10
  export type MaybeContextualArg<C extends Context<any>, ARGS extends any[] = any[]> = any[] | ContextualArgs<C, ARGS>;
11
11
  export type ContextualizedArgs<C extends Context<any>, ARGS extends any[] = any[], EXTEND extends boolean = false> = EXTEND extends true ? {
@@ -5,7 +5,7 @@ import { FlagsOf, LoggerOf } from "../persistence/types.d.mts";
5
5
  import type { Constructor } from "@decaf-ts/decoration";
6
6
  import { PersistenceKeys } from "../persistence/index.d.mts";
7
7
  import { PreparedStatementKeys } from "../query/index.d.mts";
8
- export type ContextualArgs<C extends Context<any>, ARGS extends any[] = any[]> = [...ARGS, C];
8
+ export type ContextualArgs<C extends Context<any>, ARGS extends any[] = any[]> = [...ARGS, C] | [C];
9
9
  export type MethodOrOperation = ((...args: any[]) => any) | string | OperationKeys | PersistenceKeys | BulkCrudOperationKeys | PreparedStatementKeys;
10
10
  export type MaybeContextualArg<C extends Context<any>, ARGS extends any[] = any[]> = any[] | ContextualArgs<C, ARGS>;
11
11
  export type ContextualizedArgs<C extends Context<any>, ARGS extends any[] = any[], EXTEND extends boolean = false> = EXTEND extends true ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/core",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "Core persistence module for the decaf framework",
5
5
  "type": "module",
6
6
  "exports": {