Merged
Conversation
jiexi
previously approved these changes
Apr 17, 2025
mcmire
previously approved these changes
Apr 17, 2025
Contributor
mcmire
left a comment
There was a problem hiding this comment.
One nit, but looks good regardless.
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
jiexi
approved these changes
Apr 17, 2025
salimtb
pushed a commit
that referenced
this pull request
Apr 23, 2025
This is a release for the `@metamask/multichain-api-middleware` adding and exporting `wallet_createSession` handler and `Caip25Errors`, and`@metamask/chain-agnostic-permission` adding and exporting utility functions `isKnownSessionPropertyValue`, `getCaipAccountIdsFromScopesObjects`, `getAllScopesFromScopesObjects` and `getSupportedScopeObjects`. ## Explanation <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * Are there any changes whose purpose might not obvious to those unfamiliar with the domain? * If your primary goal was to update one package but you found you had to update another one along the way, why did you do so? * If you had to upgrade a dependency, why did you do so? --> ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> ## Changelog ### `@metamask/chain-agnostic-permission` - ADDED: Added `isKnownSessionPropertyValue` validation utility function (originally migrated from `extension` repo) - ADDED: Added `getCaipAccountIdsFromScopesObjects` filtering utility function (originally migrated from `extension` repo) - ADDED: Added `getAllScopesFromScopesObjects` filtering utility function (originally migrated from `extension` repo) - ADDED: Added `getSupportedScopeObjects` filtering utility function (originally migrated from `extension` repo) ### `@metamask/multichain-api-middleware` - ADDED: Added `wallet_createSession` handler (originally migrated from `extension` repo) - ADDED: Added `Caip25Errors` <!-- THIS SECTION IS NO LONGER NEEDED. The process for updating changelogs has changed. Please consult the "Updating changelogs" section of the Contributing doc for more. --> ## 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 communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes --------- Co-authored-by: Jiexi Luan <jiexiluan@gmail.com> Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Merged
adonesky1
added a commit
that referenced
this pull request
Jun 20, 2025
## @metamask/chain-agnostic-permission ## [1.0.0] ### Changed - This package is now considered stable ## @metamask/eip1193-permission-middleware ## [1.0.0] ### Changed - Bump `@metamask/chain-agnostic-permission` to `^0.8.0` ([#5518](#5518), [#5674](#5674), [#5818](https://github.com/MetaMask/core/pull/5818)[#5583](https://github.com/MetaMask/core/pull/5583), [#5982](https://github.com/MetaMask/core/pull/5982),[#6004](https://github.com/MetaMask/core/pull/6004)) - Bump `@metamask/chain-agnostic-permission` to `^0.8.0` ([#5550](#5550), [#5518](#5518), [#5674](#5674), [#5715](#5715), [#5760](#5760), [#5818](https://github.com/MetaMask/core/pull/5818)[#5583](https://github.com/MetaMask/core/pull/5583), [#5982](https://github.com/MetaMask/core/pull/5982),[#6004](https://github.com/MetaMask/core/pull/6004)) - Bump `@metamask/controller-utils` to `^11.10.0` ([#5935](#5935), [#5583](#5583), [#5765](#5765), [#5812](#5812)) ## @metamask/multichain-api-middleware ## [1.0.0] ### Changed - Bump `@metamask/chain-agnostic-permission` to `^0.8.0` ([#5518](#5518), [#5674](#5674), [#5818](https://github.com/MetaMask/core/pull/5818)[#5583](https://github.com/MetaMask/core/pull/5583), [#5982](https://github.com/MetaMask/core/pull/5982),[#6004](https://github.com/MetaMask/core/pull/6004)) - Bump `@metamask/chain-agnostic-permission` to `^0.8.0` ([#5550](#5550), [#5518](#5518), [#5674](#5674), [#5715](#5715), [#5760](#5760), [#5818](https://github.com/MetaMask/core/pull/5818)[#5583](https://github.com/MetaMask/core/pull/5583), [#5982](https://github.com/MetaMask/core/pull/5982),[#6004](https://github.com/MetaMask/core/pull/6004)) - Bump `@metamask/controller-utils` to `^11.10.0` ([#5935](#5935), [#5583](#5583), [#5765](#5765), [#5812](#5812))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a release for the
@metamask/multichain-api-middlewareadding and exportingwallet_createSessionhandler andCaip25Errors, and@metamask/chain-agnostic-permissionadding and exporting utility functionsisKnownSessionPropertyValue,getCaipAccountIdsFromScopesObjects,getAllScopesFromScopesObjectsandgetSupportedScopeObjects.Explanation
References
Changelog
@metamask/chain-agnostic-permissionisKnownSessionPropertyValuevalidation utility function (originally migrated fromextensionrepo)getCaipAccountIdsFromScopesObjectsfiltering utility function (originally migrated fromextensionrepo)getAllScopesFromScopesObjectsfiltering utility function (originally migrated fromextensionrepo)getSupportedScopeObjectsfiltering utility function (originally migrated fromextensionrepo)@metamask/multichain-api-middlewarewallet_createSessionhandler (originally migrated fromextensionrepo)Caip25ErrorsChecklist