react-pdf v5.0.0 Release Notes

Release Date: 2020-08-27 // over 3 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.