Skip to content

Releases: zxq9/zuuid

Stable v2.0.0

10 Dec 03:22
Compare
Choose a tag to compare

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

10 Dec 01:51
Compare
Choose a tag to compare

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