Commit 0bf29e4
authored
fix: Fix mistake in
## 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 -->StatePropertyMetadataConstraint type (#6942)1 parent e4f2a09 commit 0bf29e4
File tree
2 files changed
+6
-1
lines changed- packages/base-controller
- src/next
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments