You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,27 @@
1
1
# Changelog
2
2
3
+
## [4.0.0] — 2026-04-03
4
+
5
+
### Breaking
6
+
7
+
-**Rendering engine:****PhantomJS / `html-pdf` replaced with [Puppeteer](https://pptr.dev/) (headless Chromium).** Install footprint is larger (Chromium download on `npm install`). PDF output may differ slightly from Phantom.
8
+
-**Types:**`PdfCreateOptions` is now based on **`PdfRenderOptions`** (no dependency on `@types/html-pdf`). **`phantomPath`**, **`phantomArgs`**, and related fields are deprecated no-ops.
9
+
-**Footer `contents`:** only one repeating template is used — **`default`**, else **`first`**, else **`last`**. Per-page numeric keys (e.g. page `2`) are not applied.
10
+
11
+
### Added
12
+
13
+
-**`src/pdfPuppeteer.ts`:**`renderPdfToBuffer`, mapping from options to `page.pdf()`.
14
+
-**`htmlPdfTokensToPuppeteer()`** exported to map `{{page}}` / `{{pages}}` for print header/footer.
15
+
-**`PdfRenderOptions`**, **`PdfFileInfo`** in `pdfRenderOptions.ts`.
0 commit comments