8000 Release unicode-segmenter@0.13.0 · cometkim/unicode-segmenter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

unicode-segmenter@0.13.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 20 May 00:51
4b8d1d1

Minor Changes

  • 75492dc: Expose an internal state: _hd;

    The first codepoint of a segment, which is often need to be checked its bounds.

    For example,

    for (const { segment } of graphemeSegments(text)) {
      const cp = segment.codePointAt(0)!;
      // Also need to `!` assertions in TypeScript.
      if (isBMP(cp)) {
        // ...
      }
    }

    It can be replaced by _hd state. no additional overhead.

Patch Changes

  • cd63858: Export bundled entries (/bundle/*.js)
0