Skip to content

Releases: litert/uuid.js

v2.1.0

24 Aug 03:22
v2.1.0
a383e95
Compare
Choose a tag to compare

CHANGES

  • feat(algo): added bulkGenerate for both Snowflake and Snowflake-SI algorithms.

Full Changelog: v2.0.3...v2.1.0

v2.0.3

26 Jul 01:33
v2.0.3
ceb0d41
Compare
Choose a tag to compare

CHANGES

  • fix(algo): reverted the update of v2.0.2 that removed the reset of sequence number to 0.

  • feat(algo): added onTimeReversed option to Snowflake (SI) algorithms.

    This option allows the user to specify a strategy for handling time reversals in the Snowflake (SI) algorithm.
    The default strategy is THROW_ERROR, to keep the compatibility with previous versions.

  • feat(algo): added onTimeChanged option to Snowflake (SI) algorithms.

    This option allows the user to customize the behavior of the sequence number, when the time is changed.
    The default strategy is to RESET the sequence number to 0, which is compatible with previous versions.

    This option could cooperate with the sequenceResetThreshold option, so that only when the current sequence
    number is up to the threshold, the sequence number will be reset to 0.

v2.0.2

22 Jul 14:01
v2.0.2
1c0dd85
Compare
Choose a tag to compare

CHANGES

  • fix(algo): snowflake/snowflake-si class should not reset sequence to 0 avoiding sequence overflow.

    To ensure the randomness of the generated IDs, the sequence number must keep increasing even if the time is
    changed. Thus an additional counter will be used to track the quantity of IDs generated in the same millisecond.

Full Changelog: v2.0.1...v2.0.2

v2.0.0

06 Jul 09:25
v2.0.0
fb9a7bf
Compare
Choose a tag to compare

CHANGES

  • feat(algo): added implements of GUIDv4 algorithm.
  • feat(algo): added implements of GUIDv5 algorithm.
  • fix(algo): allow Snowflake using custom epoch.
  • fix(algo): implement Snowflake-SI with more customization options.
  • deprecate(algo): removed the Snowflake-SI-vA algorithm, which is no longer recommended.
  • test(project): added unit tests.
  • deprecate(deps): removed all runtime dependencies.

Full Changelog: v1.0.0...v2.0.0

Release v1.0.0

02 Jan 03:39
Compare
Choose a tag to compare

Changes

  • Refactored the project.

News

  • Added implements of standard Snowflake algorithm.

Release v0.1.1

07 May 04:12
Compare
Choose a tag to compare

Changes

  • Fixed the position of MID of UUID in Snowflake-SI-vA.

Release v0.1.0

06 May 10:47
Compare
Choose a tag to compare

Features

  • Snowflake-SI algorithm.
  • Snowflake-SI-vA algorithm.