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 react-pdf from 7.5.0 to 9.1.0 #15546

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 24, 2024

Bumps react-pdf from 7.5.0 to 9.1.0.

Release notes

Sourced from react-pdf's releases.

v9.1.0

What's new?

  • Updated PDF.js to 4.4.168.
    • Annotation improvements
    • Font conversion improvements
    • Image decoding improvements
    • Performance improvements
    • Text selection improvements
  • Added support for isolatedDeclarations in TypeScript.

What's changed?

  • Updated documentation.
  • Updated Next.js, Parcel and Webpack examples.

Bug fixes

  • Fixed missing hiddenCanvasElement styles (#1815).
  • Fixed overly large structTreeUtils.d.ts file, saving you 45 KB of disk space.

v9.0.0

See Upgrade guide from version 8.x to 9.x.

This version updates PDF.js to 4.3.136, fixing GHSA-wgrm-67xf-hhpq for good. React-PDF v8.0.2 and v7.7.3 have already included a mitigation of the issue and thus were not affected by this vulnerability, but caused automatic security alerts due to the outdated PDF.js version.

❗️ = breaking change

What's new?

  • Updated PDF.js to 4.3.136.
    • Optimizations for CPU and memory usage
    • Performance improvements
    • Image rendering improvements
    • Text selection improvements
    • Accessibility improvements
    • Font conversion improvements
    • Handling of corrupted documents
  • Improved Turbopack compatibility.

What's changed?

  • ❗️ PDF.js worker extension has been changed from .js to .mjs.
  • ❗ PDF.js is now an ESM module.
    • In particular, you may encounter issues running unit tests using Jest. Consider migrating to Vitest.
    • Next.js also have issues with ESM Workers, but a working configuration is already known - see Upgrade guide and updated samples.
  • ❗️ Removed deprecated svg renderMode.
  • ❗️ Dropped support for older browsers and Node.js versions. In particular, you may need Promise.withResolvers polyfill when running Node.js versions older than 22.0.0.

v8.0.2

... (truncated)

Commits
  • ff82a89 v9.1.0
  • 3e4d907 Update pdfjs-dist to 4.4.168
  • a2d43cd Bump @​testing-library/react from 15.0.0 to 16.0.0
  • 32be36d Add isolatedDeclarations to TypeScript config
  • ba77134 Add explicit function return types
  • ad8cd67 Bump typescript from 5.4.2 to 5.5.2
  • 3bf79b0 Replace nodemon with fs.watch
  • e382372 Add hiddenCanvasElement styles
  • 6231187 Add explicit return type to make declaration file smaller
  • 2076754 Define effects in useEffect call
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Summary by CodeRabbit

  • New Features

    • Updated the react-pdf library to the latest version, which may introduce new capabilities and enhancements.
  • Bug Fixes

    • The upgrade likely includes various bug fixes from previous versions.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot requested a review from a team as a code owner July 24, 2024 13:23
@dependabot dependabot bot added automerge Merge this PR as soon as all checks pass dependencies Pull requests that update a dependency file labels Jul 24, 2024
Copy link
Contributor

coderabbitai bot commented Jul 24, 2024

Walkthrough

The primary change involves upgrading the react-pdf package from version 7.5.0 to 9.1.0 in the package.json file. This upgrade may introduce new features, performance enhancements, bug fixes, or even breaking changes, impacting how the application interacts with the react-pdf library.

Changes

Files Change Summary
package.json Updated react-pdf from 7.5.0 to 9.1.0

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-pdf-9.1.0 branch from 4c20c34 to 6a5b00f Compare August 7, 2024 11:32
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3727be5 and 6a5b00f.

Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing (1)
  • package.json (1 hunks)
Additional comments not posted (1)
package.json (1)

261-261: Dependency Update: Ensure Compatibility with react-pdf v9.1.0

The react-pdf library has been updated from version 7.5.0 to 9.1.0. This update includes significant changes that may affect your application, such as the PDF.js worker extension changing from .js to .mjs and the library now being an ESM module. Ensure that your application is compatible with these changes.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-pdf-9.1.0 branch from 6a5b00f to ec10a52 Compare August 7, 2024 16:32
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6a5b00f and ec10a52.

Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing (1)
  • package.json (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • package.json

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-pdf-9.1.0 branch 3 times, most recently from a76ccda to 64d51d4 Compare August 16, 2024 12:09
@disaerna disaerna mentioned this pull request Aug 22, 2024
6 tasks
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-pdf-9.1.0 branch from 64d51d4 to 0cf1264 Compare August 23, 2024 10:13
Bumps [react-pdf](https://github.com/wojtekmaj/react-pdf/tree/HEAD/packages/react-pdf) from 7.5.0 to 9.1.0.
- [Release notes](https://github.com/wojtekmaj/react-pdf/releases)
- [Commits](https://github.com/wojtekmaj/react-pdf/commits/v9.1.0/packages/react-pdf)

---
updated-dependencies:
- dependency-name: react-pdf
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-pdf-9.1.0 branch from 0cf1264 to 92f6ad1 Compare August 23, 2024 11:37
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 23, 2024

Superseded by #16122.

@dependabot dependabot bot closed this Sep 23, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/react-pdf-9.1.0 branch September 23, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this PR as soon as all checks pass dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants