Skip to content

v2.0.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@wojtekmaj wojtekmaj released this 19 Jul 23:13
· 1475 commits to main since this release

What's new?

  • Updated README file.
    • Added instructions for non-Webpack projects.
    • Added instructions for babel-polyfill.
  • Default entry will now display a warning if you're developing on a local file system.
  • React-PDF will now display a warning if you're developing on a local file system and you're attempting to load a local PDF file.
  • New entry - entry.noloader - which gives you an ability not to create a separate thread for rendering PDFs. See README for more information.
  • All React-PDF methods (loadDocument, loadPage etc.) now return a promise for your convenience.

Bug fixes

  • Fixed React-PDF failing to load if no babel-polyfill was included.
  • Fixed PDF.js attempting to load worker from a random location (depending on the name of the last script included in head at the moment of loading PDF.js). It is now set to pdf.worker.js (nnarhinen/react-pdf#39).