Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 29, 2024

This PR contains the following updates:

Package Change Age Confidence
react-to-print ^2.14.12 -> ^3.0.0 age confidence

Release Notes

MatthewHerbst/react-to-print (react-to-print)

v3.2.0

Compare Source

  • FEAR 820: Add printIframeProps prop to allow setting certain print iframe props for privacy & security
  • CHORE 815: Update dependencies

v3.1.1

Compare Source

  • FIX 812: Better detect optional lazy content versus Event
  • CHORE 813: Upgrade all devDependencies

v3.1.0

Compare Source

  • FIX 804: Correct issues with onBeforePrint
  • FEAT 803: Allow passing the useReactToPrint callback directly to event handlers

v3.0.6

Compare Source

  • CHORE 794: Improve memoization of options passed to react-to-print. Thanks FatahChan

v3.0.5

Compare Source

  • FIX 779: Fix a bug causing onAfterPrint to not always fire when the print window closes. Thanks sensasi-delight

v3.0.4

Compare Source

  • FIX 772: Ensure that video elements with an empty src attribute do not prevent printing from continuing. Thanks @​Can-Chen

v3.0.3

Compare Source

  • FIX 764: Ensure onAfterPrint is called, and print iframe is removed, after the print preview dialog has closed. Previously these would happen when the afterprint event was received which, as noted in the README, may occur immediately in some browsers, rather than when the print preview dialog closes. Thanks sensasi-delight
  • FIX 768: React 19 made a small change to the typing for Refs which requires explicitly handling null/undefined initial types
  • CHORE: Minor code cleanup and comments
  • CHORE: Updated devDependencies to latest, including now using React 19 for our examples
  • DOCS: README updates, including a link to using the lazy method of providing content
Beta Versions
  • 3.0.3-beta-1 (16th Dec 2024)

v3.0.2

Compare Source

  • FIX 751: Ensure selected <select> option printed. Currently the first option is printed regardless of selection state
  • FIX 753: Fix incorrect ESLint config reference to tsconfig file

v3.0.1

Compare Source

  • FIX 743: Allow passing the function returned from useReactToPrint directly to event handlers (this is primarily geared at non-typescript users who are not aware of the new v3 API that prefers the function be wrapped, by changing onClick={printFn} to onClick={() => printFn()})

v3.0.0

Compare Source

v3.0.0 brings API modernization, React 19 support, a smaller package size, Shadow DOM support, and improved error handling.

BREAKING CHANGES
  • content renamed to contentRef and type changed from () => React.ReactInstance to RefObject<Element | Text>. The core impact here is that Class components now need to have the ref forwarded via props internally to a DOM node
  • React >= 16.8.0 required (dropped support for React versions that don't support hooks)
  • onBeforeGetContent removed. Use onBeforePrint, which similar to onBeforeGetContent, now runs before the print iframe is loaded
  • removeAfterPrint renamed to preserveAfterPrint which defaults to false
  • ReactToPrint removed. Use useReactToPrint
  • PrintContextConsumer removed. Use useReactToPrint
  • trigger removed, use the function returned by useReactToPrint
  • IReactToPrintProps renamed to UseReactToPrintOptions
  • Default package export removed, use named useReactToPrint export
  • Removed event?: unknown type from useReactToPrint callback. optionalContent is now the only (optional) argument
  • Build is now ES6 code. Previously it was ES5
  • No longer supporting IE11
New
  • FEATURE 717: React 19 support + API modernization
  • FEATURE 707: Improved error handling when canvas elements have not properly loaded
  • FEATURE 723: Add new option, copyShadowRoots, to support copying ShadowRoots. Thanks boehlke
  • CHORE: package size reduced by 18.7kb (34%)
  • CHORE: dev dependencies updated
Beta Versions
  • 3.0.0-beta-3 (19 Aug 2024)
  • 3.0.0-beta-2 (19 Aug 2024)
  • 3.0.0-beta-1 (15 Jul 2024)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Nov 6, 2024
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 Jan 14, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Jan 28, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 Feb 6, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Feb 12, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 Feb 13, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Mar 14, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 Mar 28, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Apr 1, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 Apr 4, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Apr 11, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 Apr 14, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Apr 15, 2025
@renovate renovate bot force-pushed the renovate/react-to-print-3.x branch from 774243f to b6a83ea Compare April 15, 2025 09:21
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 Apr 29, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 May 5, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 May 8, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 May 9, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-to-print to v3 Update dependency react-to-print to v3 May 13, 2025
@renovate renovate bot changed the title Update dependency react-to-print to v3 fix(deps): update dependency react-to-print to v3 Jun 27, 2025
@renovate renovate bot force-pushed the renovate/react-to-print-3.x branch 2 times, most recently from c9c0f6e to 49fab64 Compare August 13, 2025 11:33
@renovate renovate bot force-pushed the renovate/react-to-print-3.x branch from 49fab64 to cde8439 Compare August 19, 2025 14:05
@renovate renovate bot force-pushed the renovate/react-to-print-3.x branch from cde8439 to 764834a Compare September 25, 2025 15:09
@renovate renovate bot force-pushed the renovate/react-to-print-3.x branch 2 times, most recently from 066dcad to 7b8953c Compare October 21, 2025 16:53
@renovate renovate bot force-pushed the renovate/react-to-print-3.x branch from 7b8953c to 4cc615e Compare November 11, 2025 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant