@wxn0brp/db-storage-web 0.120.2 → 0.120.3

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/index.d.ts CHANGED
@@ -1,11 +1,7 @@
1
1
  import { ValtheraClass } from "@wxn0brp/db-core";
2
- import { Collection } from "@wxn0brp/db-core/helpers/collection";
3
2
  import { Data } from "@wxn0brp/db-core/types/data";
3
+ import { TypedValthera } from "@wxn0brp/db-core/types/typed";
4
4
  export * from "./indexed.js";
5
5
  export * from "./storage.js";
6
- export declare function createWebStorageValthera<T extends Record<string, Data[]>>(name: string, data?: T, storage?: Storage): ValtheraClass & {
7
- [K in keyof T]: Collection<T[K][number]>;
8
- };
9
- export declare function createIndexedDBValthera<T extends Record<string, Data[]>>(name: string): ValtheraClass & {
10
- [K in keyof T]: Collection<T[K][number]>;
11
- };
6
+ export declare function createWebStorageValthera<T extends Record<string, Data[]>>(name: string, data?: T, storage?: Storage): TypedValthera<T, ValtheraClass>;
7
+ export declare function createIndexedDBValthera<T extends Record<string, Data[]>>(name: string): TypedValthera<T, ValtheraClass>;
package/dist/indexed.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ActionsBase } from "@wxn0brp/db-core/base/actions";
1
+ import { AdapterBase } from "@wxn0brp/db-core/base/adapter";
2
2
  import { DataInternal } from "@wxn0brp/db-core/types/data";
3
3
  import { VQueryT } from "@wxn0brp/db-core/types/query";
4
- export declare class IndexedDBActions extends ActionsBase {
4
+ export declare class IndexedDBActions extends AdapterBase {
5
5
  name: string;
6
6
  db: IDBDatabase;
7
7
  _version: number;
package/dist/indexed.js CHANGED
@@ -1,9 +1,9 @@
1
- import { ActionsBase } from "@wxn0brp/db-core/base/actions";
1
+ import { AdapterBase } from "@wxn0brp/db-core/base/adapter";
2
2
  import { AdapterCloseError, AdapterError, AdapterInitError, } from "@wxn0brp/db-core/errors";
3
3
  import { addId, addIdBulk } from "@wxn0brp/db-core/helpers/addId";
4
4
  import { findObj, matchObj, updateObj } from "@wxn0brp/db-core/utils/process";
5
5
  import { version } from "./version.js";
6
- export class IndexedDBActions extends ActionsBase {
6
+ export class IndexedDBActions extends AdapterBase {
7
7
  name;
8
8
  db = null;
9
9
  _version = 1;
package/dist/storage.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { CustomActionsBase } from "@wxn0brp/db-core/base/custom";
1
+ import { CustomAdapterBase } from "@wxn0brp/db-core/base/customAdapter";
2
2
  import { DataInternal } from "@wxn0brp/db-core/types/data";
3
3
  import { VQueryT } from "@wxn0brp/db-core/types/query";
4
- export declare class WebStorageActions extends CustomActionsBase {
4
+ export declare class WebStorageActions extends CustomAdapterBase {
5
5
  name: string;
6
6
  _storage: Storage;
7
7
  version: string;
package/dist/storage.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { CustomFileCpu } from "@wxn0brp/db-core";
2
- import { CustomActionsBase } from "@wxn0brp/db-core/base/custom";
2
+ import { CustomAdapterBase } from "@wxn0brp/db-core/base/customAdapter";
3
3
  import { addIdBulk } from "@wxn0brp/db-core/helpers/addId";
4
4
  import { hasFieldsAdvanced } from "@wxn0brp/db-core/utils/hasFieldsAdvanced";
5
5
  import { version } from "./version.js";
6
- export class WebStorageActions extends CustomActionsBase {
6
+ export class WebStorageActions extends CustomAdapterBase {
7
7
  name;
8
8
  _storage;
9
9
  version = version;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.120.2";
1
+ export declare const version = "0.120.3";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.120.2";
1
+ export const version = "0.120.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db-storage-web",
3
- "version": "0.120.2",
3
+ "version": "0.120.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "wxn0brP",
@@ -18,7 +18,7 @@
18
18
  "vdb-adapter"
19
19
  ],
20
20
  "dependencies": {
21
- "@wxn0brp/db-core": "^0.12.10"
21
+ "@wxn0brp/db-core": "^0.12.20"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@wxn0brp/biome": "*",