Skip to content

Releases: TxnLab/use-wallet

v3.1.1

09 Aug 08:02
Compare
Choose a tag to compare

Changes

Fixes

  • Fix Webpack static analysis issue with dynamic imports by @drichar in #211

Full Changelog: v3.1.0...v3.1.1

v3.1.0

02 Aug 22:04
Compare
Choose a tag to compare

Changes

Feature

Full Changelog: v3.0.0...v3.1.0

New Contributors

Packages

3.0.0

17 Jul 17:24
Compare
Choose a tag to compare

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

3.0.0-rc.3

02 Jul 21:38
Compare
Choose a tag to compare
3.0.0-rc.3 Pre-release
Pre-release

What's Changed

Fixes

Full Changelog: v3.0.0-rc.2...v3.0.0-rc.3

Packages

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

20 Jun 17:37
Compare
Choose a tag to compare
3.0.0-rc.2 Pre-release
Pre-release

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

  • Fixes isTransactionArray utility function by @drichar in #190

Full Changelog: v3.0.0-rc.1...v3.0.0-rc.2

Packages

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

20 Jun 13:15
Compare
Choose a tag to compare
3.0.0-rc.1 Pre-release
Pre-release

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

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

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

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

05 Jun 04:10
Compare
Choose a tag to compare
3.0.0-beta.10 Pre-release
Pre-release

What's Changed

Features

Full Changelog: v3.0.0-beta.9...v3.0.0-beta.10

Packages

3.0.0-beta.9

01 Jun 08:47
Compare
Choose a tag to compare
3.0.0-beta.9 Pre-release
Pre-release

What's Changed

Fixes

  • Core: Fallbacks for named/default Pera Connect v2 export by @drichar in b4ccb40

Full Changelog: v3.0.0-beta.8...v3.0.0-beta.9

Packages

3.0.0-beta.8

01 Jun 06:05
Compare
Choose a tag to compare
3.0.0-beta.8 Pre-release
Pre-release

What's Changed

Features

  • Core: Migrate Pera Wallet provider to Pera Connect v2 by @drichar in #179

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:

  1. Uninstall @perawallet/connect
  2. Install @perawallet/connect-beta
  3. Upgrade to @txnlab/use-wallet-*@3.0.0-beta.8
  4. Obtain a WalletConnect project ID from WalletConnect Cloud
  5. 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

3.0.0-beta.7

16 May 18:34
Compare
Choose a tag to compare
3.0.0-beta.7 Pre-release
Pre-release

What's Changed

Fixes

  • Solid: Fix transaction signing functions, add signing to example app by @drichar in #172

Other Changes

Full Changelog: v3.0.0-beta.6...v3.0.0-beta.7