@kvs/localstorage 2.1.1 → 2.1.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.
package/lib/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { JsonValue, KvsStorage } from "@kvs/storage";
2
2
  import { KVS, KVSOptions } from "@kvs/types";
3
- export declare type KvsLocalStorageSchema = {
3
+ export type KvsLocalStorageSchema = {
4
4
  [index: string]: JsonValue;
5
5
  };
6
- export declare type KvsLocalStorage<Schema extends KvsLocalStorageSchema> = KVS<Schema>;
7
- export declare type KvsLocalStorageOptions<Schema extends KvsLocalStorageSchema> = KVSOptions<Schema> & {
6
+ export type KvsLocalStorage<Schema extends KvsLocalStorageSchema> = KVS<Schema>;
7
+ export type KvsLocalStorageOptions<Schema extends KvsLocalStorageSchema> = KVSOptions<Schema> & {
8
8
  kvsVersionKey?: string;
9
9
  };
10
10
  export declare const kvsLocalStorage: <Schema extends KvsLocalStorageSchema>(options: KvsLocalStorageOptions<Schema>) => Promise<KvsStorage<Schema>>;
package/module/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { JsonValue, KvsStorage } from "@kvs/storage";
2
2
  import { KVS, KVSOptions } from "@kvs/types";
3
- export declare type KvsLocalStorageSchema = {
3
+ export type KvsLocalStorageSchema = {
4
4
  [index: string]: JsonValue;
5
5
  };
6
- export declare type KvsLocalStorage<Schema extends KvsLocalStorageSchema> = KVS<Schema>;
7
- export declare type KvsLocalStorageOptions<Schema extends KvsLocalStorageSchema> = KVSOptions<Schema> & {
6
+ export type KvsLocalStorage<Schema extends KvsLocalStorageSchema> = KVS<Schema>;
7
+ export type KvsLocalStorageOptions<Schema extends KvsLocalStorageSchema> = KVSOptions<Schema> & {
8
8
  kvsVersionKey?: string;
9
9
  };
10
10
  export declare const kvsLocalStorage: <Schema extends KvsLocalStorageSchema>(options: KvsLocalStorageOptions<Schema>) => Promise<KvsStorage<Schema>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvs/localstorage",
3
- "version": "2.1.1",
3
+ "version": "2.1.4",
4
4
  "description": "localstorage for KVS.",
5
5
  "keywords": [
6
6
  "kvs",
@@ -35,7 +35,11 @@
35
35
  "clean": "rimraf lib/ module/",
36
36
  "prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
37
37
  "prepublishOnly": "npm run clean && npm run build",
38
- "test": "karma start --single-run",
38
+ "test": "tsc -p .",
39
+ "test:browser": "npm run test:chrome && npm run test:firefox && npm run test:webkit",
40
+ "test:chrome": "playwright-test ./test/index.test.ts --runner=mocha --browser=chromium",
41
+ "test:firefox": "playwright-test ./test/index.test.ts --runner=mocha --browser=firefox",
42
+ "test:webkit": "playwright-test ./test/index.test.ts --runner=mocha --browser=webkit",
39
43
  "watch": "tsc -p . --watch"
40
44
  },
41
45
  "prettier": {
@@ -45,22 +49,20 @@
45
49
  "trailingComma": "none"
46
50
  },
47
51
  "dependencies": {
48
- "@kvs/storage": "^2.1.1"
52
+ "@kvs/storage": "^2.1.4"
49
53
  },
50
54
  "devDependencies": {
51
- "@jsdevtools/karma-config": "^3.1.7",
52
- "@types/mocha": "^9.0.0",
53
- "@types/node": "^16.9.1",
54
- "karma": "^6.3.4",
55
- "karma-cli": "^2.0.0",
56
- "mocha": "^9.1.1",
57
- "prettier": "^2.0.5",
58
- "rimraf": "^3.0.2",
59
- "ts-loader": "^8.2.0",
60
- "typescript": "^4.2.4"
55
+ "@types/mocha": "^10.0.1",
56
+ "@types/node": "^20.4.2",
57
+ "mocha": "^10.2.0",
58
+ "playwright-test": "^12.1.1",
59
+ "prettier": "^3.0.0",
60
+ "rimraf": "^5.0.1",
61
+ "ts-loader": "^9.4.4",
62
+ "typescript": "^5.1.6"
61
63
  },
62
64
  "publishConfig": {
63
65
  "access": "public"
64
66
  },
65
- "gitHead": "d8ec6e0ba796bc2cab189a395bcda9754ffc4c9e"
67
+ "gitHead": "d7a5ac9d3c859cceaa75711916bc6bb4e6cd61be"
66
68
  }