You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Fix mistake in StatePropertyMetadataConstraint type (#6942)
## Explanation
In the `next` export of `base-controller`, the type
`StatePropertyMetadataConstraint` mistakenly referenced the old metadata
property name `anonymous` rather than `includeInDebugSnapshot`. The type
has been updated to use the correct name.
## References
Fixes a mistake introduced in #6593
## 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
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Corrects `StatePropertyMetadataConstraint` in the experimental `next`
export to use `includeInDebugSnapshot` instead of `anonymous`, and
updates the changelog.
>
> - **Type fix (experimental `next`)**
> - Update `StatePropertyMetadataConstraint` in
`packages/base-controller/src/next/BaseController.ts` to use
`includeInDebugSnapshot` (replacing `anonymous`).
> - **Changelog**
> - Add Unreleased entry documenting the fix in
`packages/base-controller/CHANGELOG.md`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
31f5c11. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments