Skip to content

fix(deps): update dependency react-pdf to v11 - #18271

Open
renovate[bot] wants to merge 2 commits into
masterfrom
renovate/react-pdf-11.x
Open

renovate[bot] wants to merge 2 commits into
masterfrom
renovate/react-pdf-11.x

Conversation

@renovate

@renovate renovate Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
react-pdf (source) 10.5.011.0.0 age confidence

Release Notes

wojtekmaj/react-pdf (react-pdf)

v11.0.0

Compare Source

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

React-PDF 11 brings PDF loading into React's Suspense flow. Use the same loading fallbacks and Error Boundaries as the rest of your application, or keep your existing viewer behavior with suspense={false}.

This release also upgrades PDF.js to version 6, with improvements to rendering, accessibility, and performance, along with some important compatibility changes.

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

❗️ = breaking change

What's new?

  • ❗️ Added Suspense and Error Boundary support, enabled by default (#​2144).
    • Document, Page, Thumbnail, and Outline now use your boundary fallbacks for loading and failures.
    • Set suspense={false} on Document to keep the previous loading and error behavior.
    • Use startTransition to keep previously revealed content visible while loading another file or page.
  • Updated PDF.js from 5.4.296 to 6.3.289 (#​2142), bringing improvements to annotation rendering, image decoding, font conversion, text selection, accessibility, and performance.

What's changed?

  • ❗️ React 19 is now required (#​2143). Support for React 16.8, 17, and 18 has been dropped.
  • ❗️ Dropped support for older browsers and Node.js versions. See the upgrade guide for details.
  • ❗️ Several PDF.js APIs have changed. If you use pdfjs directly, document/page proxies, or custom data factories, check the upgrade guide.
  • onRenderAnnotationLayerSuccess now runs after asynchronous annotation rendering finishes, and rendering failures are reported through onRenderAnnotationLayerError.
  • In Suspense mode, plain file and options objects are compared by value.

Configuration

📅 Schedule: (in timezone Europe/Paris)

  • Branch creation
    • At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday (* 0-4,22-23 * * 1-5)
    • Only on Sunday and Saturday (* * * * 0,6)
  • 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 dependencies Pull requests that update a dependency file. filigran team Item from the Filigran team. labels Sep 14, 2026
Copilot AI lite review requested due to automatic review settings September 14, 2026 12:33
@renovate renovate Bot added dependencies Pull requests that update a dependency file. filigran team Item from the Filigran team. labels Sep 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the frontend PDF viewer from React-PDF 10.5.0 to 11.0.0.

Changes:

  • Upgrades React-PDF and PDF.js.
  • Refreshes related dependency resolutions and checksums.

Review note: React-PDF 11 enables Suspense by default; both existing Document usages need local fallbacks or suspense={false} to preserve current behavior. (Moderate, 3 votes.)

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
opencti-platform/opencti-front/package.json Updates the React-PDF dependency.
opencti-platform/opencti-front/yarn.lock Refreshes React-PDF, PDF.js, and related dependency locks.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread opencti-platform/opencti-front/package.json
@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 36.75%. Comparing base (a86b9fc) to head (9118bbd).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #18271   +/-   ##
=======================================
  Coverage   36.75%   36.75%           
=======================================
  Files        3470     3470           
  Lines      141349   141349           
  Branches    38175    38175           
=======================================
+ Hits        51946    51954    +8     
+ Misses      89403    89395    -8     
Flag Coverage Δ
opencti-client-python 49.85% <ø> (ø)
opencti-front 13.14% <ø> (+<0.01%) ⬆️
opencti-graphql 71.71% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate

renovate Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

React-PDF 11 suspends while loading and rethrows load failures by default,
so `Document` no longer honours the `loading` and `onLoadError` props the two
viewers are built on. `PdfViewer` would hand its wait to the nearest route
fallback, and `StixCoreObjectContent` would send a password-protected file to
the page Error Boundary instead of rendering its own placeholder.

Both viewers now pass `suspense={false}`, which is the documented way to keep
the previous behaviour. `Page` inherits the flag through the document context,
so the pages inside need no change.

The new tests cover both regressions: they pass on 10.5.0, fail on 11.0.0
without this change, and pass again with it. They need a DOMMatrix stub, which
PDF.js reads at import time and jsdom does not provide.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.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. filigran team Item from the Filigran team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants