@xylabs/storage 7.0.1 → 7.0.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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ > **Deprecated.** Use [`@ariestools/sdk`](../../ariestools-sdk/README.md) instead. This package is a backward-compatibility re-export shim.
2
+
1
3
  [![logo][]](https://xylabs.com)
2
4
 
3
5
  # @xylabs/storage
@@ -12,25 +14,25 @@
12
14
  Using npm:
13
15
 
14
16
  ```sh
15
- npm install {{name}}
17
+ npm install @xylabs/storage
16
18
  ```
17
19
 
18
20
  Using yarn:
19
21
 
20
22
  ```sh
21
- yarn add {{name}}
23
+ yarn add @xylabs/storage
22
24
  ```
23
25
 
24
26
  Using pnpm:
25
27
 
26
28
  ```sh
27
- pnpm add {{name}}
29
+ pnpm add @xylabs/storage
28
30
  ```
29
31
 
30
32
  Using bun:
31
33
 
32
34
  ```sh
33
- bun add {{name}}
35
+ bun add @xylabs/storage
34
36
  ```
35
37
 
36
38
 
@@ -1,2 +1,2 @@
1
- export * from './KeyValueStore.ts';
1
+ export * from '@ariestools/sdk/storage';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
@@ -1 +1,3 @@
1
+ // src/index.ts
2
+ export * from "@ariestools/sdk/storage";
1
3
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from '@ariestools/sdk/storage'\n"],
5
+ "mappings": ";AAAA,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export type * from './KeyValueStore.ts';
1
+ export type * from '@ariestools/sdk/storage/model';
2
2
  //# sourceMappingURL=model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/model.ts"],"names":[],"mappings":"AAAA,mBAAmB,oBAAoB,CAAA"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/model.ts"],"names":[],"mappings":"AAAA,mBAAmB,+BAA+B,CAAA"}
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@xylabs/storage",
3
- "version": "7.0.1",
4
- "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
3
+ "version": "7.0.3",
4
+ "description": "DEPRECATED use @ariestools/sdk/storage. Backward-compatibility re-export shim.",
5
5
  "keywords": [
6
- "hex",
7
6
  "xylabs",
8
7
  "utility",
9
8
  "typescript",
@@ -31,11 +30,11 @@
31
30
  "types": "./dist/neutral/index.d.ts",
32
31
  "default": "./dist/neutral/index.mjs"
33
32
  },
33
+ "./package.json": "./package.json",
34
34
  "./model": {
35
35
  "types": "./dist/neutral/model.d.ts",
36
36
  "default": "./dist/neutral/model.mjs"
37
- },
38
- "./package.json": "./package.json"
37
+ }
39
38
  },
40
39
  "files": [
41
40
  "dist",
@@ -45,20 +44,31 @@
45
44
  "README.md"
46
45
  ],
47
46
  "dependencies": {
48
- "@xylabs/promise": "~7.0.1"
47
+ "@ariestools/sdk": "~7.0.3"
49
48
  },
50
49
  "devDependencies": {
51
- "@xylabs/toolchain": "^8.5.3",
52
- "@xylabs/tsconfig": "^8.5.3",
50
+ "@opentelemetry/api": "^1.9.1",
51
+ "@opentelemetry/sdk-trace-base": "^2.8.0",
52
+ "@xylabs/toolchain": "^8.5.5",
53
+ "@xylabs/tsconfig": "^8.5.5",
54
+ "async-mutex": "^0.5.0",
53
55
  "browserslist": "4.28.4",
54
56
  "eslint": "^10.6.0",
55
57
  "eslint-import-resolver-typescript": "^4.4.5",
56
- "typescript": "^6.0.3"
58
+ "typescript": "^6.0.3",
59
+ "zod": "^4.4.3"
60
+ },
61
+ "peerDependencies": {
62
+ "@opentelemetry/api": "^1.9",
63
+ "@opentelemetry/sdk-trace-base": "^2.7",
64
+ "async-mutex": "^0.5",
65
+ "zod": "^4.4"
57
66
  },
58
67
  "engines": {
59
68
  "node": ">=18"
60
69
  },
61
70
  "publishConfig": {
62
71
  "access": "public"
63
- }
72
+ },
73
+ "deprecated": "Use @ariestools/sdk/storage instead. @xylabs/storage is a compatibility shim only and will not receive further updates."
64
74
  }
@@ -1,34 +0,0 @@
1
- import type { Promisable } from '@xylabs/promise';
2
- /**
3
- * A readonly storage device.
4
- */
5
- export interface ReadonlyKeyValueStore<TValue, TKey = string> {
6
- /**
7
- * Returns a promise that resolves to the value for the given key.
8
- * @param key The key to get the value for.
9
- */
10
- get(key: TKey): Promisable<TValue | undefined>;
11
- /**
12
- * The keys an array of keys.
13
- */
14
- keys?(): Promisable<TKey[]>;
15
- }
16
- /**
17
- * A read/write storage device.
18
- */
19
- export interface KeyValueStore<TValue, TKey = string> extends ReadonlyKeyValueStore<TValue, TKey> {
20
- /** Removes all entries from the store. */
21
- clear?(): Promisable<void>;
22
- /**
23
- * Deletes the entry with the given key.
24
- * @param key The key of the entry to delete
25
- */
26
- delete(key: TKey): Promisable<void>;
27
- /**
28
- * Sets a value for the given key, creating or updating the entry.
29
- * @param key The key to set
30
- * @param value The value to store
31
- */
32
- set(key: TKey, value: TValue): Promisable<void>;
33
- }
34
- //# sourceMappingURL=KeyValueStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueStore.d.ts","sourceRoot":"","sources":["../../src/KeyValueStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,qBAAqB,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM;IAC1D;;;OAGG;IACH,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC9C;;OAEG;IACH,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAAE,SAAQ,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC;IAC/F,0CAA0C;IAC1C,KAAK,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IAC1B;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;IACnC;;;;OAIG;IACH,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;CAChD"}