refactor(connectors): upgrade @metamask/connect-evm#5070
Conversation
🦋 Changeset detectedLatest commit: 86dddd9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
b087cb4 to
d937b62
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@wagmi/cli
@wagmi/connectors
@wagmi/core
create-wagmi
wagmi
@wagmi/solid
@wagmi/vue
commit: |
|
Size Change: 0 B Total Size: 1.18 MB ℹ️ View Unchanged
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5070 +/- ##
==========================================
+ Coverage 88.89% 88.94% +0.04%
==========================================
Files 296 296
Lines 2747 2749 +2
Branches 797 797
==========================================
+ Hits 2442 2445 +3
+ Misses 113 112 -1
Partials 192 192 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| signature: signResponse, | ||
| }) | ||
| else if (connectWithResponse) | ||
| provider.emit('connectWith', { | ||
| accounts, | ||
| chainId: numberToHex(currentChainId), | ||
| connectWithResponse, | ||
| result: connectWithResponse, |
There was a problem hiding this comment.
this technically doesn't have to be breaking at the Wagmi connector API if we keep the original event property names intact
There was a problem hiding this comment.
Good point. I suppose there's not a real need to be breaking here on the WAGMI layer
I would support preserving the original event property names
Summary
@metamask/connect-evmto1.0.0(catalog +@wagmi/connectorspeer range).connectAndSign()now resolves to{ accounts, chainId, signature }(was a raw signature string).connectWith()now resolves to{ accounts, chainId, result }(was a raw result)..signature/.resultbefore emitting.connectAndSignandconnectWithprovider event payloads continue to expose the originalsignResponseandconnectWithResponsekeys — no breaking change for subscribers.Test plan
pnpm --filter @wagmi/connectors check:typespnpm vitest run --project connectors(7/7 passing)@metamask/connect-evm@1.0.0(connect, connectAndSign, connectWith, disconnect, chain switch)