@xyo-network/previous-hash-store-storage 5.3.24 → 5.3.26

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.
Files changed (2) hide show
  1. package/README.md +241 -10
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -1,23 +1,254 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/previous-hash-store-storage
2
4
 
3
- [![logo][]](https://xyo.network)
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Primary SDK for using XYO Protocol 2.0
9
+
10
+ ## Install
11
+
12
+ Using npm:
13
+
14
+ ```sh
15
+ npm install {{name}}
16
+ ```
4
17
 
5
- Version: 5.0.2
18
+ Using yarn:
6
19
 
7
- Primary SDK for using XYO Protocol 2.0
20
+ ```sh
21
+ yarn add {{name}}
22
+ ```
8
23
 
9
- ## Documentation
24
+ Using pnpm:
10
25
 
11
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__previous-hash-store-storage)
26
+ ```sh
27
+ pnpm add {{name}}
28
+ ```
29
+
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add {{name}}
34
+ ```
12
35
 
13
- Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
14
36
 
15
37
  ## License
16
38
 
17
- > See the [LICENSE](LICENSE) file for license details
39
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
+
41
+ ## Reference
42
+
43
+ ### packages
44
+
45
+ ### protocol
46
+
47
+ ### packages
48
+
49
+ ### crypto
50
+
51
+ ### packages
52
+
53
+ ### previous-hash-store
54
+
55
+ ### packages
56
+
57
+ ### storage
58
+
59
+ ### .temp-typedoc
60
+
61
+ ### classes
62
+
63
+ ### <a id="StoragePreviousHashStore"></a>StoragePreviousHashStore
64
+
65
+ [**@xyo-network/previous-hash-store-storage**](#../README)
66
+
67
+ ***
68
+
69
+ ## Implements
70
+
71
+ - `PreviousHashStore`
72
+
73
+ ## Constructors
74
+
75
+ ### Constructor
76
+
77
+ ```ts
78
+ new StoragePreviousHashStore(opts?): StoragePreviousHashStore;
79
+ ```
80
+
81
+ ### Parameters
82
+
83
+ #### opts?
84
+
85
+ [`StoragePreviousHashOpts`](#../type-aliases/StoragePreviousHashOpts)
86
+
87
+ ### Returns
88
+
89
+ `StoragePreviousHashStore`
90
+
91
+ ## Properties
92
+
93
+ ### DefaultNamespace
94
+
95
+ ```ts
96
+ readonly static DefaultNamespace: "xyo-previous-hash-store" = 'xyo-previous-hash-store';
97
+ ```
98
+
99
+ ***
100
+
101
+ ### DefaultStorageType
102
+
103
+ ```ts
104
+ readonly static DefaultStorageType: Storage = 'local';
105
+ ```
106
+
107
+ ## Accessors
108
+
109
+ ### namespace
110
+
111
+ ### Get Signature
112
+
113
+ ```ts
114
+ get namespace(): string;
115
+ ```
116
+
117
+ #### Returns
118
+
119
+ `string`
120
+
121
+ ***
122
+
123
+ ### type
124
+
125
+ ### Get Signature
126
+
127
+ ```ts
128
+ get type(): Storage;
129
+ ```
130
+
131
+ #### Returns
132
+
133
+ [`Storage`](#../type-aliases/Storage)
134
+
135
+ ## Methods
136
+
137
+ ### getItem()
138
+
139
+ ```ts
140
+ getItem(address): Promise<BrandedHash | null>;
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ #### address
146
+
147
+ `BrandedAddress`
148
+
149
+ ### Returns
150
+
151
+ `Promise`\<`BrandedHash` \| `null`\>
152
+
153
+ ### Implementation of
154
+
155
+ ```ts
156
+ PreviousHashStore.getItem
157
+ ```
158
+
159
+ ***
160
+
161
+ ### removeItem()
162
+
163
+ ```ts
164
+ removeItem(address): Promise<void>;
165
+ ```
166
+
167
+ ### Parameters
168
+
169
+ #### address
170
+
171
+ `BrandedAddress`
172
+
173
+ ### Returns
174
+
175
+ `Promise`\<`void`\>
176
+
177
+ ### Implementation of
178
+
179
+ ```ts
180
+ PreviousHashStore.removeItem
181
+ ```
182
+
183
+ ***
184
+
185
+ ### setItem()
186
+
187
+ ```ts
188
+ setItem(address, previousHash): Promise<void>;
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+ #### address
194
+
195
+ `BrandedAddress`
196
+
197
+ #### previousHash
198
+
199
+ `BrandedHash`
200
+
201
+ ### Returns
202
+
203
+ `Promise`\<`void`\>
204
+
205
+ ### Implementation of
206
+
207
+ ```ts
208
+ PreviousHashStore.setItem
209
+ ```
210
+
211
+ ### type-aliases
212
+
213
+ ### <a id="Storage"></a>Storage
214
+
215
+ [**@xyo-network/previous-hash-store-storage**](#../README)
216
+
217
+ ***
218
+
219
+ ```ts
220
+ type Storage = "local" | "session" | "page";
221
+ ```
222
+
223
+ ### <a id="StoragePreviousHashOpts"></a>StoragePreviousHashOpts
224
+
225
+ [**@xyo-network/previous-hash-store-storage**](#../README)
226
+
227
+ ***
228
+
229
+ ```ts
230
+ type StoragePreviousHashOpts = object;
231
+ ```
232
+
233
+ ## Properties
234
+
235
+ ### namespace?
236
+
237
+ ```ts
238
+ optional namespace?: string;
239
+ ```
240
+
241
+ ***
242
+
243
+ ### type?
18
244
 
19
- ## Credits
245
+ ```ts
246
+ optional type?: Storage;
247
+ ```
20
248
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
249
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
250
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
251
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/previous-hash-store-storage.svg
252
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/previous-hash-store-storage
253
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/previous-hash-store-storage.svg
254
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/previous-hash-store-storage",
3
- "version": "5.3.24",
3
+ "version": "5.3.26",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -22,11 +22,11 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/neutral/index.d.ts",
25
+ "import": "./dist/neutral/index.mjs",
25
26
  "default": "./dist/neutral/index.mjs"
26
27
  },
27
28
  "./package.json": "./package.json"
28
29
  },
29
- "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
@@ -37,16 +37,16 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "store2": "~2.14.4",
40
- "@xyo-network/previous-hash-store-model": "~5.3.24"
40
+ "@xyo-network/previous-hash-store-model": "~5.3.26"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@opentelemetry/api": "^1.9.1",
44
- "@types/node": "^25.5.0",
44
+ "@types/node": "^25.5.2",
45
45
  "@types/uuid": "~11.0.0",
46
- "@xylabs/sdk-js": "^5.0.93",
47
- "@xylabs/ts-scripts-common": "~7.6.16",
48
- "@xylabs/ts-scripts-pnpm": "~7.6.16",
49
- "@xylabs/tsconfig": "~7.6.16",
46
+ "@xylabs/sdk-js": "^5.0.94",
47
+ "@xylabs/ts-scripts-common": "~7.7.5",
48
+ "@xylabs/ts-scripts-pnpm": "~7.7.5",
49
+ "@xylabs/tsconfig": "~7.7.5",
50
50
  "acorn": "^8.16.0",
51
51
  "axios": "^1.14.0",
52
52
  "esbuild": "^0.28.0",
@@ -56,7 +56,7 @@
56
56
  "vite": "^8.0.3",
57
57
  "vitest": "~4.1.2",
58
58
  "zod": "^4.3.6",
59
- "@xyo-network/previous-hash-store-model": "~5.3.24"
59
+ "@xyo-network/previous-hash-store-model": "~5.3.26"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@xylabs/sdk-js": "^5",