@wxn0brp/db-core 0.10.2 → 0.10.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.
@@ -23,7 +23,7 @@ export declare class ValtheraClass implements ValtheraCompatible {
23
23
  init(...args: any[]): Promise<unknown>;
24
24
  execute<T>(name: keyof ValtheraCompatible, query: VQuery<any> | string): Promise<T>;
25
25
  /**
26
- * Create a new instance of a CollectionManager class.
26
+ * Create a new instance of a Collection class.
27
27
  */
28
28
  c<T = Data>(collection: string): Collection<T>;
29
29
  /**
@@ -35,7 +35,7 @@ export class ValtheraClass {
35
35
  return result;
36
36
  }
37
37
  /**
38
- * Create a new instance of a CollectionManager class.
38
+ * Create a new instance of a Collection class.
39
39
  */
40
40
  c(collection) {
41
41
  return new Collection(this, collection);
@@ -6,16 +6,10 @@ export interface Task {
6
6
  }
7
7
  /**
8
8
  * A simple executor for queuing and executing asynchronous operations sequentially.
9
- * @class
10
9
  */
11
10
  export declare class Executor {
12
11
  quote: Task[];
13
12
  isExecuting: boolean;
14
- /**
15
- * Create a new executor instance.
16
- * @constructor
17
- */
18
- constructor();
19
13
  /**
20
14
  * Add an asynchronous operation to the execution queue.
21
15
  */
@@ -1,18 +1,9 @@
1
1
  /**
2
2
  * A simple executor for queuing and executing asynchronous operations sequentially.
3
- * @class
4
3
  */
5
4
  export class Executor {
6
- quote;
7
- isExecuting;
8
- /**
9
- * Create a new executor instance.
10
- * @constructor
11
- */
12
- constructor() {
13
- this.quote = [];
14
- this.isExecuting = false;
15
- }
5
+ quote = [];
6
+ isExecuting = false;
16
7
  /**
17
8
  * Add an asynchronous operation to the execution queue.
18
9
  */
@@ -44,13 +44,23 @@ export declare namespace VQueryT {
44
44
  type: "added" | "removed";
45
45
  }
46
46
  }
47
+ /** @deprecated */
47
48
  export type QueryBase<T = Data> = VQueryT.QueryBase<T>;
49
+ /** @deprecated */
48
50
  export type AddQuery<T = Data> = VQueryT.Add<T>;
51
+ /** @deprecated */
49
52
  export type FindQuery<T = Data> = VQueryT.Find<T>;
53
+ /** @deprecated */
50
54
  export type FindOneQuery<T = Data> = VQueryT.FindOne<T>;
55
+ /** @deprecated */
51
56
  export type UpdateQuery<T = Data> = VQueryT.Update<T>;
57
+ /** @deprecated */
52
58
  export type RemoveQuery<T = Data> = VQueryT.Remove<T>;
59
+ /** @deprecated */
53
60
  export type UpdateOneOrAddQuery<T = Data> = VQueryT.UpdateOneOrAdd<T>;
61
+ /** @deprecated */
54
62
  export type ToggleOneQuery<T = Data> = VQueryT.ToggleOne<T>;
63
+ /** @deprecated */
55
64
  export type UpdateOneOrAddResult<T> = VQueryT.UpdateOneOrAddResult<T>;
65
+ /** @deprecated */
56
66
  export type ToggleOneResult<T> = VQueryT.ToggleOneResult<T>;
@@ -31,11 +31,11 @@ export type ComparisonOperators<T = any> = {
31
31
  /** 5 between [min, max] */
32
32
  $between?: NestedValue<T, [number, number], number>;
33
33
  /** 2 in [1, 2, 3] */
34
- $in?: DeepPartial<T> & {
34
+ $in?: {
35
35
  [K in keyof T]?: T[K] extends any[] ? T[K] : T[K][];
36
36
  };
37
37
  /** 5 not in [1, 2, 3] */
38
- $nin?: DeepPartial<T> & {
38
+ $nin?: {
39
39
  [K in keyof T]?: T[K] extends any[] ? T[K] : T[K][];
40
40
  };
41
41
  /** id > 4 */
@@ -57,9 +57,13 @@ export type TypeAndExistenceOperators<T = any> = {
57
57
  /** Array Operators with nested support */
58
58
  export type ArrayOperators<T = any> = {
59
59
  /** [1, 2, 3] includes 2 */
60
- $arrinc?: DeepPartial<T>;
60
+ $arrinc?: {
61
+ [K in keyof T]?: T[K] extends any[] ? T[K][number][] : T[K][];
62
+ };
61
63
  /** [1, 2, 3] array includes all elements e.g. [1, 2] */
62
- $arrincall?: DeepPartial<T>;
64
+ $arrincall?: {
65
+ [K in keyof T]?: T[K] extends any[] ? T[K][number][] : T[K][];
66
+ };
63
67
  /** [1, 2, 3] has size 3 */
64
68
  $size?: NestedValue<T, number>;
65
69
  };
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.10.2";
1
+ export const version = "0.10.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db-core",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "author": "wxn0brP",