diff --git a/CHANGELOG.md b/CHANGELOG.md index df879199..2ee26e86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,16 @@ # CHANGELOG -## master +## 5.0.1 Mar 19, 2022 - **Breaking change** For users of React Native, you are now required to add `import '@polkadot/wasm-crypto/initOnlyAsm'` at your project top-level to ensure that asm.js is initialized. (Or alternatively `import '@polkadot/wasm-crypto/initWasmAsm'` to future-proof when WASM does become available) -- **Breaking change** For users who used to map the `data` and `empty` of the internal `wasm-crypto-{wasm, asmjs}` packages in their bundlers, swap to one of the `init*()` imports to set the type of interfaces you would prefer. +- **Breaking change** For users who used to map the `data` and `empty` of the internal `wasm-crypto-{wasm, asmjs}` packages in their bundlers, swap to one of the `@polkadot/wasm-crypto/init*` top-level imports to set the type of interfaces you would prefer. Changes: - Add (optional) `@polkadot/wasm-crypto/init{OnlyAsm, OnlyWasm, WasmAsm}` to allow specific interface types - Add work-around for lazy secp256k1 init in asm.js environments +- Optimize asm.js output size +- Use latest `wasm-bindgen`, `binaryen` & `wabt` packages in build - Additional workaround for Vite bundling diff --git a/package.json b/package.json index 5af17c36..ac4b4501 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/polkadot-js/wasm.git" }, "sideEffects": false, - "version": "4.6.2-6", + "version": "5.0.0", "workspaces": [ "packages/*" ], diff --git a/packages/wasm-crypto-asmjs/package.json b/packages/wasm-crypto-asmjs/package.json index 9f7bae1a..f876bea1 100644 --- a/packages/wasm-crypto-asmjs/package.json +++ b/packages/wasm-crypto-asmjs/package.json @@ -17,7 +17,7 @@ }, "sideEffects": false, "type": "module", - "version": "4.6.2-6", + "version": "5.0.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8" diff --git a/packages/wasm-crypto-wasm/package.json b/packages/wasm-crypto-wasm/package.json index 5b230892..19bae26a 100644 --- a/packages/wasm-crypto-wasm/package.json +++ b/packages/wasm-crypto-wasm/package.json @@ -17,7 +17,7 @@ }, "sideEffects": false, "type": "module", - "version": "4.6.2-6", + "version": "5.0.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8" diff --git a/packages/wasm-crypto/package.json b/packages/wasm-crypto/package.json index 358a00d4..37410f30 100644 --- a/packages/wasm-crypto/package.json +++ b/packages/wasm-crypto/package.json @@ -26,12 +26,12 @@ "./initWasmAsm.cjs" ], "type": "module", - "version": "4.6.2-6", + "version": "5.0.0", "main": "index.js", "dependencies": { "@babel/runtime": "^7.17.8", - "@polkadot/wasm-crypto-asmjs": "^4.6.2-6", - "@polkadot/wasm-crypto-wasm": "^4.6.2-6" + "@polkadot/wasm-crypto-asmjs": "^5.0.0", + "@polkadot/wasm-crypto-wasm": "^5.0.0" }, "devDependencies": { "@polkadot/util": "^8.5.1", diff --git a/yarn.lock b/yarn.lock index c17908a3..9b1668fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1996,7 +1996,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/wasm-crypto-asmjs@^4.6.2-6, @polkadot/wasm-crypto-asmjs@workspace:packages/wasm-crypto-asmjs": +"@polkadot/wasm-crypto-asmjs@^5.0.0, @polkadot/wasm-crypto-asmjs@workspace:packages/wasm-crypto-asmjs": version: 0.0.0-use.local resolution: "@polkadot/wasm-crypto-asmjs@workspace:packages/wasm-crypto-asmjs" dependencies: @@ -2007,7 +2007,7 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/wasm-crypto-wasm@^4.6.2-6, @polkadot/wasm-crypto-wasm@workspace:packages/wasm-crypto-wasm": +"@polkadot/wasm-crypto-wasm@^5.0.0, @polkadot/wasm-crypto-wasm@workspace:packages/wasm-crypto-wasm": version: 0.0.0-use.local resolution: "@polkadot/wasm-crypto-wasm@workspace:packages/wasm-crypto-wasm" dependencies: @@ -2024,8 +2024,8 @@ __metadata: dependencies: "@babel/runtime": ^7.17.8 "@polkadot/util": ^8.5.1 - "@polkadot/wasm-crypto-asmjs": ^4.6.2-6 - "@polkadot/wasm-crypto-wasm": ^4.6.2-6 + "@polkadot/wasm-crypto-asmjs": ^5.0.0 + "@polkadot/wasm-crypto-wasm": ^5.0.0 "@polkadot/x-randomvalues": ^8.5.1 peerDependencies: "@polkadot/util": "*"