v4.0.0-beta.5
Pre-releaseChanges
Features
Other Changes
- refactor(liquid): remove Liquid Auth provider by @drichar in #337
- refactor(network): remove name property and improve network ID types by @drichar in #338
- chore(core): update local storage key for v4 by @drichar in
72e0c23
Note: This beta release also includes all changes from v3.11.1 and v3.12.0 that were merged from the
main
branch. See the v3.11.1 and v3.12.0 release notes for details.
⚠️ BREAKING CHANGES
This beta release introduces a new useNetwork
hook that contains network-related functionality previously returned by useWallet
. If you're upgrading from an earlier v4 beta version, you'll need to update your imports and usage of:
activeNetwork
setActiveNetwork
which have been moved to useNetwork
.
For example:
// Before (v4.0.0-beta.4 and earlier)
const { activeNetwork, setActiveNetwork } = useWallet()
// After (v4.0.0-beta.5)
const { activeNetwork, setActiveNetwork } = useNetwork()
This change only affects projects using earlier v4 beta versions. For detailed implementation examples, please refer to the commit history and files changed in #339
Documentation for the new network configuration features is in progress and will be included in the final v4.0.0 release.
Full Changelog: v4.0.0-beta.4...v4.0.0-beta.5
Packages
- @txnlab/use-wallet@4.0.0-beta.5
- @txnlab/use-wallet-react@4.0.0-beta.5
- @txnlab/use-wallet-solid@4.0.0-beta.5
- @txnlab/use-wallet-vue@4.0.0-beta.5
Install
You can use the beta
tag to install the latest v4.0.0 beta version in your project, e.g.,
npm install @txnlab/use-wallet@beta