Skip to content

Commit 4080b43

Browse files
committed
docs: update changelog for v0.2.0 and backfill v0.1.1
1 parent f63bef7 commit 4080b43

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.0] - 2026-01-23
9+
10+
### Fixed
11+
12+
- Page content corruption when calling many draw operations (e.g., drawing 100+ rectangles). A missing return statement caused nested `Contents` arrays that lost original page content.
13+
14+
### Changed
15+
16+
- PdfDict getter methods (`get`, `getArray`, `getDict`, etc.) now accept an optional resolver callback to automatically dereference `PdfRef` values. This simplifies internal code and reduces boilerplate when working with PDF objects.
17+
18+
### Internal
19+
20+
- Migrated codebase to use the new ref resolver pattern, removing ~450 lines of manual `instanceof PdfRef` checks.
21+
22+
## [0.1.1] - 2026-01-22
23+
24+
### Fixed
25+
26+
- Resources stored as indirect references on page dictionaries are now properly resolved.
27+
28+
### Changed
29+
30+
- Unified `RefResolver` type across the codebase.
31+
- `PDF.getObject()` removed in favor of direct `registry.resolve()` calls.
32+
833
## [0.1.0] - 2026-01-21
934

1035
First public release. LibPDF provides a complete PDF toolkit for TypeScript with parsing, modification, and generation capabilities.

0 commit comments

Comments
 (0)