Repository navigation
Update pdfjs-viewer docs for v4.5.0 - #6
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add renderer-src to the attribute table and the TypeScript attribute list. The Worker section explains how to turn on PDF.js 6.5's worker rendering, the CSP it needs and its fallback. Hashed pipelines need renderer-src too. The migration note for 4.5 says a pinned worker-src must move to PDF.js 6.5, and that TypeScript now rejects a bare Uint8Array in viewerApp.open(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Summary
Docs for pdfjs-viewer 4.5.0, which is on npm. It adds
renderer-src(missing-elements/pdfjs-viewer#77) and narrows theopen()type (missing-elements/pdfjs-viewer#79).vendorcopy now includespdf.renderer.min.mjs.renderer-srcis added to the attribute table and the TypeScript attribute list.setViewerOptions({ disableWorkerRendering: false }), the CSP it needs, when to setrenderer-src, and what happens when the worker can't start.renderer-srcwhen worker rendering is on.worker-srcmust move to PDF.js 6.5, and TypeScript now rejects a bareUint8ArrayinviewerApp.open().Validation
pnpm buildpasses. The built page shows 6.5.438 seven times and 6.4.299 nowhere.renderer-srcrow renders with its default and "Next load".🤖 Generated with Claude Code