Skip to content

chore: update accounts/snaps deps #5871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 30, 2025
Merged

Conversation

ccharly
Copy link
Contributor

@ccharly ccharly commented May 28, 2025

Explanation

Updating accounts deps + aligning snaps deps as well.

The main update here is @metamask/eth-snap-keyring which introduce the new KeyringRequest.origin field. This new breaking change is associated with the Snaps platform version: 7.0.0 (@metamask/[email protected]).

References

N/A

Changelog

N/A

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 communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Copy link

socket-security bot commented May 28, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​metamask/​snaps-controllers@​12.3.1931007410050
Added@​metamask/​eth-snap-keyring@​13.0.092100929850

View full report

@ccharly ccharly force-pushed the chore/accounts-and-snaps-updates branch 3 times, most recently from ce31ef4 to 29e04f1 Compare May 28, 2025 10:46
@ccharly ccharly force-pushed the chore/accounts-and-snaps-updates branch from 29e04f1 to e49ec95 Compare May 28, 2025 11:33
@ccharly
Copy link
Contributor Author

ccharly commented May 28, 2025

Adding the no-changelog label since some changes are required because of deps updates, but those are tests fixing or non-consumer facing changes.

@ccharly ccharly marked this pull request as ready for review May 30, 2025 10:59
@ccharly ccharly requested review from a team as code owners May 30, 2025 10:59
@@ -65,7 +65,7 @@ const createMockedHandler = () => {
}),
);
const getAccounts = jest.fn().mockReturnValue([]);
const response: PendingJsonRpcResponse<Json> = {
const response: PendingJsonRpcResponse = {
Copy link
Contributor Author

@ccharly ccharly May 30, 2025

Choose a reason for hiding this comment

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

Most of those changes are required because of @metamask/utils dedupe. The default type parameter for those is Json already, resulting in a eslint warning if we specify it.

See:

Copy link
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@ffmcgee725 ffmcgee725 left a comment

Choose a reason for hiding this comment

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

CO review for wallet-api-platform-engineers team, only typing changes which make sense. LGTM 👍🏾 🚀

@ccharly ccharly enabled auto-merge (squash) May 30, 2025 12:51
@ccharly ccharly merged commit d669c94 into main May 30, 2025
210 checks passed
@ccharly ccharly deleted the chore/accounts-and-snaps-updates branch May 30, 2025 12:56
@adonesky1 adonesky1 mentioned this pull request Jun 13, 2025
adonesky1 added a commit that referenced this pull request Jun 13, 2025
## @metamask/chain-agnostic-permission

## [0.7.1]

### Changed

- Bump `@metamask/keyring-internal-api` to `^6.2.0`
([#5871](#5871))
- Bump `@metamask/controller-utils` to `^11.10.0`
([#5935](#5935))
- Bump `@metamask/network-controller` to `^23.6.0`
([#5935](https://github.com/MetaMask/core/pull/5935),[#5882](https://github.com/MetaMask/core/pull/5882))
- Change `caip25CaveatBuilder` to list unsupported scopes in the
unsupported scopes error
([#5806](#5806))
### Fixed
- Fix `isInternalAccountInPermittedAccountIds` and
`isCaipAccountIdInPermittedAccountIds` to correctly handle comparison
against `permittedAccounts` values of the `wallet:<namespace>:<address>`
format ([#5980](#5980))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants