Skip to content

Releases: wojtekmaj/react-pdf

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!

v7.2.0

21 Jul 13:50
c91f2a5
Compare
Choose a tag to compare

What's new?

  • Added support for new renderMode: "custom". When set, you can pass custom renderer function to customRenderer prop (#1408).
  • Improved RSC compatibility. You no longer need to add 'use client'; to the parent component for this component to work.

What's changed?

  • Improved documentation not to suggest using inline object as options prop value (#1567).
  • Added guidelines for installation in Next.js app (#1508).

Bug fixes

  • @types/react and @types/react-dom are now optional peerDependencies, which eliminates errors caused by duplicate typings.

v7.1.3

16 Jul 08:38
8d8a5b0
Compare
Choose a tag to compare

What's changed?

  • Updated clsx dependency to 2.0.0 to enable ESM support in the near future.

v7.1.2

12 Jun 06:03
7740ef6
Compare
Choose a tag to compare

Bug fixes

  • Fixed customTextRenderer not working on documents without marked content (#1530, #1531). Thanks, @MattL75!