featureflip 2.6.1
featureflip: ^2.6.1 copied to clipboard
Flutter SDK for Featureflip — evaluate feature flags in Flutter apps with real-time updates.
2.6.1 — 2026-08-26 #
Fixed #
-
An explicit
client.flush()no longer opens a second drain loop while one is already running. The in-flight latch added for #2456 guarded only the batch-size trigger, so the periodic flush, an explicitclient.flush()and a size-triggered flush could enter the loop together — two request streams against an endpoint the backoff gate exists to protect, and worse, a success in one cleared the gate a failure in the other had just armed, re-opening the one-request-per-evaluation behaviour outright. A caller arriving while a drain is running now waits for it and returns, matching the js and node SDKs. Shutdown still bypasses coalescing, because it is the last drain there will ever be. (#2477) -
The first SSE reconnect after a healthy stream drops is now jittered to
[d/2, d], like every other backoff level. The drops this absorbs are fleet-wide — a single edge event severs every stream at once — so every client re-entered the backoff together and waited an identical delay, republishing the drop's own synchronisation as a reconnect spike one backoff later. Measured in production: a drop spread across 2.5–3.0 ms produced a reconnect spread of 26–46 ms. The delay never exceeds the previous one and stays strictly positive, so a stream that fails immediately still cannot busy-loop. (#2508)
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 #
LICENSEis 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.yamlsnippet says^2.4.1. It said^2.0.0in 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 #
onEvaluationinspector callback.inspectorsconfig 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.reasonis the engine's kebab-case string forwarded verbatim; a flag absent from the snapshot synthesizesflag-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: truemarker rather than event order, which was ambiguous when a delta arrived first (#1887).
2.2.0 — 2026-06-19 #
Added #
- A generated anonymous
user_idis persisted viashared_preferencesand injected at every evaluate/identify/SSE call, so anonymous users bucket consistently across sessions (#1467).
2.1.0 — 2026-05-27 #
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 (#1124).
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:
dart final client = FeatureflipClient(config: config); // or FeatureflipClient.configure(config); final client = FeatureflipClient.shared;
After:
dart final client = FeatureflipClient.get('your-sdk-key', config: config);
1.0.0 #
- Initial release