Skip to content

Commit

Permalink
chore: Bump @metamask/eth-token-tracker from v8 to v9 (#28754)
Browse files Browse the repository at this point in the history
## **Description**

The `@metamask/eth-token-tracker` package has been bumped from v8 to v9.
The only breaking change is dropping support for older Node.js versions.
This gets rid of some older copies of dependencies, reducing bundle
size.

Changelog:
https://github.com/MetaMask/eth-token-tracker/blob/main/CHANGELOG.md#900

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/28754?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 <[email protected]>
  • Loading branch information
Gudahtt and metamaskbot authored Nov 28, 2024
1 parent efbdf3a commit a902677
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 158 deletions.
30 changes: 1 addition & 29 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@
"@metamask/controller-utils": true,
"@metamask/eth-json-rpc-provider": true,
"@metamask/eth-query": true,
"@metamask/network-controller>@metamask/eth-block-tracker": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/network-controller>@metamask/eth-json-rpc-middleware": true,
"@metamask/network-controller>@metamask/json-rpc-engine": true,
Expand All @@ -1753,34 +1753,6 @@
"uuid": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/eth-query>json-rpc-random-id": true,
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/safe-event-emitter": true,
"pify": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true
}
},
"@metamask/network-controller>@metamask/eth-json-rpc-infura": {
"globals": {
"setTimeout": true
Expand Down
30 changes: 1 addition & 29 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@
"@metamask/controller-utils": true,
"@metamask/eth-json-rpc-provider": true,
"@metamask/eth-query": true,
"@metamask/network-controller>@metamask/eth-block-tracker": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/network-controller>@metamask/eth-json-rpc-middleware": true,
"@metamask/network-controller>@metamask/json-rpc-engine": true,
Expand All @@ -1753,34 +1753,6 @@
"uuid": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/eth-query>json-rpc-random-id": true,
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/safe-event-emitter": true,
"pify": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true
}
},
"@metamask/network-controller>@metamask/eth-json-rpc-infura": {
"globals": {
"setTimeout": true
Expand Down
30 changes: 1 addition & 29 deletions lavamoat/browserify/main/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@
"@metamask/controller-utils": true,
"@metamask/eth-json-rpc-provider": true,
"@metamask/eth-query": true,
"@metamask/network-controller>@metamask/eth-block-tracker": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/network-controller>@metamask/eth-json-rpc-middleware": true,
"@metamask/network-controller>@metamask/json-rpc-engine": true,
Expand All @@ -1753,34 +1753,6 @@
"uuid": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/eth-query>json-rpc-random-id": true,
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/safe-event-emitter": true,
"pify": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true
}
},
"@metamask/network-controller>@metamask/eth-json-rpc-infura": {
"globals": {
"setTimeout": true
Expand Down
30 changes: 1 addition & 29 deletions lavamoat/browserify/mmi/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@
"@metamask/controller-utils": true,
"@metamask/eth-json-rpc-provider": true,
"@metamask/eth-query": true,
"@metamask/network-controller>@metamask/eth-block-tracker": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/network-controller>@metamask/eth-json-rpc-middleware": true,
"@metamask/network-controller>@metamask/json-rpc-engine": true,
Expand All @@ -1845,34 +1845,6 @@
"uuid": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/eth-query>json-rpc-random-id": true,
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/safe-event-emitter": true,
"pify": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"@noble/hashes": true,
"browserify>buffer": true,
"nock>debug": true,
"semver": true
}
},
"@metamask/network-controller>@metamask/eth-json-rpc-infura": {
"globals": {
"setTimeout": true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"@metamask/eth-query": "^4.0.0",
"@metamask/eth-sig-util": "^7.0.1",
"@metamask/eth-snap-keyring": "^5.0.1",
"@metamask/eth-token-tracker": "^8.0.0",
"@metamask/eth-token-tracker": "^9.0.0",
"@metamask/eth-trezor-keyring": "^3.1.3",
"@metamask/etherscan-link": "^3.0.0",
"@metamask/ethjs": "^0.6.0",
Expand Down
47 changes: 6 additions & 41 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5199,19 +5199,6 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-block-tracker@npm:^9.0.2":
version: 9.0.3
resolution: "@metamask/eth-block-tracker@npm:9.0.3"
dependencies:
"@metamask/eth-json-rpc-provider": "npm:^3.0.2"
"@metamask/safe-event-emitter": "npm:^3.0.0"
"@metamask/utils": "npm:^8.1.0"
json-rpc-random-id: "npm:^1.0.1"
pify: "npm:^5.0.0"
checksum: 10/f49bb158b2c9669e91813a1f34948a6c2a2d1f8507ea0b1afae9a003a4d276d892b5cde4c183f970fcec32f253a14f1abf39b6411beabeb113eeed75cd7e29b8
languageName: node
linkType: hard

"@metamask/eth-hd-keyring@npm:^7.0.4":
version: 7.0.4
resolution: "@metamask/eth-hd-keyring@npm:7.0.4"
Expand Down Expand Up @@ -5312,17 +5299,6 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-json-rpc-provider@npm:^3.0.2":
version: 3.0.2
resolution: "@metamask/eth-json-rpc-provider@npm:3.0.2"
dependencies:
"@metamask/json-rpc-engine": "npm:^8.0.2"
"@metamask/safe-event-emitter": "npm:^3.0.0"
"@metamask/utils": "npm:^8.3.0"
checksum: 10/63778defd3055633cbf0aed2d6fd0f8a1d866908be7b16b516fdb26ae6dcd34b2aefdfed80828c2af105a30ec3c16d7d0894bc6a73e2661515bcad6b6b6be4e2
languageName: node
linkType: hard

"@metamask/eth-json-rpc-provider@npm:^4.0.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"
Expand Down Expand Up @@ -5420,11 +5396,11 @@ __metadata:
languageName: node
linkType: hard

"@metamask/eth-token-tracker@npm:^8.0.0":
version: 8.0.0
resolution: "@metamask/eth-token-tracker@npm:8.0.0"
"@metamask/eth-token-tracker@npm:^9.0.0":
version: 9.0.0
resolution: "@metamask/eth-token-tracker@npm:9.0.0"
dependencies:
"@metamask/eth-block-tracker": "npm:^9.0.2"
"@metamask/eth-block-tracker": "npm:^10.0.0"
"@metamask/ethjs-contract": "npm:^0.4.1"
"@metamask/ethjs-query": "npm:^0.7.1"
"@metamask/safe-event-emitter": "npm:^3.0.0"
Expand All @@ -5433,7 +5409,7 @@ __metadata:
human-standard-token-abi: "npm:^2.0.0"
peerDependencies:
"@babel/runtime": ^7.21.0
checksum: 10/036540abaf13cdd5a0037d4f8cb94076b96c1c9b7de432918f2b6cb07e45abd79dff2d50313e870c711f3f408359be6329ba90f29b3ecba74577a9b913fd3e2a
checksum: 10/5cf3afefe435b708e2f0e624e5920b24d8b2271c8406580623096049b2ebc314895cafefa51714e757c84064ae02cea015f9fbcf455804893a4b36bb3ff19289
languageName: node
linkType: hard

Expand Down Expand Up @@ -5636,17 +5612,6 @@ __metadata:
languageName: node
linkType: hard

"@metamask/json-rpc-engine@npm:^8.0.2":
version: 8.0.2
resolution: "@metamask/json-rpc-engine@npm:8.0.2"
dependencies:
"@metamask/rpc-errors": "npm:^6.2.1"
"@metamask/safe-event-emitter": "npm:^3.0.0"
"@metamask/utils": "npm:^8.3.0"
checksum: 10/f088f4b648b9b55875b56e8237853e7282f13302a9db6a1f9bba06314dfd6cd0a23b3d27f8fde05a157b97ebb03b67bc2699ba455c99553dfb2ecccd73ab3474
languageName: node
linkType: hard

"@metamask/json-rpc-engine@npm:^9.0.0, @metamask/json-rpc-engine@npm:^9.0.2, @metamask/json-rpc-engine@npm:^9.0.3":
version: 9.0.3
resolution: "@metamask/json-rpc-engine@npm:9.0.3"
Expand Down Expand Up @@ -26551,7 +26516,7 @@ __metadata:
"@metamask/eth-query": "npm:^4.0.0"
"@metamask/eth-sig-util": "npm:^7.0.1"
"@metamask/eth-snap-keyring": "npm:^5.0.1"
"@metamask/eth-token-tracker": "npm:^8.0.0"
"@metamask/eth-token-tracker": "npm:^9.0.0"
"@metamask/eth-trezor-keyring": "npm:^3.1.3"
"@metamask/etherscan-link": "npm:^3.0.0"
"@metamask/ethjs": "npm:^0.6.0"
Expand Down

0 comments on commit a902677

Please sign in to comment.