Skip to content

Commit bd956e3

Browse files
committed
Release 0.0.7
1 parent 02eeaec commit bd956e3

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
# Changelog
22

3-
## 0.0.6 - 2026-04-22
4-
5-
### Added
6-
7-
- Numeric CSS-pixel `letterSpacing` support on `prepare()`, `prepareWithSegments()`, and each existing rich-inline item (#108, #156).
3+
## 0.0.7 - 2026-05-10
84

95
### Changed
106

7+
- The package now declares itself side-effect-free so bundlers can tree-shake unused entrypoints (#160).
118
- `layoutNextLine()` and `layoutNextLineRange()` now avoid redundant chunk lookup in chunk-heavy manual layout paths (#140).
129

1310
### Fixed
1411

15-
- CJK text followed by opening bracket annotations now wraps like browsers instead of leaving the opening bracket on the previous line (#148).
1612
- `{ wordBreak: 'keep-all' }` now handles no-space mixed Latin, numeric, and CJK text more like browsers.
13+
- No-space punctuation chains now stay together for non-ASCII word-like text too, instead of only ASCII words.
14+
- Opening punctuation such as `¡`, `¿`, German low quotes, and `` now stays with the following word instead of dangling at line end (#165).
1715
- Numeric prefix/postfix symbols like `$`, `%`, ``, `+`, ``, and `°` now stay attached to adjacent text the way browser line breaking does (#105).
1816
- Soft-hyphen breaks now stay at the soft-hyphen insertion point instead of pulling post-hyphen graphemes onto the broken line (#162).
1917
- Line geometry now preserves browser-style terminal letter spacing, including rich-inline item boundaries and visible soft-hyphen breaks (#171).
18+
- Rich-inline item boundaries no longer overflow the requested width after a forced-progress break (#132).
19+
- The markdown chat demo now drops parsed link URLs unless they resolve to HTTP(S) hrefs (#168).
20+
21+
## 0.0.6 - 2026-04-22
22+
23+
### Added
24+
25+
- Numeric CSS-pixel `letterSpacing` support on `prepare()`, `prepareWithSegments()`, and each existing rich-inline item (#108, #156).
26+
27+
### Fixed
28+
29+
- CJK text followed by opening bracket annotations now wraps like browsers instead of leaving the opening bracket on the previous line (#148).
2030

2131
## 0.0.5 - 2026-04-09
2232

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chenglou/pretext",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "Fast, accurate & comprehensive text measurement & layout",
55
"keywords": [
66
"text-layout",

0 commit comments

Comments
 (0)