@wxn0brp/db 0.50.0-alpha.0 → 0.50.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.
@@ -1,5 +1,5 @@
1
1
  import { Remote } from "@wxn0brp/db-client/remote";
2
- import { ValtheraClass } from "@wxn0brp/db-core";
2
+ import { Data } from "@wxn0brp/db-core/types/data";
3
3
  import { DbOpts } from "@wxn0brp/db-core/types/options";
4
4
  import { ValtheraCompatible } from "@wxn0brp/db-core/types/valthera";
5
5
  /**
@@ -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(folder: string, options?: DbOpts): ValtheraClass;
22
+ export declare function ValtheraCreate<T extends Record<string, Data> = {}>(folder: string, options?: DbOpts): import("@wxn0brp/db-core").ValtheraClass & { [K in keyof T]: import("@wxn0brp/db-core/helpers/collection").Collection<T[K]>; };
@@ -1,5 +1,5 @@
1
1
  import { ValtheraRemote } from "@wxn0brp/db-client/valthera";
2
- import { forgeValthera } from "@wxn0brp/db-core";
2
+ import { forgeTypedValthera } from "@wxn0brp/db-core";
3
3
  import { Valthera } from "./valthera.js";
4
4
  /**
5
5
  * Creates a database instance based on the provided configuration.
@@ -23,5 +23,5 @@ export function ValtheraAutoRemoteCreate(cfg) {
23
23
  * @returns A new instance of Valthera.
24
24
  */
25
25
  export function ValtheraCreate(folder, options = {}) {
26
- return forgeValthera(new Valthera(folder, options));
26
+ return forgeTypedValthera(new Valthera(folder, options));
27
27
  }
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.50.0-alpha.0";
1
+ export const version = "0.50.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db",
3
- "version": "0.50.0-alpha.0",
3
+ "version": "0.50.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.0-alpha.0",
29
- "@wxn0brp/db-core": "~0.5.0-alpha.1",
30
- "@wxn0brp/db-storage-dir": "~0.2.0-alpha.0"
28
+ "@wxn0brp/db-client": "~0.4.0",
29
+ "@wxn0brp/db-core": "~0.5.0",
30
+ "@wxn0brp/db-storage-dir": "~0.2.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "*",