Skip to content

Releases: ssg/trid

5.0.0

27 May 04:00
@ssg ssg
Compare
Choose a tag to compare

Breaking changes

  • TurkishIdError is renamed to Error to conform to Rust semantics. Perhaps,
    I shouldn't have been so hesitant to make this package 1.0.0, huh :)

  • Added from_seq() method that can generate a valid TurkishId from a given
    sequence number.

4.0.0

16 Sep 00:38
@ssg ssg
Compare
Choose a tag to compare

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 with from_utf8(), no need to repeat it there.

  • Removed Display impl from TurkishIdError completely as deriving Debug already does it.
    This might mean that any code that relies on the fmt output of TurkishIdError might break.

3.0.0

04 Sep 21:28
@ssg ssg
Compare
Choose a tag to compare

This release works on core instead of std. As a side-effect, the Error trait impl had to be removed, that's why it's a breaking change.

2.0.0

03 May 19:30
@ssg ssg
Compare
Choose a tag to compare

This release has perf improvements by avoiding multiple validations, and changes From implementations to TryFrom instead as per @EkremDincel's suggestions.

1.0.0

28 Apr 04:42
@ssg ssg
7828d1d
Compare
Choose a tag to compare

First stable release!