Skip to content

Releases: wojtekmaj/react-pdf

v5.0.0

27 Aug 14:26
51fba2b
Compare
Choose a tag to compare

❗️ = 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.

v5.0.0-beta.5

04 Aug 19:17
Compare
Choose a tag to compare
v5.0.0-beta.5 Pre-release
Pre-release

What's changed?

  • 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!

v5.0.0-beta.4

09 Jun 21:25
1ed00c6
Compare
Choose a tag to compare
v5.0.0-beta.4 Pre-release
Pre-release

❗️ = breaking change

What's new?

What's changed?

  • ❗️ Internet Explorer 11 is no longer supported.

Bug fixes

  • Added null check before calling destroy() method on loadingTask.

v5.0.0-beta.3

27 Apr 15:03
7b3d624
Compare
Choose a tag to compare
v5.0.0-beta.3 Pre-release
Pre-release

What's new?

  • Updated PDF.js from 2.2.228 to 2.3.200.

Bug fixes

  • Fixed memory leak after unmounting Document (#452, #505). Thanks, @oze4!

v5.0.0-beta.2

21 Dec 16:06
d13c48e
Compare
Choose a tag to compare
v5.0.0-beta.2 Pre-release
Pre-release

❗️ = breaking change

What's changed?

  • ❗️ Removed renderAnnotations backwards compatibility (#431).

Bug fixes

  • Fixed PDF.js falling back to fake worker with sideEffects: false (#502). Thanks, @robsco-git!

v5.0.0-beta

07 Dec 20:22
8c62642
Compare
Choose a tag to compare
v5.0.0-beta Pre-release
Pre-release

❗️ = 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.2.228.

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).

v4.2.0

27 Jul 10:40
fffb77b
Compare
Choose a tag to compare

What's new?

  • Greatly improved documentation. Thanks, everyone!

What's changed?

  • Development platform upgrade - now v4.x branch uses the same build tools as v5.x branch.

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).

v4.1.0

12 Jun 13:40
b2123e6
Compare
Choose a tag to compare

What's new?

  • You can now use ref on Page and Outline components.
  • You can now pass render functions to error, loading, noData props (#390).
  • React-PDF will now cancel loading a document if a new document was provided (#357).

What's changed?

  • Improved documentation for Create-React-App users (#369). Thanks, @suyesh!

Bug fixes

  • Fixed font family in TextLayer not properly recognized in some cases (#385).
  • Fixed onParseError, onParseSuccess still documented despite being removed (#400).

v4.0.5

03 Mar 17:02
Compare
Choose a tag to compare

Bug fixes

  • Fix onPassword and onLoadProgress props not working (#364).
  • Fixed text layer vertically misaligned in some cases (#332).

v4.0.4

01 Mar 13:31
Compare
Choose a tag to compare

What's changed?

  • TextLayer items are now rendered using span elements, making it easier to select the text.
  • Improved memory consumption on many browsers, including Firefox and iOS Safari (#335). Thanks, @robsco-git!

Bug fixes

  • Fixed "Deprecated API usage: RenderTask.then method, use the promise getter instead" (#354).