Releases: godruoyi/php-snowflake
Releases · godruoyi/php-snowflake
3.2.1
What's Changed
- fix: make it possible to set datacenter and workerId intentionally to 0 by @CommanderRoot in #81
New Contributors
- @CommanderRoot made their first contribution in #81
Full Changelog: 3.2.0...3.2.1
3.2.0
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.
Update your package to version 3.2.0 to apply the change.
Full Changelog: 3.1.1...3.2.0
Support PHP8.4
3.1.0
What's Changed
- chore: improve unit test by @godruoyi in #66
- fix test workflow should be run in the main branch by @godruoyi in #67
- chore: fix test by @godruoyi in #68
- chore: remove codestyle workflow filter by @godruoyi in #69
- feat: support predis by @godruoyi in #72
- Add missing dependencies to dev by @godruoyi in #73
- chore: remove files and update readme by @godruoyi in #74
Full Changelog: 3.0.0...3.1.0
3.0.0
What's Changed
- [Major] Drop support for versions < 8.1 by @simivar in #54
- Update GitHub action to use the built-in pint package #55 by @godruoyi in #57
- Add support for concurrent testing by @godruoyi in #58
- feat: The lock files path in FileLockResolver should be not empty by @godruoyi in #61
- feat: support phpstan by @godruoyi in #62
- chore: update readme by @godruoyi in #63
Full Changelog: 2.2.4...3.0.0
2.2.4 feat: add setCachePrefix to LaravelSequenceResolver
What's Changed
- Update README-zh_CN.md by @AaronChengHao in #46
- feat: add
setCachePrefix
to LaravelSequenceResolver (#50) by @simivar in #51
New Contributors
- @AaronChengHao made their first contribution in #46
- @simivar made their first contribution in #51
Full Changelog: 2.2.3...2.2.4
2.2.3
fixes timestamp parsing from a given ID
What's Changed
- fix(id-parsing): fixes timestamp parsing from a given ID by @hernandev in #43
New Contributors
- @hernandev made their first contribution in #43
Full Changelog: 2.2.1...2.2.2
Fix Implicit conversion loses precision
2.2.1 Fix Implicit conversion loses precision (#42)