Skip to content

Commit

Permalink
chore(deps): Bump @metamask/utils to ^9.0.0, `@metamask/rpc-error…
Browse files Browse the repository at this point in the history
…s` to `^6.3.1` (#4516)

## Explanation



## 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 highlighted breaking changes using the "BREAKING" category
above as appropriate
  • Loading branch information
MajorLift authored Jul 11, 2024
1 parent 973acd8 commit 575e027
Show file tree
Hide file tree
Showing 31 changed files with 110 additions and 85 deletions.
4 changes: 2 additions & 2 deletions jest.config.scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ module.exports = {
},

// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
// This ensures that Babel can resolve ESM exports correctly.
// This ensures that Babel can resolve subpath exports correctly.
moduleNameMapper: {
'^@metamask/utils/(.+)$': [
'<rootDir>/node_modules/@metamask/utils/dist/$1.js',
'<rootDir>/node_modules/@metamask/utils/dist/$1.cjs',
],
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@metamask/eth-block-tracker": "^9.0.3",
"@metamask/eth-json-rpc-provider": "^4.1.0",
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.0.0",
"@types/jest": "^27.4.1",
"@types/node": "^16.18.54",
"@typescript-eslint/eslint-plugin": "^5.62.0",
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 @@ -48,7 +48,7 @@
"@metamask/keyring-controller": "^17.1.0",
"@metamask/snaps-sdk": "^4.2.0",
"@metamask/snaps-utils": "^7.4.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.0.0",
"deepmerge": "^4.2.2",
"ethereum-cryptography": "^2.1.2",
"immer": "^9.0.6",
Expand Down
1 change: 1 addition & 0 deletions packages/accounts-controller/src/AccountsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ export class AccountsController extends BaseController<
...account,
metadata: { ...account.metadata, name: accountName },
};
// @ts-expect-error ts(2589)
currentState.internalAccounts.accounts[accountId] = internalAccount;
});
}
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 @@ -43,7 +43,7 @@
"dependencies": {
"@metamask/base-controller": "^6.0.0",
"@metamask/controller-utils": "^11.0.0",
"@metamask/utils": "^8.3.0"
"@metamask/utils": "^9.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 @@ -42,8 +42,8 @@
},
"dependencies": {
"@metamask/base-controller": "^6.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/utils": "^8.3.0",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/utils": "^9.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 @@ -58,8 +58,8 @@
"@metamask/network-controller": "^20.0.0",
"@metamask/polling-controller": "^9.0.0",
"@metamask/preferences-controller": "^13.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/utils": "^8.3.0",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/utils": "^9.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 @@ -40,7 +40,7 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -41,7 +41,7 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -47,7 +47,7 @@
"@metamask/snaps-controllers": "^8.1.1",
"@metamask/snaps-sdk": "^4.2.0",
"@metamask/snaps-utils": "^7.4.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -44,7 +44,7 @@
"@ethereumjs/util": "^8.1.0",
"@metamask/eth-query": "^4.0.0",
"@metamask/ethjs-unit": "^0.3.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -44,7 +44,7 @@
"@ethersproject/providers": "^5.7.0",
"@metamask/base-controller": "^6.0.0",
"@metamask/controller-utils": "^11.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -47,9 +47,9 @@
},
"dependencies": {
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/safe-event-emitter": "^3.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -47,7 +47,7 @@
"@metamask/ethjs-unit": "^0.3.0",
"@metamask/network-controller": "^20.0.0",
"@metamask/polling-controller": "^9.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -50,9 +50,9 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/rpc-errors": "^6.2.1",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/safe-event-emitter": "^3.0.0",
"@metamask/utils": "^8.3.0"
"@metamask/utils": "^9.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 @@ -43,7 +43,7 @@
"dependencies": {
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/safe-event-emitter": "^3.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -50,7 +50,7 @@
"@metamask/eth-simple-keyring": "^6.0.1",
"@metamask/keyring-api": "^8.0.0",
"@metamask/message-manager": "^10.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -44,7 +44,7 @@
"@metamask/base-controller": "^6.0.0",
"@metamask/controller-utils": "^11.0.0",
"@metamask/eth-sig-util": "^7.0.1",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -44,7 +44,7 @@
"dependencies": {
"@metamask/base-controller": "^6.0.0",
"@metamask/controller-utils": "^11.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -49,9 +49,9 @@
"@metamask/eth-json-rpc-provider": "^4.1.0",
"@metamask/eth-query": "^4.0.0",
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/swappable-obj-proxy": "^2.2.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -42,7 +42,7 @@
},
"dependencies": {
"@metamask/base-controller": "^6.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.0.0",
"nanoid": "^3.1.31"
},
"devDependencies": {
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 @@ -44,8 +44,8 @@
"@metamask/base-controller": "^6.0.0",
"@metamask/controller-utils": "^11.0.0",
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/utils": "^8.3.0",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/utils": "^9.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 @@ -43,7 +43,7 @@
"dependencies": {
"@metamask/base-controller": "^6.0.0",
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/utils": "^8.3.0"
"@metamask/utils": "^9.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 @@ -44,7 +44,7 @@
"@metamask/base-controller": "^6.0.0",
"@metamask/controller-utils": "^11.0.0",
"@metamask/network-controller": "^20.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.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 @@ -44,9 +44,9 @@
"@metamask/base-controller": "^6.0.0",
"@metamask/controller-utils": "^11.0.0",
"@metamask/json-rpc-engine": "^9.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/swappable-obj-proxy": "^2.2.0",
"@metamask/utils": "^8.3.0"
"@metamask/utils": "^9.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 @@ -42,8 +42,8 @@
},
"dependencies": {
"@metamask/base-controller": "^6.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/utils": "^8.3.0"
"@metamask/rpc-errors": "^6.3.1",
"@metamask/utils": "^9.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 @@ -46,7 +46,7 @@
"@metamask/network-controller": "^20.0.0",
"@metamask/permission-controller": "^10.0.0",
"@metamask/swappable-obj-proxy": "^2.2.0",
"@metamask/utils": "^8.3.0"
"@metamask/utils": "^9.0.0"
},
"devDependencies": {
"@metamask/auto-changelog": "^3.4.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/signature-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@metamask/keyring-controller": "^17.1.0",
"@metamask/logging-controller": "^5.0.0",
"@metamask/message-manager": "^10.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/utils": "^8.3.0",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/utils": "^9.0.0",
"lodash": "^4.17.21"
},
"devDependencies": {
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 @@ -56,8 +56,8 @@
"@metamask/metamask-eth-abis": "^3.1.1",
"@metamask/network-controller": "^20.0.0",
"@metamask/nonce-tracker": "^5.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/utils": "^8.3.0",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/utils": "^9.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 @@ -50,9 +50,9 @@
"@metamask/keyring-controller": "^17.1.0",
"@metamask/network-controller": "^20.0.0",
"@metamask/polling-controller": "^9.0.0",
"@metamask/rpc-errors": "^6.2.1",
"@metamask/rpc-errors": "^6.3.1",
"@metamask/transaction-controller": "^35.0.0",
"@metamask/utils": "^8.3.0",
"@metamask/utils": "^9.0.0",
"bn.js": "^5.2.1",
"immer": "^9.0.6",
"lodash": "^4.17.21",
Expand Down
Loading

0 comments on commit 575e027

Please sign in to comment.