Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump react-to-print from 2.15.1 to 3.0.2 #11841

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 24, 2024

Bumps react-to-print from 2.15.1 to 3.0.2.

Release notes

Sourced from react-to-print's releases.

v3.0.2

Please see the CHANGELOG for release notes.

Full Changelog: MatthewHerbst/react-to-print@v3.0.1...v3.0.2

v3.0.1

Please see the CHANGELOG for release notes.

Full Changelog: MatthewHerbst/react-to-print@v3.0.0...v3.0.1

v3.0.0

Please see the CHANGELOG for release notes.

Full Changelog: MatthewHerbst/react-to-print@v2.15.1...v3.0.0

v3.0.0-beta-3

Please see the CHANGELOG for release notes.

Full Changelog: https://github.com/gregnb/react-to-print/compare/v3.0.0-beta-2..v3.0.0-beta-3

v3.0.0-beta-2

Please see the CHANGELOG for release notes.

Full Changelog: https://github.com/gregnb/react-to-print/compare/v3.0.0-beta-1..v3.0.0-beta-2

v3.0.0-beta-1

Please see the CHANGELOG for release notes.

Full Changelog: https://github.com/gregnb/react-to-print/compare/v2.15.0..v3.0.0-beta-1

Changelog

Sourced from react-to-print's changelog.

3.0.2 (October 17th, 2024)

  • 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

3.0.1 (September 30th, 2024)

  • 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()})

3.0.0 (September 28th, 2024)

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)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Dependabot: Pull requests that update dependencies. javascript Pull requests that update JavaScript code labels Oct 24, 2024
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-to-print-3.0.2 branch from 8b66d8a to fff828e Compare October 24, 2024 15:07
Bumps [react-to-print](https://github.com/MatthewHerbst/react-to-print) from 2.15.1 to 3.0.2.
- [Release notes](https://github.com/MatthewHerbst/react-to-print/releases)
- [Changelog](https://github.com/MatthewHerbst/react-to-print/blob/master/CHANGELOG.md)
- [Commits](MatthewHerbst/react-to-print@v2.15.1...v3.0.2)

---
updated-dependencies:
- dependency-name: react-to-print
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-to-print-3.0.2 branch from fff828e to 3f971c4 Compare October 25, 2024 17:27
@mnigh mnigh closed this Oct 25, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 25, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/react-to-print-3.0.2 branch October 25, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependabot: Pull requests that update dependencies. javascript Pull requests that update JavaScript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant