5.0.1 (#312)
This commit is contained in:
+4
-2
@@ -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
@@ -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/*"
|
||||
],
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "*"
|
||||
|
||||
Reference in New Issue
Block a user