v1.17.1-mod.2025.8
·
7 commits
to denkiyagi-fork
since this release
What's Changed
- 入出力形式単純化: WOFF系フォントの入力およびBase64形式の入出力をオミット by @falworks-dy in #11
- APIが出しうる例外を pdf-lib 独自のエラークラスに統一 by @falworks-dy in #12
Full Changelog: v1.17.1-mod.2025.7...v1.17.1-mod.2025.8
From MODIFICATIONS.md
Feature Removals
- Remove WOFF/WOFF2/DFont support from
PDFDocument#embedFontby updating@denkiyagi/fontkitto2.0.4-mod.2025.4;
only*.ttfand*.otffont formats are now supported. - Remove Base64 string/dataURI inputs across
PDFDocumentloading, embedding, and attachments;
binary data must now be provided asUint8ArrayorArrayBuffer. - Remove Base64 output by removing the
PDFDocument#saveAsBase64method;
usePDFDocument#savewhich resolves aUint8Arrayinstead.
Error Handling
- Introduced
PDFLibError(exported fromsrc/core) with a machine-readabletype: PDFLibErrorTypeto classify errors. - Refactored API/core/utils errors so that all errors extend
PDFLibErrorinstead of throwing bareError/TypeError. - Normalize external failure surfaces by catching
@denkiyagi/fontkitand@pdf-lib/upngexceptions and rethrowing correspondingPDFLibErrorsubclasses (e.g.,InvalidFontDataError) instead of leaking third-party errors.
Internal Changes
- Update several devDependencies including
typescriptto their latest versions.