Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Sep 24, 2025

Explanation

Update @metamask/eth-json-rpc-middleware from v17 to v18. The breaking changes relate to dropping support for the legacy middleware function that pre-dates the creation of the RPC service, and some minor type changes regarding that RPC service parameter.

Changelog: https://github.com/MetaMask/eth-json-rpc-middleware/blob/main/CHANGELOG.md#1800

References

N/A

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Upgrade @metamask/eth-json-rpc-middleware to v18 in network-controller and remove it from eip-5792-middleware.

  • Dependencies:
    • packages/network-controller: Bump @metamask/eth-json-rpc-middleware from ^17.0.1 to ^18.0.0; update changelog accordingly.
    • packages/eip-5792-middleware: Remove dependency on @metamask/eth-json-rpc-middleware; update changelog accordingly.

Written by Cursor Bugbot for commit 6055771. This will update automatically on new commits. Configure here.

@Gudahtt Gudahtt force-pushed the update-eth-json-rpc-middleware branch from 59e276c to ba0480e Compare September 24, 2025 17:25
@socket-security
Copy link

socket-security bot commented Sep 24, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​metamask/​eth-json-rpc-middleware@​18.0.0991007596100

View full report

@Gudahtt Gudahtt force-pushed the update-eth-json-rpc-middleware branch from ba0480e to 28114e5 Compare September 24, 2025 17:33
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
},
"dependencies": {
"@metamask/eth-json-rpc-middleware": "^17.0.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused since #6477

@Gudahtt Gudahtt marked this pull request as ready for review September 24, 2025 17:37
@Gudahtt Gudahtt requested review from a team as code owners September 24, 2025 17:37
jiexi
jiexi previously approved these changes Sep 24, 2025
ffmcgee725
ffmcgee725 previously approved these changes Sep 25, 2025
@Gudahtt Gudahtt dismissed stale reviews from ffmcgee725 and jiexi via 76f7da8 October 3, 2025 15:09
@Gudahtt Gudahtt force-pushed the update-eth-json-rpc-middleware branch from 3fe373b to 76f7da8 Compare October 3, 2025 15:09
@Gudahtt
Copy link
Member Author

Gudahtt commented Oct 3, 2025

Rebased to resolve conflicts in changelog

@Gudahtt Gudahtt enabled auto-merge (squash) October 3, 2025 15:09
@Gudahtt Gudahtt force-pushed the update-eth-json-rpc-middleware branch from 76f7da8 to a235340 Compare October 3, 2025 18:07
Update `@metamask/eth-json-rpc-middleware` from v17 to v18. The
breaking changes relate to dropping support for the legacy middleware
function that pre-dates the creation of the RPC service, and some minor
type changes regarding that RPC service parameter.

Changelog: https://github.com/MetaMask/eth-json-rpc-middleware/blob/main/CHANGELOG.md#1800

Additionally, this dependency was removed completely from `@metamask/eip-5792-middleware`
because it was unused.
@Gudahtt Gudahtt force-pushed the update-eth-json-rpc-middleware branch from a235340 to 6055771 Compare October 3, 2025 18:11
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Gudahtt Gudahtt merged commit 7fa0a8a into main Oct 3, 2025
239 checks passed
@Gudahtt Gudahtt deleted the update-eth-json-rpc-middleware branch October 3, 2025 18:24
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.

4 participants