Commit 4dd1d2b
authored
Release/728.0.0 (#7519)
## Explanation
This PR upgrades `@metamask/remote-feature-flag-controller` from v3.0.0
to v3.1.0 across the monorepo and bumps the monorepo version to 728.0.0.
### Current State
The `@metamask/remote-feature-flag-controller` package is currently at
version 3.0.0, which supports version-gated feature flags but lacks the
ability for clients to locally override feature flag values for testing,
debugging, or development purposes.
### Solution
Version 3.1.0 introduces new override functionality that allows clients
to set local overrides for feature flags. These overrides take
precedence over remote feature flags, enabling:
- Local testing of feature flags without modifying remote configuration
- Debugging specific flag combinations
- Development workflows that require flag manipulation
### Changes in v4.0.0
**New APIs:**
- `setFlagOverride(flagName, value)` - Set a local override for a
specific feature flag
- `removeFlagOverride(flagName)` - Clear the local override for a
specific feature flag
- `clearAllFlagOverrides()` - Clear all local feature flag overrides
**New Optional State Properties:**
- `localOverrides` - Local overrides for feature flags that take
precedence over remote flags
- `rawRemoteFeatureFlags` - Raw flag value for all feature flags
(separate from the merged view)
**New Exports:**
- `RemoteFeatureFlagControllerSetFlagOverrideAction`
- `RemoteFeatureFlagControllerRemoveFlagOverrideAction`
- `RemoteFeatureFlagControllerClearAllFlagOverridesAction`
### Breaking Changes
While this release is primarily additive, it's marked as a major version
bump (v3.1.0) because:
1. New state properties (`localOverrides`, `rawRemoteFeatureFlags`) are
added to the controller state, which affects state
serialization/deserialization
2. Consumers need to ensure their state migration handles these new
properties
3. Type definitions have been updated to include the new action types
### Package Updates
The following packages have been updated to use
`@metamask/remote-feature-flag-controller@^3.1.0`:
- `@metamask/bridge-controller`
- `@metamask/transaction-controller`
- `@metamask/transaction-pay-controller`
All changelogs have been updated to document this breaking dependency
upgrade.
## References
- Related to [#7271](#7271) - Add
override functionality to remote feature flags
- Related to [#7519](#7519) -
Upgrade remote-feature-flag-controller to v3.1.0
## 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)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Bumps the monorepo to 728.0.0 and upgrades
`@metamask/remote-feature-flag-controller` to 3.1.0 with flag override
APIs, updating dependent packages and changelogs.
>
> - **Versioning**
> - Bump monorepo `version` to `728.0.0`.
> - **Packages**
> - **`packages/remote-feature-flag-controller`**
> - Release `3.1.0`; adds local flag override APIs (`setFlagOverride`,
`removeFlagOverride`, `clearAllFlagOverrides`) and optional
state/exports; update `CHANGELOG.md`.
> - **Dependents**
> - Update dependencies to
`@metamask/remote-feature-flag-controller@^3.1.0` in
`packages/bridge-controller`, `packages/transaction-controller`, and
`packages/transaction-pay-controller`.
> - Reflect dependency bump in respective `CHANGELOG.md` files.
> - **Tooling**
> - Update `yarn.lock` to resolve new dependency versions.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
53e3b53. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent b5e7e19 commit 4dd1d2b
File tree
10 files changed
+20
-11
lines changed- packages
- bridge-controller
- remote-feature-flag-controller
- transaction-controller
- transaction-pay-controller
10 files changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | | - | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2815 | 2815 | | |
2816 | 2816 | | |
2817 | 2817 | | |
2818 | | - | |
| 2818 | + | |
2819 | 2819 | | |
2820 | 2820 | | |
2821 | 2821 | | |
| |||
4622 | 4622 | | |
4623 | 4623 | | |
4624 | 4624 | | |
4625 | | - | |
| 4625 | + | |
4626 | 4626 | | |
4627 | 4627 | | |
4628 | 4628 | | |
| |||
5062 | 5062 | | |
5063 | 5063 | | |
5064 | 5064 | | |
5065 | | - | |
| 5065 | + | |
5066 | 5066 | | |
5067 | 5067 | | |
5068 | 5068 | | |
| |||
5107 | 5107 | | |
5108 | 5108 | | |
5109 | 5109 | | |
5110 | | - | |
| 5110 | + | |
5111 | 5111 | | |
5112 | 5112 | | |
5113 | 5113 | | |
| |||
0 commit comments