diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index fdd3e7353..168382a74 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 6.4.1 2023-03-31 + +- Replace use of `setImmediate` with `setTimeout` since the former is not + supported in browsers. + ## 6.4.0 2023-03-22 ### Added diff --git a/packages/common/package.json b/packages/common/package.json index 127dffcbc..494b6bc3c 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@concordium/common-sdk", - "version": "6.4.0", + "version": "6.4.1", "license": "Apache-2.0", "engines": { "node": ">=14.16.0" diff --git a/packages/common/src/GRPCClient.ts b/packages/common/src/GRPCClient.ts index 95513ae1e..2cc2d360e 100644 --- a/packages/common/src/GRPCClient.ts +++ b/packages/common/src/GRPCClient.ts @@ -435,7 +435,7 @@ export default class ConcordiumNodeClient { if (response.status === 'finalized') { // Simply doing `abortController.abort()` causes an error. // See: https://github.com/grpc/grpc-node/issues/1652 - setImmediate(() => abortController.abort()); + setTimeout(() => abortController.abort(), 0); return resolve(response.outcome.blockHash); } @@ -446,7 +446,7 @@ export default class ConcordiumNodeClient { transactionHash ); if (response.status === 'finalized') { - setImmediate(() => abortController.abort()); + setTimeout(() => abortController.abort(), 0); return resolve(response.outcome.blockHash); } } diff --git a/packages/nodejs/package.json b/packages/nodejs/package.json index 7cdb3133e..eb242cfa4 100644 --- a/packages/nodejs/package.json +++ b/packages/nodejs/package.json @@ -60,7 +60,7 @@ "build-dev": "tsc" }, "dependencies": { - "@concordium/common-sdk": "6.4.0", + "@concordium/common-sdk": "6.4.1", "@grpc/grpc-js": "^1.3.4", "@protobuf-ts/grpc-transport": "^2.8.2", "buffer": "^6.0.3", diff --git a/packages/web/CHANGELOG.md b/packages/web/CHANGELOG.md index 765fefe2c..49e1c78a7 100644 --- a/packages/web/CHANGELOG.md +++ b/packages/web/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.4.1 2023-3-31 + +### Changed + +- Bumped @concordium/common-sdk to 6.4.1. (Fixes `waitForTransactionFinalization`) + ## 3.4.0 2023-3-22 ### Changed diff --git a/packages/web/package.json b/packages/web/package.json index e7156db5d..f15df5aa0 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@concordium/web-sdk", - "version": "3.4.0", + "version": "3.4.1", "license": "Apache-2.0", "browser": "lib/concordium.min.js", "types": "lib/index.d.ts", @@ -48,7 +48,7 @@ "webpack-cli": "^4.9.2" }, "dependencies": { - "@concordium/common-sdk": "6.4.0", + "@concordium/common-sdk": "6.4.1", "@concordium/rust-bindings": "0.11.0", "@grpc/grpc-js": "^1.3.4", "@protobuf-ts/grpcweb-transport": "^2.8.2", diff --git a/yarn.lock b/yarn.lock index dad2f808d..4ad383f17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1312,7 +1312,7 @@ __metadata: languageName: node linkType: hard -"@concordium/common-sdk@6.4.0, @concordium/common-sdk@workspace:packages/common": +"@concordium/common-sdk@6.4.1, @concordium/common-sdk@workspace:packages/common": version: 0.0.0-use.local resolution: "@concordium/common-sdk@workspace:packages/common" dependencies: @@ -1354,7 +1354,7 @@ __metadata: version: 0.0.0-use.local resolution: "@concordium/node-sdk@workspace:packages/nodejs" dependencies: - "@concordium/common-sdk": 6.4.0 + "@concordium/common-sdk": 6.4.1 "@grpc/grpc-js": ^1.3.4 "@noble/ed25519": ^1.7.1 "@protobuf-ts/grpc-transport": ^2.8.2 @@ -1393,7 +1393,7 @@ __metadata: version: 0.0.0-use.local resolution: "@concordium/web-sdk@workspace:packages/web" dependencies: - "@concordium/common-sdk": 6.4.0 + "@concordium/common-sdk": 6.4.1 "@concordium/rust-bindings": 0.11.0 "@grpc/grpc-js": ^1.3.4 "@protobuf-ts/grpcweb-transport": ^2.8.2