offline_first_sync_drift 0.1.1 copy "offline_first_sync_drift: ^0.1.1" to clipboard
offline_first_sync_drift: ^0.1.1 copied to clipboard

Offline-first synchronization library for Dart/Flutter built on Drift. Features conflict resolution, outbox pattern, and incremental sync.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.1 - 2025-01-27 #

Fixed #

  • Fixed modular generation compatibility for Drift databases
  • Improved code examples in documentation

Documentation #

  • Updated README with complete model examples including @JsonSerializable
  • Fixed import statements for modular generation (import instead of part)
  • Added missing dependencies (json_annotation, json_serializable) to installation guide
  • Improved conflict resolution examples with proper switch expression

0.1.0 - 2024-11-27 #

Added #

  • Initial release
  • SyncEngine for push/pull synchronization with conflict resolution
  • SyncDatabaseMixin for Drift database integration
  • SyncColumns mixin for syncable tables (adds updatedAt, deletedAt, deletedAtLocal)
  • SyncableTable<T> registration for entities
  • Conflict resolution strategies:
    • autoPreserve (default) - smart merge preserving all data
    • serverWins - server version wins
    • clientWins - client version wins with force push
    • lastWriteWins - latest timestamp wins
    • merge - custom merge function
    • manual - manual resolution via callback
  • TransportAdapter interface for custom transports
  • Outbox pattern for offline-first operations
  • Cursor-based pagination for incremental sync
  • Full resync support with configurable intervals
  • Events stream for UI integration and monitoring
  • SyncStats for sync operation statistics
0
likes
160
points
--
downloads

Publisher

unverified uploader

Offline-first synchronization library for Dart/Flutter built on Drift. Features conflict resolution, outbox pattern, and incremental sync.

Repository (GitHub)
View/report issues

Topics

#drift #offline-first #sync #database #cache

Documentation

API reference

License

MIT (license)

Dependencies

drift

More

Packages that depend on offline_first_sync_drift