Skip to content

Commit

Permalink
Merge branch 'V4' into feat/onramp-widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir authored Feb 12, 2024
2 parents 1db6935 + a03daca commit 31326fb
Show file tree
Hide file tree
Showing 59 changed files with 743 additions and 257 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"dist",
".next",
".turbo",
"examples",
"coverage"
"exbamples",
"coverage",
".changeset"
],
"rules": {
// Core
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/clear_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# GitHub Caches are branch specific with non-default branches having access
# to the `default` branch.
# It appears that you cannot configure https://github.com/actions/cache to
# only cache if `default` branch.
# This workflow helps with housekeeping the caches.
# See https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
name: Post-merge Cache Cleanup
on:
pull_request:
types:
- closed

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.changeset
coverage
20 changes: 20 additions & 0 deletions apps/gallery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @apps/gallery

## 4.0.3

### Patch Changes

- Tag email beta, Sync Theme For Secure Wallet, Use manual version in constants

- Updated dependencies []:
- @web3modal/ui@4.0.3
- @web3modal/common@4.0.3

## 4.0.2

### Patch Changes

- [#1899](https://github.com/WalletConnect/web3modal/pull/1899) [`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66) Thanks [@xzilja](https://github.com/xzilja)! - Reverted change that removed email update flow from account view

- Updated dependencies [[`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66)]:
- @web3modal/common@4.0.2
- @web3modal/ui@4.0.2

## 4.0.1

### 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": "4.0.1",
"version": "4.0.3",
"private": true,
"main": "index.js",
"scripts": {
Expand All @@ -9,8 +9,8 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@web3modal/common": "4.0.1",
"@web3modal/ui": "4.0.1",
"@web3modal/common": "4.0.3",
"@web3modal/ui": "4.0.3",
"lit": "3.1.0",
"storybook": "7.6.7"
},
Expand Down
22 changes: 22 additions & 0 deletions apps/laboratory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @apps/laboratory

## 4.0.3

### Patch Changes

- Tag email beta, Sync Theme For Secure Wallet, Use manual version in constants

- Updated dependencies []:
- @web3modal/ethers@4.0.3
- @web3modal/ethers5@4.0.3
- @web3modal/wagmi@4.0.3

## 4.0.2

### Patch Changes

- [#1899](https://github.com/WalletConnect/web3modal/pull/1899) [`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66) Thanks [@xzilja](https://github.com/xzilja)! - Reverted change that removed email update flow from account view

- Updated dependencies [[`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66)]:
- @web3modal/ethers@4.0.2
- @web3modal/ethers5@4.0.2
- @web3modal/wagmi@4.0.2

## 4.0.1

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions apps/laboratory/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/laboratory",
"version": "4.0.1",
"version": "4.0.3",
"private": true,
"scripts": {
"dev:laboratory": "next dev",
Expand All @@ -22,9 +22,9 @@
"@sentry/browser": "7.92.0",
"@sentry/react": "7.92.0",
"@tanstack/react-query": "5.17.19",
"@web3modal/ethers": "4.0.1",
"@web3modal/ethers5": "4.0.1",
"@web3modal/wagmi": "4.0.1",
"@web3modal/ethers": "4.0.3",
"@web3modal/ethers5": "4.0.3",
"@web3modal/wagmi": "4.0.3",
"framer-motion": "10.17.9",
"next": "14.0.4",
"next-auth": "4.24.5",
Expand Down
18 changes: 18 additions & 0 deletions examples/html-ethers5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @examples/html-ethers5

## 4.0.3

### Patch Changes

- Tag email beta, Sync Theme For Secure Wallet, Use manual version in constants

- Updated dependencies []:
- @web3modal/ethers5@4.0.3

## 4.0.2

### Patch Changes

- [#1899](https://github.com/WalletConnect/web3modal/pull/1899) [`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66) Thanks [@xzilja](https://github.com/xzilja)! - Reverted change that removed email update flow from account view

- Updated dependencies [[`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66)]:
- @web3modal/ethers5@4.0.2

## 4.0.1

### 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": "4.0.1",
"version": "4.0.3",
"scripts": {
"dev:example": "vite --port 3011",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/ethers5": "4.0.1",
"@web3modal/ethers5": "4.0.3",
"ethers": "5.7.2"
},
"devDependencies": {
Expand Down
18 changes: 18 additions & 0 deletions examples/html-wagmi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @examples/html-wagmi

## 4.0.3

### Patch Changes

- Tag email beta, Sync Theme For Secure Wallet, Use manual version in constants

- Updated dependencies []:
- @web3modal/wagmi@4.0.3

## 4.0.2

### Patch Changes

- [#1899](https://github.com/WalletConnect/web3modal/pull/1899) [`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66) Thanks [@xzilja](https://github.com/xzilja)! - Reverted change that removed email update flow from account view

- Updated dependencies [[`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66)]:
- @web3modal/wagmi@4.0.2

## 4.0.1

### 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,13 +1,13 @@
{
"name": "@examples/html-wagmi",
"private": true,
"version": "4.0.1",
"version": "4.0.3",
"scripts": {
"dev:example": "vite --port 3001",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/wagmi": "4.0.1",
"@web3modal/wagmi": "4.0.3",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
18 changes: 18 additions & 0 deletions examples/next-wagmi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @examples/next-wagmi

## 4.0.3

### Patch Changes

- Tag email beta, Sync Theme For Secure Wallet, Use manual version in constants

- Updated dependencies []:
- @web3modal/wagmi@4.0.3

## 4.0.2

### Patch Changes

- [#1899](https://github.com/WalletConnect/web3modal/pull/1899) [`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66) Thanks [@xzilja](https://github.com/xzilja)! - Reverted change that removed email update flow from account view

- Updated dependencies [[`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66)]:
- @web3modal/wagmi@4.0.2

## 4.0.1

### 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": "4.0.1",
"version": "4.0.3",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -10,7 +10,7 @@
},
"dependencies": {
"@tanstack/react-query": "5.17.19",
"@web3modal/wagmi": "4.0.1",
"@web3modal/wagmi": "4.0.3",
"next": "14.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
5 changes: 3 additions & 2 deletions examples/next-wagmi/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import { Inter as interFonts } from 'next/font/google'
import './globals.css'
import { cookieToInitialState } from 'wagmi'
import { headers } from 'next/headers'
import { config } from '@/config'
import ContextProvider from '@/context'

const inter = Inter({ subsets: ['latin'] })
const inter = interFonts({ subsets: ['latin'] })

export const metadata: Metadata = {
title: 'Create Next App',
Expand All @@ -19,6 +19,7 @@ export default function RootLayout({
children: React.ReactNode
}>) {
const initialState = cookieToInitialState(config, headers().get('cookie'))

return (
<html lang="en">
<body className={inter.className}>
Expand Down
4 changes: 3 additions & 1 deletion examples/next-wagmi/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { mainnet, sepolia } from 'wagmi/chains'

export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID

if (!projectId) throw new Error('Project ID is not defined')
if (!projectId) {
throw new Error('Project ID is not defined')
}

export const config = defaultWagmiConfig({
projectId,
Expand Down
4 changes: 3 additions & 1 deletion examples/next-wagmi/src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { State, WagmiProvider } from 'wagmi'

const queryClient = new QueryClient()

if (!projectId) throw new Error('Project ID is not defined')
if (!projectId) {
throw new Error('Project ID is not defined')
}

createWeb3Modal({
wagmiConfig: config,
Expand Down
18 changes: 18 additions & 0 deletions examples/react-ethers5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @examples/react-ethers5

## 4.0.3

### Patch Changes

- Tag email beta, Sync Theme For Secure Wallet, Use manual version in constants

- Updated dependencies []:
- @web3modal/ethers5@4.0.3

## 4.0.2

### Patch Changes

- [#1899](https://github.com/WalletConnect/web3modal/pull/1899) [`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66) Thanks [@xzilja](https://github.com/xzilja)! - Reverted change that removed email update flow from account view

- Updated dependencies [[`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66)]:
- @web3modal/ethers5@4.0.2

## 4.0.1

### 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": "4.0.1",
"version": "4.0.3",
"scripts": {
"dev:example": "vite --port 3012",
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/ethers5": "4.0.1",
"@web3modal/ethers5": "4.0.3",
"ethers": "5.7.2",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
18 changes: 18 additions & 0 deletions examples/react-wagmi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @examples/react-wagmi

## 4.0.3

### Patch Changes

- Tag email beta, Sync Theme For Secure Wallet, Use manual version in constants

- Updated dependencies []:
- @web3modal/wagmi@4.0.3

## 4.0.2

### Patch Changes

- [#1899](https://github.com/WalletConnect/web3modal/pull/1899) [`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66) Thanks [@xzilja](https://github.com/xzilja)! - Reverted change that removed email update flow from account view

- Updated dependencies [[`42e97a0`](https://github.com/WalletConnect/web3modal/commit/42e97a04eb60090a821019ae80d62acacf35fc66)]:
- @web3modal/wagmi@4.0.2

## 4.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/react-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@examples/react-wagmi",
"private": true,
"version": "4.0.1",
"version": "4.0.3",
"scripts": {
"dev:example": "vite --port 3002",
"build:examples": "vite build"
},
"dependencies": {
"@tanstack/react-query": "5.17.19",
"@web3modal/wagmi": "4.0.1",
"@web3modal/wagmi": "4.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"viem": "2.5.0",
Expand Down
Loading

0 comments on commit 31326fb

Please sign in to comment.