npm react-pdf 10.5.0
v10.5.0

3 hours ago

What's changed?

  • Text layer styles are now in sync with PDF.js 5.4.296 (#2077).
    If you were customizing text layer styles, note that --highlight-bg-color and --highlight-selected-bg-color moved from :root to .textLayer .highlight and are now semi-transparent, and that .textLayer z-index changed from 2 to 0.
  • Documented legacy PDF.js worker, reported to work on iOS 16.4 and newer.
  • Updated pnpm hoisting instructions for pnpm 11+ (#2114).
  • Clarified that filtering of HTML returned by customTextRenderer is best-effort, and sanitizing it is up to you.

Bug fixes

  • Fixed text layer being misaligned with page content (#2064).
  • Fixed crash when <Document /> was hidden and revealed by <Activity> (#2128).
  • Disallowed data: URLs in URL attributes returned by customTextRenderer.

Don't miss a new react-pdf release

NewReleases is sending notifications on new releases.