Skip to content

Commit 4ce76e2

Browse files
committed
update dependencies
1 parent 44da75f commit 4ce76e2

File tree

8 files changed

+780
-176
lines changed

8 files changed

+780
-176
lines changed

.github/workflows/deploy-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: 🟢 Node
3131
uses: actions/setup-node@v3
3232
with:
33-
node-version: 16
33+
node-version: 18
3434
registry-url: 'https://registry.npmjs.org'
3535
- name: 🕵 Yarn install
3636
uses: borales/actions-yarn@v4

.github/workflows/publish-to-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: 🟢 Node
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: 16
17+
node-version: 18
1818
registry-url: 'https://registry.npmjs.org'
1919
- name: 🕵 Yarn install
2020
uses: borales/actions-yarn@v4

lib/actions/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { watchContractEvent as masterWatchContractEvent } from '@wagmi/core'
2-
import type { TransactionReceipt } from 'viem/src/types/transaction'
2+
import type { TransactionReceipt } from 'viem/types/transaction'
33
import { decodeEventLog } from 'viem/utils'
44

55
import { chain } from '../chain'

lib/actions/multicall.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { multicall as masterMulticall } from '@wagmi/core'
1+
import { type MulticallResult, multicall as masterMulticall } from '@wagmi/core'
22
import { type MulticallParameters } from 'viem/actions'
3-
import { type ContractFunctionConfig } from 'viem/src/types/contract'
3+
import { type ContractFunctionConfig } from 'viem/types/contract'
44

55
import type { MulticallArgs } from '../types'
66

77
export async function multicall<TContracts extends ContractFunctionConfig[], TAllowFailure extends boolean = true>(
88
params: MulticallArgs<TAllowFailure>
9-
) {
9+
): Promise<MulticallResult<TContracts, TAllowFailure>> {
1010
// @ts-ignore
1111
const contracts: TContracts = [] as TContracts
1212

lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
} from '@wagmi/core'
99
import type { ThemeCtrlState } from '@web3modal/core'
1010
import type { EthereumClient } from '@web3modal/ethereum'
11-
import type { WatchAssetParams } from 'viem/src/types/eip1193'
11+
import type { WatchAssetParams } from 'viem/types/eip1193'
1212

1313
type BlockTag = 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized'
1414

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kolirt/vue-web3-auth",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"description": "Web3 authentication for Vue3 apps based on WalletConnect Web3Modal v2",
55
"author": "kolirt",
66
"license": "MIT",
@@ -62,17 +62,17 @@
6262
},
6363
"homepage": "https://github.com/kolirt/vue-web3-auth#readme",
6464
"peerDependencies": {
65-
"vue": "^3.0.0"
65+
"vue": ">=3"
6666
},
6767
"dependencies": {
68-
"@wagmi/core": "^1.2.1",
69-
"@web3modal/ethereum": "^2.4.7",
70-
"@web3modal/html": "^2.4.7",
68+
"@wagmi/core": "1.4.13",
69+
"@web3modal/ethereum": "2.7.1",
70+
"@web3modal/html": "2.7.1",
7171
"bootstrap": "5.3.0",
72-
"js-event-bus": "^1.1.1",
73-
"viem": "^1.1.6",
72+
"js-event-bus": "1.1.1",
73+
"viem": "1.21.4",
7474
"vue": "^3.3.2",
75-
"wagmi": "^1.2.1"
75+
"wagmi": "1.4.13"
7676
},
7777
"devDependencies": {
7878
"@rushstack/eslint-patch": "^1.2.0",

src/App.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ async function signMessage() {
199199
</button>
200200
</div>
201201

202+
<hr />
203+
202204
<div class="d-grid d-sm-flex mb-3 gap-2">
203205
<button
204206
v-for="item in availableChains"
@@ -208,13 +210,11 @@ async function signMessage() {
208210
>
209211
Reconnect to {{ item.name }}
210212
</button>
211-
</div>
212-
213-
<hr />
214213

215-
<button @click="disconnect" class="btn btn-danger">
216-
{{ loading.logouting ? 'Logouting...' : 'Logout' }}
217-
</button>
214+
<button @click="disconnect" class="btn btn-danger">
215+
{{ loading.logouting ? 'Logouting...' : 'Logout' }}
216+
</button>
217+
</div>
218218
</template>
219219

220220
<div v-else class="d-grid d-sm-flex mb-3 gap-2">

0 commit comments

Comments
 (0)