hlc_dart 1.1.0 copy "hlc_dart: ^1.1.0" to clipboard
hlc_dart: ^1.1.0 copied to clipboard

A Hybrid Logical Clock implementation in Dart, based on the paper "Logical Physical Clocks and Consistent Snapshots in Globally Distributed Databases".

1.1.0 #

Date: 2026-06-11

compare to previous release

Added #

  • Added encoder/decoder for 8-byte buffer for desktop and web interoperability

1.0.0 #

Date: 2025-08-18

compare to previous release

Added #

  • Can set a maxDrift for receiveEvent (added ClockDriftException)
  • asDateTime to get the logical/physical part of the timestamp as a DateTime object
  • nextTimestamp and merge to update the clock without mutating the original instance

Changed #

  • chore: setup .github/workflows and update coverage links 33
  • chore: improve documentation on toInt64
  • Assert non-negative logical time and counter

0.3.1 #

Date: 2025-06-26

compare to previous release

Changed #

  • Update documentation

0.3.0 #

Date: 2025-05-10

compare to previous release

Changed #

  • chore: apply linter rules
  • chore: more documentation on public api

0.2.0 #

Date: 2025-04-27

compare to previous release

Added #

  • happenedAfter
  • operator >=
  • operator <=
  • operator >
  • operator <

0.1.3 #

Date: 2025-04-21

compare to previous release

Changed #

  • Updated CHANGELOG.md

0.1.2 #

Date: 2025-04-04

compare to previous release

Changed #

  • Shorter pubspec.yaml description

0.1.1 #

Date: 2025-04-02

compare to previous release

Added #

  • Tests, 100% coverage

Changed #

  • Improved static analysis
  • chore: update README

Fixed #

  • chore: fix repository link

0.1.0 #

Date: 2025-04-01

Initial release

Initial release

Added #

  • Local event handling
  • Message exchange between peers
  • Causality detection
  • Serialization to/from 64-bit integers
  • Thread-safe implementation
  • Zero dependencies
4
likes
160
points
396
downloads

Documentation

API reference

Publisher

verified publishermattiapispisa.it

Weekly Downloads

A Hybrid Logical Clock implementation in Dart, based on the paper "Logical Physical Clocks and Consistent Snapshots in Globally Distributed Databases".

Homepage
Repository (GitHub)
View/report issues

Topics

#local-first #hlc #logical-clocks #distributed-systems

License

MIT (license)

More

Packages that depend on hlc_dart