Skip to content

Commit

Permalink
Deprecated (#1)
Browse files Browse the repository at this point in the history
* fix: wevm#4140

* chore: update mipd

* chore: version packages (wevm#4141)

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

* feat: `useWatchAsset` hook (wevm#4128)

* feat: `useWatchAsset` hook

* test: add tests

* docs: add docs

* nit: use `getConnectorClient`

* fix: types

* test: fix

* test: fix

* test: fix

* chore: tweaks

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* feat(vue): useBytecode (wevm#4145)

* feat: useBytecode

* docs: tweak the composable example for vue

* docs: use missing code highlighting for the TSQ Vue examples

* chore: fix tests

* chore: changeset

---------

Co-authored-by: Skas Merkushin <skas.merkushin@gmail.com>

* chore: version packages (wevm#4144)

* chore: version packages

* chore: correct version

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: update `@safe-global/safe-apps-sdk` (wevm#4146)

chore: update safe

* chore: version packages (wevm#4147)

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

* docs: update write-to-contract.md (wevm#4148)

This section talk about minting using tokenId input name but the example code switch to using address as input name

* fix: wevm#4118

* fix: wevm#4150

* chore: format

* close: wevm#4151

* chore: types

* chore: version packages (wevm#4152)

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

* FIX: useConnectorClient to be enabled only when connected or reconnecting (wevm#4124)

* update enabled param for useConnectorClient and add a test

* bring updated hook

* change set

* apply review

* chore: version packages (wevm#4155)

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

* Update useEstimateGas.md (wevm#4156)

* feat: propagate transport rpc urls to connectors (wevm#4162)

* feat: propagate transport rpc urls to connectors

* tests: update snaps

* chore: tweak changeset

* chore: version packages (wevm#4163)

* chore: version packages

* Update package.json

* Update CHANGELOG.md

* Update version.ts

---------

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

* chore: add sponsor

* fix: wevm#4169

* chore: format

* test: chore

* chore: format

* chore: version packages (wevm#4170)

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

* test: createConfig restore unconfigured chainId

* chore: bump deps

* chore: bump deps

* chore: version packages (wevm#4182)

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

* Update AppKit guide link (wevm#4190)

* fix: wevm#4097

* chore: version packages (wevm#4191)

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

* feat: validate internal state for persisted chainId

* chore: version packages (wevm#4192)

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

* chore: gg21

* chore: format

* chore: add sponsor

* docs: tweak

* fix: wevm#4196

* chore: version packages (wevm#4197)

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

* Fixed the wrong input boxes. (wevm#4199)

Removed input boxes with input of Address and Value.
Added input boxes with input of tokenId.

* docs: tweaks

* chore: update ethereum provider to 2.15.0 (wevm#4208)

* chore: update ethereum provider to 2.15.0

* chore: add changeset file

* Update .changeset/neat-pants-care.md

---------

Co-authored-by: awkweb <tom@meagher.co>

* fix: metaMask dappMetadata add default value (wevm#4203)

* fix: add name for mm connector (wevm#4211)

* fix: metaMask dappMetadata add default value

* chore: changeset

---------

Co-authored-by: rich.eth <troubledealer1996@outlook.com>

* chore: version packages (wevm#4212)

* Update @walletconnect/ethereum-provider to 2.15.1 (wevm#4213)

* chore: update @walletconnect/ethereum-provider to 2.15.1

* chore: ammend changeset to match convention

* chore: version packages (wevm#4214)

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

* chore: remove gc banner

* chore: sponsors

* chore: sponsor

* chore(connectors): bump wc provider

* chore: version packages (wevm#4232)

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

* docs: up

* chore: update @walletconnect/ethehreum-provider to version 2.15.3 (wevm#4243)

* chore: updates @walletconnect/ethehreum-provider to version 2.15.3

* Update .changeset/slow-moose-unite.md

---------

Co-authored-by: awkweb <tom@meagher.co>

* test: setup connector

* test: remove

* chore: bump mm sdk (wevm#4251)

* feat: update sdk

* chore: format

* chore: tweaks

* chore: changeset

---------

Co-authored-by: abretonc7s <arthur.breton@consensys.net>
Co-authored-by: abretonc7s <abretonc7s@users.noreply.github.com>
Co-authored-by: abretonc7s <107169956+abretonc7s@users.noreply.github.com>

* chore: version packages (wevm#4250)

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

* feat(vue): useWatchContractEvent (wevm#4252)

* feat(vue): useWatchContractEvent

* chore: snaps

* test: boost

* chore: format

* chore: tweaks

* chore: version packages (wevm#4253)

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

* fix: guard (get|use)ConnectorClient when reconnecting (wevm#4259)

* feat: connector client reconnection

* chore: changeset

* chore: snaps

* fix(react,vue): useReadContract deployless reads (wevm#4260)

* fix(react,vue): deployless reads

* chore: changeset

* chore: Update ethereum-provider to version 2.16.1 (wevm#4255)

* chore: update @walletconnect/ethereum-provider to 2.16.1

* chore: add changeset

* Update .changeset/empty-falcons-approve.md

---------

Co-authored-by: awkweb <tom@meagher.co>

* chore: version packages (wevm#4261)

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

* Add experimental actions export to react package (wevm#4262)

* Add experimental actions export to react package

* chore: add vue entrypoint

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: fix exports

* chore: version packages (wevm#4263)

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

* docs: fix typos (wevm#4264)

* fix typo

* fix typos

* fix typos

* fix typo

* fix typo

* feat: update the 'metamask-sdk' package to version '0.28.4' (wevm#4271)

* feat: update metamask-sdk package to version 0.28.4

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* fix: allow detection of hardhat when using bun (wevm#4224)

* fix: allow detection of hardhat when using bun

- added the user agent check now that bun supports it when finding the package manager
- since bun does not have an ls command similar to the others, we check all installed packaged (--all is needed in monorepos) and check it it contains hardhat

* chore: tweaks

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* Fix the switchChain error encountered when using the "metaMask" connector (wevm#4227)

* fix: metaMask switchChain

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: version packages (wevm#4278)

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

* chore: remove duplicate extend in getWalletClient (wevm#4286)

* chore: remove duplicate extend

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: version packages (wevm#4289)

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

* fix: guard against missing provider.on

* chore: version packages (wevm#4294)

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

* fix: prevent component re-rendering with the same account snapshot (wevm#4229)

* fix: prevent component re-rendering with the same account snapshot

* test: check component re-rendering caused by useSyncExternalStoreWithTracked

* test: update

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* test: boost coverage

* chore: version packages (wevm#4299)

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

* Fix race condition in injected.ts (wevm#4207)

* Fix race condition in injected.ts

It can hangs if "once" catches an event with unexpected chainId

* chore: tweaks

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: version packages (wevm#4300)

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

* chore: bump dev deps (wevm#4302)

* chore: bump dev deps

* chore: bump vitest

* chore: format

* chore: bump

* chore: tweaks

---------

Co-authored-by: tmm <tmm@users.noreply.github.com>

* test: up

* test: cov

* chore: format

* test: skip

* chore: bump deps

* chore: snaps

* chore: fix script

* chore: version packages (wevm#4315)

* docs: tweaks

* feat: bump mm sdk (wevm#4337)

* feat: update metamask sdk and implement connectSign

* feat: cleanup

* feat: cleanup

* sdk 0.29.1

* feat: cleanup

* feat: url default

* feat: prevent breaking changes

* feat: cleanup

* chore: tweaks

* chore: tweaks

* chore: format

* chore: changeset

---------

Co-authored-by: abretonc7s <arthur.breton@consensys.net>
Co-authored-by: tmm <tmm@users.noreply.github.com>

* test: snaps

* chore: version packages (wevm#4342)

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

* chore: bump mm (wevm#4345)

* chore: bump mm sdk

* chore: changeset

* chore: version packages (wevm#4346)

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

* fix: uniswap wallet trying to make itself look like MetaMask (wevm#4336)

* fix: uniswap wallet trying to make itself look like MetaMask

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* test: mock reconnect

* chore: format

* chore: viem tweaks

* chore: up viem

* chore: up snaps

* fix: MetaMask disconnecting during the connection process. (wevm#4347)

* fix: disconnection during the connection process.

* fix: disconnection during the connection process.

* chore: tweaks

* chore: changeset

* chore: comment

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: add codeowners

* feat: bump metamask 0.30.0 (wevm#4350)

* feat: bump metamask 0.30.0

* feat: add changeset

* Update .changeset/tasty-clouds-kiss.md

Co-authored-by: awkweb <tom@meagher.co>

* Update .changeset/tasty-clouds-kiss.md

---------

Co-authored-by: awkweb <tom@meagher.co>

* chore: version packages (wevm#4348)

* feat(connectors): filter mipd by connector rdns (wevm#4343)

* feat(connectors): filter mipd by connector rdns

* feat: add connect listeners

* test: boost coverage

* test(core): eip 6963 announce

* test: tweaks

* chore: format

* chore: changeset

* feat: works with ssr flag

* chore: changeset

* chore: tweaks

---------

Co-authored-by: tmm <tmm@users.noreply.github.com>

* chore: skip

* chore: version packages (wevm#4354)

* chore: version packages

* chore: fix version

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: up version

* chore(core): bump internal deps (wevm#4349)

chore: bump deps

* feat(core): mock defaultConnected

* chore: version packages (wevm#4355)

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

* test: tweak

* chore: clean up deps (wevm#4357)

* chore: clean up deps

* chore: types

* chore: changeset

* chore: bump deps

* chore: version packages (wevm#4359)

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

* chore: boost coverage

* ci: protected push

* feat: export type

* chore: version packages (wevm#4361)

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

* fix: MetaMask readonlyRPCMap type (wevm#4362)

* fix: MetaMask readonlyRPCMap type

* chore: tweaks

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: version packages (wevm#4363)

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

* test: up

* chore: add sponsor

* docs: bump deps

* chore(cli): bump chokidar (wevm#4370)

* chore: bump chokidar

* chore: fmt

* chore: changeset

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: version packages (wevm#4378)

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

* chore: add sponsor

* fix: Safe connector not working in some Vite apps (wevm#4371)

* Fix Safe connector not working in some Vite apps

* Fix Safe connector not working in some Vite apps

* chore: tweaks

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* fix: waitForTransactionReceipt proper eth_call usage (wevm#4339)

* fix: waitForTransactionReceipt proper eth_call usage

* chore: tweaks

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* docs(cli/create-wagmi): template selection (wevm#4356)

* docs(cli/create-wagmi): template selection

Explain how to select the template when you don't specify `--template` or `-t`, and what each option means.

* docs: up

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* chore: snaps

* fix: wevm#4353

* docs: close wevm#4344

* chore: snaps

* chore: version packages (wevm#4380)

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

* docs: rpc

* fix: wevm#4310

* fix: wevm#4367

* chore: version packages (wevm#4383)

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

* chore: pnpm catalogs

* chore: tweaks

* chore: bump dependencies (wevm#4385)

* chore: bump dependencies

* Update .changeset/four-pens-collect.md

---------

Co-authored-by: Jake <=>
Co-authored-by: awkweb <tom@meagher.co>

* chore: fix types

* chore: version packages (wevm#4387)

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

* chore: snaps

* fix: injected connector throws error after switching to a chain that was just added via `'wallet_addEthereumChain'`. (wevm#4311)

* fix: injected connector throwing error after switching to a chain that was just added via `'wallet_addEthereumChain'`.

* chore: changeset

* chore: tweaks

---------

Co-authored-by: Tom Meagher <tom@meagher.co>

* test: tweaks

* chore: version packages (wevm#4388)

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

---------

Co-authored-by: Tom Meagher <tom@meagher.co>
Co-authored-by: jxom <jakemoxey@gmail.com>
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>
Co-authored-by: Vladyslav Dalechyn <vladyslav@spilnota.xyz>
Co-authored-by: Skas Merkushin <skas.merkushin@gmail.com>
Co-authored-by: Samson Adesanoye <adesanoye.samson1@gmail.com>
Co-authored-by: tmm <tmm@users.noreply.github.com>
Co-authored-by: t0rbik <90512605+t0rbik@users.noreply.github.com>
Co-authored-by: wy <48370746+AxyLm@users.noreply.github.com>
Co-authored-by: Radek Sienkiewicz <mail@velvetshark.com>
Co-authored-by: Vedant-asati <114929867+Vedant-asati@users.noreply.github.com>
Co-authored-by: tomiir <rocchitomas@gmail.com>
Co-authored-by: rich.eth <135575128+0xRichBot@users.noreply.github.com>
Co-authored-by: rich.eth <troubledealer1996@outlook.com>
Co-authored-by: abretonc7s <arthur.breton@consensys.net>
Co-authored-by: abretonc7s <abretonc7s@users.noreply.github.com>
Co-authored-by: abretonc7s <107169956+abretonc7s@users.noreply.github.com>
Co-authored-by: Łukasz Stankiewicz <stankiewicz1998@gmail.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Omri Dan <61094771+omridan159@users.noreply.github.com>
Co-authored-by: Roderik van der Veer <roderik@settlemint.com>
Co-authored-by: 闲尘 <william.g9211@gmail.com>
Co-authored-by: Kevin Ingersoll <kingersoll@gmail.com>
Co-authored-by: Weil Liao <74590513+weilliao05621@users.noreply.github.com>
Co-authored-by: Dmitry Blues <dmitri.blyus@gmail.com>
Co-authored-by: Edouard Bougon <15703023+EdouardBougon@users.noreply.github.com>
Co-authored-by: v1rtl <hi@v1rtl.site>
Co-authored-by: Ice and dust <138901341+iceanddust@users.noreply.github.com>
Co-authored-by: insomnia.exe <31802208+AndriyAntonenko@users.noreply.github.com>
Co-authored-by: Ori Pomerantz <qbzzt1@gmail.com>
Co-authored-by: cb-jake <95890768+cb-jake@users.noreply.github.com>
Co-authored-by: Eugene Chybisov <18644653+chybisov@users.noreply.github.com>
  • Loading branch information
1 parent 9505402 commit 5776fae
Show file tree
Hide file tree
Showing 241 changed files with 8,378 additions and 3,712 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@tmm @jxom

This comment has been minimized.

Copy link
@Nichebiche

Nichebiche Nov 8, 2024

Author Owner

@nichebice

This comment has been minimized.

Copy link
@Nichebiche

Nichebiche Nov 8, 2024

Author Owner

Owner @Nichebiche


/packages/connectors/src/metaMask @ecp4224 @omridan159 @abretonc7s @elefantel @BjornGunnarsson @EdouardBougon
/packages/connectors/src/safe @DaniSomoza @dasanra @mikhailxyz @yagopv
/packages/connectors/src/walletConnect @ganchoradkov @glitch-txs @ignaciosantise @tomiir
55 changes: 47 additions & 8 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- > [!IMPORTANT] -->

This comment has been minimized.

Copy link
@Nichebiche

Nichebiche Nov 8, 2024

Author Owner

This comment has been minimized.

Copy link
@Nichebiche

Nichebiche Nov 8, 2024

Author Owner

Thank you 🙏

<!-- > Wagmi is participating in Gitcoin Grants round 21. Consider <a href="https://explorer.gitcoin.co/#/round/42161/389/74">supporting the project</a>. Thank you. 🙏 -->

<br>

<p align="center">
Expand Down Expand Up @@ -70,14 +73,20 @@ Contributions to Wagmi are greatly appreciated! If you're interested in contribu

This comment has been minimized.

Copy link
@Nichebiche

Nichebiche Nov 8, 2024

Author Owner
If you find Wagmi useful or use it for work, please consider [sponsoring Wagmi](https://github.com/sponsors/wevm?metadata_campaign=gh_readme_support). Thank you 🙏

<a href="https://paradigm.xyz">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-dark.svg">
<img alt="paradigm logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-light.svg" width="auto" height="70">
</picture>
</a>

<br>
<p>
<a href="https://paradigm.xyz">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-dark.svg">
<img alt="paradigm logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-light.svg" width="auto" height="70">
</picture>
</a>
<a href="https://ithaca.xyz">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/ithaca-dark.svg">
<img alt="ithaca logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/ithaca-light.svg" width="auto" height="70">
</picture>
</a>
</p>

<p>
<a href="https://twitter.com/family">
Expand Down Expand Up @@ -194,6 +203,36 @@ If you find Wagmi useful or use it for work, please consider [sponsoring Wagmi](
<img alt="brave logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/brave-light.svg" width="auto" height="50">
</picture>
</a>
<a href="https://linea.build">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/linea-dark.svg">
<img alt="linea logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/linea-light.svg" width="auto" height="50">
</picture>
</a>
<a href="https://uniswap.org">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/uniswap-dark.svg">
<img alt="uniswap logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/uniswap-light.svg" width="auto" height="50">
</picture>
</a>
<a href="https://biconomy.io">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/b0276d897be98a4c94ad1d1c72ce99a1020eeb58/content/sponsors/biconomy-dark.svg">
<img alt="biconomy logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/biconomy-light.svg" width="auto" height="50">
</picture>
</a>
<a href="https://thirdweb.com">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/thirdweb-dark.svg">
<img alt="thirdweb logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/thirdweb-light.svg" width="auto" height="50">
</picture>
</a>
<a href="https://uxuy.com">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/uxuy-dark.svg">
<img alt="uxuy logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/uxuy-light.svg" width="auto" height="50">
</picture>
</a>
</p>

[Sponsor Wagmi](https://github.com/sponsors/wevm?metadata_campaign=gh_readme_support_bottom)
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_dispatch:

jobs:
lint:
name: Lint
check:
name: Check
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -14,15 +14,17 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PTOKEN }}

- name: Install dependencies
uses: wevm/actions/.github/actions/pnpm@main

- name: Lint repo
run: pnpm lint:repo
- name: Check repo
run: pnpm check:repo

- name: Lint code
run: pnpm lint
- name: Check code
run: pnpm check

- name: Update package versions
run: pnpm version:update
Expand All @@ -37,7 +39,7 @@ jobs:

build:
name: Build
needs: lint
needs: check
runs-on: ubuntu-latest
timeout-minutes: 5

Expand All @@ -59,13 +61,13 @@ jobs:

types:
name: Types
needs: lint
needs: check
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
typescript-version: ['5.0.4', '5.1.6', '5.2.2', '5.3.3', '5.4.5', '5.5.2']
viem-version: ['2.17.0', 'latest']
viem-version: ['2.21.28', 'latest']

steps:
- name: Clone repository
Expand All @@ -80,9 +82,9 @@ jobs:
run: pnpm preconstruct

- name: Check types
run: pnpm typecheck
run: pnpm check:types

# Redundant with `pnpm typecheck`
# Redundant with `pnpm check:types`
# If Vitest adds special features in the future, e.g. type coverage, can add this back!
# - name: Test types
# run: pnpm test:typecheck
Expand Down
14 changes: 1 addition & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"[javascript][javascriptreact][json][typescript][typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[vue]": {
Expand Down
59 changes: 32 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
"dev:react": "pnpm --filter vite-react dev",
"dev:vue": "pnpm --filter vite-vue dev",
"docs:dev": "pnpm --filter site dev",
"check": "biome check --write",
"check:repo": "sherif -i viem",
"check:types": "pnpm run --r --parallel check:types && tsc --noEmit",
"check:unused": "pnpm clean && knip",
"format": "biome format --write",
"lint": "biome check --write",
"lint:repo": "sherif",
"lint:unused": "pnpm clean && knip",
"postinstall": "pnpm preconstruct",
"preconstruct": "bun scripts/preconstruct.ts",
"preinstall": "pnpx only-allow pnpm",
"prepare": "pnpm simple-git-hooks",
"test": "vitest",
"test:build": "pnpm run --r --parallel test:build",
"test:build": "bun scripts/generateProxyPackages.ts && pnpm run --r --parallel test:build",
"test:cli": "vitest --project @wagmi/cli",
"test:core": "vitest --project @wagmi/core",
"test:create-wagmi": "vitest --project create-wagmi",
Expand All @@ -36,32 +37,31 @@
"test:update": "vitest --update",
"test:ui": "vitest --ui",
"test:vue": "vitest --project @wagmi/vue",
"typecheck": "pnpm run --r --parallel typecheck && tsc --noEmit",
"version:update": "bun scripts/updateVersion.ts",
"version:update:viem": "bun scripts/updateViemVersion.ts"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@biomejs/biome": "^1.8.0",
"@arethetypeswrong/cli": "^0.16.4",
"@biomejs/biome": "^1.9.4",
"@changesets/changelog-github": "0.4.6",
"@changesets/cli": "^2.27.1",
"@types/bun": "^1.1.1",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@changesets/cli": "^2.27.8",
"@types/bun": "^1.1.10",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/ui": "^2.1.1",
"@wagmi/test": "workspace:*",
"bun": "^1.1.7",
"glob": "^10.3.12",
"happy-dom": "^12.2.1",
"knip": "^5.13.0",
"prool": "^0.0.11",
"publint": "^0.2.7",
"sherif": "^0.8.4",
"bun": "^1.1.29",
"glob": "^10.4.5",
"happy-dom": "^15.7.4",
"knip": "^5.30.6",
"prool": "^0.0.16",
"publint": "^0.2.11",
"sherif": "^1.0.0",
"simple-git-hooks": "^2.11.1",
"typescript": "5.5.2",
"viem": "2.17.0",
"vitest": "^1.6.0"
"typescript": "5.5.4",
"viem": "2.21.28",
"vitest": "^2.1.1"
},
"packageManager": "pnpm@9.4.0",
"packageManager": "pnpm@9.11.0",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Expand All @@ -76,7 +76,7 @@
"node": "22.x"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint"
"pre-commit": "pnpm check"
},
"knip": {
"ignore": ["**/templates/**", "**/hardhat.config.js"],
Expand All @@ -99,8 +99,7 @@
"ignore": ["test/{constants,setup,utils}.ts"]
},
"packages/connectors": {
"entry": "src/exports/index.ts!",
"ignoreDependencies": ["@walletconnect/modal"]
"entry": "src/exports/index.ts!"
},
"packages/core": {
"entry": "src/exports/{actions,chains,codegen,experimental,index,internal,query}.ts!",
Expand All @@ -111,7 +110,10 @@
"entry": "src/cli.ts!"
},
"packages/react": {
"entry": "src/exports/{actions,chains,codegen,connectors,experimental,index,query}.ts!",
"entry": [
"src/exports/{actions,chains,codegen,connectors,experimental,index,query}.ts!",
"src/exports/actions/experimental.ts!"
],
"ignore": ["test/setup.ts"]
},
"packages/test": {
Expand All @@ -121,7 +123,10 @@
]
},
"packages/vue": {
"entry": "src/exports/{actions,chains,connectors,index,nuxt,query}.ts!",
"entry": [
"src/exports/{actions,chains,connectors,index,nuxt,query}.ts!",
"src/exports/actions/experimental.ts!"
],
"ignore": ["src/nuxt/runtime/*", "test/setup.ts"],
"ignoreDependencies": ["nuxt"]
},
Expand Down
12 changes: 12 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @wagmi/cli

## 2.1.17

### Patch Changes

- [#4370](https://github.com/wevm/wagmi/pull/4370) [`cb58b1ea3ad40e77210f24eb598f9d2306db998c`](https://github.com/wevm/wagmi/commit/cb58b1ea3ad40e77210f24eb598f9d2306db998c) Thanks [@talentlessguy](https://github.com/talentlessguy)! - Bumped internal dependencies.

## 2.1.16

### Patch Changes

- [#4224](https://github.com/wevm/wagmi/pull/4224) [`b0eb89c2a0781bb3434996fa53ee7ceb3bb44db9`](https://github.com/wevm/wagmi/commit/b0eb89c2a0781bb3434996fa53ee7ceb3bb44db9) Thanks [@roderik](https://github.com/roderik)! - Fixed package detection for Bun.

## 2.1.15

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wagmi/cli",
"description": "Manage and generate code from Ethereum ABIs",
"version": "2.1.15",
"version": "2.1.17",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -11,10 +11,10 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo config plugins",
"dev": "bun src/cli.ts",
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm",
"typecheck": "tsc --noEmit"
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm"
},
"files": [
"dist/**",
Expand Down Expand Up @@ -67,7 +67,7 @@
"bundle-require": "^4.0.2",
"cac": "^6.7.14",
"change-case": "^5.4.4",
"chokidar": "^3.5.3",
"chokidar": "4.0.1",
"dedent": "^0.7.0",
"dotenv": "^16.3.1",
"dotenv-expand": "^10.0.0",
Expand All @@ -89,7 +89,7 @@
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.12.10",
"fixturez": "^1.1.0",
"msw": "^2.2.14"
"msw": "^2.4.9"
},
"contributors": ["awkweb.eth <t@wevm.dev>", "jxom.eth <j@wevm.dev>"],
"funding": "https://github.com/sponsors/wevm",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/commands/generate.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Abi } from 'abitype'
import { Abi as AbiSchema } from 'abitype/zod'
import { camelCase } from 'change-case'
import type { FSWatcher, WatchOptions } from 'chokidar'
import type { ChokidarOptions, FSWatcher } from 'chokidar'
import { watch } from 'chokidar'
import { default as dedent } from 'dedent'
import { default as fs } from 'fs-extra'
Expand Down Expand Up @@ -53,7 +53,7 @@ export async function generate(options: Generate = {}) {
type Watcher = FSWatcher & { config?: Watch }
const watchers: Watcher[] = []
const watchWriteDelay = 100
const watchOptions: WatchOptions = {
const watchOptions: ChokidarOptions = {
atomic: true,
// awaitWriteFinish: true,
ignoreInitial: true,
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/exports/plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ test('exports', () => {
"etherscan",
"fetch",
"foundry",
"foundryDefaultExcludes",
"hardhat",
"hardhatDefaultExcludes",
"react",
"sourcify",
]
Expand Down
12 changes: 10 additions & 2 deletions packages/cli/src/exports/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ export { etherscan, type EtherscanConfig } from '../plugins/etherscan.js'

export { fetch, type FetchConfig } from '../plugins/fetch.js'

export { foundry, type FoundryConfig } from '../plugins/foundry.js'
export {
foundry,
foundryDefaultExcludes,
type FoundryConfig,
} from '../plugins/foundry.js'

export { hardhat, type HardhatConfig } from '../plugins/hardhat.js'
export {
hardhat,
hardhatDefaultExcludes,
type HardhatConfig,
} from '../plugins/hardhat.js'

export { react, type ReactConfig } from '../plugins/react.js'

Expand Down
Loading

0 comments on commit 5776fae

Please sign in to comment.