Skip to content

v2.2.0

Compare
Choose a tag to compare
@motss motss released this 07 Apr 04:46

Minor code refactoring to check if the JavaScript runtime in which the code executes comes with ICU data installed. If yes, it will use the native method String.prototype.normalize to normalize strings. Without required ICU data, String.prototype.normalize has no effect on the normalization.

In this release, a simple feature detection is added to do that for you and fallbacks when necessary. This is particularly useful for modern JavaScript/ TypeScript runtime such as deno which is built without ICU data.