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
- Bump the all group with 2 updates by @dependabot in https://github.com/gofrs/uuid/pull/172
- Bump github/codeql-action from 3.26.0 to 3.26.5 in the all group across 1 directory by @dependabot in https://github.com/gofrs/uuid/pull/175
- Bump the all group with 2 updates by @dependabot in https://github.com/gofrs/uuid/pull/176
- Bump github/codeql-action from 3.26.6 to 3.26.7 in the all group by @dependabot in https://github.com/gofrs/uuid/pull/178
- Bump the all group across 1 directory with 2 updates by @dependabot in https://github.com/gofrs/uuid/pull/180
- Bump the all group with 2 updates by @dependabot in https://github.com/gofrs/uuid/pull/181
- Bump the all group with 3 updates by @dependabot in https://github.com/gofrs/uuid/pull/182
- Bump the all group with 4 updates by @dependabot in https://github.com/gofrs/uuid/pull/183
- Bump actions/dependency-review-action from 4.3.5 to 4.4.0 in the all group by @dependabot in https://github.com/gofrs/uuid/pull/184
- Bump github/codeql-action from 3.27.0 to 3.27.1 in the all group by @dependabot in https://github.com/gofrs/uuid/pull/185
- Bump the all group across 1 directory with 3 updates by @dependabot in https://github.com/gofrs/uuid/pull/187
- Bump the all group across 1 directory with 3 updates by @dependabot in https://github.com/gofrs/uuid/pull/189
- Bump the all group with 3 updates by @dependabot in https://github.com/gofrs/uuid/pull/190
- Bump the all group with 2 updates by @dependabot in https://github.com/gofrs/uuid/pull/192
- Bump the all group with 3 updates by @dependabot in https://github.com/gofrs/uuid/pull/193
- Bump github/codeql-action from 3.28.5 to 3.28.8 in the all group by @dependabot in https://github.com/gofrs/uuid/pull/194
- Fix Comment on the the Timestamp.Time() method by @nathanmcgarvey-modopayments in https://github.com/gofrs/uuid/pull/197
- Proper timestamp calculation for UUID v7 by @kohenkatz in https://github.com/gofrs/uuid/pull/199
New Contributors
- @nathanmcgarvey-modopayments made their first contribution in https://github.com/gofrs/uuid/pull/197
Full Changelog: https://github.com/gofrs/uuid/compare/v5.3.0...v5.3.1