Skip to content

Commit 4b8d1d1

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

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

.changeset/common-clocks-behave.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/gentle-suns-design.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# unicode-segmenter
22

3+
## 0.13.0
4+
5+
### Minor Changes
6+
7+
- 75492dc: Expose an internal state: `_hd`;
8+
9+
The first codepoint of a segment, which is often need to be checked its bounds.
10+
11+
For example,
12+
13+
```ts
14+
for (const { segment } of graphemeSegments(text)) {
15+
const cp = segment.codePointAt(0)!;
16+
// Also need to `!` assertions in TypeScript.
17+
if (isBMP(cp)) {
18+
// ...
19+
}
20+
}
21+
```
22+
23+
It can be replaced by `_hd` state. no additional overhead.
24+
25+
### Patch Changes
26+
27+
- cd63858: Export bundled entries (`/bundle/*.js`)
28+
329
## 0.12.0
430

531
### Minor Changes

package.json

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

0 commit comments

Comments
 (0)