Skip to content
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

chore(deps): Bump pdfjs-dist from 3.11.174 to 4.0.189 (reloaded) #1131

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Feb 5, 2025

Updated version of #856

Besides the adjustments to templates/viewer.php, #856 required #1107 to properly initialise the application options. Without #1107 it seemed to work, but it actually created subtle issues due to the options not being set in PDF.js. For example, an easy way to check that was to open a PDF that contains a link; without #1107 clicking on the link opens the link in the same tab, with #1107 it opens the link in a new tab.

@danxuliu danxuliu added 3. to review dependencies Pull requests that update a dependency file labels Feb 5, 2025
@danxuliu danxuliu added this to the Nextcloud 32 milestone Feb 5, 2025
@danxuliu danxuliu requested a review from szaimen February 5, 2025 16:36
dependabot bot and others added 2 commits February 5, 2025 18:09
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 3.11.174 to 4.0.189.
- [Commits](https://github.com/mozilla/pdfjs-dist/commits)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 3.11.174 to 4.0.189 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@szaimen
Copy link
Collaborator

szaimen commented Feb 11, 2025

Hey @danxuliu I just did a fast smoke test and the viewer seems to work fine in general, however I had a small problem when I use a public share link and set it to editable and try to save the modified file:
image

@danxuliu
Copy link
Member Author

Hey @danxuliu I just did a fast smoke test and the viewer seems to work fine in general, however I had a small problem when I use a public share link and set it to editable and try to save the modified file

That is known / expected due to the changes to the public share pages in Nextcloud 31. It should™ be unrelated to the PDF.js update :-) and will be fixed in a different pull request (that will also need to be backported to stable31).

@szaimen
Copy link
Collaborator

szaimen commented Feb 12, 2025

Hey @danxuliu I just did a fast smoke test and the viewer seems to work fine in general, however I had a small problem when I use a public share link and set it to editable and try to save the modified file

That is known / expected due to the changes to the public share pages in Nextcloud 31. It should™ be unrelated to the PDF.js update :-) and will be fixed in a different pull request (that will also need to be backported to stable31).

All right. Approving then

Copy link
Collaborator

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a smoke test and seems to work fine but did not review the code

@danxuliu danxuliu merged commit 7012431 into master Feb 13, 2025
39 of 40 checks passed
@danxuliu danxuliu deleted the dependabot/npm_and_yarn/pdfjs-dist-4.0.189 branch February 13, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants