Releases: wojtekmaj/react-pdf
Releases · wojtekmaj/react-pdf
v5.0.0-beta
❗️ = 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
v4.2.0
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
v4.1.0
v4.0.5
v4.0.4
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).
v4.0.3
v4.0.2
What's changed?
- Using Parcel, if you decide for whatever reason to import from
src
directory instead of defaultdist
, Parcel will properly recognize it and use proper Babel configuration.
Bug fixes
v4.0.0
See Upgrade guide from version 3.x to 4.x.
Note: React <16.3 is not supported. If you're still using React older than 16.3, please use react-pdf@^3.0.0
instead.
What's new?
- React-PDF now uses new Context API giving it much improved reliability and stability.
- React-PDF now uses PDF.js 2.0, bringing in a lot of fixes and improvements.
- Webpack 4.x and Create-React-App 2 are now supported (#179).
- React-PDF is now fully compatible with React 17 (sic!).
- Interactive forms can now be rendered by toggling
renderInteractiveForms
flag. - You can now use
height
prop onPage
component to scale the page.height
will be ignored if you providewidth
as well. More details in README.md (#236). - You can now attach keyboard events to
<Page />
component. - Added support for password encrypted PDFs. You can use
onPassword
prop to overwrite default password prompt (#241). - You can now pass
onLoadProgress
callback toDocument
component to be updated on document loading progress. This may come in handy if you load PDF to be displayed from a web server (#238) - You can now pass
renderMode
prop to allPage
components by adding it to wrappingDocument
component instead. - Added
externalLinkTarget
prop which allows to configuretarget
for external links rendered in annotations (#262). - Added
renderMode
none
which does not render the main layer at all (#283).
What's changed?
- You can no longer use React-PDF without Web Worker.
setOptions
function has been replaced with much more powerfuloptions
prop in Document component.- TextLayer is now rendered over SVG to match Canvas rendering mode behavior.
- Removed
max-width
from rendered SVG to match Canvas rendering mode behavior (#251). renderAnnotations
was renamed torenderAnnotationLayer
for consistency. You don't need to change anything in your code just yet.- Clarified documentation for
onItemClick
. - React-PDF now uses Babel 7 for compilation (#270).
v3.0.6
This is most likely the last release from 3.x branch. It picks the bug fixes made during React-PDF 4.x development back to 3.x version for developers which chose to use older versions of React.
What's new?
- Added documentation for
renderMode
.
Bug fixes
- Fixed annotation rendering multiple times if an update which does not reset the layout occurs (#192).
- Fixed TextLayerItem re-rendering too often (#213, #215). Thanks, @lsimkins!
- Fixed a false positive PropTypes error when passed a React node as
error
orloading
props (#293). Thanks, @pimmey! - Fixed page not displaying when passed
null
toscale
prop.
v4.0.0-beta.6
What's new?
- Added
renderMode
none
which does not render the main layer at all (#283).
What's changed?
renderAnnotations
was renamed torenderAnnotationLayer
for consistency. You don't need to change anything in your code just yet.
Bug fixes
- Pinned down PDF.js version to 2.0.550 because of breaking changes in 2.0.943 (#298).