unstale

npm / react-pdf

react-pdf

What changed in react-pdf 10 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.

11 breaking1 security1 new APIs and options1 behavior and defaults2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

react-pdf 119 changes

Breaking changes 7

  • Support for older browsers and Node.js versions has been dropped; consult the upgrade guide for details.

    11.0.0release notes

  • In Suspense mode, plain file objects are compared by value.

    11.0.0release notes

  • The callback now runs after asynchronous annotation rendering finishes.

    11.0.0release notes

  • The PDF.js upgrade brings improvements to annotation rendering, image decoding, font conversion, text selection, accessibility, and performance.

    11.0.0release notes

  • Several PDF.js APIs have changed, affecting users of pdfjs directly, document or page proxies, and custom data factories.

    11.0.0release notes

  • React 19 is now required; support for React 16.8, 17, and 18 has been dropped.

    11.0.0release notes

  • Suspense and Error Boundary support is enabled by default for Document, Page, Thumbnail, and Outline; set suspense={false} on Document to keep the previous loading and error behavior.

    11.0.0release notes

New APIs and options 1

  • Annotation rendering failures are reported through this callback.

    11.0.0release notes

Behavior and default changes 1

  • In Suspense mode, plain options objects are compared by value.

    11.0.0release notes

react-pdf 107 changes

Breaking changes 4

  • Data URLs in URL attributes returned by customTextRenderer are now disallowed.

    10.5.0release notes

  • Moved from :root to .textLayer .highlight and is now semi-transparent.

    10.5.0release notes

  • Moved from :root to .textLayer .highlight and is now semi-transparent.

    10.5.0release notes

  • The text layer z-index changed from 2 to 0.

    10.5.0release notes

Security 1

  • HTML returned by customTextRenderer is sanitized.

    10.4.1release notes

Fixes and other changes 2

  • Fixed a crash when <Document /> was hidden and revealed by <Activity>.

    10.5.0release notes

  • Fixed the text layer being misaligned with page content.

    10.5.0release notes