- 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>
37 lines
1.2 KiB
JSON
37 lines
1.2 KiB
JSON
{
|
|
"name": "preview-js",
|
|
"version": "1.0.0",
|
|
"description": "Client-side universal document viewer — PDF, DjVu, ODF, Office, e-books, comics and images — permissive, no server, no upload",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"build:embed:app": "vite build --config vite.config.app.js",
|
|
"build:embed:loader": "vite build --config vite.config.embed.js",
|
|
"build:embed": "npm run build:embed:app && npm run build:embed:loader",
|
|
"preview": "vite preview",
|
|
"docs": "jsdoc src -r -d docs"
|
|
},
|
|
"dependencies": {
|
|
"chart.js": "^4.5.1",
|
|
"dejaview": "github:Alpaq92/dejaview#4eb5b581464f4814835c7ad55a2d511cca20b40b",
|
|
"diff": "^9.0.0",
|
|
"exifr": "^7.1.3",
|
|
"foliate-js": "github:johnfactotum/foliate-js#78914aef4466eb960965702401634c2cb348e9b1",
|
|
"highlight.js": "^11.11.1",
|
|
"jszip": "^3.10.1",
|
|
"libarchive.js": "^2.0.2",
|
|
"mammoth": "^1.8.0",
|
|
"marked": "^18.0.5",
|
|
"papaparse": "^5.5.4",
|
|
"pdfjs-dist": "^6.0.227",
|
|
"pptxviewjs": "^1.1.9",
|
|
"rtf.js": "^3.0.9",
|
|
"utif": "^3.1.0",
|
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
},
|
|
"devDependencies": {
|
|
"vite": "^8.1.0"
|
|
}
|
|
}
|