react-pdf v5.0.0 Release Notes
Release Date: 2020-08-27 // over 4 years ago-
๐ฑ โ๏ธ = breaking change
What's new?
- โก๏ธ โ๏ธ React-PDF now ships with ES6 Modules along with CommonJS modules. This allows for Webpack and other bundlers to optimize your code better.
- โก๏ธ Updated pdf.js from 2.1.266 to 2.4.456. Thanks, @kylemellander!
What's changed?
- ๐ฑ โ๏ธ Internet Explorer 11 is no longer supported.
- ๐ฑ โ๏ธ Removed renderAnnotations backwards compatibility (#431).
- ๐ ES6 builds of pdf.js are now used since Internet Explorer 11 support was dropped anyway.
- ๐ Changed the way PDFDataRangeTransport is imported.
- Explicitly initialize an EventBus instance (#593). Thanks, @danieltott!
๐ Bug fixes
- ๐ Fixed memory leak after unmounting Document (#452, #505). Thanks, @oze4!
- ๐ Fixed
error
,loading
,noData
propTypes not accepting functions (#579). - ๐ Fixed PDF rendering incorrectly if wrapped in an element with
dir="rtl"
(#588). - โ Added null check before calling destroy() method on loadingTask.