Skip to content

Commit

Permalink
chore: Bump @metamask/utils (#4831)
Browse files Browse the repository at this point in the history
## Explanation

Bump `metamask/utils` to `10.0.0` and `metamask/rpc-errors` to `7.0.1`
in an attempt to unblock usage of latest utils in `snaps`.

## Changelog

<!--
If you're making any consumer-facing changes, list those changes here as
if you were updating a changelog, using the template below as a guide.

(CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
FIXED. For security-related issues, follow the Security Advisory
process.)

Please take care to name the exact pieces of the API you've added or
changed (e.g. types, interfaces, functions, or methods).

If there are any breaking changes, make sure to offer a solution for
consumers to follow once they upgrade to the changes.

Finally, if you're only making changes to development scripts or tests,
you may replace the template below with "None".
-->

Omitted.

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
  • Loading branch information
FrederikBolding authored Oct 24, 2024
1 parent ca28cf7 commit 35b900b
Show file tree
Hide file tree
Showing 32 changed files with 103 additions and 86 deletions.
2 changes: 1 addition & 1 deletion examples/example-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/utils": "^9.1.0"
"@metamask/utils": "^10.0.0"
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@metamask/eth-block-tracker": "^11.0.2",
"@metamask/eth-json-rpc-provider": "^4.1.5",
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"@ts-bridge/cli": "^0.5.1",
"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.191",
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@metamask/keyring-api": "^8.1.3",
"@metamask/snaps-sdk": "^6.5.0",
"@metamask/snaps-utils": "^8.1.1",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"deepmerge": "^4.2.2",
"ethereum-cryptography": "^2.1.2",
"immer": "^9.0.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts-controller/src/AccountsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export class AccountsController extends BaseController<
};
// Do not remove this comment - This error is flaky: Comment out or restore the `ts-expect-error` directive below as needed.
// See: https://github.com/MetaMask/utils/issues/168
// // @ts-expect-error Known issue - `Json` causes recursive error in immer `Draft`/`WritableDraft` types
// @ts-expect-error Known issue - `Json` causes recursive error in immer `Draft`/`WritableDraft` types
currentState.internalAccounts.accounts[accountId] = internalAccount;

if (metadata.name) {
Expand Down
2 changes: 1 addition & 1 deletion packages/address-book-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/utils": "^9.1.0"
"@metamask/utils": "^10.0.0"
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/approval-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
},
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/utils": "^10.0.0",
"nanoid": "^3.1.31"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/assets-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"@metamask/eth-query": "^4.0.0",
"@metamask/metamask-eth-abis": "^3.1.1",
"@metamask/polling-controller": "^11.0.0",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/utils": "^10.0.0",
"@types/bn.js": "^5.1.5",
"@types/uuid": "^8.3.0",
"async-mutex": "^0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/base-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
},
"dependencies": {
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"immer": "^9.0.6"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/build-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
},
"dependencies": {
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"@types/eslint": "^8.44.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/chain-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@metamask/snaps-controllers": "^9.7.0",
"@metamask/snaps-sdk": "^6.5.0",
"@metamask/snaps-utils": "^8.1.1",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"uuid": "^8.3.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/controller-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@ethereumjs/util": "^8.1.0",
"@metamask/eth-query": "^4.0.0",
"@metamask/ethjs-unit": "^0.3.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"@spruceid/siwe-parser": "2.1.0",
"@types/bn.js": "^5.1.5",
"bn.js": "^5.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ens-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@ethersproject/providers": "^5.7.0",
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"punycode": "^2.1.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/eth-json-rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
},
"dependencies": {
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/safe-event-emitter": "^3.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"uuid": "^8.3.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gas-fee-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@metamask/eth-query": "^4.0.0",
"@metamask/ethjs-unit": "^0.3.0",
"@metamask/polling-controller": "^11.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"@types/bn.js": "^5.1.5",
"@types/uuid": "^8.3.0",
"bn.js": "^5.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/json-rpc-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
},
"dependencies": {
"@metamask/rpc-errors": "^7.0.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/safe-event-emitter": "^3.0.0",
"@metamask/utils": "^9.1.0"
"@metamask/utils": "^10.0.0"
},
"devDependencies": {
"@lavamoat/allow-scripts": "^3.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/json-rpc-middleware-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/safe-event-emitter": "^3.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"readable-stream": "^3.6.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/keyring-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@metamask/eth-simple-keyring": "^6.0.5",
"@metamask/keyring-api": "^8.1.3",
"@metamask/message-manager": "^11.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"async-mutex": "^0.5.0",
"ethereumjs-wallet": "^1.0.1",
"immer": "^9.0.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/message-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/eth-sig-util": "^8.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"@types/uuid": "^8.3.0",
"jsonschema": "^1.2.4",
"uuid": "^8.3.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/name-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"async-mutex": "^0.5.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/network-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
"@metamask/eth-json-rpc-provider": "^4.1.5",
"@metamask/eth-query": "^4.0.0",
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/swappable-obj-proxy": "^2.2.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"async-mutex": "^0.5.0",
"immer": "^9.0.6",
"loglevel": "^1.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/notification-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"nanoid": "^3.1.31"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/notification-services-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"@contentful/rich-text-html-renderer": "^16.5.2",
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"bignumber.js": "^9.1.2",
"firebase": "^10.11.0",
"loglevel": "^1.8.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/permission-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/utils": "^10.0.0",
"@types/deep-freeze-strict": "^1.1.0",
"deep-freeze-strict": "^1.1.1",
"immer": "^9.0.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/permission-log-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/utils": "^9.1.0"
"@metamask/utils": "^10.0.0"
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/polling-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"@types/uuid": "^8.3.0",
"fast-json-stable-stringify": "^2.1.0",
"uuid": "^8.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/queued-request-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/swappable-obj-proxy": "^2.2.0",
"@metamask/utils": "^9.1.0"
"@metamask/utils": "^10.0.0"
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/rate-limit-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
},
"dependencies": {
"@metamask/base-controller": "^7.0.1",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/utils": "^9.1.0"
"@metamask/rpc-errors": "^7.0.1",
"@metamask/utils": "^10.0.0"
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/selected-network-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@metamask/base-controller": "^7.0.1",
"@metamask/json-rpc-engine": "^10.0.0",
"@metamask/swappable-obj-proxy": "^2.2.0",
"@metamask/utils": "^9.1.0"
"@metamask/utils": "^10.0.0"
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/signature-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@metamask/base-controller": "^7.0.1",
"@metamask/controller-utils": "^11.4.0",
"@metamask/eth-sig-util": "^8.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"jsonschema": "^1.2.4",
"lodash": "^4.17.21",
"uuid": "^8.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/transaction-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"@metamask/eth-query": "^4.0.0",
"@metamask/metamask-eth-abis": "^3.1.1",
"@metamask/nonce-tracker": "^6.0.0",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/utils": "^9.1.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/utils": "^10.0.0",
"async-mutex": "^0.5.0",
"bn.js": "^5.2.1",
"eth-method-registry": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/user-operation-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"@metamask/controller-utils": "^11.4.0",
"@metamask/eth-query": "^4.0.0",
"@metamask/polling-controller": "^11.0.0",
"@metamask/rpc-errors": "^7.0.0",
"@metamask/rpc-errors": "^7.0.1",
"@metamask/superstruct": "^3.1.0",
"@metamask/utils": "^9.1.0",
"@metamask/utils": "^10.0.0",
"bn.js": "^5.2.1",
"immer": "^9.0.6",
"lodash": "^4.17.21",
Expand Down
Loading

0 comments on commit 35b900b

Please sign in to comment.