diff --git a/CHANGELOG.md b/CHANGELOG.md index de4b81b92..006af52da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.7.0-beta.x + +- Allow for optional wasm-crypto, specifically via `@polkadot/util-crypto/noWasm` +- Misc. CI infrastructure cleanups + # 2.6.1 Feb 29, 2020 - **Breaking change** Following on the 2.0 release, `@polkadot/wasm` was updated to 1.1+. sr25510 now only verifies 0.8+ signatures, closing the loop on dropping Substrate 1.x-era support diff --git a/package.json b/package.json index 8dfcda62e..866555e05 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "devDependencies": { "@babel/core": "^7.9.0", - "@polkadot/dev": "^0.51.6", + "@polkadot/dev": "^0.51.7", "@polkadot/ts": "^0.3.14", "@types/jest": "^25.1.4" } diff --git a/packages/keyring/package.json b/packages/keyring/package.json index 03e7743a7..dbb2adda3 100644 --- a/packages/keyring/package.json +++ b/packages/keyring/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme", "dependencies": { - "@babel/runtime": "^7.9.0", + "@babel/runtime": "^7.9.2", "@polkadot/util": "2.7.0-beta.6", "@polkadot/util-crypto": "2.7.0-beta.6" } diff --git a/packages/util-crypto/package.json b/packages/util-crypto/package.json index ae6da183d..60e67a08b 100644 --- a/packages/util-crypto/package.json +++ b/packages/util-crypto/package.json @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme", "dependencies": { - "@babel/runtime": "^7.9.0", + "@babel/runtime": "^7.9.2", "@polkadot/util": "2.7.0-beta.6", "@polkadot/wasm-crypto": "^1.2.1", "base-x": "^3.0.8", diff --git a/packages/util-crypto/src/noWasm.ts b/packages/util-crypto/src/noWasm.ts new file mode 100644 index 000000000..ab4330596 --- /dev/null +++ b/packages/util-crypto/src/noWasm.ts @@ -0,0 +1,13 @@ +// Copyright 2017-2020 @polkadot/util-crypto authors & contributors +// This software may be modified and distributed under the terms +// of the Apache-2.0 license. See the LICENSE file for details. + +export function isReady (): boolean { + // always false, when true it will try and use non-existent functions + return false; +} + +export function waitReady (): Promise { + // always immediate true, our process is done + return Promise.resolve(true); +} diff --git a/packages/util/package.json b/packages/util/package.json index be01c4bae..e4aa726d5 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme", "dependencies": { - "@babel/runtime": "^7.9.0", + "@babel/runtime": "^7.9.2", "@types/bn.js": "^4.11.6", "bn.js": "^5.1.1", "camelcase": "^5.3.1", diff --git a/yarn.lock b/yarn.lock index f5133bb4c..4e904245f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1310,6 +1310,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.9.2": + version: 7.9.2 + resolution: "@babel/runtime@npm:7.9.2" + dependencies: + regenerator-runtime: ^0.13.4 + checksum: 2/50c65b4972e62ca260ff6f3f99cf2395585d7f7bcd947ee87d082c2926cb4f0c93c815d5e9071162e689a4d2ba4143ffd5b005893be860088689c963f34e50c8 + languageName: node + linkType: hard + "@babel/template@npm:^7.7.4, @babel/template@npm:^7.8.3, @babel/template@npm:^7.8.6": version: 7.8.6 resolution: "@babel/template@npm:7.8.6" @@ -2583,9 +2592,9 @@ __metadata: languageName: node linkType: hard -"@polkadot/dev@npm:^0.51.6": - version: 0.51.6 - resolution: "@polkadot/dev@npm:0.51.6" +"@polkadot/dev@npm:^0.51.7": + version: 0.51.7 + resolution: "@polkadot/dev@npm:0.51.7" dependencies: "@babel/cli": ^7.8.4 "@babel/core": ^7.9.0 @@ -2665,7 +2674,7 @@ __metadata: polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js polkadot-exec-webpack: scripts/polkadot-exec-webpack.js - checksum: 2/05d32b22a912e1b283b3dbabd7a73764058b1f6731b6f0a999cad23426311ef8f7a5a27ad2dd405909a5e356a5abbc15d41bd2ed9af2339d86866c6394736bfa + checksum: 2/e4c7a2e512343f627e068fc12b696ed4a2dd95c1e608885738b6bcbf979d9aac85940699e7d696cee49e5a3adb66e7ed2635bd260f6fe18b018d7b6df5ca71f9 languageName: node linkType: hard @@ -2673,7 +2682,7 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/keyring@workspace:packages/keyring" dependencies: - "@babel/runtime": ^7.9.0 + "@babel/runtime": ^7.9.2 "@polkadot/util": 2.7.0-beta.6 "@polkadot/util-crypto": 2.7.0-beta.6 languageName: unknown @@ -2692,7 +2701,7 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/util-crypto@workspace:packages/util-crypto" dependencies: - "@babel/runtime": ^7.9.0 + "@babel/runtime": ^7.9.2 "@polkadot/util": 2.7.0-beta.6 "@polkadot/wasm-crypto": ^1.2.1 "@types/bn.js": ^4.11.6 @@ -2717,7 +2726,7 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/util@workspace:packages/util" dependencies: - "@babel/runtime": ^7.9.0 + "@babel/runtime": ^7.9.2 "@types/bn.js": ^4.11.6 bn.js: ^5.1.1 camelcase: ^5.3.1 @@ -14975,7 +14984,7 @@ __metadata: resolution: "root-workspace-0b6124@workspace:." dependencies: "@babel/core": ^7.9.0 - "@polkadot/dev": ^0.51.6 + "@polkadot/dev": ^0.51.7 "@polkadot/ts": ^0.3.14 "@types/jest": ^25.1.4 languageName: unknown