refactor(snap-network-utils): rename RemoteFeatureFlagProvider to RemoteFeatureFlagsProvider - #104
Merged
ulissesferreira merged 1 commit intoAug 4, 2026
Conversation
ulissesferreira
temporarily deployed
to
default-branch
August 4, 2026 12:49 — with
GitHub Actions
Inactive
RemoteFeatureFlagProvider to `…RemoteFeatureFlagProvider to RemoteFeatureFlagsProvider
…RemoteFeatureFlagsProvider`
ulissesferreira
force-pushed
the
WPN-1790-rename-remote-feature-flags-provider-to-plural
branch
from
August 4, 2026 12:52
dc32809 to
36b3048
Compare
ulissesferreira
deleted the
WPN-1790-rename-remote-feature-flags-provider-to-plural
branch
August 4, 2026 13:01
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.
Explanation
RemoteFeatureFlagProviderwas introduced in #99 and exported in #102 as a shared utility for reading remote feature flags from Core viaRemoteFeatureFlagController:getState. The singular Flag naming was inconsistent with the controller (RemoteFeatureFlagController) and our other pluralized provider exports (e.g.AssetsProvider), and it reads awkwardly for a class that returns multiple flags viagetFeatureFlags.This PR renames the provider and its related symbols to use Flags (plural):
RemoteFeatureFlagProviderRemoteFeatureFlagsProviderRemoteFeatureFlagProviderMessengerRemoteFeatureFlagsProviderMessengerREMOTE_FEATURE_FLAG_PROVIDER_NAMEREMOTE_FEATURE_FLAGS_PROVIDER_NAMESource files are renamed accordingly (
RemoteFeatureFlagsProvider.ts,RemoteFeatureFlagsProvider.test.ts). Package exports insrc/index.tsare updated to match.Note: The Core controller action and types remain
RemoteFeatureFlagController/RemoteFeatureFlagController:getState(singular Flag) — only the snap-networks-utils provider namespace and exports change.No consumers in this repo or downstream snaps currently import the old singular names, so this is a low-risk rename ahead of broader adoption.
References
RemoteFeatureFlagProvider)RemoteFeatureFlagProvider#102 (exported provider from package entrypoint)Checklist