Releases: elixir-unicode/unicode
Unicode version 1.22.0
Unicode version 1.21.2
Breaking changes
- Supported on Elixir 1.17 and later only.
Bug Fixes
- Fix type on `Unicode.script/1``
Unicode version 1.21.1
Bug Fixes
- Compiles without warning on Elixir 1.20.0-rc.3.
Unicode version 1.21.0
Enhancements
- Updates to Unicode 17.0 data.
Unicode version 1.19.0
Bug Fixes
-
Unicode.properties/1no longer does anEnum.uniq/1on the result since that breaks the functions contract. -
Fix
Unicode.Emoji.emoji/0. -
Fix documentation in
Unicode.WordBreak.
Enhancements
-
Add
indic_conjunc_breakas a property, it is new in Unicode 15.1. -
Fix performance regression in
Unicode.replace_invalid/2from the original UniRecover library and confirm the code memory usage remains a constant 128 bytes for all benchmark scenarios. Thanks to @Moosieus for the fabulous PR. Closes #10. -
Unicode.replace_invalid(string, :utf8, replacement)delegates toString.replace_invalid/2where available (which will be from Elixir 1.16 onwards). -
Confirm that the README installation version matches the code version. Thanks to @Moosieus for the PR.
Unicode version 1.18.0
Enhancements
- Adds
Unicode.validate_utf8/3to force-validate a binary as a UTF-8 string. Any invalid codepoints or incomplete sequences are replaced with a replacement string. Many thanks to @Moosieus for the contribution.
Unicode version 1.17.0
Enhancements
-
Updates to Unicode 15.1 data.
-
Improve the security of the
mix unicode.downloadtask.
Unicode version 1.16.2
Enhancements
- Change the parsing of "SpecialCasing.text" specifically to support casing in unicode_string/.
Unicode version 1.16.1
Big Fixes
- Fix spelling of
Unicode.script_dominance/1.
Unicode version 1.16.0
Enhancements
-
Add
Unicode.script_statistic/1that returns the first index and grapheme count of the scripts in a string. This is useful to help derive the likely locale of a string. Determining the locale is outside the scope of this library but is required in ex_cldr_person_names. -
Add
Unicode.script_dominance/1to sort the results ofUnicode.script_statistic/1in descending dominance order.