Skip to content

Commit ec00962

Browse files
authored
chore: Remove deprecated state derivation functions from next (#6611)
## Explanation The two deprecated state derivation functions (`getAnonymizedState` and `getPersistentState`) have been removed from the `next` export, which as upcoming breaking changes. `deriveStateFromMetadata` remains the recommended replacement. ## References Closes #6610 ## 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
1 parent a3cca55 commit ec00962

File tree

5 files changed

+4
-457
lines changed

5 files changed

+4
-457
lines changed

eslint-warning-thresholds.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"import-x/namespace": 18
111111
},
112112
"packages/base-controller/src/next/BaseController.test.ts": {
113-
"import-x/namespace": 18
113+
"import-x/namespace": 14
114114
},
115115
"packages/build-utils/src/transforms/remove-fenced-code.test.ts": {
116116
"import-x/order": 1

packages/base-controller/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Bump `@metamask/utils` from `^11.4.2` to `^11.8.0` ([#6588](https://github.com/MetaMask/core/pull/6588))
1313
- In experimental `next` export, rename `anonymous` metadata property to `includeInDebugSnapshot` ([#6593](https://github.com/MetaMask/core/pull/6593))
1414
- In experimental `next` export, make `includeInStateLogs` and `usedInUi` metadata properties required ([#6593](https://github.com/MetaMask/core/pull/6593))
15+
- In experimental `next` export, remove deprecated exports `getPersistentState` and `getAnonymizedState` ([#6611](https://github.com/MetaMask/core/pull/6611))
1516

1617
## [8.3.0]
1718

0 commit comments

Comments
 (0)