-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade react-pdf
and react-fast-pdf
#49527
Upgrade react-pdf
and react-fast-pdf
#49527
Conversation
66b6366
to
02eb49f
Compare
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -174,22 +174,12 @@ | |||
"react-native-web": "^0.19.12", | |||
"react-native-web-sound": "^0.1.3", | |||
"react-native-webview": "13.8.6", | |||
"react-pdf": "9.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes work well, but why are we removing react-pdf from package.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might result in different versions of the same package being installed if the versions get out of sync (see #41238).
There are a few other packages not included in packages.json
, including pdfjs-dist
. Ideally we should re-enable the import/no-extraneous-dependencies
rule and add these packages to peerDependencies
as we do in react-fast-pdf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay okay, I don't have a strong opinion about removing it from the package.json. @thienlnam , are you alright with us removing it from the package.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No opinion here either - should be okay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we can proceed with the merge. The PR has tested well.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/thienlnam in version: 9.0.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.42-3 🚀
|
Details
Updated the
react-fast-pdf
library to v1.0.15 (which also updatedreact-pdf
to v9.1.1) and removed the patches.Fixed Issues
$ #48124
PROPOSAL: #48124 (comment)
Tests
Offline tests
N/A
QA Steps
Same as "Tests"
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
48124.android.native.webm
Android: mWeb Chrome
48124.android.mweb.webm
iOS: Native
48124.ios.native.mp4
iOS: mWeb Safari
48124.ios.mweb.mp4
MacOS: Chrome / Safari
48124.macos.web.mov
MacOS: Desktop
48124.macos.desktop.mov