starknet 10.6.0 → 10.6.1

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [10.6.1](https://github.com/starknet-io/starknet.js/compare/v10.6.0...v10.6.1) (2026-07-30)
2
+
3
+ ### Bug Fixes
4
+
5
+ - memory leak2 ([a23f59f](https://github.com/starknet-io/starknet.js/commit/a23f59f3915847d8bbfab677d1ad711c3630c0f3))
6
+ - ws memory leak ([b7a6ba6](https://github.com/starknet-io/starknet.js/commit/b7a6ba662f1923d5036040b19ea6da302eb3d6ae))
7
+ - ws-bound request-queue draining to prevent OOM on reconnect ([0e6f7c1](https://github.com/starknet-io/starknet.js/commit/0e6f7c14050cda982dd8ed3cb231a9fd55554bdc))
8
+
1
9
  # [10.6.0](https://github.com/starknet-io/starknet.js/compare/v10.5.3...v10.6.0) (2026-07-29)
2
10
 
3
11
  ### Features
@@ -12855,11 +12855,12 @@ ${indent}}` : "}";
12855
12855
  this.websocket.addEventListener("error", this.errorListener);
12856
12856
  }
12857
12857
  _processRequestQueue() {
12858
- logger.info(`WebSocket: Processing ${this.requestQueue.length} queued requests.`);
12859
- while (this.requestQueue.length > 0) {
12860
- const { method, params, resolve, reject } = this.requestQueue.shift();
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());