Skip to content

chore(deps): allow nested @wagmi/core peer for reown adapter#12305

Merged
kaladinlight merged 2 commits intodevelopfrom
chore/wagmi-core-peer-allowed-version
Apr 28, 2026
Merged

chore(deps): allow nested @wagmi/core peer for reown adapter#12305
kaladinlight merged 2 commits intodevelopfrom
chore/wagmi-core-peer-allowed-version

Conversation

@kaladinlight
Copy link
Copy Markdown
Contributor

Description

pnpm i was failing with ERR_PNPM_PEER_DEP_ISSUES:

```
packages/swap-widget
└─┬ @reown/appkit-adapter-wagmi 1.8.18
└─┬ @wagmi/connectors 7.2.1
└── ✕ unmet peer @wagmi/core@3.4.0: found 2.22.1
```

@reown/appkit-adapter-wagmi ships with an old @wagmi/connectors@7.2.1 that peer-requires @wagmi/core@3.4.0. pnpm already nests @wagmi/core@3.4.0 under the adapter (verified in node_modules/@reown/appkit-adapter-wagmi/node_modules/@wagmi/core), alongside the top-level @wagmi/core@2.22.1 used by the rest of the workspace. With strictPeerDependencies: true, pnpm only checks the visible (top-level) version and refuses to acknowledge the correctly-nested install.

Adding @wagmi/core: \"*\" to pnpm.peerDependencyRules.allowedVersions silences the strict check. This is not a version override — both @wagmi/core@2.22.1 and @wagmi/core@3.4.0 remain installed where their respective consumers expect them.

Verified: pnpm i now completes with no peer-dep errors.

Issue (if applicable)

closes #

Risk

Dev tooling / install only. No code changes, no runtime behavior changes. Both wagmi core versions were already being installed in the same locations before this PR — only the strict peer-check error is silenced.

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

None.

Testing

Engineering

  • pnpm i from a clean state — confirm no ERR_PNPM_PEER_DEP_ISSUES
  • pnpm dev and pnpm build — confirm wagmi/reown integrations still work in app and swap-widget

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

Screenshots (if applicable)

🤖 Generated with Claude Code

@reown/appkit-adapter-wagmi → @wagmi/connectors@7.2.1 peer-needs
@wagmi/core@3.4.0, which pnpm correctly nests under the adapter
alongside the workspace's top-level @wagmi/core@2.22.1. With
strictPeerDependencies: true, pnpm refuses to acknowledge the
nested install and blocks pnpm i. Add @wagmi/core to allowedVersions
to silence the strict check (no version override — both versions
remain installed where their consumers expect them).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kaladinlight kaladinlight requested a review from a team as a code owner April 28, 2026 17:06
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Warning

Rate limit exceeded

@kaladinlight has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 44 minutes and 20 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: db1a6be5-e064-45d9-9bee-43a58e1dc0a2

📥 Commits

Reviewing files that changed from the base of the PR and between 1406fc1 and 0abd774.

📒 Files selected for processing (1)
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/wagmi-core-peer-allowed-version

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kaladinlight kaladinlight enabled auto-merge (squash) April 28, 2026 17:07
@kaladinlight kaladinlight merged commit 9848187 into develop Apr 28, 2026
4 checks passed
@kaladinlight kaladinlight deleted the chore/wagmi-core-peer-allowed-version branch April 28, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant