@sigx/lynx-storage 0.1.2 → 0.4.1

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
@@ -8,14 +8,7 @@ Persistent key-value storage for sigx-lynx. `UserDefaults` on iOS, `SharedPrefer
8
8
  pnpm add @sigx/lynx-storage
9
9
  ```
10
10
 
11
- ```ts
12
- // sigx.lynx.config.ts
13
- export default defineLynxConfig({
14
- modules: ['@sigx/lynx-storage'],
15
- });
16
- ```
17
-
18
- No special permissions on either platform.
11
+ `sigx prebuild` auto-discovers the package via its `signalx-module.json` and links the native module. No special permissions on either platform.
19
12
 
20
13
  ## Usage
21
14
 
package/dist/storage.d.ts CHANGED
@@ -10,11 +10,11 @@
10
10
  * ```
11
11
  */
12
12
  export declare const Storage: {
13
- readonly setItem: (key: string, value: string) => void;
14
- readonly getItem: (key: string) => Promise<string | null>;
15
- readonly removeItem: (key: string) => void;
16
- readonly clear: () => void;
17
- readonly getAllKeys: () => Promise<string[]>;
18
- readonly isAvailable: () => boolean;
13
+ setItem(key: string, value: string): void;
14
+ getItem(key: string): Promise<string | null>;
15
+ removeItem(key: string): void;
16
+ clear(): void;
17
+ getAllKeys(): Promise<string[]>;
18
+ isAvailable(): boolean;
19
19
  };
20
20
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO;4BACH,MAAM,SAAS,MAAM,KAAG,IAAI;4BAI5B,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;+BAI5B,MAAM,KAAG,IAAI;0BAIpB,IAAI;+BAIC,OAAO,CAAC,MAAM,EAAE,CAAC;gCAIhB,OAAO;CAGhB,CAAC"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO;IAChB,OAAO,MAAM,MAAM,SAAS,MAAM,GAAG,IAAI;IAIzC,OAAO,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAI5C,UAAU,MAAM,MAAM,GAAG,IAAI;IAI7B,KAAK,IAAI,IAAI;IAIb,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAI/B,WAAW,IAAI,OAAO;CAGhB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/lynx-storage",
3
- "version": "0.1.2",
3
+ "version": "0.4.1",
4
4
  "description": "Persistent key-value storage for sigx-lynx",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -10,18 +10,19 @@
10
10
  "import": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts"
12
12
  },
13
- "./sigx-module.json": "./sigx-module.json"
13
+ "./signalx-module.json": "./signalx-module.json"
14
14
  },
15
15
  "files": [
16
16
  "dist",
17
17
  "ios",
18
18
  "android",
19
- "sigx-module.json"
19
+ "signalx-module.json"
20
20
  ],
21
21
  "dependencies": {
22
- "@sigx/lynx-core": "^0.1.4"
22
+ "@sigx/lynx-core": "^0.4.1"
23
23
  },
24
24
  "devDependencies": {
25
+ "@typescript/native-preview": "7.0.0-dev.20260511.1",
25
26
  "typescript": "^6.0.3"
26
27
  },
27
28
  "author": "Andreas Ekdahl",
@@ -48,7 +49,8 @@
48
49
  "storage"
49
50
  ],
50
51
  "scripts": {
51
- "build": "tsc",
52
- "dev": "tsc --watch"
52
+ "build": "node ../../scripts/clean.mjs dist && tsgo",
53
+ "dev": "tsgo --watch",
54
+ "clean": "node ../../scripts/clean.mjs dist .turbo"
53
55
  }
54
56
  }
File without changes