Skip to content

Releases: gofrs/uuid

Update to UUIDv7

09 Sep 23:49
e420387

Choose a tag to compare

  • Update UUIDv7 to conform with RFC Draft Rev 3 by @convto (Breaking change to experimental feature)
  • Update unit test coverage to be 100% by @theckman, and @cameracker

Full Changelog: v4.2.0...v4.3.0

v4.2.0 Latest

26 Nov 00:39
0c84a43

Choose a tag to compare

Changes

Addition of IsNil method by @jordan-chalupka in #95

Full Changelog: v4.10...v4.2.0

v4.1.0

16 Oct 02:08
v4.1.0
6fe74ff

Choose a tag to compare

Changes

  • initial implementation of UUIDv6 and UUIDv7 based on RFC Draft Rev 2 by @theckman in #93

Full Changelog: v4.0.0...v4.1.0

4.0.0

30 Dec 17:59
4b36aa0

Choose a tag to compare

  • This release removes support for UUIDV2. UUID V2 is underspecified and unsafe for users expecting uniqueness - the time dependence frequently produces duplicate identifiers and V2 is dependent on *nix only time features. UUID V2 is especially weak on Windows operating systems.

We recommend that all users of the library either upgrade to this version, or at least consider no longer relying on UUID V2 in their applications.

3.3.0

05 May 00:36
v3.3.0

Choose a tag to compare

  • the UUID type now satisfied fmt.Formatter; see the .Format() method
    docs for more info. Contributed by Dylan Bourque (@dylan-bourque) in #72.
  • Codec related error messages have been adjusted to improve clarity and consistency with error message standards. Contributed by Josh Leverette (@coder543 ) in #78.

3.4.0

30 Dec 17:55

Choose a tag to compare

Note: This release is identical to v3.3.0 and was created by mistake. It is safe to use either.

  • the UUID type now satisfied fmt.Formatter; see the .Format() method
    docs for more info. Contributed by Dylan Bourque (@dylan-bourque) in #72.
  • Codec related error messages have been adjusted to improve clarity and consistency with error message standards. Contributed by Josh Leverette (@coder543 ) in #78.

3.2.0

11 Jan 07:26
v3.2.0
6b08a5c

Choose a tag to compare

  • Remove support for the experimental Go Modules feature due to issues supporting
    both dep and modules, amongst other concerns.

Please see #61, #66, and #67 for more info.

v3.1.2

30 Oct 01:57
v3.1.2
7077aa6

Choose a tag to compare

This release improves the interoperability of package uuid with
ORMs such as gorm, per PR #58. Thanks to Jun Jie Nan (@nanjj) for
the contribution.

3.1.1: UUIDs for Workgroups

01 Sep 09:54
v3.1.1
370558f

Choose a tag to compare

Added go.mod file.

3.1.0

22 Aug 15:39
v3.1.0
d41eeda

Choose a tag to compare

This release includes new functionality (PR #31) to help consumers extract a
time.Time value out of a Version 1 UUID.

UUIDs have their own internal timestamp, which is a counter of 100ns increments
since the start of the Gregorian Calendar (00:00:00 UTC on 15 Oct, 1582). To
represent that a new Timestamp type was added, with a Time() method used to
convert the timestamp value to a time.Time value.

To extract the timestamp from a Version 1 UUID, a new package
function (TimestampFromV1) was added to extract a Timestamp out of a UUID.
If it's not a V1 UUID it returns an error.

Big thanks to Ron Kuris (@rkuris) for this contribution!