@alwatr/local-storage 1.1.1 → 1.1.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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/main.cjs +112 -2
- package/dist/main.cjs.map +2 -2
- package/dist/main.mjs +88 -2
- package/dist/main.mjs.map +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.1.3](https://github.com/Alwatr/nanolib/compare/@alwatr/local-storage@1.1.2...@alwatr/local-storage@1.1.3) (2024-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alwatr/local-storage
|
|
9
|
+
|
|
10
|
+
## [1.1.2](https://github.com/Alwatr/nanolib/compare/@alwatr/local-storage@1.1.1...@alwatr/local-storage@1.1.2) (2024-10-10)
|
|
11
|
+
|
|
12
|
+
### Dependencies update
|
|
13
|
+
|
|
14
|
+
* bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
|
|
15
|
+
|
|
6
16
|
## [1.1.1](https://github.com/Alwatr/nanolib/compare/@alwatr/local-storage@1.1.0...@alwatr/local-storage@1.1.1) (2024-10-08)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @alwatr/local-storage
|
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ We plan to add more methods to `localJsonStorage` for directly interacting with
|
|
|
62
62
|
|
|
63
63
|
## Sponsors
|
|
64
64
|
|
|
65
|
-
The following companies, organizations, and individuals support
|
|
65
|
+
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
|
|
66
66
|
|
|
67
67
|
[](https://exirstudio.com)
|
|
68
68
|
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,113 @@
|
|
|
1
|
-
/* @alwatr/local-storage v1.1.
|
|
2
|
-
"use strict";
|
|
1
|
+
/* @alwatr/local-storage v1.1.3 */
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/main.ts
|
|
22
|
+
var main_exports = {};
|
|
23
|
+
__export(main_exports, {
|
|
24
|
+
localJsonStorage: () => localJsonStorage
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(main_exports);
|
|
27
|
+
var import_package_tracer = require("@alwatr/package-tracer");
|
|
28
|
+
import_package_tracer.packageTracer.add("@alwatr/local-storage", "1.1.3");
|
|
29
|
+
function parseJson(content) {
|
|
30
|
+
try {
|
|
31
|
+
return JSON.parse(content);
|
|
32
|
+
} catch (err) {
|
|
33
|
+
console.error("parseJson", "invalid_json", err);
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var localJsonStorage = {
|
|
38
|
+
/**
|
|
39
|
+
* Generate local storage key.
|
|
40
|
+
*
|
|
41
|
+
* @param name - Name of the item.
|
|
42
|
+
* @param version - Version of the item (default: 1).
|
|
43
|
+
* @returns The generated local storage key.
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* localJsonStorage.key_('myItem', 1); // myItem.v1
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
key_(name, version = 1) {
|
|
50
|
+
return `${name}.v${version}`;
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* Get the local storage item and parse it as JSON.
|
|
54
|
+
* If the item is not found, return the default value.
|
|
55
|
+
* If the version is greater than 1, remove the previous version.
|
|
56
|
+
* If the item is not a valid JSON object, return the default value.
|
|
57
|
+
*
|
|
58
|
+
* @param name - The name of the item.
|
|
59
|
+
* @param defaultValue - The default value of the item.
|
|
60
|
+
* @param version - The data structure version of the item (default: 1).
|
|
61
|
+
* @returns The parsed JSON value or the default value if the item is not found.
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
getItem(name, defaultValue, version = 1) {
|
|
68
|
+
if (version > 1) {
|
|
69
|
+
this.removeItem(name, version - 1);
|
|
70
|
+
}
|
|
71
|
+
const key = this.key_(name, version);
|
|
72
|
+
const value = localStorage.getItem(key);
|
|
73
|
+
if (value === null) return defaultValue;
|
|
74
|
+
const json = parseJson(value);
|
|
75
|
+
if (json === null || typeof json !== "object") return defaultValue;
|
|
76
|
+
return json;
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Set local storage item as JSON.
|
|
80
|
+
*
|
|
81
|
+
* @param name - Name of the item.
|
|
82
|
+
* @param value - Value of the item.
|
|
83
|
+
* @param version - Version of the item.
|
|
84
|
+
* @example
|
|
85
|
+
* ```typescript
|
|
86
|
+
* localJsonStorage.setItem('myItem', {a: 1, b: 2});
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
setItem(name, value, version = 1) {
|
|
90
|
+
const key = this.key_(name, version);
|
|
91
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* Removes an item from the local storage.
|
|
95
|
+
*
|
|
96
|
+
* @param name - The name of the item to remove.
|
|
97
|
+
* @param version - The version of the item to remove. Default is 1.
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* localJsonStorage.removeItem('myItem');
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
removeItem(name, version = 1) {
|
|
104
|
+
const key = this.key_(name, version);
|
|
105
|
+
window.localStorage.removeItem(key);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
109
|
+
0 && (module.exports = {
|
|
110
|
+
localJsonStorage
|
|
111
|
+
});
|
|
112
|
+
/*! For license information please see main.cjs.LEGAL.txt */
|
|
3
113
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.cjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
4
|
"sourcesContent": ["import {packageTracer} from '@alwatr/package-tracer';\n\npackageTracer.add(__package_name__, __package_version__);\n\n/**\n * Parse json string without throwing error.\n *\n * @param content - json string\n * @returns json object or null if json is invalid\n * @example\n * ```typescript\n * const json = parseJson('{\"a\":1,\"b\":2}');\n * console.log(json.a); // 1\n * ```\n */\nfunction parseJson<T extends JsonValue>(content: string): T | null {\n try {\n return JSON.parse(content);\n }\n catch (err) {\n console.error('parseJson', 'invalid_json', err);\n return null;\n }\n}\n\n// @TODO: localStorage polyfill (memory fallback)\n\n/**\n * A utility object for working with local storage and JSON data.\n */\nexport const localJsonStorage = {\n /**\n * Generate local storage key.\n *\n * @param name - Name of the item.\n * @param version - Version of the item (default: 1).\n * @returns The generated local storage key.\n * @example\n * ```typescript\n * localJsonStorage.key_('myItem', 1); // myItem.v1\n * ```\n */\n key_(name: string, version = 1): string {\n return `${name}.v${version}`;\n },\n\n /**\n * Get the local storage item and parse it as JSON.\n * If the item is not found, return the default value.\n * If the version is greater than 1, remove the previous version.\n * If the item is not a valid JSON object, return the default value.\n *\n * @param name - The name of the item.\n * @param defaultValue - The default value of the item.\n * @param version - The data structure version of the item (default: 1).\n * @returns The parsed JSON value or the default value if the item is not found.\n * @example\n * ```typescript\n * const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});\n * ```\n */\n getItem<T extends Json>(name: string, defaultValue: T, version = 1): T {\n if (version > 1) {\n this.removeItem(name, version - 1);\n }\n const key = this.key_(name, version);\n const value = localStorage.getItem(key);\n if (value === null) return defaultValue;\n const json = parseJson<T>(value);\n if (json === null || typeof json !== 'object') return defaultValue;\n return json;\n },\n\n /**\n * Set local storage item as JSON.\n *\n * @param name - Name of the item.\n * @param value - Value of the item.\n * @param version - Version of the item.\n * @example\n * ```typescript\n * localJsonStorage.setItem('myItem', {a: 1, b: 2});\n * ```\n */\n setItem<T extends Json>(name: string, value: T, version = 1): void {\n const key = this.key_(name, version);\n localStorage.setItem(key, JSON.stringify(value));\n },\n\n /**\n * Removes an item from the local storage.\n *\n * @param name - The name of the item to remove.\n * @param version - The version of the item to remove. Default is 1.\n * @example\n * ```typescript\n * localJsonStorage.removeItem('myItem');\n * ```\n */\n removeItem(name: string, version = 1): void {\n const key = this.key_(name, version);\n window.localStorage.removeItem(key);\n },\n} as const;\n"],
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA4B;AAE5B,oCAAc,IAAI,yBAAkB,OAAmB;AAavD,SAAS,UAA+B,SAA2B;AACjE,MAAI;AACF,WAAO,KAAK,MAAM,OAAO;AAAA,EAC3B,SACO,KAAK;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2
|
+
|
|
3
|
+
// src/main.ts
|
|
4
|
+
import { packageTracer } from "@alwatr/package-tracer";
|
|
5
|
+
packageTracer.add("@alwatr/local-storage", "1.1.3");
|
|
6
|
+
function parseJson(content) {
|
|
7
|
+
try {
|
|
8
|
+
return JSON.parse(content);
|
|
9
|
+
} catch (err) {
|
|
10
|
+
console.error("parseJson", "invalid_json", err);
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
var localJsonStorage = {
|
|
15
|
+
/**
|
|
16
|
+
* Generate local storage key.
|
|
17
|
+
*
|
|
18
|
+
* @param name - Name of the item.
|
|
19
|
+
* @param version - Version of the item (default: 1).
|
|
20
|
+
* @returns The generated local storage key.
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* localJsonStorage.key_('myItem', 1); // myItem.v1
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
key_(name, version = 1) {
|
|
27
|
+
return `${name}.v${version}`;
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* Get the local storage item and parse it as JSON.
|
|
31
|
+
* If the item is not found, return the default value.
|
|
32
|
+
* If the version is greater than 1, remove the previous version.
|
|
33
|
+
* If the item is not a valid JSON object, return the default value.
|
|
34
|
+
*
|
|
35
|
+
* @param name - The name of the item.
|
|
36
|
+
* @param defaultValue - The default value of the item.
|
|
37
|
+
* @param version - The data structure version of the item (default: 1).
|
|
38
|
+
* @returns The parsed JSON value or the default value if the item is not found.
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
getItem(name, defaultValue, version = 1) {
|
|
45
|
+
if (version > 1) {
|
|
46
|
+
this.removeItem(name, version - 1);
|
|
47
|
+
}
|
|
48
|
+
const key = this.key_(name, version);
|
|
49
|
+
const value = localStorage.getItem(key);
|
|
50
|
+
if (value === null) return defaultValue;
|
|
51
|
+
const json = parseJson(value);
|
|
52
|
+
if (json === null || typeof json !== "object") return defaultValue;
|
|
53
|
+
return json;
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Set local storage item as JSON.
|
|
57
|
+
*
|
|
58
|
+
* @param name - Name of the item.
|
|
59
|
+
* @param value - Value of the item.
|
|
60
|
+
* @param version - Version of the item.
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* localJsonStorage.setItem('myItem', {a: 1, b: 2});
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
setItem(name, value, version = 1) {
|
|
67
|
+
const key = this.key_(name, version);
|
|
68
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* Removes an item from the local storage.
|
|
72
|
+
*
|
|
73
|
+
* @param name - The name of the item to remove.
|
|
74
|
+
* @param version - The version of the item to remove. Default is 1.
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* localJsonStorage.removeItem('myItem');
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
removeItem(name, version = 1) {
|
|
81
|
+
const key = this.key_(name, version);
|
|
82
|
+
window.localStorage.removeItem(key);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
localJsonStorage
|
|
87
|
+
};
|
|
88
|
+
/*! For license information please see main.mjs.LEGAL.txt */
|
|
3
89
|
//# sourceMappingURL=main.mjs.map
|
package/dist/main.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/main.ts"],
|
|
4
4
|
"sourcesContent": ["import {packageTracer} from '@alwatr/package-tracer';\n\npackageTracer.add(__package_name__, __package_version__);\n\n/**\n * Parse json string without throwing error.\n *\n * @param content - json string\n * @returns json object or null if json is invalid\n * @example\n * ```typescript\n * const json = parseJson('{\"a\":1,\"b\":2}');\n * console.log(json.a); // 1\n * ```\n */\nfunction parseJson<T extends JsonValue>(content: string): T | null {\n try {\n return JSON.parse(content);\n }\n catch (err) {\n console.error('parseJson', 'invalid_json', err);\n return null;\n }\n}\n\n// @TODO: localStorage polyfill (memory fallback)\n\n/**\n * A utility object for working with local storage and JSON data.\n */\nexport const localJsonStorage = {\n /**\n * Generate local storage key.\n *\n * @param name - Name of the item.\n * @param version - Version of the item (default: 1).\n * @returns The generated local storage key.\n * @example\n * ```typescript\n * localJsonStorage.key_('myItem', 1); // myItem.v1\n * ```\n */\n key_(name: string, version = 1): string {\n return `${name}.v${version}`;\n },\n\n /**\n * Get the local storage item and parse it as JSON.\n * If the item is not found, return the default value.\n * If the version is greater than 1, remove the previous version.\n * If the item is not a valid JSON object, return the default value.\n *\n * @param name - The name of the item.\n * @param defaultValue - The default value of the item.\n * @param version - The data structure version of the item (default: 1).\n * @returns The parsed JSON value or the default value if the item is not found.\n * @example\n * ```typescript\n * const value = localJsonStorage.getItem('myItem', {a: 1, b: 2});\n * ```\n */\n getItem<T extends Json>(name: string, defaultValue: T, version = 1): T {\n if (version > 1) {\n this.removeItem(name, version - 1);\n }\n const key = this.key_(name, version);\n const value = localStorage.getItem(key);\n if (value === null) return defaultValue;\n const json = parseJson<T>(value);\n if (json === null || typeof json !== 'object') return defaultValue;\n return json;\n },\n\n /**\n * Set local storage item as JSON.\n *\n * @param name - Name of the item.\n * @param value - Value of the item.\n * @param version - Version of the item.\n * @example\n * ```typescript\n * localJsonStorage.setItem('myItem', {a: 1, b: 2});\n * ```\n */\n setItem<T extends Json>(name: string, value: T, version = 1): void {\n const key = this.key_(name, version);\n localStorage.setItem(key, JSON.stringify(value));\n },\n\n /**\n * Removes an item from the local storage.\n *\n * @param name - The name of the item to remove.\n * @param version - The version of the item to remove. Default is 1.\n * @example\n * ```typescript\n * localJsonStorage.removeItem('myItem');\n * ```\n */\n removeItem(name: string, version = 1): void {\n const key = this.key_(name, version);\n window.localStorage.removeItem(key);\n },\n} as const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AACnC,WAAO,aAAa,WAAW,GAAG;AAAA,EACpC;AACF;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/local-storage",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "`localJsonStorage` is a utility object in our TypeScript package that provides methods for interacting with the local storage in a structured and versioned manner.",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@alwatr/package-tracer": "^1.0.
|
|
70
|
+
"@alwatr/package-tracer": "^1.0.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@alwatr/nano-build": "^
|
|
73
|
+
"@alwatr/nano-build": "^2.0.0",
|
|
74
74
|
"@alwatr/prettier-config": "^1.0.5",
|
|
75
|
-
"@alwatr/tsconfig-base": "^1.3.
|
|
76
|
-
"@alwatr/type-helper": "^2.0.
|
|
77
|
-
"typescript": "^5.6.
|
|
75
|
+
"@alwatr/tsconfig-base": "^1.3.1",
|
|
76
|
+
"@alwatr/type-helper": "^2.0.1",
|
|
77
|
+
"typescript": "^5.6.3"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "e0b3b4a47c02a395046982803b2e431c6ee3b0ab"
|
|
80
80
|
}
|