@xyo-network/previous-hash-store-indexeddb 5.3.29 → 5.4.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 +0 -197
- package/package.json +9 -14
package/README.md
CHANGED
|
@@ -38,203 +38,6 @@ bun add {{name}}
|
|
|
38
38
|
|
|
39
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
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
|
-
### indexeddb
|
|
58
|
-
|
|
59
|
-
### .temp-typedoc
|
|
60
|
-
|
|
61
|
-
### classes
|
|
62
|
-
|
|
63
|
-
### <a id="IndexedDbPreviousHashStore"></a>IndexedDbPreviousHashStore
|
|
64
|
-
|
|
65
|
-
[**@xyo-network/previous-hash-store-indexeddb**](#../README)
|
|
66
|
-
|
|
67
|
-
***
|
|
68
|
-
|
|
69
|
-
## Implements
|
|
70
|
-
|
|
71
|
-
- `PreviousHashStore`
|
|
72
|
-
|
|
73
|
-
## Constructors
|
|
74
|
-
|
|
75
|
-
### Constructor
|
|
76
|
-
|
|
77
|
-
```ts
|
|
78
|
-
new IndexedDbPreviousHashStore(): IndexedDbPreviousHashStore;
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Returns
|
|
82
|
-
|
|
83
|
-
`IndexedDbPreviousHashStore`
|
|
84
|
-
|
|
85
|
-
## Properties
|
|
86
|
-
|
|
87
|
-
### CurrentSchemaVersion
|
|
88
|
-
|
|
89
|
-
```ts
|
|
90
|
-
readonly static CurrentSchemaVersion: 1 = 1;
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Accessors
|
|
94
|
-
|
|
95
|
-
### dbName
|
|
96
|
-
|
|
97
|
-
### Get Signature
|
|
98
|
-
|
|
99
|
-
```ts
|
|
100
|
-
get dbName(): "xyo";
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
The database name.
|
|
104
|
-
|
|
105
|
-
#### Returns
|
|
106
|
-
|
|
107
|
-
`"xyo"`
|
|
108
|
-
|
|
109
|
-
***
|
|
110
|
-
|
|
111
|
-
### storeName
|
|
112
|
-
|
|
113
|
-
### Get Signature
|
|
114
|
-
|
|
115
|
-
```ts
|
|
116
|
-
get storeName(): "previous-hash";
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
The name of the object store.
|
|
120
|
-
|
|
121
|
-
#### Returns
|
|
122
|
-
|
|
123
|
-
`"previous-hash"`
|
|
124
|
-
|
|
125
|
-
## Methods
|
|
126
|
-
|
|
127
|
-
### getItem()
|
|
128
|
-
|
|
129
|
-
```ts
|
|
130
|
-
getItem(address): Promise<BrandedHash | null>;
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Parameters
|
|
134
|
-
|
|
135
|
-
#### address
|
|
136
|
-
|
|
137
|
-
`BrandedAddress`
|
|
138
|
-
|
|
139
|
-
### Returns
|
|
140
|
-
|
|
141
|
-
`Promise`\<`BrandedHash` \| `null`\>
|
|
142
|
-
|
|
143
|
-
### Implementation of
|
|
144
|
-
|
|
145
|
-
```ts
|
|
146
|
-
PreviousHashStore.getItem
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
***
|
|
150
|
-
|
|
151
|
-
### removeItem()
|
|
152
|
-
|
|
153
|
-
```ts
|
|
154
|
-
removeItem(address): Promise<void>;
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
### Parameters
|
|
158
|
-
|
|
159
|
-
#### address
|
|
160
|
-
|
|
161
|
-
`BrandedAddress`
|
|
162
|
-
|
|
163
|
-
### Returns
|
|
164
|
-
|
|
165
|
-
`Promise`\<`void`\>
|
|
166
|
-
|
|
167
|
-
### Implementation of
|
|
168
|
-
|
|
169
|
-
```ts
|
|
170
|
-
PreviousHashStore.removeItem
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
***
|
|
174
|
-
|
|
175
|
-
### setItem()
|
|
176
|
-
|
|
177
|
-
```ts
|
|
178
|
-
setItem(address, previousHash): Promise<void>;
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
### Parameters
|
|
182
|
-
|
|
183
|
-
#### address
|
|
184
|
-
|
|
185
|
-
`BrandedAddress`
|
|
186
|
-
|
|
187
|
-
#### previousHash
|
|
188
|
-
|
|
189
|
-
`string`
|
|
190
|
-
|
|
191
|
-
### Returns
|
|
192
|
-
|
|
193
|
-
`Promise`\<`void`\>
|
|
194
|
-
|
|
195
|
-
### Implementation of
|
|
196
|
-
|
|
197
|
-
```ts
|
|
198
|
-
PreviousHashStore.setItem
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### interfaces
|
|
202
|
-
|
|
203
|
-
### <a id="PreviousHashStoreSchemaV1"></a>PreviousHashStoreSchemaV1
|
|
204
|
-
|
|
205
|
-
[**@xyo-network/previous-hash-store-indexeddb**](#../README)
|
|
206
|
-
|
|
207
|
-
***
|
|
208
|
-
|
|
209
|
-
## Extends
|
|
210
|
-
|
|
211
|
-
- `DBSchema`
|
|
212
|
-
|
|
213
|
-
## Indexable
|
|
214
|
-
|
|
215
|
-
```ts
|
|
216
|
-
[s: string]: DBSchemaValue
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
## Properties
|
|
220
|
-
|
|
221
|
-
### previous-hash
|
|
222
|
-
|
|
223
|
-
```ts
|
|
224
|
-
previous-hash: object;
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
### key
|
|
228
|
-
|
|
229
|
-
```ts
|
|
230
|
-
key: string;
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
### value
|
|
234
|
-
|
|
235
|
-
```ts
|
|
236
|
-
value: string;
|
|
237
|
-
```
|
|
238
41
|
|
|
239
42
|
|
|
240
43
|
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/previous-hash-store-indexeddb",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
25
|
-
"import": "./dist/neutral/index.mjs",
|
|
26
25
|
"default": "./dist/neutral/index.mjs"
|
|
27
26
|
},
|
|
28
27
|
"./package.json": "./package.json"
|
|
29
28
|
},
|
|
30
|
-
"types": "dist/neutral/index.d.ts",
|
|
31
29
|
"files": [
|
|
32
30
|
"dist",
|
|
33
31
|
"!**/*.bench.*",
|
|
@@ -36,29 +34,26 @@
|
|
|
36
34
|
"README.md"
|
|
37
35
|
],
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@xyo-network/previous-hash-store-model": "~5.
|
|
37
|
+
"@xyo-network/previous-hash-store-model": "~5.4.0"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
40
|
"@opentelemetry/api": "^1.9.1",
|
|
43
|
-
"@types/node": "^25.
|
|
44
|
-
"@
|
|
45
|
-
"@xylabs/
|
|
46
|
-
"@xylabs/
|
|
47
|
-
"@xylabs/ts-scripts-pnpm": "~7.8.4",
|
|
48
|
-
"@xylabs/tsconfig": "~7.8.4",
|
|
49
|
-
"axios": "^1.14.0",
|
|
41
|
+
"@types/node": "^25.6.0",
|
|
42
|
+
"@xylabs/sdk-js": "^5.0.97",
|
|
43
|
+
"@xylabs/toolchain": "~7.10.8",
|
|
44
|
+
"@xylabs/tsconfig": "~7.10.8",
|
|
50
45
|
"esbuild": "^0.28.0",
|
|
51
46
|
"fake-indexeddb": "~6.2.5",
|
|
52
47
|
"idb": "^8.0.3",
|
|
53
48
|
"pako": "~2.1.0",
|
|
54
49
|
"typescript": "~5.9.3",
|
|
55
50
|
"uuid": "~13.0.0",
|
|
56
|
-
"vite": "^8.0.
|
|
57
|
-
"vitest": "~4.1.
|
|
51
|
+
"vite": "^8.0.8",
|
|
52
|
+
"vitest": "~4.1.4",
|
|
58
53
|
"zod": "^4.3.6"
|
|
59
54
|
},
|
|
60
55
|
"peerDependencies": {
|
|
61
|
-
"@xylabs/sdk-js": "^5",
|
|
56
|
+
"@xylabs/sdk-js": "^5.0.97",
|
|
62
57
|
"idb": "^8.0.3"
|
|
63
58
|
},
|
|
64
59
|
"publishConfig": {
|