This commit is contained in:
Jaco
2022-03-19 09:37:11 +02:00
committed by GitHub
parent ea9d986a48
commit 42598dc36b
6 changed files with 14 additions and 12 deletions
+4 -2
View File
@@ -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
+1 -1
View File
@@ -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/*"
],
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+3 -3
View File
@@ -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",
+4 -4
View File
@@ -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": "*"