Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Releases: caneara/snowflake

Added distributed architecture flag

28 Jan 10:59
Compare
Choose a tag to compare
v2.0.6

added distributed architecture flag

Added migration methods

19 Jan 10:20
Compare
Choose a tag to compare

See the database section in the readme.

Update readme

17 Jan 22:16
5805937
Compare
Choose a tag to compare

Added a note about always resolving the singleton and not creating instances of the Snowflake service.

Creating instances risks collisions.

Fix for null values

17 Jan 16:01
Compare
Choose a tag to compare
v2.0.3

fix for null values on cast

Fix return type

17 Jan 15:48
Compare
Choose a tag to compare
v2.0.2

fix return type

Added model cast

17 Jan 15:45
Compare
Choose a tag to compare

This minor release adds an Eloquent model cast that makes it easy to convert Snowflakes between integers and strings when saving them in the database vs passing them from PHP to the front-end e.g. for JavaScript, which doesn't support 64-bit integers.

Rollback conversion to integers

17 Jan 15:02
Compare
Choose a tag to compare

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.

Initial release

16 Jan 10:24
Compare
Choose a tag to compare

Please review the readme for more details.