1.0.4
Migrating to @perawallet/connect@1.0.4
This guide will help you to upgrade your @perawallet/connect version to 1.0.4 from 0.x.x.
To get the latest version of @perawallet/connect, please run the following command
npm install --save @perawallet/connect@latest
Breaking change
peraWallet.connector
If your app relies on peraWallet.connector to check if there's any active connection, we've introduced a safer version of it. Please switch to peraWallet.isConnected.
❌ Incorrect
if (peraWallet.connector?.connected) {
// do something
}
✅ Correct
if (peraWallet.isConnected) {
// do something
}
New
peraWallet.platform
Returns the platform of the active session. Possible responses: mobile | web | null
peraWallet.isConnected
To check if there's any active session regardless of platform. Possible responses: true | false
Pera Web Wallet
This version contains necessary updates for the upcoming release of the Pera Web Wallet.
Changelog
- React dependency removed, and the whole UI has been rewritten with WebComponents.
- Possible Wallet Connect glitches caused by NSUrlSession WebSocket on iOS fixed.
- Necessary updates for fully capable Pera Web Wallet included.
- Various bug fixes and improvements.
- Switched to the latest
algosdkversion. authAddris included in the transaction params