Skip to content

Releases: vu3th/vue-dapp

v1.5.1

21 May 07:21
Compare
Choose a tag to compare
  • Fix mobile browser detection for Rainbow mobile wallet #190
    • Rename and update isMobileAppBrowser with isMobileBrowser

v1.5.0

17 May 02:16
Compare
Choose a tag to compare
  • Fix modal style on mobile
  • Fix hot reload issue in dev mode when importing walletconnect or coinbase. issue #162 pr #187
  • Fix connectTo error handling pr #188

v1.4.3

10 May 01:53
Compare
Choose a tag to compare
  • Update shortenAddress
test('shortenAddress', () => {
	expect(shortenAddress('0x9D75F4EbcB8e7669E59dcc27CBadC698E0F77187')).toBe('0x9D75...7187')
})

test('shortenAddress with custom start and end length', () => {
	expect(shortenAddress('0x9D75F4EbcB8e7669E59dcc27CBadC698E0F77187', 8, 5)).toBe('0x9D75F4...77187')
})

test('shortenAddress with invalid address', () => {
	expect(shortenAddress('')).toBe('')
	expect(shortenAddress(null as any)).toBe('')
	expect(shortenAddress(undefined as any)).toBe('')
})

v1.4.2

09 May 06:33
Compare
Choose a tag to compare
  • Feat: Don't auto-connect to MetaMask if it's locked #185

v1.4.1

09 May 04:07
Compare
Choose a tag to compare
  • Fix VueDappModal styles

v1.4.0

09 May 03:30
Compare
Choose a tag to compare
onConnected -> watchConnected
onAccountOrChainIdChanged -> watchAddressChainIdChanged
onWalletUpdated,watchConnect -> watchWalletChanged
onDisconnected -> watchDisconnect
  • Add new listeners
watchAddressChanged
watchChainIdChanged
  • Fix VueDappModal styles

v1.3.2

02 May 06:16
Compare
Choose a tag to compare

Rename watchWalletUpdated with watchConnect

v1.3.1

02 May 02:21
Compare
Choose a tag to compare
  1. #179 Fix core by exporting computed providerTarget
  2. #180 Export watchWalletUpdated and watchDisconnect

Preview

  • onWalletUpdated and onDisconnected would be deprecated in the next minor upgrade

v1.3.0

30 Apr 15:05
Compare
Choose a tag to compare
export type ProviderTarget = 'window.ethereum' | 'rdns' // only for BrowserWalletConnector
  • Change enum RDNS to enum RdnsEnum & type RDNS

deprecated

export enum RDNS {
	'rabby' = 'io.rabby',
	'metamask' = 'io.metamask',
	'brave' = 'com.brave.wallet',
	'coinbase' = 'com.coinbase.wallet',
	'bitget' = 'com.bitget.web3wallet',
}

>= v1.3.0

export enum RdnsEnum {
	'rabby' = 'io.rabby',
	'metamask' = 'io.metamask',
	'brave' = 'com.brave.wallet',
	'coinbase' = 'com.coinbase.wallet',
	'bitget' = 'com.bitget.web3wallet',
}

export type RDNS = string
  • #177 Export onDisconnect, onAccountsChanged, and onChainChanged
  • #175 Ensure correct disconnection when browser wallet disconnects

v1.2.4

23 Apr 08:58
Compare
Choose a tag to compare