feat(snap-networks-utils): add shared RemoteFeatureFlagProvider - #99
Merged
Conversation
ulissesferreira
temporarily deployed
to
default-branch
August 4, 2026 00:51 — with
GitHub Actions
Inactive
ulissesferreira
force-pushed
the
WPN-1790-create-feature-flags-provider
branch
3 times, most recently
from
August 4, 2026 07:24
901858d to
d1b4c93
Compare
ulissesferreira
force-pushed
the
WPN-1790-create-feature-flags-provider
branch
4 times, most recently
from
August 4, 2026 08:27
e755556 to
3fe2cc5
Compare
ulissesferreira
force-pushed
the
WPN-1790-create-feature-flags-provider
branch
from
August 4, 2026 08:37
3fe2cc5 to
43ec7ee
Compare
Contributor
Author
|
@metamaskbot publish-preview |
Contributor
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
ulissesferreira
enabled auto-merge
August 4, 2026 09:57
gabrieledm
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
RemoteFeatureFlagProviderutility to thesnap-networks-utilspackage, enabling access to remote feature flags via a messenger interface. The provider is fully tested and integrates with the@metamask/remote-feature-flag-controllerpackage, which is added as a new dependency.New Remote Feature Flag Provider
RemoteFeatureFlagProviderclass, which exposes methods to fetch individual or multiple remote feature flag values using an injected messenger. This enables other code to easily query LaunchDarkly/client-config feature flags.RemoteFeatureFlagProviderMessengerandREMOTE_FEATURE_FLAG_PROVIDER_NAME, to ensure type safety and integration with the messenger system.Testing
RemoteFeatureFlagProvider, covering both single and multiple flag retrieval, including cases for missing keys and empty input.Dependency Updates
@metamask/remote-feature-flag-controlleras a new dependency inpackage.jsonto support the new provider.## ExplanationReferences
Checklist