2.0.0-alpha.5
Pre-releaseWhat's Changed
Breaking Changes
This introduces breaking changes for some provider configuration patterns which are no longer supported. See the updated README for more details and code examples.
Peer dependencies must be statically imported
Wallet provider peer dependencies (SDK/client libraries) are no longer dynamically imported behind the scenes. The modules must be statically imported and passed to the clientStatic
property when initializing the provider.
If a provider has an SDK, it must be initialized with an object where the id
and clientStatic
properties are required. Passing just the PROVIDER_ID.*
string enum will fail. Defly, Pera, Daffi, WalletConnect, and MyAlgo must be initialized this way.
Default provider configuration
You can no longer call useInitializeProviders
with no arguments or an empty array for providers
to initialize a "default" provider configuration. All providers you wish to support must be explicitly defined.
initializeProviders function no longer exported
The function used to initialize providers in use-wallet
1.x is no longer exported by the library. Make sure you're using the useInitializeProviders
hook or manually constructing the wallet providers map that gets passed to the WalletProvider
.
Full Changelog: v2.0.0-alpha.4...v2.0.0-alpha.5