From 67b6f6d8cb5ece49155dd2da3257b53521c792ac Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Thu, 31 Oct 2024 10:36:44 +0100 Subject: [PATCH] chore: Bump MetaMask dependencies (#923) Bumps `metamask/utils` and other MetaMask dependencies, in an effort to unblock usage of the latest utils version in `snaps`. --- package.json | 8 +- yarn.lock | 239 +++++++++++++++++++++++++++++++-------------------- 2 files changed, 151 insertions(+), 96 deletions(-) diff --git a/package.json b/package.json index 132b6fed..267975b5 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@metamask/superstruct": "^3.1.0", - "@metamask/utils": "^9.1.0", + "@metamask/utils": "^10.0.0", "@noble/curves": "^1.2.0", "@noble/hashes": "^1.3.2" }, @@ -42,9 +42,9 @@ "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", "@metamask/eslint-config-typescript": "^12.1.0", - "@metamask/snaps-controllers": "^9.4.0", - "@metamask/snaps-sdk": "^6.2.1", - "@metamask/snaps-utils": "^8.0.1", + "@metamask/snaps-controllers": "^9.11.1", + "@metamask/snaps-sdk": "^6.9.0", + "@metamask/snaps-utils": "^8.4.1", "@noble/curves": "^1.2.0", "@types/jest": "^28.1.6", "@types/node": "^17.0.23", diff --git a/yarn.lock b/yarn.lock index 4c83efe5..691c76ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -926,14 +926,14 @@ __metadata: linkType: hard "@metamask/approval-controller@npm:^7.0.2": - version: 7.0.2 - resolution: "@metamask/approval-controller@npm:7.0.2" + version: 7.1.1 + resolution: "@metamask/approval-controller@npm:7.1.1" dependencies: - "@metamask/base-controller": ^6.0.2 - "@metamask/rpc-errors": ^6.3.1 - "@metamask/utils": ^9.1.0 + "@metamask/base-controller": ^7.0.2 + "@metamask/rpc-errors": ^7.0.1 + "@metamask/utils": ^10.0.0 nanoid: ^3.1.31 - checksum: 027b0f1871626095356bd9999a4a80fc8db13e8dc85748e9a2c59efc32743e49522c908bb860c315b948555c15528bd0c3f3d0e90a50ba7f6c9aaa4d800aa18f + checksum: f3a930b0e8fcb215fe65b2b88a7bb4befb544eb1448348bb91c0a3b587c479c46519d8ba6a6f347b6ecc49a9761b1db33fd1d39b9113dd3062fbc789d3f0f4a8 languageName: node linkType: hard @@ -962,20 +962,31 @@ __metadata: languageName: node linkType: hard -"@metamask/controller-utils@npm:^11.0.2": - version: 11.0.2 - resolution: "@metamask/controller-utils@npm:11.0.2" +"@metamask/base-controller@npm:^7.0.1, @metamask/base-controller@npm:^7.0.2": + version: 7.0.2 + resolution: "@metamask/base-controller@npm:7.0.2" + dependencies: + "@metamask/utils": ^10.0.0 + immer: ^9.0.6 + checksum: c9c706077af613e704d166a1795c94e2b92e6da304514994bbc6903c4796f9a752028b86a08cf4ece43ab069d5232af468e5d7b571a85d18b80a5072619ba5cb + languageName: node + linkType: hard + +"@metamask/controller-utils@npm:^11.4.0, @metamask/controller-utils@npm:^11.4.1": + version: 11.4.2 + resolution: "@metamask/controller-utils@npm:11.4.2" dependencies: "@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 + bignumber.js: ^9.1.2 bn.js: ^5.2.1 eth-ens-namehash: ^2.0.8 fast-deep-equal: ^3.1.3 - checksum: 21a760f68270318a9f31c35878cdbeae3c093e1aeea45b838c9359ced621f7c9fdd969f6b751f9bc3112bfc8f110da3e75b6990daabd815841e99479fe798a2c + checksum: da47338dec1771cd3f29c3dd007f87b8138de0c20e33291128e842779acc748a7eeefef0c0005a83987369303c08bba99b60d014e18f87adf405f18462218cc8 languageName: node linkType: hard @@ -1051,26 +1062,37 @@ __metadata: languageName: node linkType: hard +"@metamask/json-rpc-engine@npm:^10.0.1": + version: 10.0.1 + resolution: "@metamask/json-rpc-engine@npm:10.0.1" + dependencies: + "@metamask/rpc-errors": ^7.0.1 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^10.0.0 + checksum: 277c68cf0036d62c9a1528e9d7e55e000233d02a55fb652edcc16b6149631346d34fe3fefaab13bc55377405e79293afdde5b6e3b61d49a2ce125ca50d7eafe1 + languageName: node + linkType: hard + "@metamask/json-rpc-engine@npm:^9.0.1, @metamask/json-rpc-engine@npm:^9.0.2": - version: 9.0.2 - resolution: "@metamask/json-rpc-engine@npm:9.0.2" + version: 9.0.3 + resolution: "@metamask/json-rpc-engine@npm:9.0.3" dependencies: "@metamask/rpc-errors": ^6.3.1 "@metamask/safe-event-emitter": ^3.0.0 "@metamask/utils": ^9.1.0 - checksum: 4c852c9f30d05706ee497a2aca3ef6df12aabcff4a71a7426a27d95829f20cf2ff45c774eb9d95224bf16c9555a8cd7e44dccaea1bd44eda4dc43bf298885272 + checksum: 519680dccba47bde30b1d8733765d4ebeb489e950b24b09d885b394eacd8e8a29d76c601be72021491c38bd0fc188d76eddcfaf81835ea053c1696f2367865ab languageName: node linkType: hard "@metamask/json-rpc-middleware-stream@npm:^8.0.1, @metamask/json-rpc-middleware-stream@npm:^8.0.2": - version: 8.0.2 - resolution: "@metamask/json-rpc-middleware-stream@npm:8.0.2" + version: 8.0.5 + resolution: "@metamask/json-rpc-middleware-stream@npm:8.0.5" dependencies: - "@metamask/json-rpc-engine": ^9.0.2 + "@metamask/json-rpc-engine": ^10.0.1 "@metamask/safe-event-emitter": ^3.0.0 - "@metamask/utils": ^9.1.0 + "@metamask/utils": ^10.0.0 readable-stream: ^3.6.2 - checksum: 0aa44b98e5832c158594e5b616d351c7c8da8f7bc8de0a14f91a043b92fd81f1a63eecac9b11f7ef4729f54d2f1ad1ae5b82db6188368cefac1ca31011b84730 + checksum: 4ac3d537bad1ab039bb1b42fb35113fe9a98bd89339155a0f759a086b957e5717ea1e75bdd340defd2b25f5886e07ab130235a63a1b8e627f8cb32a3020622c9 languageName: node linkType: hard @@ -1108,39 +1130,40 @@ __metadata: linkType: hard "@metamask/permission-controller@npm:^11.0.0": - version: 11.0.0 - resolution: "@metamask/permission-controller@npm:11.0.0" - dependencies: - "@metamask/base-controller": ^6.0.2 - "@metamask/controller-utils": ^11.0.2 - "@metamask/json-rpc-engine": ^9.0.2 - "@metamask/rpc-errors": ^6.3.1 - "@metamask/utils": ^9.1.0 + version: 11.0.3 + resolution: "@metamask/permission-controller@npm:11.0.3" + dependencies: + "@metamask/base-controller": ^7.0.2 + "@metamask/controller-utils": ^11.4.1 + "@metamask/json-rpc-engine": ^10.0.1 + "@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 nanoid: ^3.1.31 peerDependencies: "@metamask/approval-controller": ^7.0.0 - checksum: 3038d6ddfff65fc4d5b32c49413f09c3c1522a34b990fb9990915534ef959c5112b517d683825d78a5c11d1669c160b7efe432b2f2e40289e079d617c2a4acf1 + checksum: 62ab4b08f927a19900a74c810addb0c2bb39a9fff8a9bef928b3b037f4acb5c676d9219780996777bdac579ee065a5a802593d9b07ad0ac5fd56f414b2f57bfc languageName: node linkType: hard -"@metamask/phishing-controller@npm:^10.1.1": - version: 10.1.1 - resolution: "@metamask/phishing-controller@npm:10.1.1" +"@metamask/phishing-controller@npm:^12.0.2": + version: 12.3.0 + resolution: "@metamask/phishing-controller@npm:12.3.0" dependencies: - "@metamask/base-controller": ^6.0.2 - "@metamask/controller-utils": ^11.0.2 + "@metamask/base-controller": ^7.0.1 + "@metamask/controller-utils": ^11.4.0 + "@noble/hashes": ^1.4.0 "@types/punycode": ^2.1.0 - eth-phishing-detect: ^1.2.0 + ethereum-cryptography: ^2.1.2 fastest-levenshtein: ^1.0.16 punycode: ^2.1.1 - checksum: 9bd1ea299a721b4106d25475bdda7ab696ebd72ace6eaf2328c7c357f586a38ea200b7e92ba8cb34c42be7061eebadb463b14af52517c994a4d993483b0d9545 + checksum: ba51b76a9a16aae2b745ee8d8074733197ad01eca8bcf16bacaf7e9795bc53255cc3755142f391d8daba2d5bcf0922f1454f94052a029301f2c759eef4e2f07b languageName: node linkType: hard -"@metamask/post-message-stream@npm:^8.1.0": +"@metamask/post-message-stream@npm:^8.1.1": version: 8.1.1 resolution: "@metamask/post-message-stream@npm:8.1.1" dependencies: @@ -1181,6 +1204,16 @@ __metadata: languageName: node linkType: hard +"@metamask/rpc-errors@npm:^7.0.1": + version: 7.0.1 + resolution: "@metamask/rpc-errors@npm:7.0.1" + dependencies: + "@metamask/utils": ^10.0.0 + fast-safe-stringify: ^2.0.6 + checksum: 20b300d26550c667a635eb5f97784c80d86c0b765433a32a9bced5b4c2a05a783cf2cd3a2bfe2aca6382181f53458bd2e7dc1bbb02e28005d3b4d0f3a46ca3ac + languageName: node + linkType: hard + "@metamask/safe-event-emitter@npm:^3.0.0, @metamask/safe-event-emitter@npm:^3.1.1": version: 3.1.1 resolution: "@metamask/safe-event-emitter@npm:3.1.1" @@ -1205,9 +1238,9 @@ __metadata: languageName: node linkType: hard -"@metamask/snaps-controllers@npm:^9.4.0": - version: 9.4.0 - resolution: "@metamask/snaps-controllers@npm:9.4.0" +"@metamask/snaps-controllers@npm:^9.11.1": + version: 9.11.1 + resolution: "@metamask/snaps-controllers@npm:9.11.1" dependencies: "@metamask/approval-controller": ^7.0.2 "@metamask/base-controller": ^6.0.2 @@ -1215,14 +1248,14 @@ __metadata: "@metamask/json-rpc-middleware-stream": ^8.0.2 "@metamask/object-multiplex": ^2.0.0 "@metamask/permission-controller": ^11.0.0 - "@metamask/phishing-controller": ^10.1.1 - "@metamask/post-message-stream": ^8.1.0 + "@metamask/phishing-controller": ^12.0.2 + "@metamask/post-message-stream": ^8.1.1 "@metamask/rpc-errors": ^6.3.1 "@metamask/snaps-registry": ^3.2.1 - "@metamask/snaps-rpc-methods": ^11.0.0 - "@metamask/snaps-sdk": ^6.2.0 - "@metamask/snaps-utils": ^8.0.0 - "@metamask/utils": ^9.1.0 + "@metamask/snaps-rpc-methods": ^11.5.0 + "@metamask/snaps-sdk": ^6.9.0 + "@metamask/snaps-utils": ^8.4.1 + "@metamask/utils": ^9.2.1 "@xstate/fsm": ^2.0.0 browserify-zlib: ^0.2.0 concat-stream: ^2.0.0 @@ -1234,11 +1267,11 @@ __metadata: readable-web-to-node-stream: ^3.0.2 tar-stream: ^3.1.7 peerDependencies: - "@metamask/snaps-execution-environments": ^6.6.2 + "@metamask/snaps-execution-environments": ^6.9.1 peerDependenciesMeta: "@metamask/snaps-execution-environments": optional: true - checksum: 80674366776b94fe1160e4130400200c59b1f8a6a64996bed7afff86533311825ede271d38daef6d7e2ff481a4082f0c2140f66ef8318cf82c7219428d4645d2 + checksum: 7b02b428aa4f27e4a3570e6fa9d04f2d0f95a25b3c0a83ed37b7c0de1c99e35fe1f6b8fcfe3def0585a80ba5bc7950be04a11515ce2833cb37135903d59776a2 languageName: node linkType: hard @@ -1252,11 +1285,11 @@ __metadata: "@metamask/eslint-config-jest": ^12.1.0 "@metamask/eslint-config-nodejs": ^12.1.0 "@metamask/eslint-config-typescript": ^12.1.0 - "@metamask/snaps-controllers": ^9.4.0 - "@metamask/snaps-sdk": ^6.2.1 - "@metamask/snaps-utils": ^8.0.1 + "@metamask/snaps-controllers": ^9.11.1 + "@metamask/snaps-sdk": ^6.9.0 + "@metamask/snaps-utils": ^8.4.1 "@metamask/superstruct": ^3.1.0 - "@metamask/utils": ^9.1.0 + "@metamask/utils": ^10.0.0 "@noble/curves": ^1.2.0 "@noble/hashes": ^1.3.2 "@types/jest": ^28.1.6 @@ -1286,38 +1319,38 @@ __metadata: languageName: unknown linkType: soft -"@metamask/snaps-rpc-methods@npm:^11.0.0": - version: 11.0.0 - resolution: "@metamask/snaps-rpc-methods@npm:11.0.0" +"@metamask/snaps-rpc-methods@npm:^11.5.0": + version: 11.5.0 + resolution: "@metamask/snaps-rpc-methods@npm:11.5.0" dependencies: "@metamask/key-tree": ^9.1.2 "@metamask/permission-controller": ^11.0.0 "@metamask/rpc-errors": ^6.3.1 - "@metamask/snaps-sdk": ^6.2.0 - "@metamask/snaps-utils": ^8.0.0 + "@metamask/snaps-sdk": ^6.9.0 + "@metamask/snaps-utils": ^8.4.1 "@metamask/superstruct": ^3.1.0 - "@metamask/utils": ^9.1.0 + "@metamask/utils": ^9.2.1 "@noble/hashes": ^1.3.1 - checksum: 83a5d4b28b4d72e0e695db81c1d4a458d4f7c835572424cd7a0db4b7b07494f7c92d78ce79c91af5989f83f1031837fda67adb3884d3625ab0f5ea036303af74 + checksum: b6e827f6c5ed845020eba725b57b30314fc312d3c44cdf5ff281ce51b7a3bd396d1a8446f4b3319f8c7f91a34aa373e156f1155a5da55c440d3ac34f73b1f841 languageName: node linkType: hard -"@metamask/snaps-sdk@npm:^6.2.0, @metamask/snaps-sdk@npm:^6.2.1": - version: 6.2.1 - resolution: "@metamask/snaps-sdk@npm:6.2.1" +"@metamask/snaps-sdk@npm:^6.9.0": + version: 6.9.0 + resolution: "@metamask/snaps-sdk@npm:6.9.0" dependencies: "@metamask/key-tree": ^9.1.2 "@metamask/providers": ^17.1.2 "@metamask/rpc-errors": ^6.3.1 "@metamask/superstruct": ^3.1.0 - "@metamask/utils": ^9.1.0 - checksum: b033221a4e4e0656d1d71799c759231e261f77324b153e2c528d962d949192290d37a8c7c868339dcf3aef06107566efcc465a3537bada0ea7b86c3de3aae7b9 + "@metamask/utils": ^9.2.1 + checksum: 73451155b2f144e8bcde1e00ccb79ca48a3317ecc02b6cf696c0f734b9b6909493025cff7209c910b6207043b5062254668005d17e334cd2b47545610116beeb languageName: node linkType: hard -"@metamask/snaps-utils@npm:^8.0.0, @metamask/snaps-utils@npm:^8.0.1": - version: 8.0.1 - resolution: "@metamask/snaps-utils@npm:8.0.1" +"@metamask/snaps-utils@npm:^8.4.1": + version: 8.4.1 + resolution: "@metamask/snaps-utils@npm:8.4.1" dependencies: "@babel/core": ^7.23.2 "@babel/types": ^7.23.0 @@ -1327,9 +1360,9 @@ __metadata: "@metamask/rpc-errors": ^6.3.1 "@metamask/slip44": ^4.0.0 "@metamask/snaps-registry": ^3.2.1 - "@metamask/snaps-sdk": ^6.2.1 + "@metamask/snaps-sdk": ^6.9.0 "@metamask/superstruct": ^3.1.0 - "@metamask/utils": ^9.1.0 + "@metamask/utils": ^9.2.1 "@noble/hashes": ^1.3.1 "@scure/base": ^1.1.1 chalk: ^4.1.2 @@ -1342,7 +1375,7 @@ __metadata: semver: ^7.5.4 ses: ^1.1.0 validate-npm-package-name: ^5.0.0 - checksum: d32a7fe11830442758699ce2704def59fea7da4e62b3e129122786d7572b2e1f2b4b19bba5fc1a4a35b2384ddb16016a9bc7f04e65aa01635f43df298a3a7fff + checksum: 7aeff37dc346518f586b63a5c000aecda5c3ea94c0fe780eebe41336b51f09803f73d53132602c1a5ba049b24292a777dc5e0d64a775cd90031dc76a99b1e83e languageName: node linkType: hard @@ -1353,9 +1386,9 @@ __metadata: languageName: node linkType: hard -"@metamask/utils@npm:^9.0.0, @metamask/utils@npm:^9.1.0": - version: 9.1.0 - resolution: "@metamask/utils@npm:9.1.0" +"@metamask/utils@npm:^10.0.0": + version: 10.0.0 + resolution: "@metamask/utils@npm:10.0.0" dependencies: "@ethereumjs/tx": ^4.2.0 "@metamask/superstruct": ^3.1.0 @@ -1366,26 +1399,50 @@ __metadata: pony-cause: ^2.1.10 semver: ^7.5.4 uuid: ^9.0.1 - checksum: 01f2c71a8f06158d5335bfe96bfd2f3aa39ec6b2323c5d0ff1d3136071a3e8ff7c1804d640ba1d4e07f96f3e68a95ff7729ddfcd34b373e5fefd86d6ef12d034 + checksum: b75679b78d3e084ed486d767fd5532b09527eb40e0cc5b080f5f0f1a620c68674cb662b1b3aa05eed8e1f024c08f8b7ae3c499a5185a32bea4c342874c529ba5 languageName: node linkType: hard -"@noble/curves@npm:1.4.0, @noble/curves@npm:^1.2.0, @noble/curves@npm:~1.4.0": - version: 1.4.0 - resolution: "@noble/curves@npm:1.4.0" +"@metamask/utils@npm:^9.0.0, @metamask/utils@npm:^9.1.0, @metamask/utils@npm:^9.2.1": + version: 9.3.0 + resolution: "@metamask/utils@npm:9.3.0" + dependencies: + "@ethereumjs/tx": ^4.2.0 + "@metamask/superstruct": ^3.1.0 + "@noble/hashes": ^1.3.1 + "@scure/base": ^1.1.3 + "@types/debug": ^4.1.7 + debug: ^4.3.4 + pony-cause: ^2.1.10 + semver: ^7.5.4 + uuid: ^9.0.1 + checksum: f720b0f7bdd46054aa88d15a9702e1de6d7200a1ca1d4f6bc48761b039f1bbffb46ac88bc87fe79e66128c196d424f3b9ef071b3cb4b40139223786d56da35e0 + languageName: node + linkType: hard + +"@noble/curves@npm:1.4.2, @noble/curves@npm:^1.2.0, @noble/curves@npm:~1.4.0": + version: 1.4.2 + resolution: "@noble/curves@npm:1.4.2" dependencies: "@noble/hashes": 1.4.0 - checksum: 0014ff561d16e98da4a57e2310a4015e4bdab3b1e1eafcd18d3f9b955c29c3501452ca5d702fddf8ca92d570bbeadfbe53fe16ebbd81a319c414f739154bb26b + checksum: c475a83c4263e2c970eaba728895b9b5d67e0ca880651e9c6e3efdc5f6a4f07ceb5b043bf71c399fc80fada0b8706e69d0772bffdd7b9de2483b988973a34cba languageName: node linkType: hard -"@noble/hashes@npm:1.4.0, @noble/hashes@npm:^1.1.2, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:~1.4.0": +"@noble/hashes@npm:1.4.0, @noble/hashes@npm:~1.4.0": version: 1.4.0 resolution: "@noble/hashes@npm:1.4.0" checksum: 8ba816ae26c90764b8c42493eea383716396096c5f7ba6bea559993194f49d80a73c081f315f4c367e51bd2d5891700bcdfa816b421d24ab45b41cb03e4f3342 languageName: node linkType: hard +"@noble/hashes@npm:^1.1.2, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.2, @noble/hashes@npm:^1.4.0": + version: 1.5.0 + resolution: "@noble/hashes@npm:1.5.0" + checksum: 9cc031d5c888c455bfeef76af649b87f75380a4511405baea633c1e4912fd84aff7b61e99716f0231d244c9cfeda1fafd7d718963e6a0c674ed705e9b1b4f76b + languageName: node + linkType: hard + "@noble/hashes@npm:~1.3.2": version: 1.3.3 resolution: "@noble/hashes@npm:1.3.3" @@ -2345,6 +2402,13 @@ __metadata: languageName: node linkType: hard +"bignumber.js@npm:^9.1.2": + version: 9.1.2 + resolution: "bignumber.js@npm:9.1.2" + checksum: 582c03af77ec9cb0ebd682a373ee6c66475db94a4325f92299621d544aa4bd45cb45fd60001610e94aef8ae98a0905fa538241d9638d4422d57abbeeac6fadaf + languageName: node + linkType: hard + "bin-links@npm:4.0.1": version: 4.0.1 resolution: "bin-links@npm:4.0.1" @@ -3518,24 +3582,15 @@ __metadata: languageName: node linkType: hard -"eth-phishing-detect@npm:^1.2.0": - version: 1.2.0 - resolution: "eth-phishing-detect@npm:1.2.0" - dependencies: - fast-levenshtein: ^2.0.6 - checksum: 66a6a7c249ec8494e0360663596ce980ca75747cd202c47732eca0bfc7a97c6debbae359842e4f3e4ac7e6c44ab1f7f091c3aa7baa330449d3c1b7cc58608b71 - languageName: node - linkType: hard - -"ethereum-cryptography@npm:^2.0.0": - version: 2.2.0 - resolution: "ethereum-cryptography@npm:2.2.0" +"ethereum-cryptography@npm:^2.0.0, ethereum-cryptography@npm:^2.1.2": + version: 2.2.1 + resolution: "ethereum-cryptography@npm:2.2.1" dependencies: - "@noble/curves": 1.4.0 + "@noble/curves": 1.4.2 "@noble/hashes": 1.4.0 "@scure/bip32": 1.4.0 "@scure/bip39": 1.3.0 - checksum: 529d05a47fe0ff86ab36022a286c3a280e09d386fc92ff183aa4b095e97d190dd875022a004898686a798bac56e73601dd91356298edc56e5eeded7846f8ec12 + checksum: 1466e4c417b315a6ac67f95088b769fafac8902b495aada3c6375d827e5a7882f9e0eea5f5451600d2250283d9198b8a3d4d996e374e07a80a324e29136f25c6 languageName: node linkType: hard