Update dependency react-pdf to v7 #4055
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.2.2
->7.3.3
Release Notes
wojtekmaj/react-pdf (react-pdf)
v7.3.3
Compare Source
Bug fixes
v7.3.2
Compare Source
Bug fixes
v7.3.1
Compare Source
Bug fixes
v7.3.0
Compare Source
What's new?
What's changed?
Bug fixes
v7.2.0
Compare Source
What's new?
renderMode
:"custom"
. When set, you can pass custom renderer function tocustomRenderer
prop (#1408).'use client';
to the parent component for this component to work.What's changed?
options
prop value (#1567).Bug fixes
@types/react
and@types/react-dom
are now optional peerDependencies, which eliminates errors caused by duplicate typings.v7.1.3
Compare Source
What's changed?
clsx
dependency to2.0.0
to enable ESM support in the near future.v7.1.2
Compare Source
Bug fixes
customTextRenderer
not working on documents without marked content (#1530, #1531). Thanks, @MattL75!v7.1.1
Compare Source
Bug fixes
v7.1.0
Compare Source
Large and exciting release, full of improvements and new features, mainly thanks to our contributors, @kostassite, @iamandrewluca and @MattL75, and sponsors. Become a sponsor and help making React-PDF even better!
What's new?
Thumbnail
component which lets you render thumbnails (#898, #1519).pdf.annotationStorage
inpdf
provided inonDocumentLoadSuccess
callback and listen for form data changes (#1518). Thanks, @kostassite!useDocumentContext
,useOutlineContext
andusePageContext
. These hooks allow you to build custom components that hook (pun not intended) into React-PDF API (#1505). Thanks, @iamandrewluca!onItemClick
was not provided neither toDocument
norOutline
components, React-PDF will now attempt to navigate to the page of the clicked outline item on its own, just like it does for internal links.What's changed?
Page
:onGetStructTreeSuccess
andonGetStructTreeError
(#1494, #1498). Thanks, @MattL75!Bug fixes
onItemClick
types incorrectly markingdest
as required.onItemClick
not passed fromDocument
toOutline
. Previously, you had to manually passonItemClick
toOutline
component. Now, you only need to pass it toDocument
.v7.0.3
Compare Source
Bug fixes
DocumentInitParameters
to be passed tooptions
prop.v7.0.2
Compare Source
Bug fixes
section
selector styled.v7.0.1
Compare Source
Bug fixes
v7.0.0
Compare Source
See Upgrade guide from version 6.x to 7.x.
This is one of the biggest update - for React-PDF and for me personally. React-PDF has been rewritten from scratch using TypeScript and React Hooks. I've put a tremendous amount of effort to modernize the package without introducing any major breaking changes. If, however, something have slipped through 137 unit tests we have, please let me know. I hope you will like it.
❗️ = breaking change
What's new?
What's changed?
renderInteractiveForms
propBug fixes
--scale-factor
CSS-variable must be set" error.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.