@wxn0brp/db 0.50.0 → 0.60.0
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/dist/autoCreate.d.ts +2 -2
- package/dist/valthera.d.ts +2 -3
- package/dist/valthera.js +5 -7
- package/dist/version.js +1 -1
- package/package.json +4 -4
package/dist/autoCreate.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Remote } from "@wxn0brp/db-client/remote";
|
|
2
2
|
import { Data } from "@wxn0brp/db-core/types/data";
|
|
3
|
-
import { DbOpts } from "@wxn0brp/db-core/types/options";
|
|
4
3
|
import { ValtheraCompatible } from "@wxn0brp/db-core/types/valthera";
|
|
4
|
+
import { DbDirOpts } from "@wxn0brp/db-storage-dir/types";
|
|
5
5
|
/**
|
|
6
6
|
* Creates a database instance based on the provided configuration.
|
|
7
7
|
* If the configuration is an object, it creates a DataBaseRemote instance.
|
|
@@ -19,4 +19,4 @@ export declare function ValtheraAutoRemoteCreate(cfg: string | Remote): Valthera
|
|
|
19
19
|
* @param options - Optional configuration options.
|
|
20
20
|
* @returns A new instance of Valthera.
|
|
21
21
|
*/
|
|
22
|
-
export declare function ValtheraCreate<T extends Record<string, Data> = {}>(folder: string, options?:
|
|
22
|
+
export declare function ValtheraCreate<T extends Record<string, Data> = {}>(folder: string, options?: DbDirOpts): import("@wxn0brp/db-core").ValtheraClass & { [K in keyof T]: import("@wxn0brp/db-core/helpers/collection").Collection<T[K]>; };
|
package/dist/valthera.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ValtheraClass } from "@wxn0brp/db-core/db/valthera";
|
|
2
|
-
import {
|
|
3
|
-
import { DbOpts } from "@wxn0brp/db-core/types/options";
|
|
2
|
+
import { DbDirOpts } from "@wxn0brp/db-storage-dir/types";
|
|
4
3
|
export declare class Valthera extends ValtheraClass {
|
|
5
|
-
constructor(folder: string, options?:
|
|
4
|
+
constructor(folder: string, options?: DbDirOpts, fileCpu?: import("@wxn0brp/db-core/types/fileCpu").FileCpu);
|
|
6
5
|
}
|
package/dist/valthera.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ValtheraClass } from "@wxn0brp/db-core/db/valthera";
|
|
2
|
-
import { Executor } from "@wxn0brp/db-core/helpers/executor";
|
|
3
2
|
import { FileActions } from "@wxn0brp/db-storage-dir";
|
|
4
3
|
import { vFileCpu } from "@wxn0brp/db-storage-dir/file/index";
|
|
5
4
|
export class Valthera extends ValtheraClass {
|
|
6
|
-
constructor(folder, options = {}, fileCpu) {
|
|
7
|
-
super(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.executor = options.executor || new Executor();
|
|
5
|
+
constructor(folder, options = {}, fileCpu = vFileCpu) {
|
|
6
|
+
super({
|
|
7
|
+
...options,
|
|
8
|
+
dbAction: new FileActions(folder, options, fileCpu)
|
|
9
|
+
});
|
|
12
10
|
}
|
|
13
11
|
}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.
|
|
1
|
+
export const version = "0.60.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wxn0brp/db",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "A modular, embedded database for developers who want control over their data storage.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"lightweight"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@wxn0brp/db-client": "~0.4.
|
|
29
|
-
"@wxn0brp/db-core": "~0.
|
|
30
|
-
"@wxn0brp/db-storage-dir": "~0.2.
|
|
28
|
+
"@wxn0brp/db-client": "~0.4.1",
|
|
29
|
+
"@wxn0brp/db-core": "~0.6.0",
|
|
30
|
+
"@wxn0brp/db-storage-dir": "~0.2.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "*",
|