Skip to content

Releases: wojtekmaj/react-pdf

v5.7.0

26 Jan 11:44
fc276cc
Compare
Choose a tag to compare

Biggest one in months!

What's new?

  • Added support for React 18.
  • Added official support for Parcel 2.
  • Added new Webpack 5-specific entry file. It uses Webpack's new URL assets instead of worker-loader, which turned out to be quite problematic in the past. Don't worry, if you want to stick to the old Webpack-specific one, it should still work just fine!
  • Updated PDF.js to 2.12.313 (#936).
    • Improved XFA support
    • Improved pattern/tiling support
    • Rich text annotation support
  • Added support for externalLinkRel prop.
  • Added dest and pageIndex to onItemClick callbacks (#812, #924). Thanks, @malwilley!

What's changed?

  • Updated cMaps instructions to work with Yarn PnP.
  • Updated PDF.js worker instructions for clarity.
    • Specify how to make it work with Create React App 5.
  • Added instructions on how to manually copy cMaps directory.
  • Added instructions on how to manually copy pdf.worker.js.
  • Added Create React App 5 sample suite.
  • Added Parcel 2 sample suite.

v5.6.0

13 Dec 09:12
df96ae3
Compare
Choose a tag to compare

What's new?

  • Updated PDF.js to 2.10.377 (#900).
    • Improved XFA support (#856).

v5.5.0

25 Oct 07:39
722dfd1
Compare
Choose a tag to compare

What's new?

v5.4.1

19 Oct 10:21
9e81fd8
Compare
Choose a tag to compare

Bug fixes

  • Fixed LinkService crashing given already-resolved dest (#869).

v5.4.0

27 Sep 08:54
dead22e
Compare
Choose a tag to compare

What's new?

  • Updated PDF.js to 2.9.359 (#818).
    • Added support for Signatures (#559, #691, #772, #817).
    • Fixed rendering on Chrome 92 and up (#819).
  • Replaced pdfjs-dist build with legacy ES5 version (#794). Thanks, @njleonzhang!
  • Changed async/await syntax to Promises, reducing build size significantly (#807).

Bug fixes

  • Fixed annotation links no longer working in some cases (#816).

v5.4.0-beta.3

01 Sep 09:45
a6ddbaa
Compare
Choose a tag to compare
v5.4.0-beta.3 Pre-release
Pre-release

What's changed?

  • Replaced pdfjs-dist build with legacy ES5 version (#794). Thanks, @njleonzhang!

v5.4.0-beta.2

27 Jul 11:03
fe1556a
Compare
Choose a tag to compare
v5.4.0-beta.2 Pre-release
Pre-release

What's new?

  • Updated PDF.js to 2.9.359 (#818).
    • Added support for Signatures (#559, #691, #772, #817).
    • Fixed rendering on Chrome 92 and up (#819).

Bug fixes

  • Fixed annotation links no longer working in some cases (#816).

v5.4.0-beta

08 Jul 12:19
dd2a954
Compare
Choose a tag to compare
v5.4.0-beta Pre-release
Pre-release

What's new?

  • Changed async/await syntax to Promises, reducing build size significantly (#807).

v5.3.2

08 Jul 12:17
c6fad62
Compare
Choose a tag to compare

Bug fixes

  • Fixed file prop type checker not accepting data as string (#800).

v5.3.1

07 Jul 11:09
a3fa9e0
Compare
Choose a tag to compare

What's changed?

  • Made documentation on bundler-specific entry files clearer.
  • Minor code optimizations for smaller bundle size.

Bug fixes

  • Fixed onLoadProgress incorrectly listed as Page prop in README.
  • Fixed data URI not parsed properly when having multiple headers (#784).