diff --git a/.changeset/chatty-ghosts-live.md b/.changeset/chatty-ghosts-live.md deleted file mode 100644 index 7b99820..0000000 --- a/.changeset/chatty-ghosts-live.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"unicode-segmenter": minor ---- - -Getting 2x faster by optimizing hot path. Also with reduced bundle size - -By casting Unicode chars to u32 in advance, all internal operations become 32-bit integer operations. - -The previous version (v0.1.6) was -- 2.47x faster than Intl.Segmenter -- 2.68x faster than graphemer -- 4.95x faster than grapheme-splitter - -Now it is -- 5.04x faster than Intl.Segmenter -- 5.52x faster than graphemer -- 9.83x faster than grapheme-splitter diff --git a/.changeset/cold-apes-kiss.md b/.changeset/cold-apes-kiss.md deleted file mode 100644 index 584fb9e..0000000 --- a/.changeset/cold-apes-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"unicode-segmenter": patch ---- - -Mark `sideEffects` on the polyfill bundle diff --git a/.changeset/fluffy-frogs-provide.md b/.changeset/fluffy-frogs-provide.md deleted file mode 100644 index d74188a..0000000 --- a/.changeset/fluffy-frogs-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"unicode-segmenter": patch ---- - -Reduce bundle size a bit by inlining internal constants, and removing unused insternal state. diff --git a/.changeset/old-ways-drop.md b/.changeset/old-ways-drop.md deleted file mode 100644 index 76f083c..0000000 --- a/.changeset/old-ways-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"unicode-segmenter": patch ---- - -Reduce bundle size a bit more diff --git a/.changeset/tall-pigs-camp.md b/.changeset/tall-pigs-camp.md deleted file mode 100644 index bf98abd..0000000 --- a/.changeset/tall-pigs-camp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"unicode-segmenter": patch ---- - -Publish sourcemaps diff --git a/CHANGELOG.md b/CHANGELOG.md index 7893522..a87db8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ # unicode-segmenter +## 0.2.0 + +### Minor Changes + +- 9938499: Getting 2x faster by optimizing hot path. Also with reduced bundle size + + By casting Unicode chars to u32 in advance, all internal operations become 32-bit integer operations. + + The previous version (v0.1.6) was + + - 2.47x faster than Intl.Segmenter + - 2.68x faster than graphemer + - 4.95x faster than grapheme-splitter + + Now it is + + - 5.04x faster than Intl.Segmenter + - 5.52x faster than graphemer + - 9.83x faster than grapheme-splitter + +### Patch Changes + +- b6824b5: Mark `sideEffects` on the polyfill bundle +- 7c68863: Reduce bundle size a bit by inlining internal constants, and removing unused insternal state. +- 9938499: Reduce bundle size a bit more +- f1c80b7: Publish sourcemaps + ## 0.1.6 ### Patch Changes diff --git a/package.json b/package.json index ee1f67a..8078b3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unicode-segmenter", - "version": "0.1.6", + "version": "0.2.0", "type": "module", "description": "A lightweight and fast, pure JavaScript library for Unicode segmentation", "license": "MIT",