featureflip 2.3.0
featureflip: ^2.3.0 copied to clipboard
Flutter SDK for Featureflip — evaluate feature flags in Flutter apps with real-time updates.
Unreleased #
Added #
FlagValue.prerequisiteKey. OptionalString?onFlagValuecarrying the key of the prerequisite flag that caused this flag to serve its off variation. Populated by the server on/v1/client/evaluateand/v1/client/identifyresponses whenreason == "prerequisite-failed"; null for all other reasons.toJsonomits the field when null, preserving the existing wire shape for older consumers.
2.0.0 #
BREAKING: Singleton-by-construction refactor.
- Removed public constructor
FeatureflipClient(config:),FeatureflipClient.withHttpClient(),FeatureflipClient.configure(), andFeatureflipClient.shared. - Added
FeatureflipClient.get(sdkKey, config:)static factory — the only way to obtain a client. Multiple calls with the same SDK key return handles sharing one refcounted core. - Added
FeatureflipClient.resetForTesting()for test isolation. FeatureflipClient.forTesting()unchanged — continues to create independent test clients.
Migration #
Before:
final client = FeatureflipClient(config: config);
// or
FeatureflipClient.configure(config);
final client = FeatureflipClient.shared;
After:
final client = FeatureflipClient.get('your-sdk-key', config: config);
1.0.0 #
- Initial release