Skip to content

Releases: godruoyi/php-snowflake

3.2.1

01 May 02:36
b82b313
Compare
Choose a tag to compare

What's Changed

  • fix: make it possible to set datacenter and workerId intentionally to 0 by @CommanderRoot in #81

CleanShot 2025-05-01 at 10 36 02@2x

New Contributors

Full Changelog: 3.2.0...3.2.1

3.2.0

30 Apr 13:43
f0dbd16
Compare
Choose a tag to compare

What's Changed

  • chore: cleanup of tests (testing with swoole on 8.3, removed all warnings) by @jklab in #79
  • chore: make random sequence resolver more random by @godruoyi in #80
    • The default workId and datacenterId will be randomly between 0 and 31 if not set.
    • A more random algorithm is used to generate sequence numbers in the RandomSequenceResolver.

This is a breaking change as we have updated the default behavior when creating a Snowflake instance.

CleanShot 2025-04-30 at 21 43 48@2x

Update your package to version 3.2.0 to apply the change.

Full Changelog: 3.1.1...3.2.0

Support PHP8.4

22 Nov 14:19
eacdba1
Compare
Choose a tag to compare

What's Changed

  • chore: adjustments for php 8.4 by @jklab in #77
  • delete unstable tests and skip redis tests if the redis extension is not installed by @godruoyi in #78

New Contributors

  • @jklab made their first contribution in #77

Full Changelog: 3.1.0...3.1.1

3.1.0

09 Apr 07:40
cbf4476
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.0.0...3.1.0

3.0.0

28 Aug 12:39
bf77419
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.2.4...3.0.0

2.2.4 feat: add setCachePrefix to LaravelSequenceResolver

05 Jul 13:37
833ce5a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.2.3...2.2.4

2.2.3

11 Apr 04:17
dde1e16
Compare
Choose a tag to compare

What's Changed

  • Chore: deprecated getCurrentMicrotime by @godruoyi in #45
  • Use custom Laravel pint config

Full Changelog: 2.2.2...2.2.3

fixes timestamp parsing from a given ID

08 Feb 10:30
18ceb83
Compare
Choose a tag to compare

What's Changed

  • fix(id-parsing): fixes timestamp parsing from a given ID by @hernandev in #43

New Contributors

Full Changelog: 2.2.1...2.2.2

Fix Implicit conversion loses precision

19 Jan 12:39
53f94ac
Compare
Choose a tag to compare
2.2.1

Fix Implicit conversion loses precision (#42)