Skip to content

Releases: elixir-unicode/unicode

Unicode version 1.22.0

03 May 20:09

Choose a tag to compare

Enhancements

  • Adds the Bidi_Class Unicode property.

  • Adds the Joining_Type Unicode property.

Unicode version 1.21.2

29 Apr 09:01

Choose a tag to compare

Breaking changes

  • Supported on Elixir 1.17 and later only.

Bug Fixes

  • Fix type on `Unicode.script/1``

Unicode version 1.21.1

16 Mar 00:41

Choose a tag to compare

Bug Fixes

  • Compiles without warning on Elixir 1.20.0-rc.3.

Unicode version 1.21.0

18 Jan 18:17

Choose a tag to compare

Enhancements

Unicode version 1.19.0

29 Feb 11:54

Choose a tag to compare

Bug Fixes

  • Unicode.properties/1 no longer does an Enum.uniq/1 on the result since that breaks the functions contract.

  • Fix Unicode.Emoji.emoji/0.

  • Fix documentation in Unicode.WordBreak.

Enhancements

  • Add indic_conjunc_break as a property, it is new in Unicode 15.1.

  • Fix performance regression in Unicode.replace_invalid/2 from 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 to String.replace_invalid/2 where 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

17 Oct 19:18
f67f049

Choose a tag to compare

Enhancements

  • Adds Unicode.validate_utf8/3 to 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

17 Sep 05:11

Choose a tag to compare

Enhancements

  • Updates to Unicode 15.1 data.

  • Improve the security of the mix unicode.download task.

Unicode version 1.16.2

16 Aug 01:57

Choose a tag to compare

Enhancements

  • Change the parsing of "SpecialCasing.text" specifically to support casing in unicode_string/.

Unicode version 1.16.1

22 Apr 08:36

Choose a tag to compare

Big Fixes

  • Fix spelling of Unicode.script_dominance/1.

Unicode version 1.16.0

18 Mar 00:15

Choose a tag to compare

Enhancements

  • Add Unicode.script_statistic/1 that 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/1 to sort the results of Unicode.script_statistic/1 in descending dominance order.