@kvs/localstorage 0.3.0 → 2.0.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/README.md +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/module/index.d.ts +1 -1
- package/package.json +10 -11
- package/CHANGELOG.md +0 -40
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export declare type KvsLocalStorage<Schema extends KvsLocalStorageSchema> = KVS<
|
|
|
7
7
|
export declare type KvsLocalStorageOptions<Schema extends KvsLocalStorageSchema> = KVSOptions<Schema> & {
|
|
8
8
|
kvsVersionKey?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const kvsLocalStorage: <Schema extends KvsLocalStorageSchema>(options: KvsLocalStorageOptions<Schema>) => Promise<
|
|
10
|
+
export declare const kvsLocalStorage: <Schema extends KvsLocalStorageSchema>(options: KvsLocalStorageOptions<Schema>) => Promise<KvsStorage<Schema>>;
|
package/lib/index.js
CHANGED
|
@@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.kvsLocalStorage = void 0;
|
|
13
13
|
const storage_1 = require("@kvs/storage");
|
|
14
|
-
|
|
15
|
-
return storage_1.kvsStorage(Object.assign(Object.assign({}, options), { storage: window.localStorage }));
|
|
14
|
+
const kvsLocalStorage = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
return (0, storage_1.kvsStorage)(Object.assign(Object.assign({}, options), { storage: window.localStorage }));
|
|
16
16
|
});
|
|
17
|
+
exports.kvsLocalStorage = kvsLocalStorage;
|
|
17
18
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAiE;AAU1D,MAAM,eAAe,GAAG,CAC3B,OAAuC,EACZ,EAAE;IAC7B,OAAO,IAAA,oBAAU,kCACV,OAAO,KACV,OAAO,EAAE,MAAM,CAAC,YAAY,IAC9B,CAAC;AACP,CAAC,CAAA,CAAC;AAPW,QAAA,eAAe,mBAO1B"}
|
package/module/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export declare type KvsLocalStorage<Schema extends KvsLocalStorageSchema> = KVS<
|
|
|
7
7
|
export declare type KvsLocalStorageOptions<Schema extends KvsLocalStorageSchema> = KVSOptions<Schema> & {
|
|
8
8
|
kvsVersionKey?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const kvsLocalStorage: <Schema extends KvsLocalStorageSchema>(options: KvsLocalStorageOptions<Schema>) => Promise<
|
|
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": "0.
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "localstorage for KVS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kvs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build": "tsc -p . && tsc --project ./tsconfig.module.json",
|
|
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
38
|
"test": "karma start --single-run",
|
|
39
39
|
"watch": "tsc -p . --watch"
|
|
40
40
|
},
|
|
@@ -45,23 +45,22 @@
|
|
|
45
45
|
"trailingComma": "none"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@kvs/storage": "^0.
|
|
48
|
+
"@kvs/storage": "^2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@jsdevtools/karma-config": "^3.1.7",
|
|
52
|
-
"@types/mocha": "^
|
|
53
|
-
"@types/node": "^
|
|
54
|
-
"karma": "^
|
|
52
|
+
"@types/mocha": "^9.0.0",
|
|
53
|
+
"@types/node": "^16.9.1",
|
|
54
|
+
"karma": "^6.3.4",
|
|
55
55
|
"karma-cli": "^2.0.0",
|
|
56
|
-
"
|
|
57
|
-
"mocha": "^8.1.1",
|
|
56
|
+
"mocha": "^9.1.1",
|
|
58
57
|
"prettier": "^2.0.5",
|
|
59
58
|
"rimraf": "^3.0.2",
|
|
60
|
-
"ts-loader": "^8.0
|
|
61
|
-
"typescript": "^
|
|
59
|
+
"ts-loader": "^8.2.0",
|
|
60
|
+
"typescript": "^4.2.4"
|
|
62
61
|
},
|
|
63
62
|
"publishConfig": {
|
|
64
63
|
"access": "public"
|
|
65
64
|
},
|
|
66
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "b43dd2fdbefe4ee5714d0690b2f8f576dc8c1417"
|
|
67
66
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [0.3.0](https://github.com/azu/kvs/compare/v0.2.1...v0.3.0) (2020-08-22)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @kvs/localstorage
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.2.1](https://github.com/azu/kvs/compare/v0.2.0...v0.2.1) (2020-08-22)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @kvs/localstorage
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [0.2.0](https://github.com/azu/kvs/compare/v0.1.0...v0.2.0) (2020-08-08)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
* **@kvs/localstorage:** migrate to Schema type ([0c84640](https://github.com/azu/kvs/commit/0c84640c1c1d28955c60ca83d8a01bdce936d9ef))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# 0.1.0 (2020-08-08)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* **@kvs/node-localstorage:** add node implementation ([5160012](https://github.com/azu/kvs/commit/516001286c96ac85cb54d55fbba62549d6d7eb0e))
|
|
39
|
-
* add `close()` to interface ([a269d1d](https://github.com/azu/kvs/commit/a269d1dda6ce63388771e6fa4d897a26f284b72c))
|
|
40
|
-
* **@kvs/localstorage:** add localstorage implementation ([54fc38b](https://github.com/azu/kvs/commit/54fc38b8a3a75923d8e8383af9c907979a2dba52))
|