starknet 10.6.0 → 10.6.2
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/CHANGELOG.md +14 -0
- package/dist/index.global.js +9 -8
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [10.6.2](https://github.com/starknet-io/starknet.js/compare/v10.6.1...v10.6.2) (2026-07-31)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- avoid extra waitForTransaction receipt delay ([6f21175](https://github.com/starknet-io/starknet.js/commit/6f21175eb4096756e570c9c04010a1b66ae596f1))
|
|
6
|
+
|
|
7
|
+
## [10.6.1](https://github.com/starknet-io/starknet.js/compare/v10.6.0...v10.6.1) (2026-07-30)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- memory leak2 ([a23f59f](https://github.com/starknet-io/starknet.js/commit/a23f59f3915847d8bbfab677d1ad711c3630c0f3))
|
|
12
|
+
- ws memory leak ([b7a6ba6](https://github.com/starknet-io/starknet.js/commit/b7a6ba662f1923d5036040b19ea6da302eb3d6ae))
|
|
13
|
+
- ws-bound request-queue draining to prevent OOM on reconnect ([0e6f7c1](https://github.com/starknet-io/starknet.js/commit/0e6f7c14050cda982dd8ed3cb231a9fd55554bdc))
|
|
14
|
+
|
|
1
15
|
# [10.6.0](https://github.com/starknet-io/starknet.js/compare/v10.5.3...v10.6.0) (2026-07-29)
|
|
2
16
|
|
|
3
17
|
### Features
|
package/dist/index.global.js
CHANGED
|
@@ -11530,9 +11530,9 @@ ${indent}}` : "}";
|
|
|
11530
11530
|
if (retries <= 0) {
|
|
11531
11531
|
throw new Error(`waitForTransaction timed-out with retries ${this.retries}`);
|
|
11532
11532
|
}
|
|
11533
|
+
retries -= 1;
|
|
11534
|
+
await wait(retryInterval);
|
|
11533
11535
|
}
|
|
11534
|
-
retries -= 1;
|
|
11535
|
-
await wait(retryInterval);
|
|
11536
11536
|
}
|
|
11537
11537
|
return txReceipt;
|
|
11538
11538
|
}
|
|
@@ -12230,9 +12230,9 @@ ${indent}}` : "}";
|
|
|
12230
12230
|
if (retries <= 0) {
|
|
12231
12231
|
throw new Error(`waitForTransaction timed-out with retries ${this.retries}`);
|
|
12232
12232
|
}
|
|
12233
|
+
retries -= 1;
|
|
12234
|
+
await wait(retryInterval);
|
|
12233
12235
|
}
|
|
12234
|
-
retries -= 1;
|
|
12235
|
-
await wait(retryInterval);
|
|
12236
12236
|
}
|
|
12237
12237
|
return txReceipt;
|
|
12238
12238
|
}
|
|
@@ -12855,11 +12855,12 @@ ${indent}}` : "}";
|
|
|
12855
12855
|
this.websocket.addEventListener("error", this.errorListener);
|
|
12856
12856
|
}
|
|
12857
12857
|
_processRequestQueue() {
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12858
|
+
const pending = this.requestQueue;
|
|
12859
|
+
this.requestQueue = [];
|
|
12860
|
+
logger.info(`WebSocket: Processing ${pending.length} queued requests.`);
|
|
12861
|
+
pending.forEach(({ method, params, resolve, reject }) => {
|
|
12861
12862
|
this.sendReceive(method, params).then(resolve).catch(reject);
|
|
12862
|
-
}
|
|
12863
|
+
});
|
|
12863
12864
|
}
|
|
12864
12865
|
async _restoreSubscriptions() {
|
|
12865
12866
|
const oldSubscriptions = Array.from(this.activeSubscriptions.values());
|