@wxn0brp/db-storage-web 0.0.4 → 0.0.6

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/README.md CHANGED
@@ -6,4 +6,18 @@ This plugin provides web storage (localStorage/sessionStorage) operations for Va
6
6
 
7
7
  ```bash
8
8
  npm install @wxn0brp/db-storage-web
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { createWebStorageValthera } from "@wxn0brp/db-storage-web";
15
+
16
+ // Similar to createMemoryValthera, but persists data in web storage
17
+ const db = createWebStorageValthera("my-db", {
18
+ users: [
19
+ { id: 1, name: "Alice" },
20
+ { id: 2, name: "Mieszko" }
21
+ ]
22
+ });
9
23
  ```
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ValtheraClass } from "@wxn0brp/db-core";
2
- import CollectionManager from "@wxn0brp/db-core/helpers/CollectionManager";
2
+ import { CollectionManager } from "@wxn0brp/db-core/helpers/collectionManager";
3
3
  import Data from "@wxn0brp/db-core/types/data";
4
4
  export * from "./storage.js";
5
5
  export declare function createWebStorageValthera<T extends Record<string, Data[]>>(name: string, data?: T, storage?: Storage): ValtheraClass & {
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.0.4";
1
+ export const version = "0.0.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db-storage-web",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "wxn0brP",
@@ -13,11 +13,10 @@
13
13
  },
14
14
  "homepage": "https://github.com/wxn0brP/ValtheraDB",
15
15
  "peerDependencies": {
16
- "@wxn0brp/db-core": ">=0.2.4"
16
+ "@wxn0brp/db-core": ">=0.4.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "*",
20
- "@wxn0brp/db-core": "^0.2.4",
19
+ "@wxn0brp/db-core": "^0.4.0",
21
20
  "tsc-alias": "*",
22
21
  "typescript": "*"
23
22
  },