Skip to content

Commit

Permalink
release: v5.0.8 (#2591)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Smith <[email protected]>
Co-authored-by: Felipe Mendes <[email protected]>
Co-authored-by: Sven <[email protected]>
Co-authored-by: Segun Adebayo <[email protected]>
Co-authored-by: Enes <[email protected]>
Co-authored-by: Gancho Radkov <[email protected]>
  • Loading branch information
7 people authored Jul 24, 2024
1 parent 802b30f commit 4f7087e
Show file tree
Hide file tree
Showing 151 changed files with 28,488 additions and 41,597 deletions.
49 changes: 34 additions & 15 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,21 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: 'package-lock.json'
cache: 'pnpm'

- name: install
run: npm ci
run: pnpm install

- name: build
run: npm run build
run: pnpm build
env:
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }}

Expand All @@ -52,20 +57,26 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: 'package-lock.json'
cache: 'pnpm'

- name: install
run: npm ci
run: pnpm install

- name: build
run: npm run build
run: pnpm build
env:
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }}

- name: check
run: npm run ${{ matrix.style-command }}
run: pnpm ${{ matrix.style-command }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -75,23 +86,31 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: 'package-lock.json'
cache: 'pnpm'

- name: install
run: npm ci
run: pnpm install

- name: build
run: npm run build
run: pnpm build
env:
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }}

- name: Test
run: npm run test
run: pnpm test

- name: Merge Coverage Reports
if: always()
run: npm run coverage:merge
run: pnpm coverage:merge

- name: Report
if: always()
uses: davelosert/vitest-coverage-report-action@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -41,6 +44,7 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build, tag, and push image to Amazon ECR
uses: docker/build-push-action@v5
env:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:
with:
token: ${{ secrets.CHANGESETS_ACTION_TOKEN }}

- name: Setup Node.js 16
- uses: pnpm/action-setup@v4
name: Install pnpm

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18.x

- name: Install Dependencies
run: npm install
run: pnpm install

- name: Create Release Pull Request
uses: changesets/action@v1
Expand Down
27 changes: 20 additions & 7 deletions .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,40 +57,50 @@ jobs:
with:
repository: WalletConnect/web3modal
ref: ${{ inputs.branch }}

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: 'package-lock.json'
cache: 'pnpm'

- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').packages['apps/laboratory']['devDependencies']['@playwright/test'])")" >> $GITHUB_ENV

- name: Install Brave Browser
working-directory: ./apps/laboratory/
run: sudo ./scripts/install-brave-browser.sh

- name: Cache playwright binaries
uses: actions/cache@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}-${{ hashFiles('apps/laboratory/tests/shared/constants/devices.ts') }}

- name: install
run: npm ci
run: pnpm install

- name: build packages and lab
run: npm run build:laboratory
run: pnpm build:laboratory
env:
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }}
NEXTAUTH_SECRET: ${{ secrets.TESTS_NEXTAUTH_SECRET }}
MAILSAC_API_KEY: ${{ secrets.TESTS_MAILSEC_API_KEY }}
NEXT_PUBLIC_SECURE_SITE_SDK_URL: ${{ inputs.secure-site-url }}
SOCIAL_TEST_EMAIL: ${{ secrets.TESTS_SOCIAL_EMAIL }}
SOCIAL_TEST_PASSWORD: ${{ secrets.TESTS_SOCIAL_PASSWORD }}

- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
working-directory: ./apps/laboratory/
run: npm run playwright:install
run: pnpm playwright:install

- name: Run Playwright tests
env:
BASE_URL: ${{ inputs.base-url }}
Expand All @@ -104,19 +114,22 @@ jobs:
SOCIAL_TEST_PASSWORD: ${{ secrets.TESTS_SOCIAL_PASSWORD }}
CI: true
working-directory: ./apps/laboratory/
run: npm run ${{ inputs.command }}
run: pnpm ${{ inputs.command }}

- name: Run canary with minimal environment config
env:
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }}
CI: true
working-directory: ./apps/laboratory/
run: npm run playwright:test:canary
run: pnpm playwright:test:canary

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ./apps/laboratory/playwright-report/
retention-days: 7

- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.changeset
coverage
pnpm-lock.yaml
10 changes: 7 additions & 3 deletions Dockerfile.canary
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
FROM node:20-bookworm
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

RUN apt update && apt install -y awscli

WORKDIR /src

COPY ../ ./
RUN npm ci
RUN npm run build
RUN pnpm install
RUN pnpm build

WORKDIR ./apps/laboratory/

RUN npm run playwright:install
RUN pnpm playwright:install

ENV TIMING_LOGS=true
ENV CI=true
Expand Down
26 changes: 26 additions & 0 deletions apps/demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @apps/demo

## 5.0.8

### Patch Changes

- - chore: lab loading indicator by @chris13524 in https://github.com/WalletConnect/web3modal/pull/2548
- fix: not allow multiple account syncs for same caip address by @zoruka in https://github.com/WalletConnect/web3modal/pull/2547
- fix: missing network not supported modal on wallet network switch by @zoruka in https://github.com/WalletConnect/web3modal/pull/2565
- chore: add clientId to BlockchainAPI requests by @tomiir in https://github.com/WalletConnect/web3modal/pull/2521
- Chore/split internal external testing by @svenvoskamp in https://github.com/WalletConnect/web3modal/pull/2563
- fix: remove 200ms QR delay by @chris13524 in https://github.com/WalletConnect/web3modal/pull/2567
- [TDW] move from npm to pnpm by @segunadebayo in https://github.com/WalletConnect/web3modal/pull/2545
- feat: enableSwaps option by @enesozturk in https://github.com/WalletConnect/web3modal/pull/2573
- build: fix dockerfile and bring back turbo by @segunadebayo in https://github.com/WalletConnect/web3modal/pull/2582
- chore: updates providers to `2.14` by @ganchoradkov in https://github.com/WalletConnect/web3modal/pull/2557
- fix: gets chains from approved accounts by @ganchoradkov in https://github.com/WalletConnect/web3modal/pull/2562
- :fix show right icon for multi-address account by @svenvoskamp in https://github.com/WalletConnect/web3modal/pull/2560
- feat: add wallet features and socials github tests by @enesozturk in https://github.com/WalletConnect/web3modal/pull/2571
- fix: multiple account syncs on wagmi by @zoruka in https://github.com/WalletConnect/web3modal/pull/2575
- feat: apply RPC refactor and EIP5792 schema changes by @tomiir in https://github.com/WalletConnect/web3modal/pull/2580
- refactor: turbo pipeline by @segunadebayo in https://github.com/WalletConnect/web3modal/pull/2587

**Full Changelog**: https://github.com/WalletConnect/web3modal/compare/5.0.7...5.0.8

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

## 5.0.7

### Patch Changes
Expand Down
13 changes: 7 additions & 6 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@apps/demo",
"version": "5.0.7",
"version": "5.0.8",
"private": true,
"scripts": {
"dev:demo": "next dev",
"build:demo": "next build",
"start:demo": "next start",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@radix-ui/react-switch": "1.0.3",
"@tanstack/react-query": "5.24.8",
"@web3modal/wagmi": "5.0.7",
"@web3modal/wagmi": "workspace:*",
"clsx": "2.1.0",
"framer-motion": "11.0.8",
"next": "14.2.3",
Expand All @@ -20,12 +20,13 @@
"sonner": "1.4.3",
"tailwind-merge": "2.2.1",
"vaul": "0.9.0",
"viem": "2.16.2",
"viem": "2.17.8",
"wagmi": "2.10.9",
"zustand": "4.5.2"
},
"devDependencies": {
"@types/react": "18.2.62",
"@types/react-dom": "18.2.7",
"autoprefixer": "10.4.18",
"eslint": "8.57.0",
"eslint-config-next": "14.1.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"react": ["./node_modules/@types/react"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "out/types/**/*.ts"],
"exclude": ["node_modules"]
}
27 changes: 27 additions & 0 deletions apps/gallery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# @apps/gallery

## 5.0.8

### Patch Changes

- - chore: lab loading indicator by @chris13524 in https://github.com/WalletConnect/web3modal/pull/2548
- fix: not allow multiple account syncs for same caip address by @zoruka in https://github.com/WalletConnect/web3modal/pull/2547
- fix: missing network not supported modal on wallet network switch by @zoruka in https://github.com/WalletConnect/web3modal/pull/2565
- chore: add clientId to BlockchainAPI requests by @tomiir in https://github.com/WalletConnect/web3modal/pull/2521
- Chore/split internal external testing by @svenvoskamp in https://github.com/WalletConnect/web3modal/pull/2563
- fix: remove 200ms QR delay by @chris13524 in https://github.com/WalletConnect/web3modal/pull/2567
- [TDW] move from npm to pnpm by @segunadebayo in https://github.com/WalletConnect/web3modal/pull/2545
- feat: enableSwaps option by @enesozturk in https://github.com/WalletConnect/web3modal/pull/2573
- build: fix dockerfile and bring back turbo by @segunadebayo in https://github.com/WalletConnect/web3modal/pull/2582
- chore: updates providers to `2.14` by @ganchoradkov in https://github.com/WalletConnect/web3modal/pull/2557
- fix: gets chains from approved accounts by @ganchoradkov in https://github.com/WalletConnect/web3modal/pull/2562
- :fix show right icon for multi-address account by @svenvoskamp in https://github.com/WalletConnect/web3modal/pull/2560
- feat: add wallet features and socials github tests by @enesozturk in https://github.com/WalletConnect/web3modal/pull/2571
- fix: multiple account syncs on wagmi by @zoruka in https://github.com/WalletConnect/web3modal/pull/2575
- feat: apply RPC refactor and EIP5792 schema changes by @tomiir in https://github.com/WalletConnect/web3modal/pull/2580
- refactor: turbo pipeline by @segunadebayo in https://github.com/WalletConnect/web3modal/pull/2587

**Full Changelog**: https://github.com/WalletConnect/web3modal/compare/5.0.7...5.0.8

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

## 5.0.7

### Patch Changes
Expand Down
11 changes: 6 additions & 5 deletions apps/gallery/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "@apps/gallery",
"version": "5.0.7",
"version": "5.0.8",
"private": true,
"main": "index.js",
"scripts": {
"dev:gallery": "storybook dev -p 6006",
"build:gallery": "storybook build -o out",
"dev": "storybook dev -p 6006",
"build": "storybook build -o out",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@web3modal/common": "5.0.7",
"@web3modal/ui": "5.0.7",
"@web3modal/common": "workspace:*",
"@web3modal/ui": "workspace:*",
"lit": "3.1.0",
"react": "18.2.0",
"storybook": "7.6.7"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 4f7087e

Please sign in to comment.