Skip to content

Commit

Permalink
chore: Bump @metamask/eth-json-rpc-middleware to v15.0.0 (#28756)
Browse files Browse the repository at this point in the history
## **Description**

Bump `@metamask/eth-json-rpc-middlware` from v14.0.2 to v15.0.0. This
eliminates some older copies of libraries from our dependency tree, and
aligns the `json-rpc-engine` and `rpc-errors` versions with the rest of
our middleware stack.

This release also drops support for `eth_sign`, but that has been
removed from the extension already.

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

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/28756?quickstart=1)

## **Related issues**

N/A

## **Manual testing steps**

N/A

## **Screenshots/Recordings**

N/A

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

---------

Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
  • Loading branch information
Gudahtt and metamaskbot authored Nov 27, 2024
1 parent 080d005 commit be33175
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 86 deletions.
19 changes: 3 additions & 16 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,25 +834,12 @@
"setTimeout": true
},
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": true,
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/eth-json-rpc-middleware>klona": true,
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true,
"@metamask/eth-sig-util": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/safe-event-emitter": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/rpc-errors>fast-safe-stringify": true
"@metamask/eth-sig-util": true,
"@metamask/json-rpc-engine": true,
"@metamask/rpc-errors": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/utils": {
Expand Down
19 changes: 3 additions & 16 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,25 +834,12 @@
"setTimeout": true
},
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": true,
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/eth-json-rpc-middleware>klona": true,
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true,
"@metamask/eth-sig-util": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/safe-event-emitter": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/rpc-errors>fast-safe-stringify": true
"@metamask/eth-sig-util": true,
"@metamask/json-rpc-engine": true,
"@metamask/rpc-errors": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/utils": {
Expand Down
19 changes: 3 additions & 16 deletions lavamoat/browserify/main/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,25 +834,12 @@
"setTimeout": true
},
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": true,
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/eth-json-rpc-middleware>klona": true,
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true,
"@metamask/eth-sig-util": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/safe-event-emitter": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/rpc-errors>fast-safe-stringify": true
"@metamask/eth-sig-util": true,
"@metamask/json-rpc-engine": true,
"@metamask/rpc-errors": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/utils": {
Expand Down
19 changes: 3 additions & 16 deletions lavamoat/browserify/mmi/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -926,25 +926,12 @@
"setTimeout": true
},
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": true,
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/eth-json-rpc-middleware>klona": true,
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true,
"@metamask/eth-sig-util": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/json-rpc-engine": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": true,
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/safe-event-emitter": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/rpc-errors": {
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/utils": true,
"@metamask/rpc-errors>fast-safe-stringify": true
"@metamask/eth-sig-util": true,
"@metamask/json-rpc-engine": true,
"@metamask/rpc-errors": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/utils": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"@metamask/ens-controller": "^14.0.0",
"@metamask/ens-resolver-snap": "^0.1.2",
"@metamask/eth-json-rpc-filters": "^9.0.0",
"@metamask/eth-json-rpc-middleware": "^14.0.2",
"@metamask/eth-json-rpc-middleware": "^15.0.0",
"@metamask/eth-ledger-bridge-keyring": "^5.0.1",
"@metamask/eth-query": "^4.0.0",
"@metamask/eth-sig-util": "^7.0.1",
Expand Down
23 changes: 2 additions & 21 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5305,25 +5305,6 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-json-rpc-middleware@npm:^14.0.2":
version: 14.0.2
resolution: "@metamask/eth-json-rpc-middleware@npm:14.0.2"
dependencies:
"@metamask/eth-block-tracker": "npm:^11.0.1"
"@metamask/eth-json-rpc-provider": "npm:^4.1.1"
"@metamask/eth-sig-util": "npm:^7.0.3"
"@metamask/json-rpc-engine": "npm:^9.0.2"
"@metamask/rpc-errors": "npm:^6.3.1"
"@metamask/utils": "npm:^9.1.0"
"@types/bn.js": "npm:^5.1.5"
bn.js: "npm:^5.2.1"
klona: "npm:^2.0.6"
pify: "npm:^5.0.0"
safe-stable-stringify: "npm:^2.4.3"
checksum: 10/8094efcd23bb5a1335f7d41cfb6193e035cc30329c2989f09b65f8870178ce960a643a4818a00fc791076a51d629511190d54f3b327165ac6f966c307dc9b90d
languageName: node
linkType: hard

"@metamask/eth-json-rpc-middleware@npm:^15.0.0":
version: 15.0.0
resolution: "@metamask/eth-json-rpc-middleware@npm:15.0.0"
Expand Down Expand Up @@ -5365,7 +5346,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-json-rpc-provider@npm:^4.0.0, @metamask/eth-json-rpc-provider@npm:^4.1.0, @metamask/eth-json-rpc-provider@npm:^4.1.1, @metamask/eth-json-rpc-provider@npm:^4.1.3, @metamask/eth-json-rpc-provider@npm:^4.1.5, @metamask/eth-json-rpc-provider@npm:^4.1.6":
"@metamask/eth-json-rpc-provider@npm:^4.0.0, @metamask/eth-json-rpc-provider@npm:^4.1.0, @metamask/eth-json-rpc-provider@npm:^4.1.3, @metamask/eth-json-rpc-provider@npm:^4.1.5, @metamask/eth-json-rpc-provider@npm:^4.1.6":
version: 4.1.6
resolution: "@metamask/eth-json-rpc-provider@npm:4.1.6"
dependencies:
Expand Down Expand Up @@ -26790,7 +26771,7 @@ __metadata:
"@metamask/eslint-config-typescript": "npm:^9.0.1"
"@metamask/eslint-plugin-design-tokens": "npm:^1.1.0"
"@metamask/eth-json-rpc-filters": "npm:^9.0.0"
"@metamask/eth-json-rpc-middleware": "npm:^14.0.2"
"@metamask/eth-json-rpc-middleware": "npm:^15.0.0"
"@metamask/eth-json-rpc-provider": "npm:^4.1.6"
"@metamask/eth-ledger-bridge-keyring": "npm:^5.0.1"
"@metamask/eth-query": "npm:^4.0.0"
Expand Down

0 comments on commit be33175

Please sign in to comment.