Skip to content

Commit

Permalink
build: release 1.0.7 (#60)
Browse files Browse the repository at this point in the history
* chore: Update bug_report template (#26)

* feat: Add test example

* feat: Update examples

* feat: Add disclaimer & download url

* docs: Update example

* docs: Update docs

* docs: Update docs

* docs: Update gitignore

* docs: Update docs

* feat: Add zIndices theme config

* feat: Update examples

* feat: Refactor switch network modal

* refactor: Clean code

* feat: Update examples

* refactor: Update dependencies

* feat: Update version

* docs: Update docs

* chore: Add changeset

* test: Test changeset version

* docs: Create LICENSE

* docs: Update packages info

* chore: Add husky & lint-staged

* abc: test commit lint

* chore: Update husky

* chore: Update husky

* test: test husky

* chore: Add issue & pr template

* fix: Update OpenSwitchNetworkOptions type

* feat: Add options to control modal close

* feat: Add default wallets to walletConnect

* docs: Update useModal document

* refactor: Add className to base components

* chore: Add release github acton

* chore: Add publish ci script

* chore: Fix github action

* chore: Update github action

* test: Test github action

* chore: Add  .pnpm-store to gitignore

* chore: Update github action

* chore: Copy readme to walletkit package when publish

* chore: Update issue_template

* chore: Update pr & issue template

* Update bug_report.yml

* Create config.yml

* Delete .github/ISSUE_TEMPLATE/config.yml

* Update bug_report.yml

* Update bug_report.yml

* chore: Update bug_report.yml

* style: Add chains type declaration for dev example

* style: Add chains type declaration for dev example

* chore: test docs release workflow

* chore: Test docs release workflow

* chore: test docs release workflow

* chore: test docs release workflow

* style: Add chains type declaration for dev example

* chore: test docs release workflow

* chore: Test docs release workflow

* chore: test docs release workflow

* chore: test docs release workflow

* test: test alpha release

* chore: update versions (alpha) (#39)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: Update docs

* fix: fix theme `auto` mode issue & fix walletConnect chains error

* fix: fixed `WalletConnect` automatic connection issue

* chore: Update dependencies versions

* chore: update versions (alpha) (#41)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: prettier & eslint ignore changeset's md files

* fix: No need refresh when open WalletConnect Modal in QRCode page

* chore: Add vconsole for dev demo

* fix: fixed trustwallet losing status after refreshing

* chore: update release info

* fix: Fixed trustwallet losing account status after refreshing (#44)

* chore: prettier & eslint ignore changeset's md files

* fix: No need refresh when open WalletConnect Modal in QRCode page

* chore: Add vconsole for dev demo

* fix: fixed trustwallet losing status after refreshing

* chore: update release info

* chore: update versions (alpha) (#45)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* style: Update log output styles

* style: Add switchNetwork log

* refactor: update the `installed` field that detect whether wallet is installed to a function

* fix: fixed conflict issue between trustwallet and metaMask

* docs: update release docs

* Dev (#47)

* chore: prettier & eslint ignore changeset's md files

* fix: No need refresh when open WalletConnect Modal in QRCode page

* chore: Add vconsole for dev demo

* fix: fixed trustwallet losing status after refreshing

* chore: update release info

* style: Update log output styles

* style: Add switchNetwork log

* refactor: update the `installed` field that detect whether wallet is installed to a function

* fix: fixed conflict issue between trustwallet and metaMask

* docs: update release docs

* chore: update versions (alpha) (#48)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: Add tests for adding new wallet

* Dev (#49)

* chore: prettier & eslint ignore changeset's md files

* fix: No need refresh when open WalletConnect Modal in QRCode page

* chore: Add vconsole for dev demo

* fix: fixed trustwallet losing status after refreshing

* chore: update release info

* style: Update log output styles

* style: Add switchNetwork log

* refactor: update the `installed` field that detect whether wallet is installed to a function

* fix: fixed conflict issue between trustwallet and metaMask

* docs: update release docs

* docs: Add tests for adding new wallet

* docs: Update contributing

* docs: Add test result table to PULL_REQUEST_TEMPLATE

* fix: fixed multiple wallet conflicts resulting in undetectable issues

* chore: Add changeset log

* fix: Fixed multiple wallets conficts resulting in undetectable issues. (#51)

* docs: Add test result table to PULL_REQUEST_TEMPLATE

* fix: fixed multiple wallet conflicts resulting in undetectable issues

* chore: Add changeset log

* chore: update versions (alpha) (#52)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: Fixed TrustWallet will automatically reconnect after reloading the page.  (#53)

* docs: Add test result table to PULL_REQUEST_TEMPLATE

* fix: fixed multiple wallet conflicts resulting in undetectable issues

* chore: Add changeset log

* chore: update versions (alpha) (#54)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: add `action` prop to WalletKitButton & WalletKitButton.Custom to support the case of adding network.

* Add `action` prop to WalletKitButton & WalletKitButton.Custom to support the case of adding network. (#56)

* docs: Add test result table to PULL_REQUEST_TEMPLATE

* fix: fixed multiple wallet conflicts resulting in undetectable issues

* chore: Add changeset log

* feat: add `action` prop to WalletKitButton & WalletKitButton.Custom to support the case of adding network.

* chore: update versions (alpha) (#57)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: fix theme configuration naming error issue

* docs: Add changeset docs

* build: release

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 13, 2023
1 parent d18aedb commit 084a397
Show file tree
Hide file tree
Showing 78 changed files with 798 additions and 510 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-crabs-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Fixed theme configuration naming error issue
5 changes: 5 additions & 0 deletions .changeset/famous-drinks-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Fixed TrustWallet will automatically reconnect after reloading the page.
5 changes: 5 additions & 0 deletions .changeset/happy-hounds-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

refactor: update the `installed` field that detect whether wallet is installed to a function
5 changes: 5 additions & 0 deletions .changeset/honest-numbers-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Fixed multiple wallets conficts resulting in undetectable issues.
5 changes: 5 additions & 0 deletions .changeset/late-birds-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Fixed `WalletConnect` automatic connection issue in the follow scenario: connect the WalletConnect -> close browser -> reopen browser -> disconnect -> select WalletConnect, will automatically connect.
5 changes: 5 additions & 0 deletions .changeset/lovely-months-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Fixed trustwallet losing account status after refreshing
5 changes: 5 additions & 0 deletions .changeset/modern-comics-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Fixed conflict issue between trustwallet and metaMask.
19 changes: 19 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"mode": "exit",
"tag": "alpha",
"initialVersions": {
"example-nextjs": "0.0.1",
"example-vite": "0.0.1",
"@totejs/walletkit": "1.0.7-alpha.2",
"website": "0.0.1"
},
"changesets": [
"famous-drinks-behave",
"happy-hounds-complain",
"honest-numbers-hug",
"late-birds-compare",
"lovely-months-argue",
"modern-comics-smell",
"pretty-flowers-rhyme"
]
}
5 changes: 5 additions & 0 deletions .changeset/pretty-flowers-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Add `action` prop to WalletKitButton & WalletKitButton.Custom to support the case of adding network.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.next
dist
CHANGELOG.md
build.cjs
**/*.md
25 changes: 25 additions & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'setup'
description: Prepare the environment

runs:
using: composite
steps:
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Setup pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

- name: Setup pnpm config
shell: bash
run: pnpm config set store-dir .pnpm-store

- name: Install dependencies
shell: bash
run: pnpm install
38 changes: 38 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy docs
on:
push:
branches:
- main
- alpha

jobs:
release:
name: deploy docs
if: github.repository == 'node-real/walletkit'
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: ./.github/actions/setup

- name: Build docs
run: pnpm build:docs

- name: Redirect
run: |
mkdir -p ./website/dist/website/dist
cat << EOF > "./website/dist/website/dist/index.html"
<script>window.location.href='https://node-real.github.io/walletkit'</script>
EOF
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./website/dist
branch: 'docs'
clean: true
force: true
30 changes: 6 additions & 24 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,26 @@ on:
push:
branches:
- main
- alpha
- 0.x

env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
- 0.x-alpha

jobs:
release:
name: release
if: github.repository == 'node-real/walletkit'
timeout-minutes: 15
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0

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

- name: Setup pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false
- name: Build packages
run: pnpm build

- name: Creating .npmrc
run: |
Expand All @@ -41,15 +32,6 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: Install dependencies
run: pnpm install

- name: Build packages
run: pnpm --filter "@totejs/**" build

- name: Create and publish versions
uses: changesets/action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.next
dist
CHANGELOG.md
**/*.md
8 changes: 2 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,9 @@ const config = createConfig(
## Notice!!! Test cases for adding a new wallet
Before merging the PR to main branch, we hope you complete the following tests, and fill the test results into the PR template, otherwise the PR may
not be approved.
In general, wallet is available at several different platforms, such as PC browser extension,
Android, iOS and WalletConnect. If your wallet supports the corresponding platform, please make sure
your wallet is worked, can it be connected, can it switch networks, and can it support testnet?
Before merging the PR to main branch, we hope you complete the following tests, and fill the test results into the PR template, otherwise the PR may not be approved.
In general, wallet is available at several different platforms, such as PC browser extension, Android, iOS and WalletConnect. If your wallet supports the corresponding platform, please make sure your wallet is worked, can it be connected, can it switch networks, and can it support testnet?
|test case|steps|support?|connected?|switch networks?|support testnet?|
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ WalletKit is a React component library for easily connecting a wallet to your dA

## Documentation

For full documentation, visit [here](https://node-real.github.io/walletkit/website/dist/#/index).
For full documentation, visit [here](https://node-real.github.io/walletkit).

## Examples

The following examples are provided in the [examples](./examples/) folder of this repo.

- [nextjs](https://github.com/node-real/walletkit/tree/main/examples/nextjs)
- [vite](https://github.com/node-real/walletkit/tree/main/examples/vite)
- [nextjs](./examples/nextjs/)
- [vite](./examples/vite/)

## Installation

Expand Down
4 changes: 2 additions & 2 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"next": "^13.5.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^1.19.8",
"viem": "^1.19.9",
"wagmi": "^1.4.7"
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/react": "^18.2.38",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"typescript": "^5.3.2"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const config = createConfig(
);

const options: WalletKitOptions = {
initialChainId: 56,
initialChainId: 1,
};

export default function App({ Component, pageProps }: AppProps) {
Expand Down
2 changes: 2 additions & 0 deletions examples/nextjs/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Html, Head, Main, NextScript } from 'next/document';
import { EthereumScript } from '@totejs/walletkit';

export default function Document() {
return (
<Html lang="en">
<Head>
<title>WalletKit Next.js Example</title>
<EthereumScript />
</Head>
<body>
<Main />
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"@totejs/walletkit": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^1.19.8",
"viem": "^1.19.9",
"wagmi": "^1.4.7"
},
"devDependencies": {
"@types/react": "^18.2.38",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.0",
"typescript": "^5.3.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const config = createConfig(
);

const options: WalletKitOptions = {
initialChainId: 56,
initialChainId: 1,
};

export default function App() {
Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@
"scripts": {
"prepare": "husky install",
"lint": "pnpm eslint .",
"dev": "pnpm --filter @totejs/walletkit dev",
"ci:version": "pnpm changeset version && pnpm install && cp README.md packages/walletkit/README.md",
"ci:publish": "pnpm publish -r"
"dev": "pnpm --F @totejs/walletkit dev",
"build": "pnpm --F @totejs/walletkit build",
"dev:docs": "pnpm --F @totejs/walletkit build:watch & pnpm --F website dev",
"build:docs": "pnpm --F @totejs/walletkit build && pnpm --F website build",
"pre:enter": "pnpm changeset pre enter alpha",
"pre:exit": "pnpm changeset pre exit",
"ci:version": "pnpm changeset version && cp README.md packages/walletkit/README.md",
"ci:publish": "pnpm changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
Expand Down
Loading

0 comments on commit 084a397

Please sign in to comment.