Skip to content

Commit

Permalink
feat: update deps (viem + others)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Dec 6, 2023
1 parent faa7b39 commit 71f21ba
Show file tree
Hide file tree
Showing 30 changed files with 2,992 additions and 1,830 deletions.
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"devDependencies": {
"@tanstack/query-core": "5.0.5",
"@tanstack/react-query": "5.0.5",
"@types/react": "^18.2.23",
"@types/react": "^18.2.42",
"@unocss/reset": "^0.53.6",
"@wagmi/connectors": "workspace:*",
"@wagmi/core": "workspace:*",
"abitype": "*",
"abitype": "^0.10.3",
"react": "^18.2.0",
"unocss": "^0.53.6",
"viem": "2.0.0-beta.6",
"vite": "^4.4.9",
"viem": "2.0.0-beta.9",
"vite": "^4.5.1",
"vitepress": "1.0.0-rc.20",
"vitepress-plugin-shiki-twoslash": "^0.0.6",
"vue": "^3.3.4",
"vue": "^3.3.10",
"wagmi": "workspace:*"
}
}
33 changes: 21 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@
"devDependencies": {
"@biomejs/biome": "1.1.2",
"@changesets/changelog-github": "0.4.6",
"@changesets/cli": "^2.26.2",
"@changesets/cli": "^2.27.1",
"@viem/anvil": "0.0.6",
"@vitest/coverage-v8": "^0.34.5",
"@vitest/ui": "^0.34.5",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.7",
"@wagmi/test": "workspace:*",
"bun": "1.0.1",
"bun-types": "^1.0.3",
"bun-types": "^1.0.15",
"glob": "^10.3.10",
"happy-dom": "^12.2.1",
"happy-dom": "^12.10.3",
"jsdom": "^20.0.3",
"knip": "^2.29.0",
"publint": "^0.2.2",
"knip": "^2.43.0",
"publint": "^0.2.6",
"rimraf": "^4.4.1",
"simple-git-hooks": "^2.9.0",
"typescript": "5.1.6",
"viem": "2.0.0-beta.6",
"vitest": "^0.34.5"
"viem": "2.0.0-beta.9",
"vitest": "^0.34.6"
},
"packageManager": "[email protected]",
"pnpm": {
Expand All @@ -67,8 +67,15 @@
"pre-commit": "pnpm format && pnpm lint:fix"
},
"knip": {
"ignore": ["**/*.test-d.ts", "**/templates/**", "**/hardhat.config.js"],
"ignoreBinaries": ["only-allow", "open"],
"ignore": [
"**/*.test-d.ts",
"**/templates/**",
"**/hardhat.config.js"
],
"ignoreBinaries": [
"only-allow",
"open"
],
"ignoreWorkspaces": [
"docs",
"packages/register-tests/**",
Expand All @@ -91,7 +98,9 @@
},
"packages/core": {
"entry": "src/exports/{actions,chains,index,internal,query}.ts!",
"ignoreDependencies": ["@tanstack/query-core"]
"ignoreDependencies": [
"@tanstack/query-core"
]
},
"packages/create-wagmi": {
"entry": "src/cli.ts!"
Expand Down
35 changes: 25 additions & 10 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@
},
"typesVersions": {
"*": {
"config": ["./dist/types/exports/config.d.ts"],
"plugins": ["./dist/types/exports/plugins.d.ts"]
"config": [
"./dist/types/exports/config.d.ts"
],
"plugins": [
"./dist/types/exports/plugins.d.ts"
]
}
},
"peerDependencies": {
Expand All @@ -63,7 +67,7 @@
}
},
"dependencies": {
"abitype": "^0.9.8",
"abitype": "^0.9.10",
"bundle-require": "^3.1.2",
"cac": "^6.7.14",
"change-case": "^4.1.2",
Expand All @@ -79,17 +83,28 @@
"ora": "^6.3.1",
"pathe": "^1.1.1",
"picocolors": "^1.0.0",
"prettier": "^3.0.3",
"viem": "2.0.0-beta.6",
"zod": "^3.22.2"
"prettier": "^3.1.0",
"viem": "2.0.0-beta.9",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/dedent": "^0.7.0",
"@types/dedent": "^0.7.2",
"@types/fs-extra": "^9.0.13",
"fixturez": "^1.1.0",
"msw": "^1.3.1"
"msw": "^1.3.2"
},
"contributors": ["awkweb.eth <[email protected]>", "jxom.eth <[email protected]>"],
"contributors": [
"awkweb.eth <[email protected]>",
"jxom.eth <[email protected]>"
],
"funding": "https://github.com/sponsors/wevm",
"keywords": ["wagmi", "eth", "ethereum", "dapps", "wallet", "web3", "cli"]
"keywords": [
"wagmi",
"eth",
"ethereum",
"dapps",
"wallet",
"web3",
"cli"
]
}
2 changes: 1 addition & 1 deletion packages/cli/src/plugins/__fixtures__/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "hardhat-fixture",
"private": true,
"devDependencies": {
"hardhat": "^2.17.4"
"hardhat": "^2.19.2"
}
}
11 changes: 7 additions & 4 deletions packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"peerDependencies": {
"@wagmi/core": "workspace:*",
"typescript": ">=5.0.4",
"viem": "2.0.0-beta.6"
"viem": "2.0.0-beta.9"
},
"peerDependenciesMeta": {
"typescript": {
Expand All @@ -50,14 +50,17 @@
"@metamask/sdk": "^0.8.0",
"@safe-global/safe-apps-provider": "^0.18.0",
"@safe-global/safe-apps-sdk": "^8.1.0",
"@walletconnect/ethereum-provider": "^2.10.1",
"@walletconnect/ethereum-provider": "^2.10.6",
"@walletconnect/modal": "^2.6.2"
},
"devDependencies": {
"@wagmi/core": "workspace:*",
"msw": "^1.3.1"
"msw": "^1.3.2"
},
"contributors": ["awkweb.eth <[email protected]>", "jxom.eth <[email protected]>"],
"contributors": [
"awkweb.eth <[email protected]>",
"jxom.eth <[email protected]>"
],
"funding": "https://github.com/sponsors/wevm",
"keywords": [
"react",
Expand Down
34 changes: 26 additions & 8 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,24 @@
},
"typesVersions": {
"*": {
"actions": ["./dist/types/exports/actions.d.ts"],
"chains": ["./dist/types/exports/chains.d.ts"],
"internal": ["./dist/types/exports/internal.d.ts"],
"query": ["./dist/types/exports/query.d.ts"]
"actions": [
"./dist/types/exports/actions.d.ts"
],
"chains": [
"./dist/types/exports/chains.d.ts"
],
"internal": [
"./dist/types/exports/internal.d.ts"
],
"query": [
"./dist/types/exports/query.d.ts"
]
}
},
"peerDependencies": {
"@tanstack/query-core": ">=5.0.0",
"typescript": ">=5.0.4",
"viem": "2.0.0-beta.6"
"viem": "2.0.0-beta.9"
},
"peerDependenciesMeta": {
"@tanstack/query-core": {
Expand All @@ -78,12 +86,22 @@
"dependencies": {
"eventemitter3": "^5.0.1",
"mipd": "^0.0.5",
"zustand": "^4.4.1"
"zustand": "^4.4.7"
},
"devDependencies": {
"@tanstack/query-core": "5.0.5"
},
"contributors": ["awkweb.eth <[email protected]>", "jxom.eth <[email protected]>"],
"contributors": [
"awkweb.eth <[email protected]>",
"jxom.eth <[email protected]>"
],
"funding": "https://github.com/sponsors/wevm",
"keywords": ["wagmi", "eth", "ethereum", "dapps", "wallet", "web3"]
"keywords": [
"wagmi",
"eth",
"ethereum",
"dapps",
"wallet",
"web3"
]
}
2 changes: 1 addition & 1 deletion packages/core/src/actions/connect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test('behavior: user rejected request', async () => {
[UserRejectedRequestError: User rejected the request.
Details: Failed to connect.
Version: [email protected].6]
Version: [email protected].9]
`)
})

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/estimateGas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type EstimateGasParameters<
chains extends readonly Chain[] = SelectChains<config, chainId>,
> = {
[key in keyof chains]: UnionEvaluate<
UnionLooseOmit<viem_EstimateGasParameters<chains[key], Account>, 'chain'> &
UnionLooseOmit<viem_EstimateGasParameters<chains[key]>, 'chain'> &
ChainIdParameter<config, chainId> &
ConnectorParameter
>
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/actions/getBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { type Config } from '../createConfig.js'
import type { SelectChains } from '../types/chain.js'
import { type ChainIdParameter } from '../types/properties.js'
import { type Evaluate } from '../types/utils.js'
import { type Evaluate, type IsNarrowable } from '../types/utils.js'

export type GetBlockParameters<
includeTransactions extends boolean = false,
Expand All @@ -32,7 +32,7 @@ export type GetBlockReturnType<
> = Evaluate<
{
[key in keyof chains]: viem_GetBlockReturnType<
chains[key],
IsNarrowable<chains[key], Chain> extends true ? chains[key] : undefined,
includeTransactions,
blockTag
>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/getToken.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ test('behavior: bogus token', async () => {
function: decimals()
Docs: https://viem.sh/docs/contract/multicall.html
Version: [email protected].6"
Version: [email protected].9"
`)
})
6 changes: 4 additions & 2 deletions packages/core/src/actions/getTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { type Config } from '../createConfig.js'
import type { SelectChains } from '../types/chain.js'
import { type ChainIdParameter } from '../types/properties.js'
import { type Evaluate } from '../types/utils.js'
import { type Evaluate, type IsNarrowable } from '../types/utils.js'

export type GetTransactionParameters<
config extends Config = Config,
Expand All @@ -23,7 +23,9 @@ export type GetTransactionReturnType<
chains extends readonly Chain[] = SelectChains<config, chainId>,
> = Evaluate<
{
[key in keyof chains]: viem_GetTransactionReturnType<chains[key]>
[key in keyof chains]: viem_GetTransactionReturnType<
IsNarrowable<chains[key], Chain> extends true ? chains[key] : undefined
>
}[number]
>

Expand Down
16 changes: 8 additions & 8 deletions packages/core/src/actions/readContracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ test('throws if allowFailure=false & a contract method fails', async () => {
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6"
Version: [email protected].9"
`,
)
})
Expand Down Expand Up @@ -450,7 +450,7 @@ test('allowFailure=true & a contract method fails', async () => {
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69420)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6],
Version: [email protected].9],
"result": undefined,
"status": "failure",
},
Expand All @@ -464,7 +464,7 @@ test('allowFailure=true & a contract method fails', async () => {
args: (0xA0Cf798816D4b9b9866b5330EEa46a18382f251e, 69421)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6],
Version: [email protected].9],
"result": undefined,
"status": "failure",
},
Expand Down Expand Up @@ -502,7 +502,7 @@ test('throws if allowFailure=false & encoding contract function data fails', asy
args: (1e+31)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6"
Version: [email protected].9"
`,
)
})
Expand Down Expand Up @@ -561,7 +561,7 @@ test('allowFailure=true & encoding contract function data fails', async () => {
args: (1e+31)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6],
Version: [email protected].9],
"result": undefined,
"status": "failure",
},
Expand All @@ -579,7 +579,7 @@ test('allowFailure=true & encoding contract function data fails', async () => {
args: (1e+31)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6],
Version: [email protected].9],
"result": undefined,
"status": "failure",
},
Expand Down Expand Up @@ -617,7 +617,7 @@ test('should throw if allowFailure=false & a contract has no response', async ()
args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6"
Version: [email protected].9"
`,
)
})
Expand Down Expand Up @@ -669,7 +669,7 @@ test('allowFailure=true & a contract has no response', async () => {
args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC)
Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected].6],
Version: [email protected].9],
"result": undefined,
"status": "failure",
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/signMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test('behavior: user rejected request', async () => {
[UserRejectedRequestError: User rejected the request.
Details: Failed to sign message.
Version: [email protected].6]
Version: [email protected].9]
`)
await disconnect(config, { connector: connector_ })
})
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/actions/signTypedData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('behavior: user rejected request', async () => {
[UserRejectedRequestError: User rejected the request.
Details: Failed to sign typed data.
Version: [email protected].6]
Version: [email protected].9]
`)
await disconnect(config, { connector: connector_ })
})
Expand Down
Loading

0 comments on commit 71f21ba

Please sign in to comment.