Skip to content

Commit 7420403

Browse files
committed
chore: update dependencies and address TypeScript errors
- Bumped `@tanstack/react-query` from `^5.85.0` to `^5.85.5` for bug fixes and improvements. - Updated `@reown/appkit`, `@reown/appkit-common`, and `@reown/appkit-controllers` to `1.7.20` for compatibility and enhancements. - Increased `filsnap-adapter` version to `^3.3.5` to leverage new features. - Replaced `@ts-ignore` with `@ts-expect-error` in multiple files to better document pending TypeScript fixes. - Added `todo` comments for unresolved linting issues to improve code quality and maintainability.
1 parent 62adf52 commit 7420403

7 files changed

Lines changed: 12 additions & 16 deletions

File tree

packages/iso-filecoin-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"iso-filecoin-wallets": "workspace:*"
6969
},
7070
"devDependencies": {
71-
"@tanstack/react-query": "^5.85.0",
71+
"@tanstack/react-query": "^5.85.5",
7272
"@testing-library/react": "^16.2.0",
7373
"@types/mocha": "^10.0.10",
7474
"@types/node": "^24.2.1",

packages/iso-filecoin-wallets/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@
9595
"check": "biome check --no-errors-on-unmatched --files-ignore-unknown=true ."
9696
},
9797
"dependencies": {
98-
"@reown/appkit": "1.7.19",
99-
"@reown/appkit-common": "^1.7.18",
100-
"@reown/appkit-controllers": "^1.7.18",
98+
"@reown/appkit": "1.7.20",
99+
"@reown/appkit-common": "^1.7.20",
100+
"@reown/appkit-controllers": "^1.7.20",
101101
"iso-base": "^4.1.0",
102102
"iso-web": "^1.1.1",
103103
"nanoid": "^5.1.5"
@@ -116,7 +116,7 @@
116116
"typescript": "5.8.3"
117117
},
118118
"peerDependencies": {
119-
"filsnap-adapter": "^3.2.0",
119+
"filsnap-adapter": "^3.3.5",
120120
"iso-filecoin": "workspace:^"
121121
},
122122
"publishConfig": {

packages/iso-filecoin-wallets/src/appkit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class FilecoinConnector {
432432
this.chain = /** @type {ChainNamespace} */ ('fil')
433433
this.imageUrl = connectorImages[adapter.id]
434434
this.chains = []
435-
// @ts-ignore
435+
// @ts-expect-error todo: fix
436436
this.provider = adapter
437437
}
438438
}

packages/iso-filecoin-wallets/src/filsnap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export class WalletAdapterFilsnap extends TypedEventTarget {
266266
throw new Error('Adapter is not connected')
267267
}
268268

269+
// biome-ignore lint/correctness/noUnusedVariables: todo: fix
269270
const { from, ...rest } = message
270271
const r = await this.filsnap.signMessage(rest)
271272
if (r.error) {

packages/iso-filecoin-wallets/test/adapters/hd.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let wallet
66
connectorTests({
77
walletName: 'HD mainnet',
88
network: 'mainnet',
9-
// biome-ignore lint/suspicious/useAwait: <explanation>
9+
// biome-ignore lint/suspicious/useAwait: todo
1010
beforeEachHook: async () => {
1111
wallet = WalletAdapterHd.fromMnemonic({
1212
signatureType: 'SECP256K1',
@@ -26,7 +26,7 @@ connectorTests({
2626
connectorTests({
2727
walletName: 'HD testnet',
2828
network: 'testnet',
29-
// biome-ignore lint/suspicious/useAwait: <explanation>
29+
// biome-ignore lint/suspicious/useAwait: todo
3030
beforeEachHook: async () => {
3131
wallet = WalletAdapterHd.fromMnemonic({
3232
signatureType: 'SECP256K1',

packages/iso-filecoin-wallets/test/adapters/ledger.node.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import { WalletAdapterLedger } from '../../src/ledger.js'
55
import { DEFAULT_OPTIONS, models } from '../setup.js'
66
import { connectorTests, MNEMONIC } from './base.js'
77

8-
// @ts-ignore
9-
108
const Zemu = /** @type {typeof _Zemu} */ (
11-
// @ts-ignore
9+
// @ts-expect-error todo: fix
1210
_Zemu.default
1311
)
1412

packages/iso-filecoin-wallets/test/setup.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ import path from 'path'
55
// Will contain trailing slash
66
const __dirname = new URL('.', import.meta.url).pathname
77

8-
// @ts-ignore
9-
const Zemu = /** @type {typeof _Zemu} */ (
10-
// @ts-ignore
11-
_Zemu.default
12-
)
8+
// @ts-expect-error todo: fix
9+
const Zemu = /** @type {typeof _Zemu} */ (_Zemu.default)
1310

1411
export const SNAPSHOTS_PATH = path.join(__dirname, 'snapshots')
1512

0 commit comments

Comments
 (0)