yarn react-pdf 5.0.0

latest releases: 9.1.1, 9.1.0, 9.0.0...
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.

Don't miss a new react-pdf release

NewReleases is sending notifications on new releases.