Skip to main content

featureflip 2.6.0 copy "featureflip: ^2.6.0" to clipboard
featureflip: ^2.6.0 copied to clipboard

Flutter SDK for Featureflip — evaluate feature flags in Flutter apps with real-time updates.

2.6.0 — 2026-08-24 #

Fixed #

  • A permanently rejected batch of analytics events is no longer retried forever. The flush restored the batch on any error, so a 401/403 (rejected SDK key) or 400 (malformed body) would be re-sent indefinitely, pinning the buffer at its cap and starving every later event. Only a retryable failure — 5xx, 429, or a transport fault — is kept now. (#2456)
  • A failing events endpoint no longer receives one request per recorded event. A restored batch leaves the buffer at or above the batch size, so every subsequent event re-fired the size trigger. That trigger now backs off for one flush interval after a retryable failure and will not start a second flush while one is running; the periodic timer remains the retry vehicle. (#2456)
  • A flush failure is now reported. The failure was swallowed by a bare catch (_), so events could be retried or discarded with nothing written to the log. (#2456)
  • stop() makes a single final attempt and discards the remainder, rather than restoring a batch into a buffer nothing will ever drain again. (#2456)

Changed #

  • A flush sends one request per batch instead of one for the whole buffer. Restoring failed batches is what lets the buffer reach its 1000-event cap, and a body that size invites a 413 — which is not retryable, so the path meant to preserve the backlog would have been the one that discarded it. (#2456)

2.5.0 — 2026-08-20 #

Fixed #

  • A closed handle serves the caller's default from every accessor and reports not-initialized. close() releases the shared core — stopping streaming and polling, shutting down the event processor — but the in-memory cache stayed readable, so a closed client kept evaluating against a frozen snapshot that could never update again while still reporting itself initialized. (#2291)

  • A failed initial flag fetch is now diagnosable rather than swallowed by a bare catch (_). (#2290)

2.4.1 — 2026-08-05 #

Fixed #

  • LICENSE is now the verbatim Apache-2.0 text. Three phrases in the operative sections had been reworded and the appendix dropped, which left automated license scanners unable to identify it. The license itself is unchanged; the file now says what it always claimed to.
  • The README's pubspec.yaml snippet says ^2.4.1. It said ^2.0.0 in the repo and on the mirror, while pub.dev showed a different value again — the publish workflow rewrote that line on its way out, so the three copies disagreed. The rewrite is gone and all three now come from one source.

2.4.0 — 2026-07-29 #

Added #

  • onEvaluation inspector callback. inspectors config option registering in-process observers fired on every evaluation. Notified from the four variation accessors after type coercion — flagDetail() and all-flags accessors stay silent so one decision is never double-counted. reason is the engine's kebab-case string forwarded verbatim; a flag absent from the snapshot synthesizes flag-not-found (#1914).

2.3.0 — 2026-07-13 #

Fixed #

  • Outage-recovery hardening: replace-on-reconnect, so a flag deleted while disconnected is dropped (#1883).
  • The connect-snapshot store replacement is keyed off the explicit full: true marker rather than event order, which was ambiguous when a delta arrived first (#1887).

2.2.0 — 2026-06-19 #

Added #

  • A generated anonymous user_id is persisted via shared_preferences and injected at every evaluate/identify/SSE call, so anonymous users bucket consistently across sessions (#1467).

2.1.0 — 2026-05-27 #

Added #

  • FlagValue.prerequisiteKey. Optional String? on FlagValue carrying the key of the prerequisite flag that caused this flag to serve its off variation. Populated by the server on /v1/client/evaluate and /v1/client/identify responses when reason == "prerequisite-failed"; null for all other reasons. toJson omits the field when null, preserving the existing wire shape for older consumers (#1124).

2.0.0 #

BREAKING: Singleton-by-construction refactor.

  • Removed public constructor FeatureflipClient(config:), FeatureflipClient.withHttpClient(), FeatureflipClient.configure(), and FeatureflipClient.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
0
likes
0
points
932
downloads

Documentation

Documentation

Publisher

verified publisherfeatureflip.io

Weekly Downloads

Flutter SDK for Featureflip — evaluate feature flags in Flutter apps with real-time updates.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on featureflip