From 8224beb85d5bb07cd445a8a8e238146fe71f8340 Mon Sep 17 00:00:00 2001 From: Jaco Date: Sun, 27 Mar 2022 09:17:39 +0200 Subject: [PATCH] 8.7.1 (#1449) --- CHANGELOG.md | 9 ++ package.json | 2 +- packages/hw-ledger-transports/package.json | 4 +- packages/hw-ledger/package.json | 6 +- packages/keyring/package.json | 10 +- packages/networks/package.json | 8 +- packages/util-crypto/package.json | 14 +-- packages/util/package.json | 12 +-- packages/x-bigint/package.json | 4 +- packages/x-bundle/package.json | 4 +- packages/x-fetch/package.json | 4 +- packages/x-global/package.json | 2 +- packages/x-randomvalues/package.json | 4 +- packages/x-textdecoder/package.json | 4 +- packages/x-textencoder/package.json | 4 +- packages/x-ws/package.json | 4 +- yarn.lock | 106 ++++++++++----------- 17 files changed, 105 insertions(+), 96 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0a86a73f..81745fcc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # CHANGELOG +## 8.7.1 Mar 27, 2022 + +Changes: + +- Fix race-condition with wasm overrides, make `cryptoWaitReady` lazy +- Additional tests for `BN` & `BigInt` negative conversions +- Upgrade to `@polkadot/wasm-crypto` 5.1.1 + + ## 8.6.1 Mar 19, 2022 **Important** This contains an upgraded version of `@polkadot/wasm-crypto`. For users of asm.js, e.g. React Native, there are some additional upgrade instructions in the release notes for this version https://github.com/polkadot-js/wasm/releases/tag/v5.0.1 diff --git a/package.json b/package.json index a0cb5a385..a6b32acb1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/polkadot-js/common.git" }, "sideEffects": false, - "version": "8.6.2-6", + "version": "8.7.0", "workspaces": [ "packages/*" ], diff --git a/packages/hw-ledger-transports/package.json b/packages/hw-ledger-transports/package.json index 9d20f74c7..53e1689c6 100644 --- a/packages/hw-ledger-transports/package.json +++ b/packages/hw-ledger-transports/package.json @@ -16,7 +16,7 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "browser": "browser.js", "main": "node.js", "react-native": "react-native.js", @@ -25,7 +25,7 @@ "@ledgerhq/hw-transport": "^6.24.1", "@ledgerhq/hw-transport-webhid": "^6.24.1", "@ledgerhq/hw-transport-webusb": "^6.24.1", - "@polkadot/util": "8.6.2-6" + "@polkadot/util": "8.7.0" }, "optionalDependencies": { "@ledgerhq/hw-transport-node-hid-singleton": "^6.26.0" diff --git a/packages/hw-ledger/package.json b/packages/hw-ledger/package.json index 5aa9ce79b..c0c57a09d 100644 --- a/packages/hw-ledger/package.json +++ b/packages/hw-ledger/package.json @@ -19,13 +19,13 @@ "./detectPackage.cjs" ], "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8", "@ledgerhq/hw-transport": "^6.24.1", - "@polkadot/hw-ledger-transports": "8.6.2-6", - "@polkadot/util": "8.6.2-6", + "@polkadot/hw-ledger-transports": "8.7.0", + "@polkadot/util": "8.7.0", "@zondax/ledger-substrate": "^0.24.0" } } diff --git a/packages/keyring/package.json b/packages/keyring/package.json index c0f1a595e..4d28c5569 100644 --- a/packages/keyring/package.json +++ b/packages/keyring/package.json @@ -20,15 +20,15 @@ "./detectPackage.cjs" ], "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/util": "8.6.2-6", - "@polkadot/util-crypto": "8.6.2-6" + "@polkadot/util": "8.7.0", + "@polkadot/util-crypto": "8.7.0" }, "peerDependencies": { - "@polkadot/util": "8.6.2-6", - "@polkadot/util-crypto": "8.6.2-6" + "@polkadot/util": "8.7.0", + "@polkadot/util-crypto": "8.7.0" } } diff --git a/packages/networks/package.json b/packages/networks/package.json index 9745eb9e6..9034863f0 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -17,15 +17,15 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/util": "8.6.2-6", + "@polkadot/util": "8.7.0", "@substrate/ss58-registry": "^1.17.0" }, "devDependencies": { - "@polkadot/hw-ledger": "8.6.2-6", - "@polkadot/x-fetch": "8.6.2-6" + "@polkadot/hw-ledger": "8.7.0", + "@polkadot/x-fetch": "8.7.0" } } diff --git a/packages/util-crypto/package.json b/packages/util-crypto/package.json index 2af2bb53e..cfc8d5818 100644 --- a/packages/util-crypto/package.json +++ b/packages/util-crypto/package.json @@ -22,7 +22,7 @@ "./detectPackage.cjs" ], "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "browser": { "crypto": false, "stream": false @@ -32,11 +32,11 @@ "@babel/runtime": "^7.17.8", "@noble/hashes": "1.0.0", "@noble/secp256k1": "1.5.5", - "@polkadot/networks": "8.6.2-6", - "@polkadot/util": "8.6.2-6", - "@polkadot/wasm-crypto": "^5.0.1", - "@polkadot/x-bigint": "8.6.2-6", - "@polkadot/x-randomvalues": "8.6.2-6", + "@polkadot/networks": "8.7.0", + "@polkadot/util": "8.7.0", + "@polkadot/wasm-crypto": "^5.1.1", + "@polkadot/x-bigint": "8.7.0", + "@polkadot/x-randomvalues": "8.7.0", "@scure/base": "1.0.0", "ed2curve": "^0.3.0", "tweetnacl": "^1.0.3" @@ -45,6 +45,6 @@ "@types/ed2curve": "^0.2.2" }, "peerDependencies": { - "@polkadot/util": "8.6.2-6" + "@polkadot/util": "8.7.0" } } diff --git a/packages/util/package.json b/packages/util/package.json index b63bd6ac5..8d4a8a2d9 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -34,19 +34,19 @@ "./detectPackage.cjs" ], "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/x-bigint": "8.6.2-6", - "@polkadot/x-global": "8.6.2-6", - "@polkadot/x-textdecoder": "8.6.2-6", - "@polkadot/x-textencoder": "8.6.2-6", + "@polkadot/x-bigint": "8.7.0", + "@polkadot/x-global": "8.7.0", + "@polkadot/x-textdecoder": "8.7.0", + "@polkadot/x-textencoder": "8.7.0", "@types/bn.js": "^5.1.0", "bn.js": "^5.2.0", "ip-regex": "^4.3.0" }, "devDependencies": { - "@polkadot/x-randomvalues": "8.6.2-6" + "@polkadot/x-randomvalues": "8.7.0" } } diff --git a/packages/x-bigint/package.json b/packages/x-bigint/package.json index e571310a8..e1a8ec879 100644 --- a/packages/x-bigint/package.json +++ b/packages/x-bigint/package.json @@ -20,9 +20,9 @@ "./shim.cjs" ], "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.6.2-6" + "@polkadot/x-global": "8.7.0" } } diff --git a/packages/x-bundle/package.json b/packages/x-bundle/package.json index ce550dc55..5c3466c70 100644 --- a/packages/x-bundle/package.json +++ b/packages/x-bundle/package.json @@ -17,11 +17,11 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/util": "8.6.2-6", + "@polkadot/util": "8.7.0", "buffer-es6": "^4.9.3" } } diff --git a/packages/x-fetch/package.json b/packages/x-fetch/package.json index 601ccb03d..32b731ae1 100644 --- a/packages/x-fetch/package.json +++ b/packages/x-fetch/package.json @@ -17,13 +17,13 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "browser": "browser.js", "main": "node.js", "react-native": "react-native.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.6.2-6", + "@polkadot/x-global": "8.7.0", "@types/node-fetch": "^2.6.1", "node-fetch": "^2.6.7" } diff --git a/packages/x-global/package.json b/packages/x-global/package.json index d30e8fdf4..c0fab1565 100644 --- a/packages/x-global/package.json +++ b/packages/x-global/package.json @@ -17,7 +17,7 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8" diff --git a/packages/x-randomvalues/package.json b/packages/x-randomvalues/package.json index 21ff31020..fe63eb9ea 100644 --- a/packages/x-randomvalues/package.json +++ b/packages/x-randomvalues/package.json @@ -17,13 +17,13 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "browser": "browser.js", "main": "node.js", "react-native": "react-native.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.6.2-6" + "@polkadot/x-global": "8.7.0" }, "devDependencies": { "@types/react-native": "^0.67.3" diff --git a/packages/x-textdecoder/package.json b/packages/x-textdecoder/package.json index 8b2aaeb83..b7d31c6e7 100644 --- a/packages/x-textdecoder/package.json +++ b/packages/x-textdecoder/package.json @@ -17,12 +17,12 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "browser": "browser.js", "main": "node.js", "react-native": "react-native.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.6.2-6" + "@polkadot/x-global": "8.7.0" } } diff --git a/packages/x-textencoder/package.json b/packages/x-textencoder/package.json index bf2810d08..de017849c 100644 --- a/packages/x-textencoder/package.json +++ b/packages/x-textencoder/package.json @@ -17,12 +17,12 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "browser": "browser.js", "main": "node.js", "react-native": "react-native.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.6.2-6" + "@polkadot/x-global": "8.7.0" } } diff --git a/packages/x-ws/package.json b/packages/x-ws/package.json index 670115f2f..0f63ce401 100644 --- a/packages/x-ws/package.json +++ b/packages/x-ws/package.json @@ -17,13 +17,13 @@ }, "sideEffects": false, "type": "module", - "version": "8.6.2-6", + "version": "8.7.0", "browser": "browser.js", "main": "node.js", "react-native": "react-native.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.6.2-6", + "@polkadot/x-global": "8.7.0", "@types/websocket": "^1.0.5", "websocket": "^1.0.34" } diff --git a/yarn.lock b/yarn.lock index 724fb486d..5742be29b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2084,7 +2084,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/hw-ledger-transports@8.6.2-6, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports": +"@polkadot/hw-ledger-transports@8.7.0, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports": version: 0.0.0-use.local resolution: "@polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports" dependencies: @@ -2093,21 +2093,21 @@ __metadata: "@ledgerhq/hw-transport-node-hid-singleton": ^6.26.0 "@ledgerhq/hw-transport-webhid": ^6.24.1 "@ledgerhq/hw-transport-webusb": ^6.24.1 - "@polkadot/util": 8.6.2-6 + "@polkadot/util": 8.7.0 dependenciesMeta: "@ledgerhq/hw-transport-node-hid-singleton": optional: true languageName: unknown linkType: soft -"@polkadot/hw-ledger@8.6.2-6, @polkadot/hw-ledger@workspace:packages/hw-ledger": +"@polkadot/hw-ledger@8.7.0, @polkadot/hw-ledger@workspace:packages/hw-ledger": version: 0.0.0-use.local resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger" dependencies: "@babel/runtime": ^7.17.8 "@ledgerhq/hw-transport": ^6.24.1 - "@polkadot/hw-ledger-transports": 8.6.2-6 - "@polkadot/util": 8.6.2-6 + "@polkadot/hw-ledger-transports": 8.7.0 + "@polkadot/util": 8.7.0 "@zondax/ledger-substrate": ^0.24.0 languageName: unknown linkType: soft @@ -2117,105 +2117,105 @@ __metadata: resolution: "@polkadot/keyring@workspace:packages/keyring" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/util": 8.6.2-6 - "@polkadot/util-crypto": 8.6.2-6 + "@polkadot/util": 8.7.0 + "@polkadot/util-crypto": 8.7.0 peerDependencies: - "@polkadot/util": 8.6.2-6 - "@polkadot/util-crypto": 8.6.2-6 + "@polkadot/util": 8.7.0 + "@polkadot/util-crypto": 8.7.0 languageName: unknown linkType: soft -"@polkadot/networks@8.6.2-6, @polkadot/networks@workspace:packages/networks": +"@polkadot/networks@8.7.0, @polkadot/networks@workspace:packages/networks": version: 0.0.0-use.local resolution: "@polkadot/networks@workspace:packages/networks" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/hw-ledger": 8.6.2-6 - "@polkadot/util": 8.6.2-6 - "@polkadot/x-fetch": 8.6.2-6 + "@polkadot/hw-ledger": 8.7.0 + "@polkadot/util": 8.7.0 + "@polkadot/x-fetch": 8.7.0 "@substrate/ss58-registry": ^1.17.0 languageName: unknown linkType: soft -"@polkadot/util-crypto@8.6.2-6, @polkadot/util-crypto@workspace:packages/util-crypto": +"@polkadot/util-crypto@8.7.0, @polkadot/util-crypto@workspace:packages/util-crypto": version: 0.0.0-use.local resolution: "@polkadot/util-crypto@workspace:packages/util-crypto" dependencies: "@babel/runtime": ^7.17.8 "@noble/hashes": 1.0.0 "@noble/secp256k1": 1.5.5 - "@polkadot/networks": 8.6.2-6 - "@polkadot/util": 8.6.2-6 - "@polkadot/wasm-crypto": ^5.0.1 - "@polkadot/x-bigint": 8.6.2-6 - "@polkadot/x-randomvalues": 8.6.2-6 + "@polkadot/networks": 8.7.0 + "@polkadot/util": 8.7.0 + "@polkadot/wasm-crypto": ^5.1.1 + "@polkadot/x-bigint": 8.7.0 + "@polkadot/x-randomvalues": 8.7.0 "@scure/base": 1.0.0 "@types/ed2curve": ^0.2.2 ed2curve: ^0.3.0 tweetnacl: ^1.0.3 peerDependencies: - "@polkadot/util": 8.6.2-6 + "@polkadot/util": 8.7.0 languageName: unknown linkType: soft -"@polkadot/util@8.6.2-6, @polkadot/util@workspace:packages/util": +"@polkadot/util@8.7.0, @polkadot/util@workspace:packages/util": version: 0.0.0-use.local resolution: "@polkadot/util@workspace:packages/util" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/x-bigint": 8.6.2-6 - "@polkadot/x-global": 8.6.2-6 - "@polkadot/x-randomvalues": 8.6.2-6 - "@polkadot/x-textdecoder": 8.6.2-6 - "@polkadot/x-textencoder": 8.6.2-6 + "@polkadot/x-bigint": 8.7.0 + "@polkadot/x-global": 8.7.0 + "@polkadot/x-randomvalues": 8.7.0 + "@polkadot/x-textdecoder": 8.7.0 + "@polkadot/x-textencoder": 8.7.0 "@types/bn.js": ^5.1.0 bn.js: ^5.2.0 ip-regex: ^4.3.0 languageName: unknown linkType: soft -"@polkadot/wasm-crypto-asmjs@npm:^5.0.1": - version: 5.0.1 - resolution: "@polkadot/wasm-crypto-asmjs@npm:5.0.1" +"@polkadot/wasm-crypto-asmjs@npm:^5.1.1": + version: 5.1.1 + resolution: "@polkadot/wasm-crypto-asmjs@npm:5.1.1" dependencies: "@babel/runtime": ^7.17.8 peerDependencies: "@polkadot/util": "*" - checksum: c32208930de69759a14376b0c86d7944fe88cc89e34681819acaec3636e6b6725d41036de456d6becad45886e316a1be6c22c6621b7c9b791be1c3f06bc030b6 + checksum: fd5906a45ba2fa7c5c9b12c761b4343bb91b21af9b1f854dabad190c822cbd4d8e090c75786f4869190fd0441204c5d225433928ef268b9ff1166875cd774e34 languageName: node linkType: hard -"@polkadot/wasm-crypto-wasm@npm:^5.0.1": - version: 5.0.1 - resolution: "@polkadot/wasm-crypto-wasm@npm:5.0.1" +"@polkadot/wasm-crypto-wasm@npm:^5.1.1": + version: 5.1.1 + resolution: "@polkadot/wasm-crypto-wasm@npm:5.1.1" dependencies: "@babel/runtime": ^7.17.8 peerDependencies: "@polkadot/util": "*" - checksum: 167f9e7c4afc82c307a88a3f40d49458f0b8b1eeac6aec501a26ecfe8ed63f3cfc4132f3b4c8894ec1ee664cb205fa2607264b6c84846231bc705eedfc25972e + checksum: 881c045e04dec8f01e97e62ee8061c5884283d7566d7cc45219c2c1605ffb85a225c800677f7e09896c37e38347817f471f5123e5bffba353efae3bf21b30cc1 languageName: node linkType: hard -"@polkadot/wasm-crypto@npm:^5.0.1": - version: 5.0.1 - resolution: "@polkadot/wasm-crypto@npm:5.0.1" +"@polkadot/wasm-crypto@npm:^5.1.1": + version: 5.1.1 + resolution: "@polkadot/wasm-crypto@npm:5.1.1" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/wasm-crypto-asmjs": ^5.0.1 - "@polkadot/wasm-crypto-wasm": ^5.0.1 + "@polkadot/wasm-crypto-asmjs": ^5.1.1 + "@polkadot/wasm-crypto-wasm": ^5.1.1 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: 4116a87c1a047de026b0feb6b68b2e46f4115f2ba7504104421ed240f111e1f5a609e954a1c1f8fd5f0b727eadabfacd1edd939197222988a889d7e40b3e30ef + checksum: 713a6a36b6cce8cf56d455fdfad09c2c13038f863592b746eafe8fa7919bf3f9af06266c8531265db06260bec00add7ee5f87431eb3ab71dbaa176f0417034f4 languageName: node linkType: hard -"@polkadot/x-bigint@8.6.2-6, @polkadot/x-bigint@workspace:packages/x-bigint": +"@polkadot/x-bigint@8.7.0, @polkadot/x-bigint@workspace:packages/x-bigint": version: 0.0.0-use.local resolution: "@polkadot/x-bigint@workspace:packages/x-bigint" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/x-global": 8.6.2-6 + "@polkadot/x-global": 8.7.0 languageName: unknown linkType: soft @@ -2224,23 +2224,23 @@ __metadata: resolution: "@polkadot/x-bundle@workspace:packages/x-bundle" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/util": 8.6.2-6 + "@polkadot/util": 8.7.0 buffer-es6: ^4.9.3 languageName: unknown linkType: soft -"@polkadot/x-fetch@8.6.2-6, @polkadot/x-fetch@workspace:packages/x-fetch": +"@polkadot/x-fetch@8.7.0, @polkadot/x-fetch@workspace:packages/x-fetch": version: 0.0.0-use.local resolution: "@polkadot/x-fetch@workspace:packages/x-fetch" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/x-global": 8.6.2-6 + "@polkadot/x-global": 8.7.0 "@types/node-fetch": ^2.6.1 node-fetch: ^2.6.7 languageName: unknown linkType: soft -"@polkadot/x-global@8.6.2-6, @polkadot/x-global@workspace:packages/x-global": +"@polkadot/x-global@8.7.0, @polkadot/x-global@workspace:packages/x-global": version: 0.0.0-use.local resolution: "@polkadot/x-global@workspace:packages/x-global" dependencies: @@ -2248,31 +2248,31 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/x-randomvalues@8.6.2-6, @polkadot/x-randomvalues@workspace:packages/x-randomvalues": +"@polkadot/x-randomvalues@8.7.0, @polkadot/x-randomvalues@workspace:packages/x-randomvalues": version: 0.0.0-use.local resolution: "@polkadot/x-randomvalues@workspace:packages/x-randomvalues" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/x-global": 8.6.2-6 + "@polkadot/x-global": 8.7.0 "@types/react-native": ^0.67.3 languageName: unknown linkType: soft -"@polkadot/x-textdecoder@8.6.2-6, @polkadot/x-textdecoder@workspace:packages/x-textdecoder": +"@polkadot/x-textdecoder@8.7.0, @polkadot/x-textdecoder@workspace:packages/x-textdecoder": version: 0.0.0-use.local resolution: "@polkadot/x-textdecoder@workspace:packages/x-textdecoder" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/x-global": 8.6.2-6 + "@polkadot/x-global": 8.7.0 languageName: unknown linkType: soft -"@polkadot/x-textencoder@8.6.2-6, @polkadot/x-textencoder@workspace:packages/x-textencoder": +"@polkadot/x-textencoder@8.7.0, @polkadot/x-textencoder@workspace:packages/x-textencoder": version: 0.0.0-use.local resolution: "@polkadot/x-textencoder@workspace:packages/x-textencoder" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/x-global": 8.6.2-6 + "@polkadot/x-global": 8.7.0 languageName: unknown linkType: soft @@ -2281,7 +2281,7 @@ __metadata: resolution: "@polkadot/x-ws@workspace:packages/x-ws" dependencies: "@babel/runtime": ^7.17.8 - "@polkadot/x-global": 8.6.2-6 + "@polkadot/x-global": 8.7.0 "@types/websocket": ^1.0.5 websocket: ^1.0.34 languageName: unknown