Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 18, 2025

Bumps react-pdf from 6.2.2 to 10.1.0.

Release notes

Sourced from react-pdf's releases.

v10.1.0

What's new?

  • Added support for functions as children. React-PDF has never been simpler to work with! Say goodbye toonLoadSuccess, say goodbye to setting number of pages in your own state, say goodbye to extra renders! Now, rendering a simple document is as trivial as:
    <Document file="sample.pdf">
      {({ pdf }) => Array(pdf.numPages)
        .fill(null)
        .map((_, index) => <Page key={index} pageIndex={index} />
      ))}
    </Document>
    Thanks @​adamaoc for inspiration!
  • Updated PDF.js to 5.3.93.
  • Updated documentation on JPEG 2000 support.
  • Updated dependencies.
  • Exported LinkService type for convenience.

What's changed?

  • usePageContext will now provide non-null value sooner than before, before the page is actually loaded. This is uniform with how useDocumentContext behaves and with how types were designed from the start, so you should not be affected by this change.
  • React-PDF now targets es2018 and not es2017. PDF.js, our core dependency, already used modern JavaScript syntax, so you should not be affected by this change.

v10.0.1

Bug fixes

  • Fixed commonly used types not reexported.

v10.0.0

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

After more than a year since our last major release, we're thrilled to bring you React-PDF 10.

This update includes a major PDF.js upgrade, new features to make your life easier, improved stability, and some important breaking changes.

👀 Want to see exciting features more often? Consider sponsoring React-PDF.

❗️ = breaking change

What's new?

  • ❗️ Dropped CommonJS build, making the package ESM-only. Chances are you're not going to be affected by this change at all, as all common bundlers support ESM out of the box.
    • However, you may encounter issues running unit tests using Jest. Consider migrating to Vitest.
  • Updated PDF.js to 5.3.31.
    • Performance boosts: Key rendering routines refactored to cut memory usage and speed up page loading.
    • JPEG2000 downscaling: Automatic downscale of large JPEG2000 images during decoding to improve render times.
    • CMYK JPEG fix: Correct handling of the alpha channel when WebAssembly is disabled.
    • Viewer stability: Better handling of missing/invalid Content-Range headers.
    • API cleanup: Removed deprecated options, adopted parameter objects for core methods, and introduced private class fields for cleaner code.
  • Added support for scale prop in Document component, allowing you to set the scale for the entire document.

... (truncated)

Commits
  • 389f613 v10.1.0
  • 811614c Add support for render props in Document and Page components
  • 2f3187a Enable Biome Import Organizer
  • 06a2284 Add missing unit test for Thumbnail component
  • 0b91087 Fix unit test descriptions
  • f4aeddc Target es2018, not es2015/es2017
  • 32bde7e Export LinkService type
  • 319c23f Add type declaration
  • 47144dd Add documentation on support for JPEG 2000, update all samples
  • a6bdd8c Update pdfjs-dist to 5.3.93
  • 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)

Bumps [react-pdf](https://github.com/wojtekmaj/react-pdf/tree/HEAD/packages/react-pdf) from 6.2.2 to 10.1.0.
- [Release notes](https://github.com/wojtekmaj/react-pdf/releases)
- [Commits](https://github.com/wojtekmaj/react-pdf/commits/v10.1.0/packages/react-pdf)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 18, 2025
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.

0 participants