Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency wagmi to v0.9.5 - autoclosed #76

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 13, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
wagmi (source) 0.7.9 -> 0.9.5 age adoption passing confidence

Release Notes

wagmi-dev/wagmi

v0.9.5

Compare Source

Patch Changes

v0.9.4

Compare Source

Patch Changes

v0.9.3

Compare Source

Patch Changes

v0.9.2

Compare Source

Patch Changes

v0.9.1

Compare Source

Patch Changes

v0.9.0

Compare Source

Minor Changes
  • #​1344 57a19374 Thanks @​jxom! - Breaking: With the introduction of the wagmi/chains entrypoint, wagmi no longer exports the following:

    • chain
    • allChains
    • defaultChains
    • defaultL2Chains
    • chainId
    • etherscanBlockExplorers
    • alchemyRpcUrls, infuraRpcUrls, publicRpcUrls

    Read below for migration steps.

Removed chain

The chain export has been removed. wagmi now only exports the mainnet & goerli chains. If you need to use an alternative chain (polygon, optimism, etc), you will need to import it from the wagmi/chains entrypoint.

import {
- chain
  configureChains
} from 'wagmi'
+ import { mainnet, polygon, optimism } from 'wagmi/chains'

const { ... } = configureChains(
- [chain.mainnet, chain.polygon, chain.optimism],
+ [mainnet, polygon, optimism],
  {
    ...
  }
)
Removed allChains

The allChains export has been removed. If you need a list of all chains, you can utilize wagmi/chains entrypoint.

- import { allChains } from 'wagmi'
+ import * as allChains from 'wagmi/chains'

const { ... } = configureChains(allChains, ...)
Removed defaultChains & defaultL2Chains

The defaultChains & defaultL2Chains exports have been removed. If you still need the defaultChains or defaultL2Chains exports, you can build them yourself:

- import { defaultChains } from 'wagmi'
+ import { mainnet, goerli } from 'wagmi/chains'

+ const defaultChains = [mainnet, goerli]

The defaultChains export was previously populated with mainnet & goerli.

- import { defaultL2Chains } from 'wagmi'
+ import {
+   arbitrum,
+   arbitrumGoerli,
+   polygon,
+   polygonMumbai,
+   optimism,
+   optimismGoerli
+ } from 'wagmi/chains'

+ const defaultL2Chains = [
+  arbitrum,
+  arbitrumGoerli,
+  polygon,
+  polygonMumbai,
+  optimism
+  optimismGoerli
+ ]

The defaultL2Chains export was previously populated with arbitrum & optimism.

Removed chainId

The chainId export has been removed. You can extract a chain ID from the chain itself.

- import { chainId } from 'wagmi'
+ import { mainnet, polygon, optimism } from 'wagmi/chains'

-const mainnetChainId = chainId.mainnet
-const polygonChainId = chainId.polygon
-const optimismChainId = chainId.optimism
+const mainnetChainId = mainnet.chainId
+const polygonChainId = polygon.chainId
+const optimismChainId = optimism.chainId
Removed etherscanBlockExplorers

The etherscanBlockExplorers export has been removed. You can extract a block explorer from the chain itself.

- import { etherscanBlockExplorers } from 'wagmi'
+ import { mainnet, polygon, optimism } from 'wagmi/chains'

-const mainnetEtherscanBlockExplorer = etherscanBlockExplorers.mainnet
-const polygonEtherscanBlockExplorer = etherscanBlockExplorers.polygon
-const optimismEtherscanBlockExplorer = etherscanBlockExplorers.optimism
+const mainnetEtherscanBlockExplorer = mainnet.blockExplorer
+const polygonEtherscanBlockExplorer = polygon.blockExplorer
+const optimismEtherscanBlockExplorer = optimism.blockExplorer
Removed alchemyRpcUrls, infuraRpcUrls & publicRpcUrls

The alchemyRpcUrls, infuraRpcUrls & publicRpcUrls exports have been removed. You can extract a RPC URL from the chain itself.

- import { alchemyRpcUrls, infuraRpcUrls, publicRpcUrls } from 'wagmi'
+ import { mainnet } from 'wagmi/chains'

-const mainnetAlchemyRpcUrl = alchemyRpcUrls.mainnet
-const mainnetInfuraRpcUrl = infuraRpcUrls.mainnet
-const mainnetOptimismRpcUrl = publicRpcUrls.mainnet
+const mainnetAlchemyRpcUrl = mainnet.rpcUrls.alchemy
+const mainnetInfuraRpcUrl = mainnet.rpcUrls.infura
+const mainnetOptimismRpcUrl = mainnet.rpcUrls.optimism
RPC URLs

The rpcUrls shape has changed to include an array of URLs, and also the transport method (http or webSocket):

type Chain = {
  ...
  rpcUrls: {
-   [key: string]: string
+   [key: string]: {
+     http: string[]
+     webSocket: string[]
+   }
  }
  ...
}

Note that you will also need to ensure that usage is migrated:

- const rpcUrl = mainnet.rpcUrls.alchemy
+ const rpcUrl = mainnet.rpcUrls.alchemy.http[0]
Contracts

The multicall and ens attributes have been moved into the contracts object:

type Contract = {
  address: Address
  blockCreated?: number
}

type Chain = {
  ...
- multicall: Contract
- ens: Contract
+ contracts: {
+   multicall3: Contract
+   ensRegistry: Contract
+ }
  ...
}

Note that you will also need to ensure that usage is migrated:

- const multicallContract = mainnet.multicall
+ const multicallContract = mainnet.contracts.multicall3
  • #​1344 57a19374 Thanks @​jxom! - Breaking: Removed the wait config option on useWaitForTransaction. Use the transaction hash instead.

    const { data } = useWaitForTransaction({
    - wait: transaction.wait
    + hash: transaction.hash
    })
  • #​1344 57a19374 Thanks @​jxom! - Updated errors to use cause instead of internal

  • #​1344 57a19374 Thanks @​jxom! - useEnsResolver's result is no longer persisted by the query client since it cannot serialize its prototype methods.

  • #​1344 57a19374 Thanks @​jxom! - Breaking: Changed useWaitForTransaction behavior to return an error if the transaction reverted.

Patch Changes

v0.8.10

Compare Source

Patch Changes

v0.8.9

Compare Source

Patch Changes
  • #​1406 4f18c450 Thanks @​tmm! - Function for selecting the EIP-1193 Ethereum Provider to target. Defaults to () => typeof window !== 'undefined' ? window.ethereum : undefined.

    import { InjectedConnector } from 'wagmi/connectors/injected'
    
    const connector = new InjectedConnector({
      options: {
        name: 'My Injected Wallet',
        getProvider: () =>
          typeof window !== 'undefined' ? window.myInjectedWallet : undefined,
      },
    })
  • Updated dependencies [4f18c450]:

v0.8.8

Compare Source

Patch Changes

v0.8.7

Compare Source

Patch Changes
  • #​1384 027e88d6 Thanks @​tmm! - Fixed issue reconnecting after disconnect with MetaMaskConnector in MetaMask mobile browser.

  • #​1377 089c4f3b Thanks @​jxom! - Fixed an issue where transforming useContractRead, useContractReads or useContractInfiniteReads's return data via select wasn't inferring the type.

  • Updated dependencies [027e88d6]:

v0.8.6

Compare Source

Patch Changes

v0.8.5

Compare Source

Patch Changes
  • #​1282 6d286c9e Thanks @​jxom! - Fixed an issue where useContractRead would perform an unnecessary rerender if another hook had watch enabled.

v0.8.4

Compare Source

Patch Changes

v0.8.3

Compare Source

Patch Changes

v0.8.2

Compare Source

Patch Changes

v0.8.1

Compare Source

Patch Changes

v0.8.0

Compare Source

Minor Changes
  • #​1202 9bf56af Thanks @​tmm! - Breaking: Removed the following deprecated chains:

    • ropsten
    • rinkeby
    • kovan
    • optimismKovan
    • arbitrumRinkeby

    If you feel you still need to include one of these testnets in your application, you will have to define it manually:

    -import { rinkeby } from 'wagmi'
    +import { Chain } from 'wagmi'
    
    +export const rinkeby: Chain = {
    + id: 4,
    + name: 'Rinkeby',
    + network: 'rinkeby',
    + nativeCurrency: { name: 'Rinkeby Ether', symbol: 'ETH', decimals: 18 },
    + rpcUrls: {
    +   alchemy: 'https://eth-rinkeby.alchemyapi.io/v2',
    +   default: 'https://rpc.ankr.com/eth_rinkeby',
    +   infura: 'https://rinkeby.infura.io/v3',
    +   public: 'https://rpc.ankr.com/eth_rinkeby',
    +  },
    + blockExplorers: {
    +   etherscan: 'https://rinkeby.etherscan.io',
    +   default: 'https://rinkeby.etherscan.io',
    + },
    + ens: {
    +   address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
    + },
    + multicall: {
    +   address: '0xca11bde05977b3631167028862be2a173976ca11',
    +   blockCreated: 10299530,
    + },
    + testnet: true,
    }

    You can reference these removed chains here.

  • #​1202 9bf56af Thanks @​tmm! - Breaking: Made apiKey required on infuraProvider and alchemyProvider.

    import { configureChains } from 'wagmi'
    
    const config = configureChains(defaultChains, [
    - alchemyProvider(),
    + alchemyProvider({ apiKey: process.env.ALCHEMY_API_KEY })
    ])

    You can find your Alchemy API key from the Alchemy Dashboard, or your Infura API key from the Infura Dashboard.

  • #​1202 9bf56af Thanks @​tmm! - Breaking: addressOrName renamed to address for useBalance and useEnsAvatar.

    const result = useBalance({
    - addressOrName: '0x…',
    + address: '0x…',
    })

    If you were using an ENS name instead of an address, you can resolve the name to an address before passing it to the action.

    + const { data: address } = useEnsAddress({ name: 'example.eth' })
    const result = useBalance({
    - addressOrName: 'example.eth',
    + address,
    })
  • #​1202 9bf56af Thanks @​tmm! - Removed CommonJS support

Patch Changes

v0.7.15

Compare Source

Patch Changes
  • #​1262 45e2ca4 Thanks @​tmm! - Added default for structuralSharing for useContractRead, useContractReads, and useContractInfiniteReads.

v0.7.14

Compare Source

Patch Changes
  • #​1260 0e12f03 Thanks @​ilmpc! - Deprecated isDataEqual option from and added structuralSharing option to useContractRead, useContractReads, and useContractInfiniteReads.

v0.7.13

Compare Source

Patch Changes

v0.7.12

Compare Source

Patch Changes

v0.7.11

Compare Source

Patch Changes

v0.7.10

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@vercel
Copy link

vercel bot commented Oct 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
crossbell-io ❌ Failed (Inspect) Dec 21, 2022 at 6:07AM (UTC)

@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.0 fix(deps): update dependency wagmi to v0.7.2 Oct 13, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.2 fix(deps): update dependency wagmi to v0.7.2 - autoclosed Oct 14, 2022
@renovate renovate bot closed this Oct 14, 2022
@renovate renovate bot deleted the renovate/wagmi-0.x branch October 14, 2022 03:24
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.2 - autoclosed fix(deps): update dependency wagmi to v0.7.2 Oct 15, 2022
@renovate renovate bot reopened this Oct 15, 2022
@renovate renovate bot restored the renovate/wagmi-0.x branch October 15, 2022 00:17
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.2 fix(deps): update dependency wagmi to v0.7.3 Oct 15, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.3 fix(deps): update dependency wagmi to v0.7.3 - autoclosed Oct 15, 2022
@renovate renovate bot closed this Oct 15, 2022
@renovate renovate bot deleted the renovate/wagmi-0.x branch October 15, 2022 04:47
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.3 - autoclosed fix(deps): update dependency wagmi to v0.7.3 Oct 17, 2022
@renovate renovate bot reopened this Oct 17, 2022
@renovate renovate bot restored the renovate/wagmi-0.x branch October 17, 2022 05:09
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.3 fix(deps): update dependency wagmi to v0.7.4 Oct 17, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.4 fix(deps): update dependency wagmi to v0.7.5 Oct 17, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.7.5 fix(deps): update dependency wagmi to v0.7.5 - autoclosed Oct 21, 2022
@renovate renovate bot closed this Oct 21, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.8.9 fix(deps): update dependency wagmi to v0.8.10 Dec 3, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.8.10 fix(deps): update dependency wagmi to v0.9.0 Dec 7, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.9.0 fix(deps): update dependency wagmi to v0.9.1 Dec 9, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.9.1 fix(deps): update dependency wagmi to v0.9.2 Dec 9, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.9.2 fix(deps): update dependency wagmi to v0.9.3 Dec 14, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.9.3 fix(deps): update dependency wagmi to v0.9.4 Dec 16, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.9.4 Update dependency wagmi to v0.9.4 Dec 17, 2022
@renovate renovate bot changed the title Update dependency wagmi to v0.9.4 fix(deps): update dependency wagmi to v0.9.4 Dec 17, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.9.4 fix(deps): update dependency wagmi to v0.9.5 Dec 21, 2022
@renovate renovate bot changed the title fix(deps): update dependency wagmi to v0.9.5 fix(deps): update dependency wagmi to v0.9.5 - autoclosed Apr 3, 2023
@renovate renovate bot closed this Apr 3, 2023
@renovate renovate bot deleted the renovate/wagmi-0.x branch April 3, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants