Releases: jetify-com/typeid-go
Releases · jetify-com/typeid-go
v2.0.0-alpha.3
Fixes an issue where the base32 encoder was still depending on v1 of the library.
v2.0.0-alpha.2
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
Full Changelog:
v1.2.0
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]>