configwire 0.0.2 copy "configwire: ^0.0.2" to clipboard
configwire: ^0.0.2 copied to clipboard

Pure-Dart ConfigWire client (fetch, cache, typed getters, realtime).

0.0.2 #

Added #

  • TargetingContext (lib/src/targeting.dart, exported from package:configwire/configwire.dart): carries userId, platform, appVersion, locale, country, customAttrs for server-side rule evaluation. Empty fields are omitted from the fetch query; customAttrs is sent as ?attrs=<json>. Includes copyWith, empty, and toQueryParameters().

Changed #

  • Breaking: fetchAndActivate and ensureInitialized now take only {TargetingContext? context, bool force}. The flattened String? userId/platform/appVersion/locale/country and Map? customAttrs params are removed. Migrate: fetchAndActivate(userId: 'u') -> fetchAndActivate(context: const TargetingContext(userId: 'u')); single-field update -> fetchAndActivate(context: cw.targeting.copyWith(platform: 'ios')).
  • Targeting is sticky: a non-null context replaces cw.targeting for this and all future fetches, including connectRealtime poll/SSE refreshes (fetchAndActivate(force: true) reuses the stored context). setTargeting replaces the stored context without fetching.

0.0.1 #

  • Initial release of the pure-Dart configwire client.
0
likes
0
points
991
downloads

Documentation

Documentation

Publisher

verified publisherconfigwire.com

Weekly Downloads

Pure-Dart ConfigWire client (fetch, cache, typed getters, realtime).

Repository (GitHub)
View/report issues

Topics

#remote-config #feature-flags #configuration

License

unknown (license)

Dependencies

crypto, http

More

Packages that depend on configwire