@ckb-ccc/core 1.2.0 → 1.2.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,5 +1,11 @@
|
|
|
1
1
|
# @ckb-ccc/core
|
|
2
2
|
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#118](https://github.com/ckb-devrel/ccc/pull/118) [`94e2618`](https://github.com/ckb-devrel/ccc/commit/94e26182515e09d6086ec5b653d091f117a499e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: client concurrent should be FIFO
|
|
8
|
+
|
|
3
9
|
## 1.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -266,7 +266,7 @@ export class ClientJsonRpc extends Client {
|
|
|
266
266
|
this.concurrent += 1;
|
|
267
267
|
const res = (await this.transport.request(payload));
|
|
268
268
|
this.concurrent -= 1;
|
|
269
|
-
this.pending.
|
|
269
|
+
this.pending.shift()?.();
|
|
270
270
|
if (res.id !== payload.id) {
|
|
271
271
|
throw new Error(`Id mismatched, got ${res.id}, expected ${payload.id}`);
|
|
272
272
|
}
|
|
@@ -269,7 +269,7 @@ class ClientJsonRpc extends client_js_1.Client {
|
|
|
269
269
|
this.concurrent += 1;
|
|
270
270
|
const res = (await this.transport.request(payload));
|
|
271
271
|
this.concurrent -= 1;
|
|
272
|
-
this.pending.
|
|
272
|
+
this.pending.shift()?.();
|
|
273
273
|
if (res.id !== payload.id) {
|
|
274
274
|
throw new Error(`Id mismatched, got ${res.id}, expected ${payload.id}`);
|
|
275
275
|
}
|
package/package.json
CHANGED
|
@@ -459,7 +459,7 @@ export abstract class ClientJsonRpc extends Client {
|
|
|
459
459
|
result: unknown;
|
|
460
460
|
};
|
|
461
461
|
this.concurrent -= 1;
|
|
462
|
-
this.pending.
|
|
462
|
+
this.pending.shift()?.();
|
|
463
463
|
|
|
464
464
|
if (res.id !== payload.id) {
|
|
465
465
|
throw new Error(`Id mismatched, got ${res.id}, expected ${payload.id}`);
|