Skip to content

Releases: wojtekmaj/react-pdf

v7.7.1

21 Feb 14:34
93b09c3
Compare
Choose a tag to compare

Bug fixes

  • Fixed Outline, Page and Thumbnail components crashing when placed outside Document, but provided with pdf prop (#1709).
  • Fixed documentation for using vite-plugin-static-copy suggesting a solution that doesn't work on Windows.

v7.7.0

10 Jan 10:10
9365d23
Compare
Choose a tag to compare

What's new?

  • Detect not memoized file and options props.

What's changed?

  • Updated documentation to make it clear SVG renderMode is deprecated and will be removed in the future.
  • Replaced tiny-warning with more popular (and equally tiny!) warning.

v7.6.0

09 Dec 21:24
eceea62
Compare
Choose a tag to compare

What's new?

  • Improved developer experience by moving prop documentation to JSDoc. This means that you can now see descriptions, default values, and examples for all props in your IDE.
  • Improved documentation.

v7.5.1

18 Oct 13:08
f944b85
Compare
Choose a tag to compare

What's new?

v7.5.0

05 Oct 14:03
440df3d
Compare
Choose a tag to compare

What's new?

  • Exported PasswordResponses type to make it easier to create custom password prompts (#1615). Thanks, @pstevovski!
  • Updated documentation on options prop and usage with Next.js.

Bug fixes

  • Fixed customTextRenderer not called on items outside of marked content (#1593, #1623).

v7.4.0

25 Sep 11:57
6c391aa
Compare
Choose a tag to compare

What's new?

  • Improved Next.js compatibility.
    • Updated documentation
    • Added samples for Next.js App Router and Next.js Pages Router
  • Updated PDF.js to 3.11.174.
    • Accessibility improvements
    • Form rendering improvements
    • Font conversion and substitution improvements
    • Performance improvements
    • Text selection improvements
    • TypeScript improvements
    • Other features/bugfixes

Bug fixes

  • Fixed index.test.js entry not working in pure ESM mode with "moduleResolution": "node16" TypeScript option enabled.

v7.3.3

01 Aug 12:24
e8398bb
Compare
Choose a tag to compare

Bug fixes

  • Fixed "Cannot set properties of undefined (setting 'workerSrc')" error in legacy Next.js setups (#1579).

v7.3.2

01 Aug 08:46
02f35ae
Compare
Choose a tag to compare

Bug fixes

  • Fixed "Cannot destructure property 'PDFDataRangeTransport' of 'pdfjs' as it is undefined." in legacy Next.js setups.

v7.3.1

01 Aug 07:55
0186f91
Compare
Choose a tag to compare

Bug fixes

  • Fixed "Named export 'PDFDataRangeTransport' not found." error in some environments (#1578).

v7.3.0

27 Jul 13:23
c7414fe
Compare
Choose a tag to compare

What's new?

  • Added support for native ESM modules (#1574).
  • Added documentation on cMaps and standard fonts for Vite.

What's changed?

  • Improved propTypes.

Bug fixes

  • Fixed propTypes declared twice in every declaration file (#1542).
  • Fixed raw-loader installation instructions using Yarn (#1569). Thanks, @felipelssilva!