packagist caneara/snowflake v2.0
Rollback conversion to integers

latest releases: dev-main, v2.0.6, v2.0.5...
2 years ago

This is a major release owing to a breaking change in the snowflake() global helper. In version 1, this converted the generated string into an integer. While fine for PHP, some languages such as JavaScript, don't support 64-bit integers and will truncate them. In order to prevent this, Snowflakes should exist as strings (even though they are integers).

The helper now returns a string.

Don't miss a new snowflake release

NewReleases is sending notifications on new releases.