Releases: perawallet/connect
Releases · perawallet/connect
0.2.0
react@18
support is here!
You'll be able to integrate Pera Connect with your React 18 applications. This is a breaking change for react@17
users
Before starting the migration, please read this section. webpack@5
, react-scripts
has stopped polyfilling some of the Node packages, so you have to polyfill those on your side as described in the "Using with React 18" section.
0.1.6
Better Server Side Rendering support is here!
From now on you don't need to use dynamic imports to get work @perawallet/connect
on your SSR applications. Importing it directly will work without any issues.
import {PeraWalletConnect} from "@perawallet/connect";
Sign guidance on desktop
Desktop users will be guided to their mobile devices when they try to sign a transaction with a simple & animated toast message. It can be disabled completely or can be closed conditionally, see the example below.
import {PeraWalletConnect, closePeraWalletSignTxnToast} from "@perawallet/connect";
// This will disable the sign guidance toast completely.
new PeraWalletConnect({shouldShowSignTxnToast: false});
// This will close the toast immediately
closePeraWalletSignTxnToast();