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

release: v5.0.4 #2487

Merged
merged 32 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8320bfe
refactor: update eth cdn id (#2402)
enesozturk Jun 12, 2024
9a1a5bb
chore: change configs to use main and V5 (#2408)
tomiir Jun 12, 2024
a10c729
hotfix: remove walletconnect domain validation (#2407)
tomiir Jun 12, 2024
0792ffd
chore(renovate): only auto rebase renovate PRs when conflicted (#2406)
bkrem Jun 12, 2024
2fe13f1
Fix/social safari (#2412)
svenvoskamp Jun 13, 2024
1197ff9
chore: use logger instead of console.log (#2415)
lukaisailovic Jun 13, 2024
6329990
fix: window cli error (#2416)
lukaisailovic Jun 14, 2024
6b248f5
:feat exclude eip6963 wallets (#2418)
svenvoskamp Jun 14, 2024
82e7e4d
fix: close modal if no need to reauth (#2417)
tomiir Jun 14, 2024
4a9fa9b
chore: bump versions to 5.0.2 (#2419)
tomiir Jun 14, 2024
0db5605
Fix/v5 conflicts (#2421)
tomiir Jun 14, 2024
863fdbe
refactor: remove `core` dependency from `common` and `ui` packages (#…
enesozturk Jun 17, 2024
346104c
refactor: move the w3m components to separate package (#2432)
enesozturk Jun 18, 2024
2ad14fb
chore: add rn samples to apple domain file (#2438)
Jun 18, 2024
d9dffe5
fix: external connectors (#2437)
tomiir Jun 20, 2024
b57f5cc
fix: gallery build issues (#2450)
tomiir Jun 20, 2024
0db7193
fix: export onramp components and remove from scaffold (#2448)
enesozturk Jun 20, 2024
21d93f5
fix: ethers5 CB Id (#2445)
tomiir Jun 20, 2024
117816b
chore: update coinbase sdk to 4.0.3 (#2440)
tomiir Jun 20, 2024
d717c49
chore: bump to v5.0.3 (#2451)
tomiir Jun 20, 2024
f79085f
fix: ethers5 requestAccounts (#2454)
tomiir Jun 20, 2024
e8b30f8
fix: issue where eip6963 connectors would still show with them disabl…
tomiir Jun 20, 2024
ded234b
fix: typo (#2431)
ozgurrgul Jun 28, 2024
102e696
chore: fix some comments (#2380)
longxiangqiao Jun 28, 2024
ab6b008
feat/chain controller (#2459)
enesozturk Jun 28, 2024
4e29365
refactor: add chain check for including announced and injected wallet…
enesozturk Jun 28, 2024
00eed0e
chore: fix random link (#2470)
chris13524 Jun 28, 2024
7759b65
add Solana chain ID workaround (#2458)
glitch-txs Jun 28, 2024
c4ad0cd
feat: removed wallet adapters per wallet, added wallet standard suppo…
phoenixVS Jul 1, 2024
70054cd
fix wcPromise issue in old project setups (#2481)
glitch-txs Jul 1, 2024
81ee0c3
chore: bump versions to 5.0.4 (#2486)
tomiir Jul 1, 2024
5f4d777
Merge branch 'V5' of github.com:WalletConnect/web3modal into chore/v5…
tomiir Jul 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apps/demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @apps/demo

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/demo",
"version": "5.0.3",
"version": "5.0.4",
"private": true,
"scripts": {
"dev:demo": "next dev",
Expand All @@ -11,7 +11,7 @@
"dependencies": {
"@radix-ui/react-switch": "1.0.3",
"@tanstack/react-query": "5.24.8",
"@web3modal/wagmi": "5.0.3",
"@web3modal/wagmi": "5.0.4",
"clsx": "2.1.0",
"framer-motion": "11.0.8",
"next": "14.2.3",
Expand Down
10 changes: 10 additions & 0 deletions apps/gallery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @apps/gallery

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions apps/gallery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/gallery",
"version": "5.0.3",
"version": "5.0.4",
"private": true,
"main": "index.js",
"scripts": {
Expand All @@ -9,8 +9,8 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@web3modal/common": "5.0.3",
"@web3modal/ui": "5.0.3",
"@web3modal/common": "5.0.4",
"@web3modal/ui": "5.0.4",
"lit": "3.1.0",
"storybook": "7.6.7"
},
Expand Down
12 changes: 12 additions & 0 deletions apps/laboratory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @apps/laboratory

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]
- @web3modal/[email protected]
- @web3modal/[email protected]
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
20 changes: 11 additions & 9 deletions apps/laboratory/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/laboratory",
"version": "5.0.3",
"version": "5.0.4",
"private": true,
"scripts": {
"dev:laboratory": "next dev",
Expand Down Expand Up @@ -37,23 +37,25 @@
"@emotion/styled": "11.11.0",
"@sentry/browser": "7.92.0",
"@sentry/react": "7.92.0",
"@solana/wallet-adapter-backpack": "0.1.14",
"@solana/wallet-adapter-wallets": "0.19.32",
"@solana/web3.js": "1.91.7",
"@tanstack/react-query": "5.24.8",
"@web3modal/ethers": "5.0.3",
"@web3modal/siwe": "5.0.3",
"@web3modal/solana": "5.0.3",
"@web3modal/wagmi": "5.0.3",
"@wagmi/connectors": "5.0.8",
"@walletconnect/utils": "2.13.1",
"@web3modal/ethers": "5.0.4",
"@web3modal/siwe": "5.0.4",
"@web3modal/solana": "5.0.4",
"@web3modal/wagmi": "5.0.4",
"ethers": "6.13.0",
"framer-motion": "10.17.9",
"next": "14.2.3",
"next-auth": "4.24.5",
"react-icons": "4.12.0",
"@walletconnect/utils": "2.13.1",
"rpc-websockets": "7.11.0",
"valtio": "1.11.2",
"viem": "2.10.3",
"wagmi": "2.9.10",
"@wagmi/connectors": "5.0.8",
"rpc-websockets": "7.11.0"
"wagmi": "2.9.10"
},
"devDependencies": {
"@aws-sdk/client-cloudwatch": "3.509.0",
Expand Down
12 changes: 12 additions & 0 deletions apps/laboratory/src/components/RandomLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use client'

import Link from 'next/link'

export function RandomLink({ hrefs, children }: { hrefs: string[]; children: React.ReactNode }) {
const href = hrefs[Math.floor(Math.random() * hrefs.length)]
if (!href) {
throw new Error('No hrefs provided')
}

return <Link href={href}>{children}</Link>
}
9 changes: 5 additions & 4 deletions apps/laboratory/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ import {
} from '@chakra-ui/react'
import { IoArrowForward } from 'react-icons/io5'
import { wagmiSdkOptions, ethersSdkOptions, solanaSdkOptions } from '../utils/DataUtil'
import { RandomLink } from '../components/RandomLink'

export default function HomePage() {
return (
<>
<Card marginTop={20}>
<Card marginTop={10}>
<CardHeader>
<Heading size="md">Testing</Heading>
</CardHeader>
Expand All @@ -33,16 +34,16 @@ export default function HomePage() {
Configuration with all features enabled and randomly using ethers or wagmi
</Text>
</Box>
<Link href={Math.random() > 0.5 ? '/library/wagmi-all' : '/library/ethers-all'}>
<RandomLink hrefs={['/library/wagmi-all', '/library/ethers-all']}>
<Button rightIcon={<IoArrowForward />}>Go</Button>
</Link>
</RandomLink>
</Stack>
</Box>
</Stack>
</CardBody>
</Card>

<Card marginTop={20}>
<Card marginTop={10}>
<CardHeader>
<Heading size="md">Wagmi</Heading>
</CardHeader>
Expand Down
17 changes: 16 additions & 1 deletion apps/laboratory/src/pages/library/solana.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import { solana, solanaDevnet, solanaTestnet } from '../../utils/ChainsUtil'
import { Web3ModalButtons } from '../../components/Web3ModalButtons'
import { ConstantsUtil } from '../../utils/ConstantsUtil'
import { SolanaTests } from '../../components/Solana/SolanaTests'
import { BackpackWalletAdapter } from '@solana/wallet-adapter-backpack'
import {
PhantomWalletAdapter,
HuobiWalletAdapter,
SolflareWalletAdapter,
TrustWalletAdapter
} from '@solana/wallet-adapter-wallets'

const chains = [solana, solanaTestnet, solanaDevnet]

Expand All @@ -21,7 +28,15 @@ const modal = createWeb3Modal({
chains,
enableAnalytics: false,
termsConditionsUrl: 'https://walletconnect.com/terms',
privacyPolicyUrl: 'https://walletconnect.com/privacy'
privacyPolicyUrl: 'https://walletconnect.com/privacy',
customWallets: ConstantsUtil.CustomWallets,
wallets: [
new BackpackWalletAdapter(),
new HuobiWalletAdapter(),
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
new TrustWalletAdapter()
]
})

ThemeStore.setModal(modal)
Expand Down
2 changes: 1 addition & 1 deletion apps/laboratory/src/utils/SiweUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getCsrfToken, signIn, signOut, getSession } from 'next-auth/react'
import type { SIWEVerifyMessageArgs, SIWECreateMessageArgs, SIWESession } from '@web3modal/siwe'
import { createSIWEConfig, formatMessage } from '@web3modal/siwe'
import { WagmiConstantsUtil } from '../utils/WagmiConstants'
import { WagmiConstantsUtil } from './WagmiConstants'

export const siweConfig = createSIWEConfig({
signOutOnAccountChange: true,
Expand Down
9 changes: 9 additions & 0 deletions examples/html-ethers5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/html-ethers5

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/html-ethers5/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@examples/html-ethers5",
"private": true,
"version": "5.0.3",
"version": "5.0.4",
"scripts": {
"dev:example": "vite --port 3011",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/ethers5": "5.0.3",
"@web3modal/ethers5": "5.0.4",
"ethers": "5.7.2"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions examples/html-wagmi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/html-wagmi

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/html-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@examples/html-wagmi",
"private": true,
"version": "5.0.3",
"version": "5.0.4",
"scripts": {
"dev:example": "vite --port 3001",
"build:examples": "vite build"
},
"dependencies": {
"@wagmi/connectors": "5.0.8",
"@wagmi/core": "2.10.5",
"@web3modal/wagmi": "5.0.3",
"@web3modal/wagmi": "5.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
9 changes: 9 additions & 0 deletions examples/next-wagmi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/next-wagmi

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/next-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/next-wagmi",
"version": "5.0.3",
"version": "5.0.4",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -10,7 +10,7 @@
},
"dependencies": {
"@tanstack/react-query": "5.24.8",
"@web3modal/wagmi": "5.0.3",
"@web3modal/wagmi": "5.0.4",
"next": "14.2.3",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
9 changes: 9 additions & 0 deletions examples/react-ethers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/react-ethers5

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/react-ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@examples/react-ethers",
"private": true,
"version": "5.0.3",
"version": "5.0.4",
"scripts": {
"dev:example": "vite --port 3012",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/ethers": "5.0.3",
"@web3modal/ethers": "5.0.4",
"ethers": "6.9.0",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
9 changes: 9 additions & 0 deletions examples/react-ethers5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/react-ethers5

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/react-ethers5/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@examples/react-ethers5",
"private": true,
"version": "5.0.3",
"version": "5.0.4",
"scripts": {
"dev:example": "vite --port 3012",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/ethers5": "5.0.3",
"@web3modal/ethers5": "5.0.4",
"ethers": "5.7.2",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
9 changes: 9 additions & 0 deletions examples/react-wagmi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @examples/react-wagmi

## 5.0.4

### Patch Changes

- fix: wcPromise incompatibility issues

- Updated dependencies []:
- @web3modal/[email protected]

## 5.0.3

### Patch Changes
Expand Down
Loading
Loading