Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 27, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-pdf (source) ^9.2.1 -> ^10.1.0 age adoption passing confidence

Release Notes

wojtekmaj/react-pdf (react-pdf)

v10.1.0

Compare Source

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

Compare Source

Bug fixes

  • Fixed commonly used types not reexported.

v10.0.0

Compare Source

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.
  • Reexported some commonly used types from pdfjs-dist, such as StructTreeNode, TextContent, TextItem, and TextMarkedContent, making it easier to work with PDF.js-provided types in your application.

What's changed?

  • ❗️ Dropped support for older browsers and Node.js versions. Please note that following PDF.js's lead, React-PDF will now guarantee to support only the latest versions of all major modern browsers.
  • Improved, cleaned up documentation.
  • We're now testing React-PDF with Vitest Browser Mode, ensuring better compatibility with modern browsers.

Configuration

📅 Schedule: Branch creation - "after 8am and before 5pm every weekday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Jun 27, 2025
@renovate renovate bot requested a review from a team as a code owner June 27, 2025 02:42
@renovate renovate bot requested review from masa0527 and misako0927 and removed request for a team June 27, 2025 02:42
@renovate renovate bot added the renovate label Jun 27, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 27, 2025

Open in StackBlitz

npm i https://pkg.pr.new/kufu/smarthr-ui@5761

commit: 5846655

@Qs-F
Copy link
Contributor

Qs-F commented Jul 8, 2025

これあげるの怖いなぁ……

@renovate renovate bot force-pushed the renovate/react-pdf-10.x branch from 873032a to 25bdb72 Compare July 31, 2025 02:50
@renovate renovate bot force-pushed the renovate/react-pdf-10.x branch from 25bdb72 to c5c86e1 Compare August 11, 2025 00:36
@renovate renovate bot force-pushed the renovate/react-pdf-10.x branch from c5c86e1 to 7317b9b Compare August 18, 2025 01:09
@renovate renovate bot force-pushed the renovate/react-pdf-10.x branch from 7317b9b to 5846655 Compare August 20, 2025 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants