Skip to content

Releases: jetify-com/typeid-go

v2.0.0-alpha.3

16 Jul 15:25
Compare
Choose a tag to compare
v2.0.0-alpha.3 Pre-release
Pre-release

Fixes an issue where the base32 encoder was still depending on v1 of the library.

v2.0.0-alpha.2

08 Jul 21:33
Compare
Choose a tag to compare
v2.0.0-alpha.2 Pre-release
Pre-release

First pre-release of typeid v2, please help us test it and give use feedback before we do the final v2 release.

v2 introduces several changes, some of them breaking backwards compatibility:

  • Removes all the generic stuff and simplifies the API considerably.
  • Improves the base32 encoder to allow for zero allocations and buffer
    reuse.
  • Improved error handling via CorruptInputError and ErrValidation.
  • Adds extensive benchmarks. Rewrote existing ones as well. All
    benchmarks now use the newer loop notation and use sinks (to prevent
    compiler optimizations from invalidating the benchmarks)
  • Rethinks the SQL integration to be non-nullable by default, and use sql.Null when null is needed.
  • Changes the internal encoding of the TypeID struct to be more
    efficient by using a single string and an integer
  • Improved unit tests so that every single constructor is tested against
    the spec.
  • Rewrote constructors to minimize allocations as much as possible (some
    constructors are zero allocations, others are 1 or 2 at most)
  • Changed meaning of IsZero() (so that it makes sense to use with
    omitzero). Introduced HasSuffix() that addresses the same use case as
    the previous version of IsZero().

v1.3.0

31 Jul 22:20
Compare
Choose a tag to compare

v1.2.0

04 Jun 16:39
Compare
Choose a tag to compare
Update Internal Dependencies (#336)

Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: mikeland73 <[email protected]>