Releases: ssg/trid
Releases · ssg/trid
5.0.0
4.0.0
Breaking changes
-
Removed
TryFrom
impls for&Bytes
and&[u8]
types. The only conversion
is possible from&str
now. Changed the validation to use&str
instead of
&[u8]
. The main reason I made this change is that it makes no sense to
convert from a ASCII-encoded&[u8]
not have it as&str
. The conversion
can alerady be done withfrom_utf8()
, no need to repeat it there. -
Removed
Display
impl fromTurkishIdError
completely as derivingDebug
already does it.
This might mean that any code that relies on the fmt output ofTurkishIdError
might break.
3.0.0
2.0.0
This release has perf improvements by avoiding multiple validations, and changes From
implementations to TryFrom
instead as per @EkremDincel's suggestions.