Changelog
3.2.0 (2026-10-04)
Add
HIDas a compatible named alias ofHybridIDGenerator, with identical constructor and instance behavior.Replace Compodoc with organized VitePress guides, API reference, local search, mobile navigation, and legacy link redirects.
Use
mainas the only permanent branch for pull requests, CI, GitHub Pages, and npm releases.Fix Base32/Base64 zero encoding, Base64 round trips, invalid encoding input, numeric string comparison, serialization validation, and HybridID wrapper validation.
Honor zero-bit fields, support 32-bit fields without signed overflow, and validate options, batches, machine IDs, and expiry durations.
Eliminate clock and masked sequence-overflow busy-waits; retain logical time during rollback and read the clock for every batch ID.
Use milliseconds consistently for monotonic generation and expiry; reject timestamp overflow instead of truncating it.
Add native Node ES module and bundled browser ES module/global entries, TypeScript package metadata, and installed-package/browser checks.
Upgrade development dependencies and use npm trusted publishing with a version gate and registry propagation verification.
See the migration guide for stricter validation, zero encodings, monotonic ID compatibility, and logical clock behavior.
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.1.2 (2026-01-31)
3.1.1 (2026-01-31)
3.0.6 (2026-01-31)
3.0.5 (2026-01-31)
3.0.4 (2026-01-31)
Bug Fixes
- timestamp default, machine ID providers, entropy, validation, browser support; README comparison and release docs (1ffe1de)
3.0.3 (2024-10-11)
3.0.2 (2024-10-11)
Bug Fixes
- 🐛 resolve issue with nextId with this.emit (dc7576c)
3.0.1 (2024-10-11)
3.0.0 (2024-10-11)
2.4.0 (2024-10-11)
Features
- 🎸 add info method to get the id info ,fix isValidateId (2d528af)
- 🎸 Update the generate id functionality to extend it (12e122f)