Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/examples/packages/bip32/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "oi0SJgHkBHNpSf0XoEYYK+Z+TvUZhqecb21rUQlQy0Y=",
"shasum": "rCKMDRF7Y0gX6Gu5v3hYsllK5pUX+9GRg1ztmZiSLa8=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/bip44/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "LXKwLrypTOqL6Mdv8kqGnAIN7b7nqniSGExsLdm6/54=",
"shasum": "cusMbHuymWY6tZeP3s9VIKJ+yGNDskhQpIIJ6TweCwY=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/cronjobs/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "9MpZT/oQXNF3YMTA6kQEAfs0H9KymzHz8npynrk3usg=",
"shasum": "xJvLHlIO5PZl5aiqDVaD9KekniGYpJhFyOzKgkoVaOI=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/dialogs/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "veLIETfMO+3rmDoFa1sxg4355NahHoPcnAtzmjFH0RM=",
"shasum": "RT3QK/Bl2XW8O93eTzxm4kkhbWU2YLNgl0wIpQtA+Rw=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "cDnKVMC6SoAM8PT1dyMsEr7PfdF8NTDDnx1/iALwAHU=",
"shasum": "GTAcx5+xnYSrX0hPya1/fzzqRu9tKOZFlIM+m/GhRMY=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/ethers-js/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "9vYRKGi0UPGsuJqftpZ088N09useMhGn/jXEX9iPgZs=",
"shasum": "DxWxRAbWHwMP0A2cP69rtJnLG46DGVF23jVS/eZS/SA=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "MNSzZnFFBVH8HxYNy/mrrdwVgOTmPgM98ybPolHbpIw=",
"shasum": "WyWni7NEyMn/x9BZ9gpBG63rXNE+GhW1EmbKWir6Jn8=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/images/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "NtQ8Rk/qn41nHWgCsKqTqaYMMy8CoH8VRuhSbGuGq1s=",
"shasum": "FYjeWJZedR0CsGEYnHzfoFQDpmGZ6De/OS1Y2iQ1smc=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "Et0r8P+ORsedVAqQ9iF02gHUBC0zZjWg/xptu4v/DlU=",
"shasum": "Ov0Ar65MX7lo2uYyp3Ib4ewVnK/HenJye0xb7uTC9E8=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "C42+OsuPDhTmKpn2rMU1pHnVhIPja148c+YOGiBdBfs=",
"shasum": "dyTu7Uv4y/ENkS/Jnxqk9VMw7DtWI+RdF0JgV3H0trw=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "dQa6M6vJM/qGyEtp0vZwXX3y+u2g7dfC9aMdql12m6w=",
"shasum": "o76aRih2nVsLM9K64BaOVLmjXNW77O816EWBH2YpAqs=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/send-flow/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "Jt6ffHQCRr/04n0/AioV2kZ9Mgn5ssqzbc9EKQ9a0Ck=",
"shasum": "yEqB3AAMpEz6knhYbegfL699DkfGcq+akyyPmSjILSg=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "KOnko171BdSfiZkvIc+b/YsX7xpb6tuMI/WDji3Q/7w=",
"shasum": "bbmlfPgCWVnA9fva9G+xUEYFJmLq84syVoFAGBDemaU=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "sJ0/rptqCx0259FqNAJQl14JQCUMEqwJkgeI1u2y524=",
"shasum": "+XI+76eOneF1G6rf9+2gcWCdiN2jejkh7v/LFh7CQxY=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@metamask/messenger": "^0.3.0",
"@metamask/object-multiplex": "^2.1.0",
"@metamask/permission-controller": "^12.0.0",
"@metamask/phishing-controller": "^13.1.0",
"@metamask/phishing-controller": "^15.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Dependency Version Mismatch

The @metamask/phishing-controller dependency was updated from ^13.1.0 to ^15.0.0. This conflicts with the PR description, which states an update to 14.1.3. The ^15.0.0 version constraint will not accept 14.1.3, creating a mismatch between the intended and actual dependency version.

Additional Locations (2)

Fix in Cursor Fix in Web

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing Peer Dependency Causes Runtime Issues

The upgrade to @metamask/phishing-controller@^15.0.0 introduces a new peer dependency on @metamask/transaction-controller@^61.0.0. This dependency is currently missing across snaps-controllers, snaps-simulation, and snaps-jest, which could lead to runtime errors or unexpected behavior in these environments.

Additional Locations (2)

Fix in Cursor Fix in Web

"@metamask/post-message-stream": "^10.0.0",
"@metamask/rpc-errors": "^7.0.3",
"@metamask/snaps-registry": "^3.2.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
},
"@metamask/utils>@noble/hashes": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
},
"@metamask/utils>@noble/hashes": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
},
"@metamask/utils>@noble/hashes": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
},
"@metamask/utils>@noble/hashes": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@jest/types": "^29.6.3",
"@lavamoat/allow-scripts": "^3.4.0",
"@metamask/auto-changelog": "^5.0.2",
"@metamask/phishing-controller": "^13.1.0",
"@metamask/phishing-controller": "^15.0.0",
"@metamask/snaps-utils": "workspace:^",
"@swc/core": "1.11.31",
"@swc/jest": "^0.2.38",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-simulation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@metamask/key-tree": "^10.1.1",
"@metamask/messenger": "^0.3.0",
"@metamask/permission-controller": "^12.0.0",
"@metamask/phishing-controller": "^13.1.0",
"@metamask/phishing-controller": "^15.0.0",
"@metamask/snaps-controllers": "workspace:^",
"@metamask/snaps-execution-environments": "workspace:^",
"@metamask/snaps-rpc-methods": "workspace:^",
Expand Down
45 changes: 22 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2885,17 +2885,6 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/base-controller@npm:^8.0.1":
version: 8.4.1
resolution: "@metamask/base-controller@npm:8.4.1"
dependencies:
"@metamask/messenger": "npm:^0.3.0"
"@metamask/utils": "npm:^11.8.1"
immer: "npm:^9.0.6"
checksum: 10/d720638b6a640f43e06b37bd77b7291be20df2f3cc89ab571ee47c895313ba2521cd49e6dede02dd7e06971c351f88eec2c39b65d8f46ba09492d89131d640b9
languageName: node
linkType: hard

"@metamask/base-controller@npm:^9.0.0":
version: 9.0.0
resolution: "@metamask/base-controller@npm:9.0.0"
Expand Down Expand Up @@ -3024,7 +3013,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/controller-utils@npm:^11.11.0, @metamask/controller-utils@npm:^11.14.1":
"@metamask/controller-utils@npm:^11.14.1":
version: 11.14.1
resolution: "@metamask/controller-utils@npm:11.14.1"
dependencies:
Expand Down Expand Up @@ -3937,18 +3926,21 @@ __metadata:
languageName: node
linkType: hard

"@metamask/phishing-controller@npm:^13.1.0":
version: 13.1.0
resolution: "@metamask/phishing-controller@npm:13.1.0"
"@metamask/phishing-controller@npm:^15.0.0":
version: 15.0.0
resolution: "@metamask/phishing-controller@npm:15.0.0"
dependencies:
"@metamask/base-controller": "npm:^8.0.1"
"@metamask/controller-utils": "npm:^11.11.0"
"@noble/hashes": "npm:^1.4.0"
"@metamask/base-controller": "npm:^9.0.0"
"@metamask/controller-utils": "npm:^11.14.1"
"@metamask/messenger": "npm:^0.3.0"
"@noble/hashes": "npm:^1.8.0"
"@types/punycode": "npm:^2.1.0"
ethereum-cryptography: "npm:^2.1.2"
fastest-levenshtein: "npm:^1.0.16"
punycode: "npm:^2.1.1"
checksum: 10/c62f71291736dfd635cc69b2d422687d8d610591a5e1cd9a6b4806cdc19221a72fe7699c0cabe0a2a108b49c3cc4dcb88a5b283fba374fe13e54d5813fb77902
peerDependencies:
"@metamask/transaction-controller": ^61.0.0
checksum: 10/84e10ddcba9bb1351538c2de1105863dda030ad5f6dfa54bb17d731e436e948e6bcc4630fa914162046bda1b925514de37224f34cc00145e102b2f7f3f83059e
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Phishing Controller Update Breaks Snaps Dependencies

The @metamask/phishing-controller version bump from 13.1.0 to 15.0.0 includes a major version change (from v13 to v14 and then v15), which typically indicates breaking changes. The package now lists "@metamask/transaction-controller": "^61.0.0" as a peerDependency. However, the packages that depend on @metamask/phishing-controller (snaps-controllers, snaps-simulation, and snaps-jest) do not include @metamask/transaction-controller in their dependencies. This will cause peer dependency warnings or failures at runtime if the transaction-controller is required by the phishing-controller's functionality.

Fix in Cursor Fix in Web

languageName: node
linkType: hard

Expand Down Expand Up @@ -4266,7 +4258,7 @@ __metadata:
"@metamask/messenger": "npm:^0.3.0"
"@metamask/object-multiplex": "npm:^2.1.0"
"@metamask/permission-controller": "npm:^12.0.0"
"@metamask/phishing-controller": "npm:^13.1.0"
"@metamask/phishing-controller": "npm:^15.0.0"
"@metamask/post-message-stream": "npm:^10.0.0"
"@metamask/rpc-errors": "npm:^7.0.3"
"@metamask/snaps-registry": "npm:^3.2.3"
Expand Down Expand Up @@ -4393,7 +4385,7 @@ __metadata:
"@jest/types": "npm:^29.6.3"
"@lavamoat/allow-scripts": "npm:^3.4.0"
"@metamask/auto-changelog": "npm:^5.0.2"
"@metamask/phishing-controller": "npm:^13.1.0"
"@metamask/phishing-controller": "npm:^15.0.0"
"@metamask/snaps-controllers": "workspace:^"
"@metamask/snaps-sdk": "workspace:^"
"@metamask/snaps-simulation": "workspace:^"
Expand Down Expand Up @@ -4560,7 +4552,7 @@ __metadata:
"@metamask/key-tree": "npm:^10.1.1"
"@metamask/messenger": "npm:^0.3.0"
"@metamask/permission-controller": "npm:^12.0.0"
"@metamask/phishing-controller": "npm:^13.1.0"
"@metamask/phishing-controller": "npm:^15.0.0"
"@metamask/snaps-controllers": "workspace:^"
"@metamask/snaps-execution-environments": "workspace:^"
"@metamask/snaps-rpc-methods": "workspace:^"
Expand Down Expand Up @@ -4936,13 +4928,20 @@ __metadata:
languageName: node
linkType: hard

"@noble/hashes@npm:1.7.1, @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.7.1":
"@noble/hashes@npm:1.7.1":
version: 1.7.1
resolution: "@noble/hashes@npm:1.7.1"
checksum: 10/ca3120da0c3e7881d6a481e9667465cc9ebbee1329124fb0de442e56d63fef9870f8cc96f264ebdb18096e0e36cebc0e6e979a872d545deb0a6fed9353f17e05
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.7.1, @noble/hashes@npm:^1.8.0":
version: 1.8.0
resolution: "@noble/hashes@npm:1.8.0"
checksum: 10/474b7f56bc6fb2d5b3a42132561e221b0ea4f91e590f4655312ca13667840896b34195e2b53b7f097ec080a1fdd3b58d902c2a8d0fbdf51d2e238b53808a177e
languageName: node
linkType: hard

"@noble/secp256k1@npm:^1.7.1":
version: 1.7.1
resolution: "@noble/secp256k1@npm:1.7.1"
Expand Down
Loading