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

Bump react-pdf from 5.7.2 to 7.7.3 in /ui #3726

Merged
merged 3 commits into from May 22, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 7, 2024

Bumps react-pdf from 5.7.2 to 7.7.3.

Release notes

Sourced from react-pdf's releases.

v7.7.3

Bug fixes

v7.7.2

This version shipped an incorrect fix for a security vulnerability and thus has been deprecated.

Bug fixes

v7.7.1

Bug fixes

  • Fixed Outline, Page and Thumbnail components crashing when placed outside Document, but provided with pdf prop (#1709).
  • Fixed documentation for using vite-plugin-static-copy suggesting a solution that doesn't work on Windows.

v7.7.0

What's new?

  • Detect not memoized file and options props.

What's changed?

  • Updated documentation to make it clear SVG renderMode is deprecated and will be removed in the future.
  • Replaced tiny-warning with more popular (and equally tiny!) warning.

v7.6.0

What's new?

  • Improved developer experience by moving prop documentation to JSDoc. This means that you can now see descriptions, default values, and examples for all props in your IDE.
  • Improved documentation.

v7.5.1

What's new?

v7.5.0

What's new?

  • Exported PasswordResponses type to make it easier to create custom password prompts (#1615). Thanks, @​pstevovski!
  • Updated documentation on options prop and usage with Next.js.

Bug fixes

  • Fixed customTextRenderer not called on items outside of marked content (#1593, #1623).

... (truncated)

Commits
  • 1a69776 v7.7.3
  • 208f28d Force isEvalSupported to false
  • 8ca4d07 v7.7.2
  • 260295b Force isEvalSupported to true
  • 93b09c3 v7.7.1
  • f01d41e Bump eslint-config-wojtekmaj from 0.9.0 to 0.11.0
  • a9d0b52 Bump eslint from 8.37.0 to 8.56.0
  • 57eaaf7 Bump jsdom from 21.1.1 to 24.0.0
  • e339525 Fix Outline, Page and Thumbnail components crashing when placed outside Document
  • cf5327b Add missing linkService in DocumentContext in unit tests
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [react-pdf](https://github.com/wojtekmaj/react-pdf/tree/HEAD/packages/react-pdf) from 5.7.2 to 7.7.3.
- [Release notes](https://github.com/wojtekmaj/react-pdf/releases)
- [Commits](https://github.com/wojtekmaj/react-pdf/commits/v7.7.3/packages/react-pdf)

---
updated-dependencies:
- dependency-name: react-pdf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 7, 2024
The text layer is what makes text selectable, but it needs to be aligned in the same way as the underlying canvas that renders the page.
Annotations can be popups, notes, highlights, forms, or clickable links. We currently do not render annotations. While the use of the `renderAnnotations` property suggests that annotations were indeed enabled in an earlier version, the property has been renamed long time ago and annotations have (effectively) not been enabled for multiple years now.

While it would have been possible to enable annotations again, I think keeping them disabled is actually sensible as they bear some risk due to their interactive nature.
@tillprochaska
Copy link
Contributor

tillprochaska commented May 17, 2024

@catileptic @Rosencrantz @stchris I’ve fixed breaking changes for this version upgrade would appreciate a quick review from you.

I’ve manually verified the changes using the following PDF files which should cover the main PDF features we care about: rendering of scanned, OCR’ed pages, text rendering and selection, interactive elements such as links. Can you think of any other PDF features we rely on and that we should test explicitly?

@stchris
Copy link
Contributor

stchris commented May 17, 2024

@tillprochaska you could try the pdfs from here https://github.com/alephdata/ingest-file/tree/main/tests/fixtures

@tillprochaska tillprochaska merged commit 45c6deb into develop May 22, 2024
1 check passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ui/react-pdf-7.7.3 branch May 22, 2024 12:06
stchris pushed a commit that referenced this pull request May 22, 2024
* Bump react-pdf from 5.7.2 to 7.7.3 in /ui

Bumps [react-pdf](https://github.com/wojtekmaj/react-pdf/tree/HEAD/packages/react-pdf) from 5.7.2 to 7.7.3.
- [Release notes](https://github.com/wojtekmaj/react-pdf/releases)
- [Commits](https://github.com/wojtekmaj/react-pdf/commits/v7.7.3/packages/react-pdf)

---
updated-dependencies:
- dependency-name: react-pdf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix alignment of invisible text layer

The text layer is what makes text selectable, but it needs to be aligned in the same way as the underlying canvas that renders the page.

* Do not render annotations

Annotations can be popups, notes, highlights, forms, or clickable links. We currently do not render annotations. While the use of the `renderAnnotations` property suggests that annotations were indeed enabled in an earlier version, the property has been renamed long time ago and annotations have (effectively) not been enabled for multiple years now.

While it would have been possible to enable annotations again, I think keeping them disabled is actually sensible as they bear some risk due to their interactive nature.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Till Prochaska <1512805+tillprochaska@users.noreply.github.com>
tillprochaska added a commit that referenced this pull request May 22, 2024
* Bump react-pdf from 5.7.2 to 7.7.3 in /ui

Bumps [react-pdf](https://github.com/wojtekmaj/react-pdf/tree/HEAD/packages/react-pdf) from 5.7.2 to 7.7.3.
- [Release notes](https://github.com/wojtekmaj/react-pdf/releases)
- [Commits](https://github.com/wojtekmaj/react-pdf/commits/v7.7.3/packages/react-pdf)

---
updated-dependencies:
- dependency-name: react-pdf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix alignment of invisible text layer

The text layer is what makes text selectable, but it needs to be aligned in the same way as the underlying canvas that renders the page.

* Do not render annotations

Annotations can be popups, notes, highlights, forms, or clickable links. We currently do not render annotations. While the use of the `renderAnnotations` property suggests that annotations were indeed enabled in an earlier version, the property has been renamed long time ago and annotations have (effectively) not been enabled for multiple years now.

While it would have been possible to enable annotations again, I think keeping them disabled is actually sensible as they bear some risk due to their interactive nature.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Till Prochaska <1512805+tillprochaska@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants