Skip to content

Commit b764bc1

Browse files
committed
v1.0.0
Almost three years after v0.3.6!
1 parent c47316a commit b764bc1

2 files changed

Lines changed: 34 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = """
66
UTF-8 and UTF-16 character types, iterators and related methods for char, u8 and u16.
77
"""
88
readme = "README.md"
9-
version = "0.3.6"
9+
version = "1.0.0"
1010
license = "Apache-2.0 OR MIT"
1111
repository = "https://github.com/tormol/encode_unicode"
1212
documentation = "https://docs.rs/encode_unicode/"

RELEASES.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
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+
131
Version 0.3.6 (2019-08-23)
232
==========================
333
* 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()`.
737

838
Version 0.3.5 (2018-10-23)
939
==========================

0 commit comments

Comments
 (0)