Skip to content

Release/370.0.0#5674

Merged
ffmcgee725 merged 6 commits intomainfrom
release/370.0.0
Apr 17, 2025
Merged

Release/370.0.0#5674
ffmcgee725 merged 6 commits intomainfrom
release/370.0.0

Conversation

@ffmcgee725
Copy link
Copy Markdown
Member

@ffmcgee725 ffmcgee725 commented Apr 17, 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

References

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

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

@ffmcgee725 ffmcgee725 requested review from a team as code owners April 17, 2025 18:47
jiexi
jiexi previously approved these changes Apr 17, 2025
mcmire
mcmire previously approved these changes Apr 17, 2025
Copy link
Copy Markdown
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

One nit, but looks good regardless.

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
@ffmcgee725 ffmcgee725 dismissed stale reviews from mcmire and jiexi via 7e8011a April 17, 2025 19:10
@ffmcgee725 ffmcgee725 enabled auto-merge (squash) April 17, 2025 19:13
@ffmcgee725 ffmcgee725 merged commit 0b94001 into main Apr 17, 2025
202 checks passed
@ffmcgee725 ffmcgee725 deleted the release/370.0.0 branch April 17, 2025 19:15
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>
@adonesky1 adonesky1 mentioned this pull request Jun 20, 2025
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))
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