Skip to content

v1.1.0

Latest

Choose a tag to compare

@hereldar hereldar released this 07 Mar 08:55

This release introduces Monotonic ID Generation, ensuring that identifiers created within the same millisecond are always strictly ordered, while maintaining high performance and security.

Key Changes:

  • Monotonic Sequence: Sequential IDs are now guaranteed to maintain strict chronological order, even in high-throughput scenarios within the same millisecond.
  • Clock Drift Resilience: Robust handling for system clock drift (e.g., NTP syncs), tolerating small backward jumps without breaking the sequence.
  • Enhanced Security: Implemented a random increment strategy for monotonicity (inspired by ULID security discussions) to prevent observers from predicting sequential identifiers.
  • Overflow & Carry Handling: Implemented a "carry" mechanism that ensures continuous ordering even if the 62-bit random component saturates.

Full Changelog: v1.0.1...v1.1.0