|
| 1 | +Version 1.0.0 (2022-08-07) |
| 2 | +========================== |
| 3 | +* Replace error types `InvalidUtf8Array`, `InvalidUtf8Slice`, `InvalidUtf8FirstByte` and `InvalidUtf8` with `Utf8Error` plus `Utf8ErrorKind`. |
| 4 | + Which of the new error kind variants is reported don't map 1:1 to the old enum variants: |
| 5 | + For example `Utf8ErrorKind::NonUtf8Byte` is returned for sequences that would previously have been reported as too high codepoint or overlong encoding. |
| 6 | +* Rename many other error types for consistency: |
| 7 | + * `InvalidCodepoint` -> `CodepointError` |
| 8 | + * `InvalidUtf16FirstUnit` -> `Utf16FirstUnitError` |
| 9 | + * `InvalidUtf16Array` -> `Utf16ArrayError` |
| 10 | + * `InvalidUtf16Slice` -> `Utf16SliceError` |
| 11 | + * `1InvalidUtf16Tuple` -> `Utf16TupleError` |
| 12 | +* Change return type of `CodepointError::error_range()` to `RangeInclusive`. |
| 13 | +* Rename some errors variants: |
| 14 | + * `Utf16SliceError::FirstLowSurrogate` -> `FirstIsTrailingSurrogate` |
| 15 | + * `Utf16SliceError::SecondNotLowSurrogate` -> `SecondIsNotTrailingSurrogate` |
| 16 | + * `Utf16TupleError::InvalidSecond` -> `SecondIsNotTrailingSurrogate` |
| 17 | +* Expose the error type of `Utf16Char::from_bmp()` and rename it to `NonBmpError`. |
| 18 | +* Remove re-exports of `Utf8CharIterator` and `Utf16CharIterator` from the crate root. |
| 19 | + (They are still exposed via the `iterator` module.) |
| 20 | +* Remove impls of the deprecated `AsciiExt` trait, |
| 21 | + and make the methods available in `#![no_std]`-mode. |
| 22 | +* Make many of the previously `AsciiExt` methods take self by value. |
| 23 | +* Drop support for pre-1.0 versions of the ascii crate. |
| 24 | +* Remove `iter_bytes()` and `iter_units()`. |
| 25 | +* Increase minimum Rust version to 1.56 and change the minimum Rust version policy. |
| 26 | +* Fix possible UB or panic in `Utf8Char::from_slice_start_unchecked()` when passed an empty slice. |
| 27 | + (relates to [#12](https://github.com/tormol/encode_unicode/issues/12).) |
| 28 | +* Make many methods `const fn`. |
| 29 | +* Add `const fn`s `Utf8Char::new()` and `Utf16Char::new()`. |
| 30 | + |
1 | 31 | Version 0.3.6 (2019-08-23) |
2 | 32 | ========================== |
3 | 33 | * Fix pointless undefined behavior in `Utf16Char.to_ascii_char()` (which is part of ascii feature) |
4 | | -* Widen ascii version requirement to include 1.* |
5 | | -* Add `[u16; 2]` UTF-16 array alternatives to `(u16, Some(u16))` UTF-16 tuple methods |
6 | | -* Add `Utf16Char.is_bmp()` |
| 34 | +* Widen ascii version requirement to include 1.\*. |
| 35 | +* Add `[u16; 2]` UTF-16 array alternatives to `(u16, Some(u16))` UTF-16 tuple methods. |
| 36 | +* Add `Utf16Char.is_bmp()`. |
7 | 37 |
|
8 | 38 | Version 0.3.5 (2018-10-23) |
9 | 39 | ========================== |
|
0 commit comments