Tags: scru128/go-scru128
Tags
v3.0.1 Released Most notably, v3 switches the letter case of generated IDs from uppercase (e.g., "036Z951MHJIKZIK2GSL81GR7L") to lowercase (e.g., "036z951mhjikzik2gsl81gr7l"), though it is technically not supposed to break existing code because SCRU128 is a case-insensitive scheme. Other changes include the removal of deprecated APIs. Removed: - Deprecated items: - `Generator#GenerateCore()` - `Generator#LastStatus()` and `GeneratorStatus` Changed: - Letter case of generated IDs from uppercase to lowercase - Edge case behavior of generator functions' rollback allowance handling Maintenance: - Upgraded minimum Go version to 1.20
v2.3.0 Released Added: - `GenerateOrAbort()` and `GenerateOrAbortCore()` to `Generator` (formerly named as `GenerateNoRewind()` and `GenerateCoreNoRewind()`) - `Generator#GenerateOrResetCore()` Deprecated: - `Generator#GenerateCore()` - `Generator#LastStatus()` and `GeneratorStatus`
v2.2.0 Released Changed: - `UnmarshalBinary()` behavior so it tries to parse byte slice also as textual representation, not only as 128-bit byte array - `UnmarshalText()` and `UnmarshalBinary()` of `Id` now return error instead of panicking when called with nil receiver Added: - `sql.Scanner` interface implementation to `Id`
PreviousNext