v1.20.0 v1.21.0
medium risk
x402-foundation/x402Sep 15, 2026 → Sep 19, 20265 days between releases
What's New
Adds font weight metadata and introduces a Rust API breaking change for TextItem literals.
Breaking Changes
- Rust: `TextItem` literals now require `font_weight: None` for items with unknown weight class.
New Features
- Adds font weight metadata (100..=900) to text items in Rust, Node, Python, and pdf2md.
- Adds opt-in `bold_from_weight` feature to positioning/region APIs.
- Filters text painted wholly outside its clip to fix off-canvas labels.
Improvements
- Improves PDF header detection by tolerating leading bytes before `%PDF-`.
Bug Fixes
- Fixes off-canvas labels by filtering text painted wholly outside its clip.
- Improves PDF header detection by locating it within the first 1024 bytes.
Upgrade Notes
Rust developers must update `TextItem` literals to explicitly set `font_weight: None` where the weight class is unknown. The `bold_from_weight` feature is opt-in and does not change default behavior.
The Two Releases
v1.20.0
1.20.0 — Display coordinates and extraction fixes
Sep 15, 2026· 1 month ago
Adds display-frame coordinates and resolves various text extraction and rendering bugs.
Full release notesv1.21.0
1.21.0 — Font weight metadata, clipped-text and loading fixes
Sep 19, 2026· 1 month ago
Introduces font weight metadata and fixes issues related to clipped text and PDF header parsing.
Full release notes