v9.1.0
- Updated PDF.js to 4.4.168.
- Annotation improvements
- Font conversion improvements
- Image decoding improvements
- Performance improvements
- Text selection improvements
- Added support for
isolatedDeclarations
in TypeScript.
- Updated documentation.
- Updated Next.js, Parcel and Webpack examples.
- Fixed missing hiddenCanvasElement styles (#1815).
- Fixed overly large
structTreeUtils.d.ts
file, saving you 45 KB of disk space.
v9.0.0
See Upgrade guide from version 8.x to 9.x.
This version updates PDF.js to 4.3.136, fixing GHSA-wgrm-67xf-hhpq for good. React-PDF v8.0.2 and v7.7.3 have already included a mitigation of the issue and thus were not affected by this vulnerability, but caused automatic security alerts due to the outdated PDF.js version.
❗️ = breaking change
- Updated PDF.js to 4.3.136.
- Optimizations for CPU and memory usage
- Performance improvements
- Image rendering improvements
- Text selection improvements
- Accessibility improvements
- Font conversion improvements
- Handling of corrupted documents
- Improved Turbopack compatibility.
- ❗️ Dropped support for older browsers.
- ❗️ Removed deprecated
svg
renderMode
.
v8.0.0
❗️ = breaking change
- Added support for React 19.
- ❗️ New JSX transform is now required. Most likely, you’re already using it, but if you’re not, you’ll need to enable it by following the instructions in the linked blog post.
- ❗️
propTypes
were removed. If you’re usingpropTypes
, we recommend migrating to TypeScript or another type-checking solution.