@qvac/registry-client 0.4.1 → 0.5.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/NOTICE CHANGED
@@ -155,7 +155,7 @@ Third-Party Model Licenses
155
155
  lex.50.50.enfr.s2t
156
156
  https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enfr
157
157
  lex.50.50.enit.s2t
158
- https://github.com/mozilla/firefox-translations-models/tree/main/models/tiny/enit
158
+ https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enit
159
159
  lex.50.50.enja.s2t
160
160
  https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enja
161
161
  lex.50.50.enpt.s2t
@@ -165,7 +165,7 @@ Third-Party Model Licenses
165
165
  lex.50.50.enzh.s2t
166
166
  https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enzh
167
167
  lex.50.50.esen.s2t
168
- https://github.com/mozilla/firefox-translations-models/tree/main/models/tiny/esen
168
+ https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/esen
169
169
  lex.50.50.fren.s2t
170
170
  https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/fren
171
171
  lex.50.50.iten.s2t
package/index.d.ts CHANGED
@@ -46,6 +46,7 @@ export interface QVACDownloadResult {
46
46
  export interface QVACDownloadOptions {
47
47
  timeout?: number
48
48
  peerTimeout?: number
49
+ maxRetries?: number
49
50
  outputFile?: string
50
51
  onProgress?: (progress: { downloaded: number, total: number, cachedBlocks: number, totalBlocks: number }) => void
51
52
  signal?: AbortSignal
@@ -53,6 +54,7 @@ export interface QVACDownloadOptions {
53
54
 
54
55
  export interface QVACBlobDownloadOptions {
55
56
  timeout?: number
57
+ maxRetries?: number
56
58
  outputFile?: string
57
59
  onProgress?: (progress: { downloaded: number, total: number, cachedBlocks: number, totalBlocks: number }) => void
58
60
  signal?: AbortSignal
package/lib/client.js CHANGED
@@ -56,6 +56,7 @@ class QVACRegistryClient extends ReadyResource {
56
56
  this.hyperswarm.on('connection', this._connectionHandler)
57
57
 
58
58
  this._metadataReady = this._connectMetadataCore()
59
+ await this._metadataReady
59
60
  }
60
61
 
61
62
  async _connectMetadataCore () {
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@qvac/registry-client",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "QVAC Registry client library for read-only queries via Hyperswarm",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/tetherto/qvac.git",
9
- "directory": "packages/qvac-lib-registry-server/client"
9
+ "directory": "packages/registry-server/client"
10
10
  },
11
11
  "bugs": "https://github.com/tetherto/qvac/issues",
12
- "homepage": "https://github.com/tetherto/qvac/tree/main/packages/qvac-lib-registry-server/client#readme",
12
+ "homepage": "https://github.com/tetherto/qvac/tree/main/packages/registry-server/client#readme",
13
13
  "type": "commonjs",
14
14
  "main": "index.js",
15
15
  "bin": {
@@ -53,26 +53,32 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@qvac/error": "^0.1.0",
56
- "@qvac/registry-schema": "^0.1.2",
56
+ "@qvac/registry-schema": "^0.2.0",
57
57
  "b4a": "^1.6.7",
58
58
  "bare-fs": "^4.5.2",
59
59
  "bare-os": "^3.6.2",
60
60
  "bare-path": "^3.0.0",
61
61
  "bare-process": "^4.2.2",
62
- "corestore": "^7.4.5",
63
- "hyperblobs": "^2.8.0",
64
62
  "hypercore-id-encoding": "^1.3.0",
65
63
  "hypercore-stats": "^2.4.0",
66
- "hyperdb": "^4.16.1",
67
- "hyperswarm": "^4.14.0",
68
64
  "hyperswarm-stats": "^1.3.0",
69
65
  "paparam": "^1.10.0",
70
66
  "ready-resource": "^1.0.1",
71
67
  "tiny-byte-size": "^1.1.0"
72
68
  },
69
+ "peerDependencies": {
70
+ "corestore": "^7.4.5",
71
+ "hyperblobs": "^2.8.0",
72
+ "hyperdb": "^4.16.1",
73
+ "hyperswarm": "^4.14.0"
74
+ },
73
75
  "devDependencies": {
74
76
  "brittle": "^3.4.0",
77
+ "corestore": "^7.4.5",
75
78
  "dotenv": "^17.2.3",
79
+ "hyperblobs": "^2.8.0",
80
+ "hyperdb": "^4.16.1",
81
+ "hyperswarm": "^4.14.0",
76
82
  "standard": "^17.1.0",
77
83
  "test-tmp": "^1.4.0",
78
84
  "typescript": "^5.9.3"