Skip to content

Commit 4a9be75

Browse files
Version Packages (#68)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a5f486f commit 4a9be75

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

.changeset/nasty-turkeys-live.md

-17
This file was deleted.

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# unicode-segmenter
22

3+
## 0.11.3
4+
5+
### Patch Changes
6+
7+
- a5f486f: Fix bloat in the NPM package.
8+
9+
`package.tgz` was mostly bloated by CommonJS interop and sourcemap.
10+
11+
However, sourcemap isn't necessary here as it uses sources as is,
12+
and the CommonJS shouldn't be different.
13+
14+
Now fixed by simpler transpilation for CommoJS entries, and removed sourcemap files.
15+
Also removed inaccessible entries.
16+
17+
So the unpacked total package size has been **down to 135 KB from 250 KB**
18+
19+
Note: Node.js v22 will stabilize `require(ESM)`, which will allow CommonJS projects to use this package without having to maintain separate entries. I'm very excited about that, and looking forward to it becoming more "common". The first major release may consider ending support for CommonJS entries and TypeScript's `"Node"` resolution.
20+
321
## 0.11.2
422

523
### Patch Changes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unicode-segmenter",
3-
"version": "0.11.2",
3+
"version": "0.11.3",
44
"type": "module",
55
"description": "A lightweight implementation of the Unicode Text Segmentation (UAX #29)",
66
"license": "MIT",

0 commit comments

Comments
 (0)