Releases: TxnLab/use-wallet
v3.1.1
v3.1.0
Changes
Feature
- Reactive algodClient for SolidJS by @SilentRhetoric in #204
Full Changelog: v3.0.0...v3.1.0
New Contributors
- @SilentRhetoric made their first contribution in #204
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
3.0.0
Summary
Version 3.0.0 introduces a complete rewrite of the use-wallet
library, now structured as a monorepo to support vanilla JavaScript/TypeScript applications with reactive framework-specific adapters. This major release focuses on improving flexibility, performance, and developer experience.
Key Features
- Framework-Agnostic Core: Rewritten in vanilla TypeScript for broader compatibility.
- Framework Adapters: Initial support for React, Vue, and Solid.js with adapters for Angular and Svelte planned.
- Enhanced Performance: More lightweight and easier to debug.
- Expanded Examples: Includes demo apps for vanilla TypeScript, React, Vue, Solid.js, and server-side rendering examples for Next.js and Nuxt.
- Improved Tooling: Adoption of PNPM for package management and Vitest for testing.
- Network Switching: Easy switching between different networks (MainNet, TestNet, LocalNet).
- Increased Test Coverage: Ensuring robustness and reliability.
Documentation
Visit txnlab.gitbook.io/use-wallet for docs, guides, and examples!
Migrating from v2.x
This version includes significant API changes. Please refer to the Migration Guide for detailed upgrade instructions.
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
3.0.0-rc.3
What's Changed
Fixes
- Move algosdk to peer by @PhearZero in #193
- Add algosdk to devDependencies, sync versions by @drichar in #197
- Switching networks should not disconnect wallets by @drichar in #198
Full Changelog: v3.0.0-rc.2...v3.0.0-rc.3
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
Install
You can use the next
tag to install the latest v3.0.0 release candidate in your app, e.g.,
npm install @txnlab/use-wallet@next
3.0.0-rc.2
What's Changed
This fixes a bug in the first release candidate, v3.0.0-rc.1
. If you are upgrading from a beta version, read the release notes for information about potentially breaking changes you should be aware of.
Fixes
Full Changelog: v3.0.0-rc.1...v3.0.0-rc.2
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
Install
You can use the next
tag to install the latest v3.0.0 release candidate in your app, e.g.,
npm install @txnlab/use-wallet@next
3.0.0-rc.1
What's Changed
This is the first release candidate for use-wallet version 3.0.0. It includes all of the remaining features planned for the stable release. Note that there are some potentially breaking changes (see below).
Features
- Add Custom provider by @drichar in #181
- Implement AVM provider with Kibisis client by @kieranroneill in #175
- Wallet provider updates by @drichar in #183
- Switching networks by @drichar in #187
signTransactions
response should match length oftxnGroup
by @drichar in #189
Fixes
- WalletConnect: Handle all possible response types from
algo_signTxn
by @drichar in #185 - WalletConnect: Get default metadata from window by @drichar in #186
Other Changes
- Upgrade to pnpm v9 by @drichar in #182
- Set
@perawallet/connect-beta
to ^2.0.11 by @drichar in #184 - Revert Pera provider to Pera Connect v1 by @drichar in #188
Full Changelog: v3.0.0-beta.10...v3.0.0-rc.1
⚠️ BREAKING CHANGES
This release includes potentially breaking changes.
Apps that migrated to Pera Connect v2 beta
The default Pera provider has been reverted to use Pera Connect v1.
If you installed version v3.0.0-beta.8
or later and migrated the Pera provider to use @perawallet/connect-beta
, to continue using Pera Connect v2 you will need to change the WalletId
in your configuration:
{
- id: WalletId.PERA,
+ id: WalletId.PERA2,
options: { projectId: '<YOUR_PROJECT_ID>' }
}
See #188
Apps using the Vue adapter
In the Vue adapter, the reactive algodClient
is now a computed ref
object and must now be accessed by its value
property, e.g.,
import { useWallet } from '@txnlab/use-wallet-vue'
const { algodClient } = useWallet()
- const suggestedParams = await algodClient.getTransactionParams().do()
+ const suggestedParams = await algodClient.value.getTransactionParams().do()
See #187
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
Install
You can use the next
tag to install the latest v3.0.0 release candidate in your app, e.g.,
npm install @txnlab/use-wallet@next
3.0.0-beta.10
What's Changed
Features
Full Changelog: v3.0.0-beta.9...v3.0.0-beta.10
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
3.0.0-beta.9
What's Changed
Fixes
Full Changelog: v3.0.0-beta.8...v3.0.0-beta.9
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
3.0.0-beta.8
What's Changed
Features
Full Changelog: v3.0.0-beta.7...v3.0.0-beta.8
⚠️ BREAKING CHANGES
This release includes potentially breaking changes. If your application supports Pera Wallet you will need to follow these steps to upgrade:
- Uninstall
@perawallet/connect
- Install
@perawallet/connect-beta
- Upgrade to
@txnlab/use-wallet-*@3.0.0-beta.8
- Obtain a WalletConnect project ID from WalletConnect Cloud
- Pass the project ID to the
projectId
option (required) for Pera Wallet in your application:
const walletManager = new WalletManager({
wallets: [
{
id: WalletId.PERA,
options: { projectId: '<YOUR_PROJECT_ID>' }
},
// ...
],
// ...
})
Packages
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]
- @txnlab/[email protected]