api_command_queue_bloc 0.4.0 copy "api_command_queue_bloc: ^0.4.0" to clipboard
api_command_queue_bloc: ^0.4.0 copied to clipboard

Bloc and hydrated_bloc adapters for the api_command_queue core package.

Changelog #

0.4.0 #

  • Requires api_command_queue 0.4.x, which adds ApiCommandOrchestrator.autoFlushWhenDue so retries progress without waiting for the consumer to trigger the next flush.

0.3.0 #

  • Requires api_command_queue 0.3.x, which schedules retry backoff instead of sleeping it inside flush().

  • Both cubits forward the new nextDueAt, so a consumer holding a cubit or an orchestrator can tell when to flush again rather than poll for it.

  • Added HydratedApiCommandQueueCubit.dropUndecodableCommands, off by default.

    SyncState.fromJson decodes the queue in a single pass, so one undecodable command throws and takes every other queued command with it: hydrated_bloc catches the error, falls back to an empty queue and - on its default HydrationErrorBehavior.overwrite - writes that empty queue back over the stored one. Every write the device had not yet sent is lost.

    With the flag on, each command is decoded on its own first and only the ones that fail are left out, each reported through apiCommandQueueLogger. Existing behaviour is unchanged unless it is switched on.

0.2.0 #

  • update api_command_queue version to 0.2.0

0.1.0 #

  • Companion adapter package for api_command_queue Dart library
  • Adds Cubit and HydratedCubit wrappers for core queues and orchestrators.
  • Mirrors wrapped queue and orchestrator state synchronously through the public state getter.
1
likes
160
points
161
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Bloc and hydrated_bloc adapters for the api_command_queue core package.

Repository (GitHub)
View/report issues

Topics

#bloc #hydration #command-queue #offline-first

License

MIT (license)

Dependencies

api_command_queue, bloc, hydrated_bloc

More

Packages that depend on api_command_queue_bloc