Releases: zxq9/zuuid
Stable v2.0.0
Version 2.0.0 of zuuid
A relatively minor update from v1.3, but backwards incompatible due to deprecated exports being removed and the default output for two convenience functions having changed form.
Removed from v1.3
zuuid:random_mac/o
zuuid:random_clock/0
zuuid:random_uid/0
zuuid:random_lid/0
Default format calls
In v1.x zuuid:string/1
and zuuid:binary/1
were equivalent to zuuid:string(UUID, brackets)
and zuuid:binary(UUID, brackets)
. Now these calls are equivalent to zuuid:string(UUID, standard)
and zuuid:binary(UUID, standard)
respectively.
Stable release v1.3.0
Version 1.3.0 of zuuid.
Adds
zuuid:randomize/1
The new randomize/1
function provides a cleaner interface (and requires less work on the part of a user of the lib) for randomizing the input attributes to the semantically tagged UUID versions.
Deprecates
zuuid:random_mac/0
zuuid:random_clock/0
zuuid:random_uid/0
zuuid:random_lid/0
The deprecations are all interface deprecations. zuuid is a UUID library, not an IEEE802 MAC generator. These functions will continue to exist, but be only used internally. They will cease to be exported in v2.x.
Default call changes
Current v1.3.0: zuuid:string(UUID)
is equivalent to zuuid:string(UUID, brackets)
Future v.2.0.0: zuuid:string(UUID)
will be equivalent to zuuid:string(UUID, standard)
Current v1.3.0: zuuid:binary(UUID)
is equivalent to zuuid:binary(UUID, brackets)
Future v2.0.0: zuuid:binary(UUID)
will be equivalent to zuuid:binary(UUID, standard)
Futureproofing
Ways to futureproof your code for v2.x
- Use the new
zuuid:randomize/1
function for attribute randomization. It is a nice convenience, in any case. http://zxq9.com/projects/zuuid/docs/zuuid.html#randomize-1 - Make explicit calls to
zuuid:string/2
andzuuid:binary/2
. These calls will work the exact same way in v2.