Skip to content
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

export KnownSessionProperties from chain-agnostic-permission package #5522

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Mar 21, 2025

Tiny oversight. Need to export KnownSessionProperties from the package index file!

@adonesky1 adonesky1 marked this pull request as ready for review March 25, 2025 19:02
@adonesky1 adonesky1 requested a review from a team as a code owner March 25, 2025 19:02
@adonesky1 adonesky1 enabled auto-merge (squash) March 25, 2025 19:05
@adonesky1 adonesky1 merged commit 7773aeb into main Mar 25, 2025
194 checks passed
@adonesky1 adonesky1 deleted the ad/export-const branch March 25, 2025 19:06
@adonesky1 adonesky1 mentioned this pull request Mar 25, 2025
adonesky1 added a commit that referenced this pull request Mar 25, 2025
## @metamask/chain-agnostic-permission

## [0.3.0]

### Added

- Export `KnownSessionProperties` enum
([#5522](#5522))
- Add more chain agnostic utility functions for interfacing w/ caip25
permission ([#5536](#5536))
- New `setPermittedAccounts` function that allows setting accounts for
any CAIP namespace, not just EVM scopes.
- New `addPermittedChainId` and `setPermittedChainIds` functions for
managing permitted chains across any CAIP namespace.
- New `generateCaip25Caveat` function to generate a valid
`endowment:caip25` permission caveat from given accounts and chains of
any CAIP namespace.
- New `isWalletScope` utility function to detect wallet-related scopes.

### Changed

- **BREAKING:** An error is now thrown in the caveat validator when a
`caip25:endowment` permission caveat has no scopes in either
`requiredScopes` or `optionalScopes`
([#5548](#5548))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants