Releases: cometkim/unicode-segmenter
Releases · cometkim/unicode-segmenter
[email protected]
Patch Changes
- 3665cf7: Fix Hindi text segmentation
[email protected]
[email protected]
Patch Changes
- 447b484: Fix polyfill to do not override existing, and also to be assigned as non-enumerable
[email protected]
Patch Changes
-
04fe2fc: Fix sourcemap reference error
- Include missing sourcemap files for transformed cjs entries
- Remove unnecessary transforms for esm entries and remove source map reference
[email protected]
Minor Changes
-
657e31a: semi-breaking: removed
_cat
from grapheme cluster segments because it was uselessInstead, added
_catBegin
and_catEnd
as beginning/end category of segments, which are possibly useful to infer applied boundary rules.
[email protected]
Minor Changes
-
f5ec709: Deprecated
isEmoji(cp)
in favor ofisExtendedPictogrphic(cp)
.There are no differences, but it was confused with the
\p{Emoji}
Unicode property.(Note:
\p{Emoji}
is not useful in actual use cases, see)
Patch Changes
- 5bf4d29: Fix the TypeScript definition for GraphemeCategory enum
[email protected]
Minor Changes
- f1a43ff: Cleanup mixed use of
takeCodePoint
andString.prototype.codePointAt
grapheme
: UseString.prototype.codePointAt
grapheme
: Optimize character length checking, also reduce the size a bitutils
: AddisBMP
andisSMP
util to check a codepoint number is being BMP(Basic Multilingual Plane) rangeutils
: DeprecatedtakeCodePoint
andtakeChar
in favor of ES6String.prototype.codePointAt
andString.fromCodePoint
utils
:takeChar
is no longer depends onString.fromCodePoint
internally
[email protected]
Patch Changes
- 03e121c: Optimize grapheme cluster boundary check
[email protected]
[email protected]
Minor Changes
- 06159a4: Fix ESM module resolution, and make ESM-first (still support CommonJS by condition)