Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/tmm/wagmi
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Dec 30, 2021
2 parents 0bff89a + 783527b commit 3f6e630
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 163 deletions.
6 changes: 0 additions & 6 deletions .changeset/warm-dolls-kick.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"next": "12.0.7",
"react": "17.0.2",
"react-dom": "17.0.2",
"wagmi": "0.0.5"
"wagmi": "0.0.6"
},
"devDependencies": {
"@preconstruct/next": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"util": "^0.12.4",
"wagmi": "0.0.5"
"wagmi": "0.0.6"
},
"devDependencies": {
"@types/react": "^17.0.33",
Expand Down
6 changes: 6 additions & 0 deletions packages/private/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# wagmi-private

## 0.0.6

### Patch Changes

- [`37d39d1`](https://github.com/tmm/wagmi/commit/37d39d174ddfa122462bbe2d02141cd61eb9db4a) Thanks [@tmm](https://github.com/tmm)! - add message signing

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/private/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wagmi-private",
"license": "MIT",
"version": "0.0.5",
"version": "0.0.6",
"sideEffects": false,
"main": "dist/wagmi-private.cjs.js",
"module": "dist/wagmi-private.esm.js",
Expand Down
10 changes: 5 additions & 5 deletions packages/private/src/connectors/injectedConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ import {
} from '../errors'
import { Connector } from './base'

const isClient = typeof window !== 'undefined'

export class InjectedConnector extends Connector<
Window['ethereum'],
undefined
> {
readonly name =
typeof window !== 'undefined' && window.ethereum?.isMetaMask
? 'MetaMask'
: 'Injected'
readonly provider = window?.ethereum
readonly ready = typeof window !== 'undefined' && !!window.ethereum
isClient && window.ethereum?.isMetaMask ? 'MetaMask' : 'Injected'
readonly provider = isClient ? window?.ethereum : undefined
readonly ready = isClient && !!window.ethereum

constructor(config?: { chains?: Chain[] }) {
super({ ...config, options: undefined })
Expand Down
9 changes: 9 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# wagmi

## 0.0.6

### Patch Changes

- [`37d39d1`](https://github.com/tmm/wagmi/commit/37d39d174ddfa122462bbe2d02141cd61eb9db4a) Thanks [@tmm](https://github.com/tmm)! - add message signing

- Updated dependencies [[`37d39d1`](https://github.com/tmm/wagmi/commit/37d39d174ddfa122462bbe2d02141cd61eb9db4a)]:
- wagmi-private@0.0.6

## 0.0.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wagmi",
"description": "React Hooks library for Ethereum",
"license": "MIT",
"version": "0.0.5",
"version": "0.0.6",
"repository": "tmm/wagmi",
"homepage": "https://wagmi-xyz.vercel.app",
"sideEffects": false,
Expand Down Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"@walletconnect/ethereum-provider": "^1.6.6",
"@ethersproject/providers": "^5.5.1",
"wagmi-private": "0.0.5",
"wagmi-private": "0.0.6",
"walletlink": "^2.2.8"
},
"devDependencies": {
Expand Down
151 changes: 4 additions & 147 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 3f6e630

@vercel
Copy link

@vercel vercel bot commented on 3f6e630 Dec 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.