- pdfjs-dist 4.10 -> 6.0.227. v6 removed PDFDocumentProxy.destroy(); destroy the
loading task instead (load / extractText / destroy). render() API is unchanged.
- rtf.js 2.3 -> 3.0.9 (npm) and refreshed public/rtfjs/*.bundle.min.js — the
bundles the renderer loads at runtime (window.RTFJS), not the npm import.
- vite 6.4 -> 8.1 (now Rolldown-based); build config unchanged.
- dejaview pinned to the latest commit (worker open/render/text protocol intact).
- foliate-js, xlsx (SheetJS 0.20.3) and every other dep were already at latest.
Verified: app + embed build; PDF compare (pdf.js 6 text layer), RTF render
(rtf.js 3 bundles), and markdown compare all work. PDF/DjVu *canvas* rendering
can't be exercised in the headless preview — confirm document viewing in a real
browser.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The rtf.js npm package index.js uses ESM imports without .js extensions
(broken on Node ESM) and its UMD bundles require jQuery — not importable
via Vite's module pipeline.
Fix: copy EMFJS/WMFJS/RTFJS bundle min files to public/rtfjs/, load them
sequentially via dynamic <script> injection (jQuery from CDN, then the
three bundles in dependency order). Scripts are cached so they only load
once per session. Removes rtf.js from Vite optimizeDeps.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>