Skip to content

Commit

Permalink
Version Packages (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Dec 7, 2024
1 parent a5f486f commit 4a9be75
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .changeset/nasty-turkeys-live.md

This file was deleted.

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

## 0.11.3

### Patch Changes

- a5f486f: Fix bloat in the NPM package.

`package.tgz` was mostly bloated by CommonJS interop and sourcemap.

However, sourcemap isn't necessary here as it uses sources as is,
and the CommonJS shouldn't be different.

Now fixed by simpler transpilation for CommoJS entries, and removed sourcemap files.
Also removed inaccessible entries.

So the unpacked total package size has been **down to 135 KB from 250 KB**

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.

## 0.11.2

### Patch 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.11.2",
"version": "0.11.3",
"type": "module",
"description": "A lightweight implementation of the Unicode Text Segmentation (UAX #29)",
"license": "MIT",
Expand Down

0 comments on commit 4a9be75

Please sign in to comment.