Releases: vu3th/vue-dapp
Releases · vu3th/vue-dapp
v1.5.1
v1.5.0
v1.4.3
- 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
v1.4.1
- Fix VueDappModal styles
v1.4.0
- Document add Listeners in https://vuedapp.xyz/overview
- Rename listeners
onConnected -> watchConnected
onAccountOrChainIdChanged -> watchAddressChainIdChanged
onWalletUpdated,watchConnect -> watchWalletChanged
onDisconnected -> watchDisconnect
- Add new listeners
watchAddressChanged
watchChainIdChanged
- Fix VueDappModal styles
v1.3.2
Rename watchWalletUpdated
with watchConnect
v1.3.1
v1.3.0
- #171 Feat: Enable dapp browser, see https://vuedapp.xyz/overview#connect
- Add
providerTarget
to wallet state
export type ProviderTarget = 'window.ethereum' | 'rdns' // only for BrowserWalletConnector
- Change enum
RDNS
to enumRdnsEnum
& typeRDNS
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
v1.2.4
- Update
VueDappModal
slots, see https://vue-dapp.vercel.app/vue-dapp-modal