Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .changeset/heavy-grapes-accept.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/six-jobs-speak.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# unicode-segmenter

## 0.17.1

### Patch Changes

- e94d203: Add `collectGraphemes(input)` API that collects grapheme clusters into an array directly.

This is a fast version of `[...splitGraphemes(input)]`, which is acually the most used pattern in practice.

It's 2-4x faster than the iterator-based approach. However, it collects all grapheme clusters at once, so it's not good for large text or streamed input.

- 5fcaa4f: Promote `countGraphemes()` API to be a fast path.

It avoids generator overhead and only counts boundaries without allocating segments.
When only counting, it achieves ~10x faster runtime performance and no GC pressure.

## 0.17.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unicode-segmenter",
"version": "0.17.0",
"version": "0.17.1",
"type": "module",
"description": "A lightweight implementation of the Unicode Text Segmentation (UAX #29)",
"license": "MIT",
Expand Down
Loading