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 +8 -0
- package/dist/index.global.js +5 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
package/dist/index.global.js
CHANGED
|
@@ -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());
|