Version Packages - #145
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
July 26, 2026 19:35
079c176 to
df443a5
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
July 26, 2026 19:55
df443a5 to
dceb7fd
Compare
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #145 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 1045 1045
=========================================
Hits 1045 1045 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
unicode-segmenter@0.17.2
Patch Changes
7374446: Removed pinned
graphemeSegments()in the module scope to make all APIs able to be three-shaken properly.It was introduced when they all use
graphemeSegments()as the core. But now they are all have their own loop.957898b: Optimize the hot loop based on a deep analysis of the V8 optimization chain.
As the result, the bundle size, speed, and memory usage. All three axes are improved. See PR #144 for detailed explanation.
unicode-segmenter/grapheme(2,453 → 2,351 gzip); −3.4% / −2.8% on the full entrysplitGraphemes()1.5–2.2x,countGraphemes()1.20–1.43x,graphemeSegments()1.05–1.21x,collectGraphemes()1.01–1.19x.The state compaction strategy is the major part. It is valid across all optimization tiers of the V8 runtime (Jitless, Maglev, TurboFan) and has been consistently improved across all other engines.
Another noticeable change is
splitGraphemes(), it now owns its loop, just likecountGraphemes().It produces a 30-60% performance improvement. The size increase is roughly free after compression, since the fourth byte-aligned copy of the loop back-references the other three. And the uncompressed size is amortized by other improvements.
All the analysis have done by Claude Opus 5, well-done!