Skip to content

Releases: gofrs/uuid

v5.4.0

Choose a tag to compare

@cameracker cameracker released this 30 Oct 03:32
153266a

What's Changed

  • fix: deduplicate UUID parsing logic with parsing tests #217; by @atlet99 in #218
  • perf: reduce allocations in NewV3 and NewV5 by @anatoly-kussul in #221
  • Add IsZero method to UUID type for MongoDB omitzero support by @Copilot in #226

New Contributors

Full Changelog: v5.3.2...v5.4.0

v5.3.2

Choose a tag to compare

@cameracker cameracker released this 27 Mar 19:29
a85a526

What's Changed

New Contributors

Full Changelog: v5.3.1...v5.3.2

v5.3.1

Choose a tag to compare

@kohenkatz kohenkatz released this 10 Feb 21:27
142fcab

Summary

This release fixes the calculation of times from version 7 UUIDs (discovered by @nathanmcgarvey-modopayments in #195). There was previously an int64 overflow that caused the wrong results for any time after the year 2262 (because that is when time.Time's UnixNano() method overflows).

This release also contains updated documentation to clarify the returned time format when converting our internal Timestamp to a standard time.Time.

What's Changed

New Contributors

Full Changelog: v5.3.0...v5.3.1

v5.3.0

Choose a tag to compare

@cameracker cameracker released this 11 Aug 17:59
e826b84

Summary

In this release, we updated the package to participate in OpenSSF Scorecard and tuned several development workflows and added some fuzz tests. Additionally, We added AtTime generators for V1, V6, and V7 so that users may generate UUIDs from time stamps.

NOTE Technically, the additional of the AtTime generators is a breaking change to the Generator interface. We decided to go with a minor update because of the unlikelihood of this interface being implemented by a consumer, and to reduce the impact of releasing a major version for this feature.
 

What's Changed

New Contributors

  • @ldez made their first contribution in #168

Full Changelog: v5.2.0...v5.3.0

v5.2.0

Choose a tag to compare

@cameracker cameracker released this 12 May 19:11
4a2de11

This minor release updates the UUID v6 and v7 features of package to be complaint to draft RFC-9562, which replaces the previous family of uuid drafts. Additionally, it adds more specific error types, and tunes up Github Actions safety practices

What's Changed

New Contributors

Full Changelog: v5.1.0...v5.2.0

v5.1.0

Choose a tag to compare

@cameracker cameracker released this 08 Apr 16:23
7930207

This release adds a new constant for the Max UUID. Max UUID defined in draft-ietf-uuidrev-rfc4122bis-14 as having maximum values for all bits.

NOTE: Because this feature is part of a draft, it is subject to removal on a minor version of this package if it is removed from a later revision of the RFC.

Full Changelog: v5.1.0...v5.0.1

v5.0.1

Choose a tag to compare

@cameracker cameracker released this 08 Apr 16:19
8ac8ea9
  • Fixed an issue with TimestampFromV7 reporting the wrong UUID version in the error message, contributed by @jaredLunde and @PatrLind

Full Changelog: v5.0.1...v5.0.0

v5.0.0

Choose a tag to compare

@cameracker cameracker released this 10 Feb 19:10
ba6b224

This is a major release that changes no behavior of the package since the previous release (v4.4.0) and only incorporates gomodules.

  • Made this package compatible with gomodules #116 , contributed by @cameracker

Full Changelog: v4.4.0...v5.0.0

v4.4.0

Choose a tag to compare

@cameracker cameracker released this 26 Jan 08:07
8345c9a
  • Improved performance and reduce memory allocations for most UUID methods, contributed by @charlievieth (#96)
  • Added a generator constructor that accepts options, contributed by @mlesar, completed by @LeonanCarvalho (#111)
  • UUID now satisfies driver.Valuer and sql.Scanner interfaces, contributed by @charlievieth (#113)
  • Update UUIDv7 to conform with RFC Draft Rev 4, contributed by @bgadrian (#112)

NOTE: This release uses Time.UnixMilli() internally which is only available on Go 1.17 or later.

Full Changelog: v4.3.1...v4.4.0

v4.3.1

Choose a tag to compare

@cameracker cameracker released this 31 Oct 20:32
e1079f3
  • Update UUIDv7 to use unix millisecond calculation that is friendly to legacy go versions by @convto
    Full Changelog: v4.3.0...v4.3.1