Skip to content

1.0.7

Compare
Choose a tag to compare
@mucahit mucahit released this 23 Nov 16:41
· 139 commits to main since this release
9bf1ec5

Migrating to @perawallet/[email protected]

This guide will help you to upgrade your @perawallet/connect version to 1.0.7 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 algosdk version.
  • authAddr is included in the transaction params