Repository navigation
v0.0.9
PATCH: new exports before 1.0. The new entry @mark1russell7/text/order has two orders of texts: compareCodeUnits and compareCodePoints.
compareCodeUnitscompares the UTF-16 code units, as the operator<and the default sort do.compareCodePointscompares the Unicode code points. A surrogate pair is one code point, and a lone surrogate is its own code point.- The two orders are different only in one case. At the first code point that is different, one text has a code point above U+FFFF. The other text has a lone surrogate or a code unit from U+E000 to U+FFFF.
- A test compares
compareCodePointswith a reference order for each two texts of 3 code units or fewer, with each pair and each lone surrogate. The same test holds the rule of the case where the two orders are different. - The six copies of the order of the code units in
mark1russell7/alertsmove tocompareCodeUnitsafter this version is on npm. - The orders are in their own entry, so the root entry does not change. With the orders, the root entry had 867 bytes after
esbuildandgzipat level 9, above its limit of 700 bytes. A test holds the entry./orderat 400 bytes or fewer.
Runtime dependencies: no change against 0.0.8 (none).